@descope/flow-components 2.0.412 → 2.0.413
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/README.md +0 -1
- package/dist/dts/Alert/Alert.d.ts +20 -0
- package/dist/dts/Alert/index.d.ts +1 -0
- package/dist/dts/AppsList/AppsList.d.ts +17 -0
- package/dist/dts/AppsList/index.d.ts +1 -0
- package/dist/dts/Avatar/Avatar.d.ts +16 -0
- package/dist/dts/Avatar/index.d.ts +1 -0
- package/dist/dts/Badge/Badge.d.ts +16 -0
- package/dist/dts/Badge/index.d.ts +1 -0
- package/dist/dts/Boolean/Boolean.d.ts +9 -0
- package/dist/dts/Boolean/index.d.ts +1 -0
- package/dist/dts/Button/Button.d.ts +23 -0
- package/dist/dts/Button/index.d.ts +1 -0
- package/dist/dts/ButtonMultiSelectionGroup/ButtonMultiSelectionGroup.d.ts +26 -0
- package/dist/dts/ButtonMultiSelectionGroup/index.d.ts +1 -0
- package/dist/dts/ButtonSelectionGroup/ButtonSelectionGroup.d.ts +24 -0
- package/dist/dts/ButtonSelectionGroup/index.d.ts +1 -0
- package/dist/dts/Checkbox/Checkbox.d.ts +11 -0
- package/dist/dts/Checkbox/index.d.ts +1 -0
- package/dist/dts/Code/Code.d.ts +14 -0
- package/dist/dts/Code/index.d.ts +1 -0
- package/dist/dts/CodeSnippet/CodeSnippet.d.ts +14 -0
- package/dist/dts/CodeSnippet/index.d.ts +1 -0
- package/dist/dts/ComboBox/ComboBox.d.ts +22 -0
- package/dist/dts/ComboBox/index.d.ts +1 -0
- package/dist/dts/Container/Container.d.ts +35 -0
- package/dist/dts/Container/index.d.ts +1 -0
- package/dist/dts/CssVarImage/CssVarImage.d.ts +9 -0
- package/dist/dts/CssVarImage/index.d.ts +1 -0
- package/dist/dts/DateField/DateField.d.ts +11 -0
- package/dist/dts/DateField/index.d.ts +1 -0
- package/dist/dts/Divider/Divider.d.ts +18 -0
- package/dist/dts/Divider/index.d.ts +1 -0
- package/dist/dts/EmailField/EmailField.d.ts +11 -0
- package/dist/dts/EmailField/index.d.ts +1 -0
- package/dist/dts/Grid/Columns/GridCustomColumn.d.ts +12 -0
- package/dist/dts/Grid/Columns/GridItemDetailsColumn.d.ts +10 -0
- package/dist/dts/Grid/Columns/GridSelectionColumn.d.ts +10 -0
- package/dist/dts/Grid/Columns/GridTextColumn.d.ts +10 -0
- package/dist/dts/Grid/Columns/index.d.ts +4 -0
- package/dist/dts/Grid/Columns/types.d.ts +8 -0
- package/dist/dts/Grid/Grid.d.ts +30 -0
- package/dist/dts/Grid/index.d.ts +2 -0
- package/dist/dts/HybridField/HybridField.d.ts +46 -0
- package/dist/dts/HybridField/index.d.ts +1 -0
- package/dist/dts/Icon/Icon.d.ts +15 -0
- package/dist/dts/Icon/index.d.ts +1 -0
- package/dist/dts/Image/Image.d.ts +16 -0
- package/dist/dts/Image/index.d.ts +1 -0
- package/dist/dts/Input/Input.d.ts +4 -0
- package/dist/dts/Input/index.d.ts +1 -0
- package/dist/dts/Link/Link.d.ts +20 -0
- package/dist/dts/Link/index.d.ts +1 -0
- package/dist/dts/List/List.d.ts +16 -0
- package/dist/dts/List/ListItem.d.ts +15 -0
- package/dist/dts/List/index.d.ts +2 -0
- package/dist/dts/Loader/Loader.d.ts +18 -0
- package/dist/dts/Loader/index.d.ts +1 -0
- package/dist/dts/Logo/Logo.d.ts +15 -0
- package/dist/dts/Logo/index.d.ts +1 -0
- package/dist/dts/MappingsField/MappingsField.d.ts +27 -0
- package/dist/dts/MappingsField/index.d.ts +1 -0
- package/dist/dts/Modal/Modal.d.ts +13 -0
- package/dist/dts/Modal/index.d.ts +1 -0
- package/dist/dts/MultiSelect/MultiSelect.d.ts +18 -0
- package/dist/dts/MultiSelect/index.d.ts +1 -0
- package/dist/dts/MultiSelectComboBox/MultiSelectComboBox.d.ts +27 -0
- package/dist/dts/MultiSelectComboBox/index.d.ts +1 -0
- package/dist/dts/NOTPImage/NOTPImage.d.ts +15 -0
- package/dist/dts/NOTPImage/index.d.ts +1 -0
- package/dist/dts/NOTPLink/NOTPLink.d.ts +5 -0
- package/dist/dts/NOTPLink/index.d.ts +1 -0
- package/dist/dts/NewPassword/NewPassword.d.ts +34 -0
- package/dist/dts/NewPassword/index.d.ts +1 -0
- package/dist/dts/NumberField/NumberField.d.ts +11 -0
- package/dist/dts/NumberField/index.d.ts +1 -0
- package/dist/dts/Password/Password.d.ts +11 -0
- package/dist/dts/Password/index.d.ts +1 -0
- package/dist/dts/Phone/Phone.d.ts +11 -0
- package/dist/dts/Phone/index.d.ts +1 -0
- package/dist/dts/PhoneCountrySelection/PhoneCountrySelection.d.ts +16 -0
- package/dist/dts/PhoneCountrySelection/index.d.ts +1 -0
- package/dist/dts/PhoneInputBox/PhoneInputBox.d.ts +16 -0
- package/dist/dts/PhoneInputBox/index.d.ts +1 -0
- package/dist/dts/RadioGroup/RadioGroup.d.ts +22 -0
- package/dist/dts/RadioGroup/index.d.ts +1 -0
- package/dist/dts/Recaptcha/Recaptcha.d.ts +27 -0
- package/dist/dts/Recaptcha/index.d.ts +1 -0
- package/dist/dts/RecaptchaV2/RecaptchaV2.d.ts +15 -0
- package/dist/dts/RecaptchaV2/index.d.ts +1 -0
- package/dist/dts/SAMLGroupMappings/SAMLGroupMappings.d.ts +26 -0
- package/dist/dts/SAMLGroupMappings/index.d.ts +1 -0
- package/dist/dts/ScopesList/ScopesList.d.ts +22 -0
- package/dist/dts/ScopesList/index.d.ts +1 -0
- package/dist/dts/SecurityQuestionsSetup/SecurityQuestionsSetup.d.ts +27 -0
- package/dist/dts/SecurityQuestionsSetup/index.d.ts +1 -0
- package/dist/dts/SecurityQuestionsVerify/SecurityQuestionsVerify.d.ts +26 -0
- package/dist/dts/SecurityQuestionsVerify/index.d.ts +1 -0
- package/dist/dts/Select/Select.d.ts +17 -0
- package/dist/dts/Select/index.d.ts +1 -0
- package/dist/dts/SingleSelect/SingleSelect.d.ts +17 -0
- package/dist/dts/SingleSelect/index.d.ts +1 -0
- package/dist/dts/Switch/Switch.d.ts +11 -0
- package/dist/dts/Switch/index.d.ts +1 -0
- package/dist/dts/TOTPImage/TOTPImage.d.ts +15 -0
- package/dist/dts/TOTPImage/index.d.ts +1 -0
- package/dist/dts/TOTPLink/TOTPLink.d.ts +5 -0
- package/dist/dts/TOTPLink/index.d.ts +1 -0
- package/dist/dts/Text/Text.d.ts +25 -0
- package/dist/dts/Text/index.d.ts +1 -0
- package/dist/dts/TextField/TextField.d.ts +11 -0
- package/dist/dts/TextField/index.d.ts +1 -0
- package/dist/dts/Textarea/Textarea.d.ts +11 -0
- package/dist/dts/Textarea/index.d.ts +1 -0
- package/dist/dts/ThirdPartyAppLogo/ThirdPartyAppLogo.d.ts +14 -0
- package/dist/dts/ThirdPartyAppLogo/index.d.ts +1 -0
- package/dist/dts/UploadFile/UploadFile.d.ts +27 -0
- package/dist/dts/UploadFile/index.d.ts +1 -0
- package/dist/dts/UserAttribute/UserAttribute.d.ts +19 -0
- package/dist/dts/UserAttribute/index.d.ts +1 -0
- package/dist/dts/UserAuthMethod/UserAuthMethod.d.ts +20 -0
- package/dist/dts/UserAuthMethod/index.d.ts +1 -0
- package/dist/dts/icons/index.d.ts +19 -0
- package/dist/dts/index.d.ts +143 -0
- package/dist/dts/inputHelpers.d.ts +1 -0
- package/dist/dts/types.d.ts +37 -0
- package/dist/index.cjs.js +165 -138
- package/dist/index.d.ts +193 -65
- package/dist/index.esm.js +106 -139
- package/dist/types/src/Alert/Alert.d.ts +20 -0
- package/dist/types/src/Alert/index.d.ts +1 -0
- package/dist/types/src/AppsList/AppsList.d.ts +17 -0
- package/dist/types/src/AppsList/index.d.ts +1 -0
- package/dist/types/src/Avatar/Avatar.d.ts +16 -0
- package/dist/types/src/Avatar/index.d.ts +1 -0
- package/dist/types/src/Badge/Badge.d.ts +16 -0
- package/dist/types/src/Badge/index.d.ts +1 -0
- package/dist/types/src/Boolean/Boolean.d.ts +9 -0
- package/dist/types/src/Boolean/index.d.ts +1 -0
- package/dist/types/src/Button/Button.d.ts +23 -0
- package/dist/types/src/Button/index.d.ts +1 -0
- package/dist/types/src/ButtonMultiSelectionGroup/ButtonMultiSelectionGroup.d.ts +26 -0
- package/dist/types/src/ButtonMultiSelectionGroup/index.d.ts +1 -0
- package/dist/types/src/ButtonSelectionGroup/ButtonSelectionGroup.d.ts +24 -0
- package/dist/types/src/ButtonSelectionGroup/index.d.ts +1 -0
- package/dist/types/src/Checkbox/Checkbox.d.ts +11 -0
- package/dist/types/src/Checkbox/index.d.ts +1 -0
- package/dist/types/src/Code/Code.d.ts +14 -0
- package/dist/types/src/Code/index.d.ts +1 -0
- package/dist/types/src/CodeSnippet/CodeSnippet.d.ts +14 -0
- package/dist/types/src/CodeSnippet/index.d.ts +1 -0
- package/dist/types/src/ComboBox/ComboBox.d.ts +22 -0
- package/dist/types/src/ComboBox/index.d.ts +1 -0
- package/dist/types/src/Container/Container.d.ts +35 -0
- package/dist/types/src/Container/index.d.ts +1 -0
- package/dist/types/src/CssVarImage/CssVarImage.d.ts +9 -0
- package/dist/types/src/CssVarImage/index.d.ts +1 -0
- package/dist/types/src/DateField/DateField.d.ts +11 -0
- package/dist/types/src/DateField/index.d.ts +1 -0
- package/dist/types/src/Divider/Divider.d.ts +18 -0
- package/dist/types/src/Divider/index.d.ts +1 -0
- package/dist/types/src/EmailField/EmailField.d.ts +11 -0
- package/dist/types/src/EmailField/index.d.ts +1 -0
- package/dist/types/src/Grid/Columns/GridCustomColumn.d.ts +12 -0
- package/dist/types/src/Grid/Columns/GridItemDetailsColumn.d.ts +10 -0
- package/dist/types/src/Grid/Columns/GridSelectionColumn.d.ts +10 -0
- package/dist/types/src/Grid/Columns/GridTextColumn.d.ts +10 -0
- package/dist/types/src/Grid/Columns/index.d.ts +4 -0
- package/dist/types/src/Grid/Columns/types.d.ts +8 -0
- package/dist/types/src/Grid/Grid.d.ts +30 -0
- package/dist/types/src/Grid/index.d.ts +2 -0
- package/dist/types/src/HybridField/HybridField.d.ts +46 -0
- package/dist/types/src/HybridField/index.d.ts +1 -0
- package/dist/types/src/Icon/Icon.d.ts +15 -0
- package/dist/types/src/Icon/index.d.ts +1 -0
- package/dist/types/src/Image/Image.d.ts +16 -0
- package/dist/types/src/Image/index.d.ts +1 -0
- package/dist/types/src/Input/Input.d.ts +4 -0
- package/dist/types/src/Input/index.d.ts +1 -0
- package/dist/types/src/Link/Link.d.ts +20 -0
- package/dist/types/src/Link/index.d.ts +1 -0
- package/dist/types/src/List/List.d.ts +16 -0
- package/dist/types/src/List/ListItem.d.ts +15 -0
- package/dist/types/src/List/index.d.ts +2 -0
- package/dist/types/src/Loader/Loader.d.ts +18 -0
- package/dist/types/src/Loader/index.d.ts +1 -0
- package/dist/types/src/Logo/Logo.d.ts +15 -0
- package/dist/types/src/Logo/index.d.ts +1 -0
- package/dist/types/src/MappingsField/MappingsField.d.ts +27 -0
- package/dist/types/src/MappingsField/index.d.ts +1 -0
- package/dist/types/src/Modal/Modal.d.ts +13 -0
- package/dist/types/src/Modal/index.d.ts +1 -0
- package/dist/types/src/MultiSelect/MultiSelect.d.ts +18 -0
- package/dist/types/src/MultiSelect/index.d.ts +1 -0
- package/dist/types/src/MultiSelectComboBox/MultiSelectComboBox.d.ts +27 -0
- package/dist/types/src/MultiSelectComboBox/index.d.ts +1 -0
- package/dist/types/src/NOTPImage/NOTPImage.d.ts +15 -0
- package/dist/types/src/NOTPImage/index.d.ts +1 -0
- package/dist/types/src/NOTPLink/NOTPLink.d.ts +5 -0
- package/dist/types/src/NOTPLink/index.d.ts +1 -0
- package/dist/types/src/NewPassword/NewPassword.d.ts +34 -0
- package/dist/types/src/NewPassword/index.d.ts +1 -0
- package/dist/types/src/NumberField/NumberField.d.ts +11 -0
- package/dist/types/src/NumberField/index.d.ts +1 -0
- package/dist/types/src/Password/Password.d.ts +11 -0
- package/dist/types/src/Password/index.d.ts +1 -0
- package/dist/types/src/Phone/Phone.d.ts +11 -0
- package/dist/types/src/Phone/index.d.ts +1 -0
- package/dist/types/src/PhoneCountrySelection/PhoneCountrySelection.d.ts +16 -0
- package/dist/types/src/PhoneCountrySelection/index.d.ts +1 -0
- package/dist/types/src/PhoneInputBox/PhoneInputBox.d.ts +16 -0
- package/dist/types/src/PhoneInputBox/index.d.ts +1 -0
- package/dist/types/src/RadioGroup/RadioGroup.d.ts +22 -0
- package/dist/types/src/RadioGroup/index.d.ts +1 -0
- package/dist/types/src/Recaptcha/Recaptcha.d.ts +27 -0
- package/dist/types/src/Recaptcha/index.d.ts +1 -0
- package/dist/types/src/RecaptchaV2/RecaptchaV2.d.ts +15 -0
- package/dist/types/src/RecaptchaV2/index.d.ts +1 -0
- package/dist/types/src/SAMLGroupMappings/SAMLGroupMappings.d.ts +26 -0
- package/dist/types/src/SAMLGroupMappings/index.d.ts +1 -0
- package/dist/types/src/ScopesList/ScopesList.d.ts +22 -0
- package/dist/types/src/ScopesList/index.d.ts +1 -0
- package/dist/types/src/SecurityQuestionsSetup/SecurityQuestionsSetup.d.ts +27 -0
- package/dist/types/src/SecurityQuestionsSetup/index.d.ts +1 -0
- package/dist/types/src/SecurityQuestionsVerify/SecurityQuestionsVerify.d.ts +26 -0
- package/dist/types/src/SecurityQuestionsVerify/index.d.ts +1 -0
- package/dist/types/src/Select/Select.d.ts +17 -0
- package/dist/types/src/Select/index.d.ts +1 -0
- package/dist/types/src/SingleSelect/SingleSelect.d.ts +17 -0
- package/dist/types/src/SingleSelect/index.d.ts +1 -0
- package/dist/types/src/Switch/Switch.d.ts +11 -0
- package/dist/types/src/Switch/index.d.ts +1 -0
- package/dist/types/src/TOTPImage/TOTPImage.d.ts +15 -0
- package/dist/types/src/TOTPImage/index.d.ts +1 -0
- package/dist/types/src/TOTPLink/TOTPLink.d.ts +5 -0
- package/dist/types/src/TOTPLink/index.d.ts +1 -0
- package/dist/types/src/Text/Text.d.ts +25 -0
- package/dist/types/src/Text/index.d.ts +1 -0
- package/dist/types/src/TextField/TextField.d.ts +11 -0
- package/dist/types/src/TextField/index.d.ts +1 -0
- package/dist/types/src/Textarea/Textarea.d.ts +11 -0
- package/dist/types/src/Textarea/index.d.ts +1 -0
- package/dist/types/src/ThirdPartyAppLogo/ThirdPartyAppLogo.d.ts +14 -0
- package/dist/types/src/ThirdPartyAppLogo/index.d.ts +1 -0
- package/dist/types/src/UploadFile/UploadFile.d.ts +27 -0
- package/dist/types/src/UploadFile/index.d.ts +1 -0
- package/dist/types/src/UserAttribute/UserAttribute.d.ts +19 -0
- package/dist/types/src/UserAttribute/index.d.ts +1 -0
- package/dist/types/src/UserAuthMethod/UserAuthMethod.d.ts +20 -0
- package/dist/types/src/UserAuthMethod/index.d.ts +1 -0
- package/dist/types/src/icons/index.d.ts +19 -0
- package/dist/types/src/index.d.ts +143 -0
- package/dist/types/src/inputHelpers.d.ts +1 -0
- package/dist/types/src/types.d.ts +37 -0
- package/dist/types/test/boolean.test.d.ts +1 -0
- package/dist/types/test/buttons.test.d.ts +1 -0
- package/dist/types/test/checkbox.test.d.ts +1 -0
- package/dist/types/test/code.test.d.ts +1 -0
- package/dist/types/test/container.test.d.ts +1 -0
- package/dist/types/test/divider.test.d.ts +1 -0
- package/dist/types/test/image.test.d.ts +1 -0
- package/dist/types/test/input.test.d.ts +1 -0
- package/dist/types/test/inputHelpers.test.d.ts +1 -0
- package/dist/types/test/link.test.d.ts +1 -0
- package/dist/types/test/loader.test.d.ts +1 -0
- package/dist/types/test/logo.test.d.ts +1 -0
- package/dist/types/test/newPassword.test.d.ts +1 -0
- package/dist/types/test/notpImage.test.d.ts +1 -0
- package/dist/types/test/notpLink.test.d.ts +1 -0
- package/dist/types/test/numeric-input.test.d.ts +1 -0
- package/dist/types/test/password.test.d.ts +1 -0
- package/dist/types/test/phone.test.d.ts +1 -0
- package/dist/types/test/switch.test.d.ts +1 -0
- package/dist/types/test/text.test.d.ts +1 -0
- package/dist/types/test/textarea.test.d.ts +1 -0
- package/dist/types/test/totpImage.test.d.ts +1 -0
- package/dist/types/test/totpLink.test.d.ts +1 -0
- package/package.json +7 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Text } from './Text';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DescopeInputProps } from '../types';
|
|
3
|
+
declare global {
|
|
4
|
+
namespace React.JSX {
|
|
5
|
+
interface IntrinsicElements {
|
|
6
|
+
'descope-text-field': DescopeInputProps;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
declare const TextField: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export default TextField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TextField } from './TextField';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DescopeInputProps } from '../types';
|
|
3
|
+
declare global {
|
|
4
|
+
namespace React.JSX {
|
|
5
|
+
interface IntrinsicElements {
|
|
6
|
+
'descope-text-area': DescopeInputProps;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
declare const Textarea: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export default Textarea;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Textarea } from './Textarea';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PropsToAttrs } from '../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
size: 'xs' | 'sm' | 'md' | 'lg';
|
|
5
|
+
};
|
|
6
|
+
declare global {
|
|
7
|
+
namespace React.JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
'descope-third-party-app-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
declare const ThirdPartyAppLogo: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export default ThirdPartyAppLogo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ThirdPartyAppLogo } from './ThirdPartyAppLogo';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentSize } from '../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
size?: ComponentSize;
|
|
8
|
+
'button-label'?: string;
|
|
9
|
+
'button-mode'?: string;
|
|
10
|
+
'button-variant'?: string;
|
|
11
|
+
accept?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
readonly?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
bordered?: boolean;
|
|
16
|
+
'full-width'?: boolean;
|
|
17
|
+
'data-errormessage-value-missing'?: string;
|
|
18
|
+
};
|
|
19
|
+
declare global {
|
|
20
|
+
namespace React.JSX {
|
|
21
|
+
interface IntrinsicElements {
|
|
22
|
+
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
declare const UploadFile: React.ForwardRefExoticComponent<Props & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export default UploadFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UploadFile } from './UploadFile';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
'badge-tooltip-text'?: string;
|
|
4
|
+
'badge-label'?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
'full-width'?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare global {
|
|
12
|
+
namespace React.JSX {
|
|
13
|
+
interface IntrinsicElements {
|
|
14
|
+
'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export default UserAttribute;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UserAttribute } from './UserAttribute';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare global {
|
|
3
|
+
namespace React.JSX {
|
|
4
|
+
interface IntrinsicElements {
|
|
5
|
+
'descope-user-auth-method': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
|
|
6
|
+
methodIcon?: string;
|
|
7
|
+
buttonIcon?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
declare const UserAuthMethod: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
13
|
+
label?: string;
|
|
14
|
+
'button-label'?: string;
|
|
15
|
+
fulfilled?: boolean;
|
|
16
|
+
'full-width'?: boolean;
|
|
17
|
+
methodIcon?: string;
|
|
18
|
+
buttonIcon?: string;
|
|
19
|
+
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
export default UserAuthMethod;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as UserAuthMethod } from './UserAuthMethod';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import apple from './apple.svg';
|
|
2
|
+
import facebook from './facebook.svg';
|
|
3
|
+
import slack from './slack.svg';
|
|
4
|
+
import fingerprint from './fingerprint.svg';
|
|
5
|
+
import passkey from './passkey.svg';
|
|
6
|
+
import github from './github.svg';
|
|
7
|
+
import gitlab from './gitlab.svg';
|
|
8
|
+
import google from './google.svg';
|
|
9
|
+
import microsoft from './microsoft.svg';
|
|
10
|
+
import discord from './discord.svg';
|
|
11
|
+
import linkedin from './linkedin.svg';
|
|
12
|
+
import sso from './sso.svg';
|
|
13
|
+
import whatsapp from './whatsapp.svg';
|
|
14
|
+
import plus from './plus.svg';
|
|
15
|
+
import password from './password.svg';
|
|
16
|
+
import reload from './reload.svg';
|
|
17
|
+
import authenticator from './authenticator.svg';
|
|
18
|
+
import edit from './edit.svg';
|
|
19
|
+
export { apple, facebook, slack, fingerprint, passkey, github, gitlab, google, microsoft, discord, linkedin, sso, whatsapp, plus, password, reload, authenticator, edit };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
type ComponentClass = {
|
|
2
|
+
cssVarList: Record<string, string>;
|
|
3
|
+
};
|
|
4
|
+
interface IComponentThemeManager {
|
|
5
|
+
currentThemeName: (themeName?: string) => string;
|
|
6
|
+
currentTheme: () => string;
|
|
7
|
+
themes: Theme[];
|
|
8
|
+
hasThemes: () => boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const globalsThemeToStyle: (theme: string, themeName: string) => string;
|
|
11
|
+
declare const createComponentsTheme: (componentsTheme: Record<string, string>) => Record<string, any>;
|
|
12
|
+
declare const themeToStyle: (theme: Theme, themeName?: string) => Record<string, any>;
|
|
13
|
+
declare const componentsThemeManager: IComponentThemeManager;
|
|
14
|
+
declare const genColor: (val: string, theme?: string) => Record<string, string>;
|
|
15
|
+
declare const themeVars: Theme;
|
|
16
|
+
declare const defaultTheme: Theme;
|
|
17
|
+
declare const darkTheme: Theme;
|
|
18
|
+
declare const CheckboxClass: ComponentClass;
|
|
19
|
+
declare const SwitchToggleClass: ComponentClass;
|
|
20
|
+
declare const ButtonClass: ComponentClass;
|
|
21
|
+
declare const LoaderLinearClass: ComponentClass;
|
|
22
|
+
declare const LoaderRadialClass: ComponentClass;
|
|
23
|
+
declare const ContainerClass: ComponentClass;
|
|
24
|
+
declare const DividerClass: ComponentClass;
|
|
25
|
+
declare const EmailFieldClass: ComponentClass;
|
|
26
|
+
declare const LinkClass: ComponentClass;
|
|
27
|
+
declare const LogoClass: ComponentClass;
|
|
28
|
+
declare const TotpImageClass: ComponentClass;
|
|
29
|
+
declare const NotpImageClass: ComponentClass;
|
|
30
|
+
declare const NumberFieldClass: ComponentClass;
|
|
31
|
+
declare const PasscodeClass: ComponentClass;
|
|
32
|
+
declare const PasswordClass: ComponentClass;
|
|
33
|
+
declare const TextClass: ComponentClass;
|
|
34
|
+
declare const EnrichedTextClass: ComponentClass;
|
|
35
|
+
declare const TextAreaClass: ComponentClass;
|
|
36
|
+
declare const TextFieldClass: ComponentClass;
|
|
37
|
+
declare const ImageClass: ComponentClass;
|
|
38
|
+
declare const PhoneFieldClass: ComponentClass;
|
|
39
|
+
declare const PhoneFieldInputBoxClass: ComponentClass;
|
|
40
|
+
declare const NewPasswordClass: ComponentClass;
|
|
41
|
+
declare const RecaptchaClass: ComponentClass;
|
|
42
|
+
declare const UploadFileClass: ComponentClass;
|
|
43
|
+
declare const ButtonSelectionGroupClass: ComponentClass;
|
|
44
|
+
declare const ButtonMultiSelectionGroupClass: ComponentClass;
|
|
45
|
+
declare const ButtonSelectionGroupItemClass: ComponentClass;
|
|
46
|
+
declare const ModalClass: ComponentClass;
|
|
47
|
+
declare const NotificationClass: ComponentClass;
|
|
48
|
+
declare const GridClass: ComponentClass;
|
|
49
|
+
declare const BadgeClass: ComponentClass;
|
|
50
|
+
declare const MultiSelectComboBoxClass: ComponentClass;
|
|
51
|
+
declare const AvatarClass: ComponentClass;
|
|
52
|
+
declare const UserAttributeClass: ComponentClass;
|
|
53
|
+
declare const UserAuthMethodClass: ComponentClass;
|
|
54
|
+
declare const MappingsFieldClass: ComponentClass;
|
|
55
|
+
declare const SamlGroupMappingsClass: ComponentClass;
|
|
56
|
+
declare const PolicyValidationClass: ComponentClass;
|
|
57
|
+
declare const CodeSnippetClass: ComponentClass;
|
|
58
|
+
declare const RadioGroupClass: ComponentClass;
|
|
59
|
+
declare const RadioButtonClass: ComponentClass;
|
|
60
|
+
declare const DateFieldClass: ComponentClass;
|
|
61
|
+
declare const CalendarClass: ComponentClass;
|
|
62
|
+
declare const ListClass: ComponentClass;
|
|
63
|
+
declare const ListItemClass: ComponentClass;
|
|
64
|
+
declare const AppsListClass: ComponentClass;
|
|
65
|
+
declare const ScopesListClass: ComponentClass;
|
|
66
|
+
declare const ThirdPartyAppLogoClass: ComponentClass;
|
|
67
|
+
declare const SecurityQuestionsSetupClass: ComponentClass;
|
|
68
|
+
declare const SecurityQuestionsVerifyClass: ComponentClass;
|
|
69
|
+
declare const HybridFieldClass: ComponentClass;
|
|
70
|
+
declare const AlertClass: ComponentClass;
|
|
71
|
+
export { globalsThemeToStyle, createComponentsTheme, themeToStyle, componentsThemeManager, darkTheme, genColor, defaultTheme, themeVars, CheckboxClass, SwitchToggleClass, ButtonClass, LoaderLinearClass, LoaderRadialClass, ContainerClass, DividerClass, EmailFieldClass, LinkClass, LogoClass, TotpImageClass, NotpImageClass, NumberFieldClass, PasscodeClass, PasswordClass, TextClass, EnrichedTextClass, TextAreaClass, TextFieldClass, ImageClass, PhoneFieldClass, PhoneFieldInputBoxClass, NewPasswordClass, RecaptchaClass, UploadFileClass, ButtonSelectionGroupClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupItemClass, ModalClass, NotificationClass, GridClass, BadgeClass, MultiSelectComboBoxClass, AvatarClass, UserAttributeClass, UserAuthMethodClass, MappingsFieldClass, SamlGroupMappingsClass, PolicyValidationClass, CodeSnippetClass, RadioGroupClass, RadioButtonClass, DateFieldClass, CalendarClass, ListClass, ListItemClass, AppsListClass, ScopesListClass, ThirdPartyAppLogoClass, SecurityQuestionsSetupClass, SecurityQuestionsVerifyClass, HybridFieldClass, AlertClass };
|
|
72
|
+
export type Theme = {
|
|
73
|
+
globals: {
|
|
74
|
+
colors: Record<string, string>;
|
|
75
|
+
fonts: Record<string, any>;
|
|
76
|
+
typography: Record<string, any>;
|
|
77
|
+
shadow: Record<string, string>;
|
|
78
|
+
spacing: Record<string, string>;
|
|
79
|
+
radius: Record<string, string>;
|
|
80
|
+
border: Record<string, string>;
|
|
81
|
+
};
|
|
82
|
+
components: {
|
|
83
|
+
button: Record<string, any>;
|
|
84
|
+
textField: Record<string, any>;
|
|
85
|
+
logo: Record<string, any>;
|
|
86
|
+
container: Record<string, any>;
|
|
87
|
+
link: Record<string, any>;
|
|
88
|
+
text: Record<string, any>;
|
|
89
|
+
inputWrapper: Record<string, any>;
|
|
90
|
+
buttonSelectionGroupItem: Record<string, any>;
|
|
91
|
+
buttonMultiSelectionGroup: Record<string, any>;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export * from './Boolean';
|
|
95
|
+
export * from './Button';
|
|
96
|
+
export * from './Checkbox';
|
|
97
|
+
export * from './Code';
|
|
98
|
+
export * from './Container';
|
|
99
|
+
export * from './Divider';
|
|
100
|
+
export * from './icons';
|
|
101
|
+
export * from './Image';
|
|
102
|
+
export * from './Input';
|
|
103
|
+
export * from './Link';
|
|
104
|
+
export * from './Loader';
|
|
105
|
+
export * from './Logo';
|
|
106
|
+
export * from './NewPassword';
|
|
107
|
+
export * from './NumberField';
|
|
108
|
+
export * from './Password';
|
|
109
|
+
export * from './Phone';
|
|
110
|
+
export * from './Select';
|
|
111
|
+
export * from './Switch';
|
|
112
|
+
export * from './Text';
|
|
113
|
+
export * from './Textarea';
|
|
114
|
+
export * from './TextField';
|
|
115
|
+
export * from './TOTPImage';
|
|
116
|
+
export * from './TOTPLink';
|
|
117
|
+
export * from './NOTPImage';
|
|
118
|
+
export * from './NOTPLink';
|
|
119
|
+
export * from './UploadFile';
|
|
120
|
+
export * from './Recaptcha';
|
|
121
|
+
export * from './RecaptchaV2';
|
|
122
|
+
export * from './SingleSelect';
|
|
123
|
+
export * from './ComboBox';
|
|
124
|
+
export * from './Grid';
|
|
125
|
+
export * from './Badge';
|
|
126
|
+
export * from './Modal';
|
|
127
|
+
export * from './MultiSelect';
|
|
128
|
+
export * from './MappingsField';
|
|
129
|
+
export * from './SAMLGroupMappings';
|
|
130
|
+
export * from './UserAuthMethod';
|
|
131
|
+
export * from './UserAttribute';
|
|
132
|
+
export * from './Avatar';
|
|
133
|
+
export * from './CodeSnippet';
|
|
134
|
+
export * from './List';
|
|
135
|
+
export * from './AppsList';
|
|
136
|
+
export * from './ScopesList';
|
|
137
|
+
export * from './SecurityQuestionsSetup';
|
|
138
|
+
export * from './SecurityQuestionsVerify';
|
|
139
|
+
export * from './ThirdPartyAppLogo';
|
|
140
|
+
export * from './DateField';
|
|
141
|
+
export * from './HybridField';
|
|
142
|
+
export * from './Alert';
|
|
143
|
+
export * from '@descope/web-components-ui';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function handleCustomValidationMessages(): void;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type KebabCase<S extends string> = S extends `${infer First}${infer Rest}` ? Rest extends Uncapitalize<Rest> ? `${Uncapitalize<First>}${KebabCase<Rest>}` : `${Uncapitalize<First>}-${KebabCase<Rest>}` : S;
|
|
3
|
+
export type ExcludeMatchingProperties<F, S extends Partial<F>> = Pick<F, {
|
|
4
|
+
[K in keyof F]: S[K] extends F[K] ? never : K;
|
|
5
|
+
}[keyof F]>;
|
|
6
|
+
export type CustomInputEvent = InputEvent & {
|
|
7
|
+
target: HTMLSelectElement;
|
|
8
|
+
};
|
|
9
|
+
export type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
+
export type InputType = 'number' | 'email' | 'text' | 'password';
|
|
11
|
+
export type TextAlign = 'left' | 'right' | 'center';
|
|
12
|
+
export type FlexAlignment = 'start' | 'center' | 'end';
|
|
13
|
+
export type HTMLInputAttrs = Omit<React.JSX.IntrinsicElements['input'], 'size'>;
|
|
14
|
+
export type DescopeInputExtraProps = {
|
|
15
|
+
'full-width'?: boolean;
|
|
16
|
+
bordered?: boolean;
|
|
17
|
+
label?: string;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
size?: ComponentSize;
|
|
20
|
+
'helper-text'?: string;
|
|
21
|
+
'data-errormessage-pattern-mismatch'?: string;
|
|
22
|
+
'data-errormessage-value-missing'?: string;
|
|
23
|
+
'label-type'?: LabelType;
|
|
24
|
+
'external-input'?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type DescopeInputProps = HTMLInputAttrs & DescopeInputExtraProps;
|
|
27
|
+
export type PropsToAttrs<R extends Record<string, any>> = {
|
|
28
|
+
[K in keyof R as KebabCase<K & string>]: R[K] | string;
|
|
29
|
+
};
|
|
30
|
+
export type TypographyVariants = 'h1' | 'h2' | 'h3' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2';
|
|
31
|
+
export type Mode = 'primary' | 'secondary' | 'error' | 'success';
|
|
32
|
+
export type MultiSelectProps = {
|
|
33
|
+
children?: React.JSX.Element[];
|
|
34
|
+
'default-values'?: string[];
|
|
35
|
+
};
|
|
36
|
+
export type LabelType = 'static' | 'floating';
|
|
37
|
+
export {};
|