@descope/flow-components 2.0.458 → 2.0.460
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/dts/TimerButton/TimerButton.d.ts +32 -0
- package/dist/dts/TimerButton/index.d.ts +1 -0
- package/dist/dts/index.d.ts +2 -0
- package/dist/index.cjs.js +71 -31
- package/dist/index.d.ts +144 -113
- package/dist/index.esm.js +5 -2
- package/dist/types/src/TimerButton/TimerButton.d.ts +32 -0
- package/dist/types/src/TimerButton/index.d.ts +1 -0
- package/dist/types/src/index.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextAlign } from '../types';
|
|
3
|
+
type Props = React.JSX.IntrinsicElements['button'] & {
|
|
4
|
+
variant?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
size?: string;
|
|
7
|
+
horizontal?: boolean;
|
|
8
|
+
'text-align'?: TextAlign;
|
|
9
|
+
'full-width'?: boolean;
|
|
10
|
+
'timer-seconds'?: number;
|
|
11
|
+
'timer-hide-icon'?: boolean;
|
|
12
|
+
'timer-paused'?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare global {
|
|
15
|
+
namespace React.JSX {
|
|
16
|
+
interface IntrinsicElements {
|
|
17
|
+
'descope-timer-button': React.DetailedHTMLProps<React.HTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & Props;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
declare const TimerButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
22
|
+
variant?: string;
|
|
23
|
+
color?: string;
|
|
24
|
+
size?: string;
|
|
25
|
+
horizontal?: boolean;
|
|
26
|
+
'text-align'?: TextAlign;
|
|
27
|
+
'full-width'?: boolean;
|
|
28
|
+
'timer-seconds'?: number;
|
|
29
|
+
'timer-hide-icon'?: boolean;
|
|
30
|
+
'timer-paused'?: boolean;
|
|
31
|
+
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
32
|
+
export default TimerButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TimerButton } from './TimerButton';
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export declare const SecurityQuestionsVerifyClass: ComponentClass;
|
|
|
82
82
|
export declare const HybridFieldClass: ComponentClass;
|
|
83
83
|
export declare const AlertClass: ComponentClass;
|
|
84
84
|
export declare const AddressFieldClass: ComponentClass;
|
|
85
|
+
export declare const TimerButtonClass: ComponentClass;
|
|
85
86
|
export { globalsThemeToStyle, createComponentsTheme, themeToStyle, componentsThemeManager, darkTheme, genColor, defaultTheme, themeVars };
|
|
86
87
|
export type Theme = {
|
|
87
88
|
globals: {
|
|
@@ -155,4 +156,5 @@ export * from './DateField';
|
|
|
155
156
|
export * from './HybridField';
|
|
156
157
|
export * from './Alert';
|
|
157
158
|
export * from './AddressField';
|
|
159
|
+
export * from './TimerButton';
|
|
158
160
|
export * from '@descope/web-components-ui';
|
package/dist/index.cjs.js
CHANGED
|
@@ -93856,7 +93856,7 @@ descope-boolean-field-internal {
|
|
|
93856
93856
|
vars: vars$3
|
|
93857
93857
|
});
|
|
93858
93858
|
|
|
93859
|
-
var clockIcon = "data:image/svg+xml;base64,
|
|
93859
|
+
var clockIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgdmlld0JveD0iMCAwIDEwMSAxMDEiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01MC4zMzM0IDAuMzMzMjUyQzIyLjgzMzQgMC4zMzMyNTIgMC4zMzMzNzQgMjIuODMzMyAwLjMzMzM3NCA1MC4zMzMzQzAuMzMzMzc0IDc3LjgzMzMgMjIuODMzNCAxMDAuMzMzIDUwLjMzMzQgMTAwLjMzM0M3Ny44MzM0IDEwMC4zMzMgMTAwLjMzMyA3Ny44MzMzIDEwMC4zMzMgNTAuMzMzM0MxMDAuMzMzIDIyLjgzMzMgNzcuODMzNCAwLjMzMzI1MiA1MC4zMzM0IDAuMzMzMjUyWk01MC4zMzM0IDg3LjgzMzNDMjkuNzA4NCA4Ny44MzMzIDEyLjgzMzQgNzAuOTU4MyAxMi44MzM0IDUwLjMzMzNDMTIuODMzNCAyOS43MDgzIDI5LjcwODQgMTIuODMzMyA1MC4zMzM0IDEyLjgzMzNDNzAuOTU4NCAxMi44MzMzIDg3LjgzMzQgMjkuNzA4MyA4Ny44MzM0IDUwLjMzMzNDODcuODMzNCA3MC45NTgzIDcwLjk1ODQgODcuODMzMyA1MC4zMzM0IDg3LjgzMzNaIiBmaWxsPSIjMTgxQTFDIi8+CjxwYXRoIGQ9Ik01MC4zMzI4IDE5LjA4MzNINDQuMDgyOFY1Ni41ODMySDc1LjMzMjhWNTAuMzMzMkg1MC4zMzI4VjE5LjA4MzNaIiBmaWxsPSIjMTgxQTFDIi8+Cjwvc3ZnPgo=";
|
|
93860
93860
|
|
|
93861
93861
|
const fmt = (val, pad = 2) => String(val).padStart(pad, '0');
|
|
93862
93862
|
|
|
@@ -93877,7 +93877,7 @@ descope-boolean-field-internal {
|
|
|
93877
93877
|
|
|
93878
93878
|
const componentName$3 = getComponentName('timer');
|
|
93879
93879
|
|
|
93880
|
-
const observedAttributes$1 = ['seconds', 'hide-icon'];
|
|
93880
|
+
const observedAttributes$1 = ['seconds', 'hide-icon', 'paused'];
|
|
93881
93881
|
|
|
93882
93882
|
const BaseClass$2 = createBaseClass$1({
|
|
93883
93883
|
componentName: componentName$3,
|
|
@@ -93935,57 +93935,63 @@ descope-boolean-field-internal {
|
|
|
93935
93935
|
return Math.max(0, secs);
|
|
93936
93936
|
}
|
|
93937
93937
|
|
|
93938
|
+
// we use `pause` attribute for allowing preview mode by executing `pause`
|
|
93939
|
+
get isPaused() {
|
|
93940
|
+
return this.getAttribute('paused') === 'true';
|
|
93941
|
+
}
|
|
93942
|
+
|
|
93938
93943
|
init() {
|
|
93939
93944
|
super.init?.();
|
|
93940
93945
|
|
|
93941
93946
|
this.#timeRemains = this.seconds;
|
|
93942
93947
|
}
|
|
93943
93948
|
|
|
93944
|
-
|
|
93945
|
-
this.dispatchEvent(new CustomEvent('timer-started', { bubbles: true }));
|
|
93946
|
-
|
|
93947
|
-
this.startInterval();
|
|
93948
|
-
}
|
|
93949
|
-
|
|
93950
|
-
startInterval() {
|
|
93949
|
+
startInterval() {
|
|
93951
93950
|
const intervalCycle = () => {
|
|
93951
|
+
this.#decreaseInterval();
|
|
93952
|
+
if (!this.#timeRemains) this.stop();
|
|
93952
93953
|
this.#updateDisplay(this.#timeRemains);
|
|
93953
|
-
|
|
93954
|
-
if (!this.#timeRemains) {
|
|
93955
|
-
this.stop();
|
|
93956
|
-
} else {
|
|
93957
|
-
this.#decreaseInterval();
|
|
93958
|
-
}
|
|
93959
93954
|
};
|
|
93960
93955
|
|
|
93961
|
-
intervalCycle();
|
|
93962
|
-
|
|
93963
93956
|
if (this.#timeRemains) {
|
|
93964
93957
|
this.#intervalId = setInterval(intervalCycle, DEFAULT_INTERVAL);
|
|
93958
|
+
} else {
|
|
93959
|
+
this.stop();
|
|
93965
93960
|
}
|
|
93966
93961
|
}
|
|
93967
93962
|
|
|
93963
|
+
stopInterval() {
|
|
93964
|
+
clearInterval(this.#intervalId);
|
|
93965
|
+
}
|
|
93966
|
+
|
|
93968
93967
|
#decreaseInterval() {
|
|
93969
|
-
this.#timeRemains =
|
|
93968
|
+
this.#timeRemains = this.#timeRemains - DEFAULT_INTERVAL;
|
|
93970
93969
|
}
|
|
93971
93970
|
|
|
93972
93971
|
reset() {
|
|
93973
93972
|
this.#timeRemains = this.seconds;
|
|
93974
|
-
this
|
|
93973
|
+
this.#updateDisplay(this.#timeRemains);
|
|
93974
|
+
|
|
93975
|
+
if (this.isPaused) return;
|
|
93976
|
+
|
|
93977
|
+
this.dispatchEvent(new CustomEvent('timer-started', { bubbles: true }));
|
|
93978
|
+
this.startInterval();
|
|
93975
93979
|
}
|
|
93976
93980
|
|
|
93977
93981
|
stop() {
|
|
93978
|
-
this.
|
|
93982
|
+
this.stopInterval();
|
|
93979
93983
|
this.#timeRemains = 0;
|
|
93980
93984
|
this.#updateDisplay(this.#timeRemains);
|
|
93981
93985
|
this.dispatchEvent(new CustomEvent('timer-ended', { bubbles: true }));
|
|
93982
93986
|
}
|
|
93983
93987
|
|
|
93984
93988
|
pause() {
|
|
93985
|
-
|
|
93989
|
+
this.setAttribute('paused', 'true');
|
|
93990
|
+
this.stopInterval();
|
|
93986
93991
|
}
|
|
93987
93992
|
|
|
93988
93993
|
resume() {
|
|
93994
|
+
this.removeAttribute('paused');
|
|
93989
93995
|
this.startInterval();
|
|
93990
93996
|
}
|
|
93991
93997
|
|
|
@@ -93997,6 +94003,19 @@ descope-boolean-field-internal {
|
|
|
93997
94003
|
this.icon.classList.toggle('hidden', val === 'true');
|
|
93998
94004
|
}
|
|
93999
94005
|
|
|
94006
|
+
#handlePause(paused) {
|
|
94007
|
+
setTimeout(() => {
|
|
94008
|
+
if (paused) {
|
|
94009
|
+
this.pause();
|
|
94010
|
+
} else {
|
|
94011
|
+
// we want to prevent a another interval from starting in case previous interval was not yet cleared
|
|
94012
|
+
if (!this.#intervalId) {
|
|
94013
|
+
this.resume();
|
|
94014
|
+
}
|
|
94015
|
+
}
|
|
94016
|
+
});
|
|
94017
|
+
}
|
|
94018
|
+
|
|
94000
94019
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
94001
94020
|
super.attributeChangedCallback?.(attrName, oldValue, newValue);
|
|
94002
94021
|
|
|
@@ -94007,28 +94026,31 @@ descope-boolean-field-internal {
|
|
|
94007
94026
|
if (attrName === 'hide-icon') {
|
|
94008
94027
|
this.#toggleIcon(newValue);
|
|
94009
94028
|
}
|
|
94029
|
+
if (attrName === 'paused') {
|
|
94030
|
+
this.#handlePause(newValue === 'true');
|
|
94031
|
+
}
|
|
94010
94032
|
}
|
|
94011
94033
|
}
|
|
94012
94034
|
}
|
|
94013
94035
|
|
|
94014
94036
|
const { host: host$1, icon, timer: timer$2 } = {
|
|
94015
94037
|
host: { selector: () => ':host' },
|
|
94016
|
-
icon: { selector: '.icon' },
|
|
94017
|
-
timer: { selector: '.timer' },
|
|
94038
|
+
icon: { selector: () => '.icon' },
|
|
94039
|
+
timer: { selector: () => '.timer' },
|
|
94018
94040
|
};
|
|
94019
94041
|
|
|
94020
94042
|
const TimerClass = compose(
|
|
94021
94043
|
createStyleMixin$1({
|
|
94022
94044
|
mappings: {
|
|
94023
|
-
|
|
94024
|
-
fontSize: [{}, { ...icon }],
|
|
94045
|
+
fontSize: {},
|
|
94025
94046
|
iconSize: [
|
|
94026
94047
|
{ ...icon, property: 'width' },
|
|
94027
94048
|
{ ...icon, property: 'height' },
|
|
94028
94049
|
],
|
|
94029
94050
|
fontFamily: {},
|
|
94051
|
+
minHeight: {},
|
|
94030
94052
|
fontWeight: { ...timer$2 },
|
|
94031
|
-
lineHeight: {
|
|
94053
|
+
lineHeight: { ...timer$2 },
|
|
94032
94054
|
textColor: { ...timer$2, property: 'color' },
|
|
94033
94055
|
gap: {},
|
|
94034
94056
|
textAlign: { property: 'justify-content' },
|
|
@@ -94048,7 +94070,8 @@ descope-boolean-field-internal {
|
|
|
94048
94070
|
[vars$2.hostDirection]: globalRefs$1.direction,
|
|
94049
94071
|
[vars$2.gap]: '0.25em',
|
|
94050
94072
|
[vars$2.fontFamily]: globalRefs$1.fonts.font1.family,
|
|
94051
|
-
[vars$2.
|
|
94073
|
+
[vars$2.minHeight]: '1.5em',
|
|
94074
|
+
[vars$2.lineHeight]: '1em',
|
|
94052
94075
|
[vars$2.fontWeight]: globalRefs$1.fonts.font1.fontWeight,
|
|
94053
94076
|
[vars$2.textColor]: globalRefs$1.colors.surface.contrast,
|
|
94054
94077
|
[vars$2.iconColor]: globalRefs$1.colors.surface.contrast,
|
|
@@ -94096,6 +94119,7 @@ descope-boolean-field-internal {
|
|
|
94096
94119
|
const timerAttrs = [
|
|
94097
94120
|
'timer-seconds',
|
|
94098
94121
|
'timer-hide-icon',
|
|
94122
|
+
'timer-paused',
|
|
94099
94123
|
'size',
|
|
94100
94124
|
'text-align',
|
|
94101
94125
|
'full-width',
|
|
@@ -94104,6 +94128,7 @@ descope-boolean-field-internal {
|
|
|
94104
94128
|
const mapTimerAttrs = {
|
|
94105
94129
|
'timer-seconds': 'seconds',
|
|
94106
94130
|
'timer-hide-icon': 'hide-icon',
|
|
94131
|
+
'timer-paused': 'paused',
|
|
94107
94132
|
};
|
|
94108
94133
|
|
|
94109
94134
|
const BaseClass$1 = createBaseClass$1({
|
|
@@ -94118,7 +94143,7 @@ descope-boolean-field-internal {
|
|
|
94118
94143
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
|
94119
94144
|
<div class="wrapper">
|
|
94120
94145
|
<descope-timer class="timer"></descope-timer>
|
|
94121
|
-
<descope-button class="button">
|
|
94146
|
+
<descope-button class="button" disabled="true">
|
|
94122
94147
|
<slot></slot>
|
|
94123
94148
|
</descope-button>
|
|
94124
94149
|
</div>
|
|
@@ -94164,6 +94189,14 @@ descope-boolean-field-internal {
|
|
|
94164
94189
|
includeAttrs: timerAttrs,
|
|
94165
94190
|
mapAttrs: mapTimerAttrs,
|
|
94166
94191
|
});
|
|
94192
|
+
|
|
94193
|
+
// When we sync attributes, the `disabled` attribute is being compared to the attribute
|
|
94194
|
+
// on Vaadin component; since the Vaadin component has no `disabled` attribute, we sync
|
|
94195
|
+
// that back to our component.
|
|
94196
|
+
// This is pending a more generic fix in the way we sync attibutes.
|
|
94197
|
+
this.button.shadowRoot
|
|
94198
|
+
.querySelector('vaadin-button')
|
|
94199
|
+
.setAttribute('disabled', 'true');
|
|
94167
94200
|
}
|
|
94168
94201
|
|
|
94169
94202
|
onTimerStarted() {
|
|
@@ -94179,9 +94212,11 @@ descope-boolean-field-internal {
|
|
|
94179
94212
|
}
|
|
94180
94213
|
|
|
94181
94214
|
toggleButtonDisable(isDisabled) {
|
|
94182
|
-
|
|
94183
|
-
|
|
94184
|
-
|
|
94215
|
+
setTimeout(() => {
|
|
94216
|
+
isDisabled
|
|
94217
|
+
? this.button.setAttribute('disabled', 'true')
|
|
94218
|
+
: this.button.removeAttribute('disabled');
|
|
94219
|
+
});
|
|
94185
94220
|
}
|
|
94186
94221
|
}
|
|
94187
94222
|
|
|
@@ -95187,6 +95222,8 @@ const Alert = React__default.default.forwardRef(({ children, ...props }, ref) =>
|
|
|
95187
95222
|
|
|
95188
95223
|
const AddressField = React__default.default.forwardRef(({ size = 'md', ...props }, ref) => (React__default.default.createElement("descope-address-field", { size: size, ...props, ref: ref })));
|
|
95189
95224
|
|
|
95225
|
+
const TimerButton = React__default.default.forwardRef(({ children, color = 'primary', size = 'md', variant = 'contained', horizontal = false, 'text-align': textAlign = 'center', 'timer-seconds': timerSeconds = 0, 'timer-hide-icon': timerHideIcon = false, 'timer-paused': timerPause = false, ...props }, ref) => (React__default.default.createElement("descope-timer-button", { ...props, size: size, "text-align": textAlign, horizontal: horizontal, "button-variant": variant, "button-mode": color, "timer-hide-icon": timerHideIcon, "timer-seconds": timerSeconds, "timer-paused": timerPause, ref: ref }, children)));
|
|
95226
|
+
|
|
95190
95227
|
const globalsThemeToStyle = index_cjsExports.globalsThemeToStyle;
|
|
95191
95228
|
const createComponentsTheme = index_cjsExports.createComponentsTheme;
|
|
95192
95229
|
const themeToStyle = index_cjsExports.themeToStyle;
|
|
@@ -95249,6 +95286,7 @@ const SecurityQuestionsVerifyClass = index_cjsExports.SecurityQuestionsVerifyCla
|
|
|
95249
95286
|
const HybridFieldClass = index_cjsExports.HybridFieldClass;
|
|
95250
95287
|
const AlertClass = index_cjsExports.AlertClass;
|
|
95251
95288
|
const AddressFieldClass = index_cjsExports.AddressFieldClass;
|
|
95289
|
+
const TimerButtonClass = index_cjsExports.TimerButtonClass;
|
|
95252
95290
|
|
|
95253
95291
|
exports.AddressField = AddressField;
|
|
95254
95292
|
exports.AddressFieldClass = AddressFieldClass;
|
|
@@ -95350,6 +95388,8 @@ exports.TextFieldClass = TextFieldClass;
|
|
|
95350
95388
|
exports.Textarea = Textarea;
|
|
95351
95389
|
exports.ThirdPartyAppLogo = ThirdPartyAppLogo;
|
|
95352
95390
|
exports.ThirdPartyAppLogoClass = ThirdPartyAppLogoClass;
|
|
95391
|
+
exports.TimerButton = TimerButton;
|
|
95392
|
+
exports.TimerButtonClass = TimerButtonClass;
|
|
95353
95393
|
exports.TotpImageClass = TotpImageClass;
|
|
95354
95394
|
exports.UploadFile = UploadFile;
|
|
95355
95395
|
exports.UploadFileClass = UploadFileClass;
|
package/dist/index.d.ts
CHANGED
|
@@ -51,8 +51,8 @@ declare const Switch: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "r
|
|
|
51
51
|
type BooleanType = {
|
|
52
52
|
type: 'switch' | 'checkbox';
|
|
53
53
|
};
|
|
54
|
-
type Props$
|
|
55
|
-
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$
|
|
54
|
+
type Props$G = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
|
|
55
|
+
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$G, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
56
56
|
|
|
57
57
|
declare global {
|
|
58
58
|
namespace React.JSX {
|
|
@@ -77,17 +77,17 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
|
|
|
77
77
|
'data-name'?: string;
|
|
78
78
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
79
79
|
|
|
80
|
-
type Props$
|
|
80
|
+
type Props$F = {
|
|
81
81
|
digits?: number;
|
|
82
82
|
};
|
|
83
83
|
declare global {
|
|
84
84
|
namespace React.JSX {
|
|
85
85
|
interface IntrinsicElements {
|
|
86
|
-
'descope-passcode': DescopeInputProps & Props$
|
|
86
|
+
'descope-passcode': DescopeInputProps & Props$F;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
90
|
+
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$F, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
91
91
|
|
|
92
92
|
type Never<T extends Record<string, any>> = {
|
|
93
93
|
[K in keyof T]: never;
|
|
@@ -103,7 +103,7 @@ type ContainerAlignment = {
|
|
|
103
103
|
'vertical-alignment'?: FlexAlignment;
|
|
104
104
|
'space-between'?: 'sm' | 'md' | 'lg';
|
|
105
105
|
};
|
|
106
|
-
type Props$
|
|
106
|
+
type Props$E = {
|
|
107
107
|
direction?: 'row' | 'column';
|
|
108
108
|
shadow?: 'md' | 'lg' | 'xl' | '2xl';
|
|
109
109
|
borderRadius?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
@@ -121,9 +121,9 @@ declare global {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
declare const Container: React.ForwardRefExoticComponent<(Props$
|
|
124
|
+
declare const Container: React.ForwardRefExoticComponent<(Props$E & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
|
|
125
125
|
|
|
126
|
-
type Props$
|
|
126
|
+
type Props$D = {
|
|
127
127
|
vertical?: boolean;
|
|
128
128
|
italic?: boolean;
|
|
129
129
|
variant?: TypographyVariants;
|
|
@@ -133,15 +133,15 @@ type Props$C = {
|
|
|
133
133
|
declare global {
|
|
134
134
|
namespace React.JSX {
|
|
135
135
|
interface IntrinsicElements {
|
|
136
|
-
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$
|
|
136
|
+
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$D, 'children'>;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$
|
|
140
|
+
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$D, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
141
141
|
|
|
142
142
|
declare const ReactComponent: (props: SVGProps) => React.JSX.Element;
|
|
143
143
|
|
|
144
|
-
type Props$
|
|
144
|
+
type Props$C = {
|
|
145
145
|
width?: string;
|
|
146
146
|
height?: string;
|
|
147
147
|
alt?: string;
|
|
@@ -150,15 +150,15 @@ type Props$B = {
|
|
|
150
150
|
declare global {
|
|
151
151
|
namespace React.JSX {
|
|
152
152
|
interface IntrinsicElements {
|
|
153
|
-
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
153
|
+
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$C;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
declare const Image: React.ForwardRefExoticComponent<Props$
|
|
157
|
+
declare const Image: React.ForwardRefExoticComponent<Props$C & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
158
158
|
|
|
159
159
|
declare const Input: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
160
160
|
|
|
161
|
-
type Props$
|
|
161
|
+
type Props$B = {
|
|
162
162
|
href?: string | undefined;
|
|
163
163
|
italic?: boolean;
|
|
164
164
|
variant?: TypographyVariants;
|
|
@@ -170,18 +170,18 @@ type Props$A = {
|
|
|
170
170
|
declare global {
|
|
171
171
|
namespace React.JSX {
|
|
172
172
|
interface IntrinsicElements {
|
|
173
|
-
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$
|
|
173
|
+
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$B, 'children'>;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
declare const Link: React.ForwardRefExoticComponent<Props$
|
|
177
|
+
declare const Link: React.ForwardRefExoticComponent<Props$B & React.RefAttributes<HTMLAnchorElement>>;
|
|
178
178
|
|
|
179
|
-
type Props$
|
|
179
|
+
type Props$A = {
|
|
180
180
|
variant?: 'linear' | 'radial';
|
|
181
181
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
182
182
|
color?: Mode;
|
|
183
183
|
};
|
|
184
|
-
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
184
|
+
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$A>;
|
|
185
185
|
declare global {
|
|
186
186
|
namespace React.JSX {
|
|
187
187
|
interface IntrinsicElements {
|
|
@@ -190,22 +190,22 @@ declare global {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
declare const Loader: React.ForwardRefExoticComponent<Props$
|
|
193
|
+
declare const Loader: React.ForwardRefExoticComponent<Props$A & React.RefAttributes<HTMLDivElement>>;
|
|
194
194
|
|
|
195
|
-
type Props$
|
|
195
|
+
type Props$z = {
|
|
196
196
|
width?: string;
|
|
197
197
|
height?: string;
|
|
198
198
|
};
|
|
199
199
|
declare global {
|
|
200
200
|
namespace React.JSX {
|
|
201
201
|
interface IntrinsicElements {
|
|
202
|
-
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
202
|
+
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$z>;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
declare const Logo: React.ForwardRefExoticComponent<Props$
|
|
206
|
+
declare const Logo: React.ForwardRefExoticComponent<Props$z & React.RefAttributes<HTMLDivElement>>;
|
|
207
207
|
|
|
208
|
-
type Props$
|
|
208
|
+
type Props$y = {
|
|
209
209
|
'password-label'?: string;
|
|
210
210
|
'password-placeholder'?: string;
|
|
211
211
|
'confirm-label'?: string;
|
|
@@ -231,11 +231,11 @@ type Props$x = {
|
|
|
231
231
|
declare global {
|
|
232
232
|
namespace React.JSX {
|
|
233
233
|
interface IntrinsicElements {
|
|
234
|
-
'descope-new-password': DescopeInputProps & Props$
|
|
234
|
+
'descope-new-password': DescopeInputProps & Props$y;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
238
|
+
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$y, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
239
239
|
|
|
240
240
|
declare global {
|
|
241
241
|
namespace React.JSX {
|
|
@@ -255,16 +255,16 @@ declare global {
|
|
|
255
255
|
}
|
|
256
256
|
declare const Password: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
257
257
|
|
|
258
|
-
type Props$
|
|
258
|
+
type Props$x = {
|
|
259
259
|
variant: 'countrySelection' | 'inputBox';
|
|
260
260
|
'default-code'?: string;
|
|
261
261
|
'phone-input-placeholder'?: string;
|
|
262
262
|
'country-input-placeholder'?: string;
|
|
263
263
|
'restrict-countries'?: string;
|
|
264
264
|
} & DescopeInputProps;
|
|
265
|
-
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$
|
|
265
|
+
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$x, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
266
266
|
|
|
267
|
-
type Props$
|
|
267
|
+
type Props$w = {
|
|
268
268
|
children?: React.JSX.Element[];
|
|
269
269
|
data?: string | Record<string, string>[];
|
|
270
270
|
};
|
|
@@ -277,9 +277,9 @@ declare global {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
280
|
+
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$w, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
281
281
|
|
|
282
|
-
type Props$
|
|
282
|
+
type Props$v = {
|
|
283
283
|
italic?: boolean;
|
|
284
284
|
variant?: string;
|
|
285
285
|
mode?: string;
|
|
@@ -291,14 +291,14 @@ type Props$u = {
|
|
|
291
291
|
declare global {
|
|
292
292
|
namespace React.JSX {
|
|
293
293
|
interface IntrinsicElements {
|
|
294
|
-
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
295
|
-
'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
294
|
+
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$v;
|
|
295
|
+
'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$v & {
|
|
296
296
|
readonly?: boolean;
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
declare const Text: React.ForwardRefExoticComponent<Omit<Props$
|
|
301
|
+
declare const Text: React.ForwardRefExoticComponent<Omit<Props$v & {
|
|
302
302
|
typography?: TypographyVariants;
|
|
303
303
|
} & Omit<React.HTMLProps<HTMLSpanElement>, "mode">, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
304
304
|
|
|
@@ -320,39 +320,39 @@ declare global {
|
|
|
320
320
|
}
|
|
321
321
|
declare const TextField: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
322
322
|
|
|
323
|
-
type Props$
|
|
323
|
+
type Props$u = {
|
|
324
324
|
width?: string;
|
|
325
325
|
height?: string;
|
|
326
326
|
};
|
|
327
327
|
declare global {
|
|
328
328
|
namespace React.JSX {
|
|
329
329
|
interface IntrinsicElements {
|
|
330
|
-
'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
330
|
+
'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$u>;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
declare const TOTPImage: React.ForwardRefExoticComponent<Props$
|
|
334
|
+
declare const TOTPImage: React.ForwardRefExoticComponent<Props$u & React.RefAttributes<HTMLDivElement>>;
|
|
335
335
|
|
|
336
|
-
type Props$
|
|
337
|
-
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$
|
|
336
|
+
type Props$t = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
337
|
+
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$t, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
338
338
|
|
|
339
|
-
type Props$
|
|
339
|
+
type Props$s = {
|
|
340
340
|
width?: string;
|
|
341
341
|
height?: string;
|
|
342
342
|
};
|
|
343
343
|
declare global {
|
|
344
344
|
namespace React.JSX {
|
|
345
345
|
interface IntrinsicElements {
|
|
346
|
-
'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
346
|
+
'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$s>;
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
declare const NOTPImage: React.ForwardRefExoticComponent<Props$
|
|
350
|
+
declare const NOTPImage: React.ForwardRefExoticComponent<Props$s & React.RefAttributes<HTMLDivElement>>;
|
|
351
351
|
|
|
352
|
-
type Props$
|
|
353
|
-
declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$
|
|
352
|
+
type Props$r = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
353
|
+
declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$r, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
354
354
|
|
|
355
|
-
type Props$
|
|
355
|
+
type Props$q = {
|
|
356
356
|
title?: string;
|
|
357
357
|
description?: string;
|
|
358
358
|
icon?: string;
|
|
@@ -371,13 +371,13 @@ type Props$p = {
|
|
|
371
371
|
declare global {
|
|
372
372
|
namespace React.JSX {
|
|
373
373
|
interface IntrinsicElements {
|
|
374
|
-
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
374
|
+
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$q;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
declare const UploadFile: React.ForwardRefExoticComponent<Props$
|
|
378
|
+
declare const UploadFile: React.ForwardRefExoticComponent<Props$q & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
379
379
|
|
|
380
|
-
type Props$
|
|
380
|
+
type Props$p = {
|
|
381
381
|
enabled?: boolean;
|
|
382
382
|
'site-key'?: string;
|
|
383
383
|
enterprise?: boolean;
|
|
@@ -396,13 +396,13 @@ declare global {
|
|
|
396
396
|
}
|
|
397
397
|
namespace React.JSX {
|
|
398
398
|
interface IntrinsicElements {
|
|
399
|
-
'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
399
|
+
'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$p;
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
declare const Recaptcha: React.ForwardRefExoticComponent<Props$
|
|
403
|
+
declare const Recaptcha: React.ForwardRefExoticComponent<Props$p & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
404
404
|
|
|
405
|
-
type Props$
|
|
405
|
+
type Props$o = {
|
|
406
406
|
connector?: string;
|
|
407
407
|
enterprise?: boolean;
|
|
408
408
|
action?: string;
|
|
@@ -413,16 +413,16 @@ type Props$n = {
|
|
|
413
413
|
'full-width'?: boolean;
|
|
414
414
|
readOnly?: boolean;
|
|
415
415
|
};
|
|
416
|
-
declare const RecaptchaV2: React.ForwardRefExoticComponent<Props$
|
|
416
|
+
declare const RecaptchaV2: React.ForwardRefExoticComponent<Props$o & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
417
417
|
|
|
418
|
-
type Props$
|
|
418
|
+
type Props$n = DescopeInputProps & {
|
|
419
419
|
'default-value'?: string;
|
|
420
420
|
'allow-deselect'?: boolean;
|
|
421
421
|
};
|
|
422
422
|
declare global {
|
|
423
423
|
namespace React.JSX {
|
|
424
424
|
interface IntrinsicElements {
|
|
425
|
-
'descope-button-selection-group': Props$
|
|
425
|
+
'descope-button-selection-group': Props$n;
|
|
426
426
|
'descope-button-selection-group-item': React.JSX.IntrinsicElements['span'] & {
|
|
427
427
|
value: string;
|
|
428
428
|
children: string;
|
|
@@ -448,10 +448,10 @@ type SingleSelectType = {
|
|
|
448
448
|
layout?: 'horizontal' | 'vertical';
|
|
449
449
|
'label-type'?: LabelType;
|
|
450
450
|
};
|
|
451
|
-
type Props$
|
|
452
|
-
declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$
|
|
451
|
+
type Props$m = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
|
|
452
|
+
declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$m, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
453
453
|
|
|
454
|
-
type Props$
|
|
454
|
+
type Props$l = DescopeInputProps & {
|
|
455
455
|
'default-value'?: string;
|
|
456
456
|
'item-label-path'?: string;
|
|
457
457
|
'item-value-path'?: string;
|
|
@@ -459,7 +459,7 @@ type Props$k = DescopeInputProps & {
|
|
|
459
459
|
declare global {
|
|
460
460
|
namespace React.JSX {
|
|
461
461
|
interface IntrinsicElements {
|
|
462
|
-
'descope-combobox': Props$
|
|
462
|
+
'descope-combobox': Props$l;
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
}
|
|
@@ -481,7 +481,7 @@ type Column = {
|
|
|
481
481
|
resizable: boolean;
|
|
482
482
|
};
|
|
483
483
|
};
|
|
484
|
-
type Props$
|
|
484
|
+
type Props$k = {
|
|
485
485
|
identifier: any;
|
|
486
486
|
children?: React.JSX.Element[];
|
|
487
487
|
size?: Omit<ComponentSize, 'xl'>;
|
|
@@ -497,7 +497,7 @@ declare global {
|
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
declare const Grid: React.ForwardRefExoticComponent<Props$
|
|
500
|
+
declare const Grid: React.ForwardRefExoticComponent<Props$k & React.RefAttributes<HTMLInputElement>>;
|
|
501
501
|
|
|
502
502
|
type ColumnProps = {
|
|
503
503
|
sortable?: boolean;
|
|
@@ -546,7 +546,7 @@ declare global {
|
|
|
546
546
|
}
|
|
547
547
|
declare const GridItemDetailsColumn: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<HTMLInputElement>>;
|
|
548
548
|
|
|
549
|
-
type Props$
|
|
549
|
+
type Props$j = {
|
|
550
550
|
mode?: string;
|
|
551
551
|
size?: string;
|
|
552
552
|
bordered?: boolean;
|
|
@@ -555,11 +555,11 @@ type Props$i = {
|
|
|
555
555
|
declare global {
|
|
556
556
|
namespace React.JSX {
|
|
557
557
|
interface IntrinsicElements {
|
|
558
|
-
'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
558
|
+
'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$j;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
declare const Badge: React.ForwardRefExoticComponent<Props$
|
|
562
|
+
declare const Badge: React.ForwardRefExoticComponent<Props$j & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
563
563
|
|
|
564
564
|
declare global {
|
|
565
565
|
namespace React.JSX {
|
|
@@ -568,12 +568,12 @@ declare global {
|
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
type Props$
|
|
571
|
+
type Props$i = {
|
|
572
572
|
opened?: boolean;
|
|
573
573
|
};
|
|
574
|
-
declare const Modal: React.ForwardRefExoticComponent<Props$
|
|
574
|
+
declare const Modal: React.ForwardRefExoticComponent<Props$i & React.RefAttributes<HTMLDivElement>>;
|
|
575
575
|
|
|
576
|
-
type Props$
|
|
576
|
+
type Props$h = DescopeInputProps & {
|
|
577
577
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
578
578
|
'min-items-selection'?: number;
|
|
579
579
|
'max-items-selection'?: number;
|
|
@@ -581,7 +581,7 @@ type Props$g = DescopeInputProps & {
|
|
|
581
581
|
declare global {
|
|
582
582
|
namespace React.JSX {
|
|
583
583
|
interface IntrinsicElements {
|
|
584
|
-
'descope-button-multi-selection-group': Props$
|
|
584
|
+
'descope-button-multi-selection-group': Props$h & {
|
|
585
585
|
'default-values'?: string;
|
|
586
586
|
};
|
|
587
587
|
'descope-button-selection-group-item': React.JSX.IntrinsicElements['span'] & {
|
|
@@ -608,16 +608,16 @@ type MultiSelectType = {
|
|
|
608
608
|
'max-items-selection'?: number;
|
|
609
609
|
'label-type'?: string;
|
|
610
610
|
};
|
|
611
|
-
type Props$
|
|
611
|
+
type Props$g = Omit<React.ComponentProps<typeof ButtonMultiSelectionGroup>, 'default-values'> & MultiSelectType & {
|
|
612
612
|
'default-values'?: string[];
|
|
613
613
|
};
|
|
614
|
-
declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$
|
|
614
|
+
declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$g, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
615
615
|
|
|
616
616
|
type Item$2 = {
|
|
617
617
|
label: string;
|
|
618
618
|
value: string;
|
|
619
619
|
};
|
|
620
|
-
type Props$
|
|
620
|
+
type Props$f = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
|
|
621
621
|
'label-value'?: string;
|
|
622
622
|
'label-attr'?: string;
|
|
623
623
|
'button-label'?: string;
|
|
@@ -629,20 +629,20 @@ type Props$e = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'h
|
|
|
629
629
|
declare global {
|
|
630
630
|
namespace React.JSX {
|
|
631
631
|
interface IntrinsicElements {
|
|
632
|
-
'descope-mappings-field': Omit<Props$
|
|
632
|
+
'descope-mappings-field': Omit<Props$f, 'default-values' | 'options'> & {
|
|
633
633
|
'default-values'?: string;
|
|
634
634
|
options?: string;
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$
|
|
639
|
+
declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$f, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
640
640
|
|
|
641
641
|
type Item$1 = {
|
|
642
642
|
label: string;
|
|
643
643
|
value: string;
|
|
644
644
|
};
|
|
645
|
-
type Props$
|
|
645
|
+
type Props$e = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
|
|
646
646
|
'label-value'?: string;
|
|
647
647
|
'label-attr'?: string;
|
|
648
648
|
'label-group'?: string;
|
|
@@ -654,13 +654,13 @@ type Props$d = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'h
|
|
|
654
654
|
declare global {
|
|
655
655
|
namespace React.JSX {
|
|
656
656
|
interface IntrinsicElements {
|
|
657
|
-
'descope-saml-group-mappings': Omit<Props$
|
|
657
|
+
'descope-saml-group-mappings': Omit<Props$e, 'options'> & {
|
|
658
658
|
options?: string;
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$
|
|
663
|
+
declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$e, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
664
664
|
|
|
665
665
|
declare global {
|
|
666
666
|
namespace React.JSX {
|
|
@@ -681,7 +681,7 @@ declare const UserAuthMethod: React.ForwardRefExoticComponent<Omit<React.ClassAt
|
|
|
681
681
|
buttonIcon?: string;
|
|
682
682
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
683
683
|
|
|
684
|
-
type Props$
|
|
684
|
+
type Props$d = {
|
|
685
685
|
'badge-tooltip-text'?: string;
|
|
686
686
|
'badge-label'?: string;
|
|
687
687
|
value?: string;
|
|
@@ -693,13 +693,13 @@ type Props$c = {
|
|
|
693
693
|
declare global {
|
|
694
694
|
namespace React.JSX {
|
|
695
695
|
interface IntrinsicElements {
|
|
696
|
-
'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
696
|
+
'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$d;
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$
|
|
700
|
+
declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$d, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
701
701
|
|
|
702
|
-
type Props$
|
|
702
|
+
type Props$c = {
|
|
703
703
|
img?: string;
|
|
704
704
|
'display-name'?: string;
|
|
705
705
|
size?: string;
|
|
@@ -708,26 +708,26 @@ type Props$b = {
|
|
|
708
708
|
declare global {
|
|
709
709
|
namespace React.JSX {
|
|
710
710
|
interface IntrinsicElements {
|
|
711
|
-
'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
711
|
+
'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$c;
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
|
-
declare const Avatar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$
|
|
715
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$c, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
716
716
|
|
|
717
|
-
type Props$
|
|
717
|
+
type Props$b = {
|
|
718
718
|
lang?: 'xml' | 'html' | 'javascript' | 'css' | 'json';
|
|
719
719
|
inline?: boolean;
|
|
720
720
|
};
|
|
721
721
|
declare global {
|
|
722
722
|
namespace React.JSX {
|
|
723
723
|
interface IntrinsicElements {
|
|
724
|
-
'descope-code-snippet': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
724
|
+
'descope-code-snippet': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$b;
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
declare const CodeSnippet: React.ForwardRefExoticComponent<Props$
|
|
728
|
+
declare const CodeSnippet: React.ForwardRefExoticComponent<Props$b & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
729
729
|
|
|
730
|
-
type Props$
|
|
730
|
+
type Props$a = {
|
|
731
731
|
emptyState?: React.ReactNode;
|
|
732
732
|
children?: React.ReactNode[];
|
|
733
733
|
variant?: 'list' | 'tiles';
|
|
@@ -735,26 +735,26 @@ type Props$9 = {
|
|
|
735
735
|
declare global {
|
|
736
736
|
namespace React.JSX {
|
|
737
737
|
interface IntrinsicElements {
|
|
738
|
-
'descope-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
738
|
+
'descope-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$a>;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
|
-
declare const List: React.ForwardRefExoticComponent<Props$
|
|
742
|
+
declare const List: React.ForwardRefExoticComponent<Props$a & React.RefAttributes<HTMLDivElement>>;
|
|
743
743
|
|
|
744
|
-
type Props$
|
|
744
|
+
type Props$9 = {
|
|
745
745
|
variant?: 'row' | 'tile';
|
|
746
746
|
children?: React.ReactNode;
|
|
747
747
|
};
|
|
748
748
|
declare global {
|
|
749
749
|
namespace React.JSX {
|
|
750
750
|
interface IntrinsicElements {
|
|
751
|
-
'descope-list-item': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
751
|
+
'descope-list-item': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$9>;
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
declare const ListItem: React.ForwardRefExoticComponent<Props$
|
|
755
|
+
declare const ListItem: React.ForwardRefExoticComponent<Props$9 & React.RefAttributes<HTMLDivElement>>;
|
|
756
756
|
|
|
757
|
-
type Props$
|
|
757
|
+
type Props$8 = {
|
|
758
758
|
emptyState?: React.ReactNode;
|
|
759
759
|
variant?: 'list' | 'tiles';
|
|
760
760
|
data?: any[];
|
|
@@ -763,18 +763,18 @@ type Props$7 = {
|
|
|
763
763
|
declare global {
|
|
764
764
|
namespace React.JSX {
|
|
765
765
|
interface IntrinsicElements {
|
|
766
|
-
'descope-apps-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
766
|
+
'descope-apps-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$8>;
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
declare const AppsList: React.ForwardRefExoticComponent<Props$
|
|
770
|
+
declare const AppsList: React.ForwardRefExoticComponent<Props$8 & React.RefAttributes<HTMLDivElement>>;
|
|
771
771
|
|
|
772
772
|
type Item = {
|
|
773
773
|
desc: string;
|
|
774
774
|
id: string;
|
|
775
775
|
required?: boolean;
|
|
776
776
|
};
|
|
777
|
-
type Props$
|
|
777
|
+
type Props$7 = {
|
|
778
778
|
variant?: 'checkbox' | 'switch';
|
|
779
779
|
data?: Item[];
|
|
780
780
|
readonly?: boolean;
|
|
@@ -783,17 +783,17 @@ type Props$6 = {
|
|
|
783
783
|
declare global {
|
|
784
784
|
namespace React.JSX {
|
|
785
785
|
interface IntrinsicElements {
|
|
786
|
-
'descope-scopes-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
786
|
+
'descope-scopes-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$7>;
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
|
-
declare const ScopesList: React.ForwardRefExoticComponent<Props$
|
|
790
|
+
declare const ScopesList: React.ForwardRefExoticComponent<Props$7 & React.RefAttributes<HTMLDivElement>>;
|
|
791
791
|
|
|
792
792
|
type Question$1 = {
|
|
793
793
|
id: string;
|
|
794
794
|
text: string;
|
|
795
795
|
};
|
|
796
|
-
type Props$
|
|
796
|
+
type Props$6 = {
|
|
797
797
|
questions?: Question$1[];
|
|
798
798
|
readonly?: boolean;
|
|
799
799
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -808,17 +808,17 @@ type Props$5 = {
|
|
|
808
808
|
declare global {
|
|
809
809
|
namespace React.JSX {
|
|
810
810
|
interface IntrinsicElements {
|
|
811
|
-
'descope-security-questions-setup': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
811
|
+
'descope-security-questions-setup': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$6>;
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
|
-
declare const SecurityQuestionsSetup: React.ForwardRefExoticComponent<Props$
|
|
815
|
+
declare const SecurityQuestionsSetup: React.ForwardRefExoticComponent<Props$6 & React.RefAttributes<HTMLDivElement>>;
|
|
816
816
|
|
|
817
817
|
type Question = {
|
|
818
818
|
id: string;
|
|
819
819
|
text: string;
|
|
820
820
|
};
|
|
821
|
-
type Props$
|
|
821
|
+
type Props$5 = {
|
|
822
822
|
questions?: Question[];
|
|
823
823
|
readonly?: boolean;
|
|
824
824
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -832,23 +832,23 @@ type Props$4 = {
|
|
|
832
832
|
declare global {
|
|
833
833
|
namespace React.JSX {
|
|
834
834
|
interface IntrinsicElements {
|
|
835
|
-
'descope-security-questions-verify': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
835
|
+
'descope-security-questions-verify': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$5>;
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
|
-
declare const SecurityQuestionsVerify: React.ForwardRefExoticComponent<Props$
|
|
839
|
+
declare const SecurityQuestionsVerify: React.ForwardRefExoticComponent<Props$5 & React.RefAttributes<HTMLDivElement>>;
|
|
840
840
|
|
|
841
|
-
type Props$
|
|
841
|
+
type Props$4 = {
|
|
842
842
|
size: 'xs' | 'sm' | 'md' | 'lg';
|
|
843
843
|
};
|
|
844
844
|
declare global {
|
|
845
845
|
namespace React.JSX {
|
|
846
846
|
interface IntrinsicElements {
|
|
847
|
-
'descope-third-party-app-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
847
|
+
'descope-third-party-app-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$4>;
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
declare const ThirdPartyAppLogo: React.ForwardRefExoticComponent<Props$
|
|
851
|
+
declare const ThirdPartyAppLogo: React.ForwardRefExoticComponent<Props$4 & React.RefAttributes<HTMLDivElement>>;
|
|
852
852
|
|
|
853
853
|
declare global {
|
|
854
854
|
namespace React.JSX {
|
|
@@ -859,7 +859,7 @@ declare global {
|
|
|
859
859
|
}
|
|
860
860
|
declare const DateField: React.ForwardRefExoticComponent<Omit<Omit<DescopeInputProps, "external-input">, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
861
861
|
|
|
862
|
-
type Props$
|
|
862
|
+
type Props$3 = {
|
|
863
863
|
variant?: 'countrySelection' | 'inputBox';
|
|
864
864
|
'default-code'?: string;
|
|
865
865
|
'phone-input-label'?: string;
|
|
@@ -880,7 +880,7 @@ type Props$2 = {
|
|
|
880
880
|
declare global {
|
|
881
881
|
namespace React.JSX {
|
|
882
882
|
interface IntrinsicElements {
|
|
883
|
-
'descope-hybrid-field': React.DetailedHTMLProps<React.HTMLAttributes<HTMLInputElement>, HTMLInputElement> & PropsToAttrs<Props$
|
|
883
|
+
'descope-hybrid-field': React.DetailedHTMLProps<React.HTMLAttributes<HTMLInputElement>, HTMLInputElement> & PropsToAttrs<Props$3>;
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
}
|
|
@@ -903,7 +903,7 @@ declare const HybridField: React.ForwardRefExoticComponent<Omit<React.ClassAttri
|
|
|
903
903
|
'external-input'?: boolean;
|
|
904
904
|
} & HTMLInputAttrs & DescopeInputExtraProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
905
905
|
|
|
906
|
-
type Props$
|
|
906
|
+
type Props$2 = {
|
|
907
907
|
mode?: string;
|
|
908
908
|
variant?: string;
|
|
909
909
|
bordered?: boolean;
|
|
@@ -915,13 +915,13 @@ type Props$1 = {
|
|
|
915
915
|
declare global {
|
|
916
916
|
namespace React.JSX {
|
|
917
917
|
interface IntrinsicElements {
|
|
918
|
-
'descope-alert': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
918
|
+
'descope-alert': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$2;
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
|
-
declare const Alert: React.ForwardRefExoticComponent<Props$
|
|
922
|
+
declare const Alert: React.ForwardRefExoticComponent<Props$2 & React.RefAttributes<HTMLElement>>;
|
|
923
923
|
|
|
924
|
-
type Props = {
|
|
924
|
+
type Props$1 = {
|
|
925
925
|
'data-connector-id'?: string;
|
|
926
926
|
'connector-template'?: string;
|
|
927
927
|
'min-search-length'?: number;
|
|
@@ -930,11 +930,41 @@ type Props = {
|
|
|
930
930
|
declare global {
|
|
931
931
|
namespace React.JSX {
|
|
932
932
|
interface IntrinsicElements {
|
|
933
|
-
'descope-address-field': Omit<DescopeInputProps, 'external-input'> & Props;
|
|
933
|
+
'descope-address-field': Omit<DescopeInputProps, 'external-input'> & Props$1;
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
|
-
declare const AddressField: React.ForwardRefExoticComponent<Omit<Omit<DescopeInputProps, "external-input"> & Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
937
|
+
declare const AddressField: React.ForwardRefExoticComponent<Omit<Omit<DescopeInputProps, "external-input"> & Props$1, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
938
|
+
|
|
939
|
+
type Props = React.JSX.IntrinsicElements['button'] & {
|
|
940
|
+
variant?: string;
|
|
941
|
+
color?: string;
|
|
942
|
+
size?: string;
|
|
943
|
+
horizontal?: boolean;
|
|
944
|
+
'text-align'?: TextAlign;
|
|
945
|
+
'full-width'?: boolean;
|
|
946
|
+
'timer-seconds'?: number;
|
|
947
|
+
'timer-hide-icon'?: boolean;
|
|
948
|
+
'timer-paused'?: boolean;
|
|
949
|
+
};
|
|
950
|
+
declare global {
|
|
951
|
+
namespace React.JSX {
|
|
952
|
+
interface IntrinsicElements {
|
|
953
|
+
'descope-timer-button': React.DetailedHTMLProps<React.HTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & Props;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
declare const TimerButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
958
|
+
variant?: string;
|
|
959
|
+
color?: string;
|
|
960
|
+
size?: string;
|
|
961
|
+
horizontal?: boolean;
|
|
962
|
+
'text-align'?: TextAlign;
|
|
963
|
+
'full-width'?: boolean;
|
|
964
|
+
'timer-seconds'?: number;
|
|
965
|
+
'timer-hide-icon'?: boolean;
|
|
966
|
+
'timer-paused'?: boolean;
|
|
967
|
+
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
938
968
|
|
|
939
969
|
type ComponentClass = {
|
|
940
970
|
cssVarList: Record<string, string>;
|
|
@@ -1020,6 +1050,7 @@ declare const SecurityQuestionsVerifyClass: ComponentClass;
|
|
|
1020
1050
|
declare const HybridFieldClass: ComponentClass;
|
|
1021
1051
|
declare const AlertClass: ComponentClass;
|
|
1022
1052
|
declare const AddressFieldClass: ComponentClass;
|
|
1053
|
+
declare const TimerButtonClass: ComponentClass;
|
|
1023
1054
|
|
|
1024
1055
|
type Theme = {
|
|
1025
1056
|
globals: {
|
|
@@ -1044,4 +1075,4 @@ type Theme = {
|
|
|
1044
1075
|
};
|
|
1045
1076
|
};
|
|
1046
1077
|
|
|
1047
|
-
export { AddressField, AddressFieldClass, Alert, AlertClass, AppsList, AppsListClass, Avatar, AvatarClass, Badge, BadgeClass, Boolean, Button, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CalendarClass, Checkbox, CheckboxClass, Code, CodeSnippet, CodeSnippetClass, ComboBox, ComboBoxClass, Container, ContainerClass, DateField, DateFieldClass, Divider, DividerClass, EmailFieldClass, EnrichedTextClass, Grid, GridClass, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, HybridField, HybridFieldClass, IconClass, Image, ImageClass, Input, Link, LinkClass, List, ListClass, ListItem, Loader, LoaderLinearClass, LoaderRadialClass, Logo, LogoClass, MappingsField, MappingsFieldClass, Modal, ModalClass, MultiSelect, MultiSelectComboBoxClass, NOTPImage, NOTPLink, NewPassword, NewPasswordClass, NotificationClass, NotpImageClass, NumberField, NumberFieldClass, PasscodeClass, Password, PasswordClass, Phone, PhoneFieldClass, PhoneFieldInputBoxClass, PolicyValidationClass, RadioGroupClass, Recaptcha, RecaptchaClass, RecaptchaV2, SAMLGroupMappings, SamlGroupMappingsClass, ScopesList, ScopesListClass, SecurityQuestionsSetup, SecurityQuestionsSetupClass, SecurityQuestionsVerify, SecurityQuestionsVerifyClass, Select, SingleSelect, Switch, SwitchToggleClass, TOTPImage, TOTPLink, Text, TextAreaClass, TextClass, TextField, TextFieldClass, Textarea, type Theme, ThirdPartyAppLogo, ThirdPartyAppLogoClass, TotpImageClass, UploadFile, UploadFileClass, UserAttribute, UserAttributeClass, UserAuthMethod, UserAuthMethodClass, ReactComponent as apple, ReactComponent as authenticator, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, ReactComponent as discord, ReactComponent as edit, ReactComponent as facebook, ReactComponent as fingerprint, genColor, ReactComponent as github, ReactComponent as gitlab, globalsThemeToStyle, ReactComponent as google, ReactComponent as linkedin, ReactComponent as microsoft, ReactComponent as passkey, ReactComponent as password, ReactComponent as plus, ReactComponent as reload, ReactComponent as slack, ReactComponent as sso, themeToStyle, themeVars, ReactComponent as whatsapp };
|
|
1078
|
+
export { AddressField, AddressFieldClass, Alert, AlertClass, AppsList, AppsListClass, Avatar, AvatarClass, Badge, BadgeClass, Boolean, Button, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CalendarClass, Checkbox, CheckboxClass, Code, CodeSnippet, CodeSnippetClass, ComboBox, ComboBoxClass, Container, ContainerClass, DateField, DateFieldClass, Divider, DividerClass, EmailFieldClass, EnrichedTextClass, Grid, GridClass, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, HybridField, HybridFieldClass, IconClass, Image, ImageClass, Input, Link, LinkClass, List, ListClass, ListItem, Loader, LoaderLinearClass, LoaderRadialClass, Logo, LogoClass, MappingsField, MappingsFieldClass, Modal, ModalClass, MultiSelect, MultiSelectComboBoxClass, NOTPImage, NOTPLink, NewPassword, NewPasswordClass, NotificationClass, NotpImageClass, NumberField, NumberFieldClass, PasscodeClass, Password, PasswordClass, Phone, PhoneFieldClass, PhoneFieldInputBoxClass, PolicyValidationClass, RadioGroupClass, Recaptcha, RecaptchaClass, RecaptchaV2, SAMLGroupMappings, SamlGroupMappingsClass, ScopesList, ScopesListClass, SecurityQuestionsSetup, SecurityQuestionsSetupClass, SecurityQuestionsVerify, SecurityQuestionsVerifyClass, Select, SingleSelect, Switch, SwitchToggleClass, TOTPImage, TOTPLink, Text, TextAreaClass, TextClass, TextField, TextFieldClass, Textarea, type Theme, ThirdPartyAppLogo, ThirdPartyAppLogoClass, TimerButton, TimerButtonClass, TotpImageClass, UploadFile, UploadFileClass, UserAttribute, UserAttributeClass, UserAuthMethod, UserAuthMethodClass, ReactComponent as apple, ReactComponent as authenticator, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, ReactComponent as discord, ReactComponent as edit, ReactComponent as facebook, ReactComponent as fingerprint, genColor, ReactComponent as github, ReactComponent as gitlab, globalsThemeToStyle, ReactComponent as google, ReactComponent as linkedin, ReactComponent as microsoft, ReactComponent as passkey, ReactComponent as password, ReactComponent as plus, ReactComponent as reload, ReactComponent as slack, ReactComponent as sso, themeToStyle, themeVars, ReactComponent as whatsapp };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { globalsThemeToStyle as globalsThemeToStyle$1, createComponentsTheme as createComponentsTheme$1, themeToStyle as themeToStyle$1, componentsThemeManager as componentsThemeManager$1, genColor as genColor$1, themeVars as themeVars$1, defaultTheme as defaultTheme$1, darkTheme as darkTheme$1, IconClass as IconClass$1, CheckboxClass as CheckboxClass$1, SwitchToggleClass as SwitchToggleClass$1, ButtonClass as ButtonClass$1, LoaderLinearClass as LoaderLinearClass$1, LoaderRadialClass as LoaderRadialClass$1, ContainerClass as ContainerClass$1, DividerClass as DividerClass$1, EmailFieldClass as EmailFieldClass$1, LinkClass as LinkClass$1, LogoClass as LogoClass$1, TotpImageClass as TotpImageClass$1, NotpImageClass as NotpImageClass$1, NumberFieldClass as NumberFieldClass$1, PasscodeClass as PasscodeClass$1, PasswordClass as PasswordClass$1, TextClass as TextClass$1, EnrichedTextClass as EnrichedTextClass$1, TextAreaClass as TextAreaClass$1, TextFieldClass as TextFieldClass$1, ImageClass as ImageClass$1, PhoneFieldClass as PhoneFieldClass$1, PhoneFieldInputBoxClass as PhoneFieldInputBoxClass$1, NewPasswordClass as NewPasswordClass$1, RecaptchaClass as RecaptchaClass$1, UploadFileClass as UploadFileClass$1, ButtonSelectionGroupClass as ButtonSelectionGroupClass$1, ButtonMultiSelectionGroupClass as ButtonMultiSelectionGroupClass$1, ModalClass as ModalClass$1, NotificationClass as NotificationClass$1, GridClass as GridClass$1, BadgeClass as BadgeClass$1, MultiSelectComboBoxClass as MultiSelectComboBoxClass$1, AvatarClass as AvatarClass$1, UserAttributeClass as UserAttributeClass$1, UserAuthMethodClass as UserAuthMethodClass$1, MappingsFieldClass as MappingsFieldClass$1, SamlGroupMappingsClass as SamlGroupMappingsClass$1, PolicyValidationClass as PolicyValidationClass$1, CodeSnippetClass as CodeSnippetClass$1, ComboBoxClass as ComboBoxClass$1, RadioGroupClass as RadioGroupClass$1, DateFieldClass as DateFieldClass$1, CalendarClass as CalendarClass$1, ListClass as ListClass$1, AppsListClass as AppsListClass$1, ScopesListClass as ScopesListClass$1, ThirdPartyAppLogoClass as ThirdPartyAppLogoClass$1, SecurityQuestionsSetupClass as SecurityQuestionsSetupClass$1, SecurityQuestionsVerifyClass as SecurityQuestionsVerifyClass$1, HybridFieldClass as HybridFieldClass$1, AlertClass as AlertClass$1, AddressFieldClass as AddressFieldClass$1 } from '@descope/web-components-ui';
|
|
1
|
+
import { globalsThemeToStyle as globalsThemeToStyle$1, createComponentsTheme as createComponentsTheme$1, themeToStyle as themeToStyle$1, componentsThemeManager as componentsThemeManager$1, genColor as genColor$1, themeVars as themeVars$1, defaultTheme as defaultTheme$1, darkTheme as darkTheme$1, IconClass as IconClass$1, CheckboxClass as CheckboxClass$1, SwitchToggleClass as SwitchToggleClass$1, ButtonClass as ButtonClass$1, LoaderLinearClass as LoaderLinearClass$1, LoaderRadialClass as LoaderRadialClass$1, ContainerClass as ContainerClass$1, DividerClass as DividerClass$1, EmailFieldClass as EmailFieldClass$1, LinkClass as LinkClass$1, LogoClass as LogoClass$1, TotpImageClass as TotpImageClass$1, NotpImageClass as NotpImageClass$1, NumberFieldClass as NumberFieldClass$1, PasscodeClass as PasscodeClass$1, PasswordClass as PasswordClass$1, TextClass as TextClass$1, EnrichedTextClass as EnrichedTextClass$1, TextAreaClass as TextAreaClass$1, TextFieldClass as TextFieldClass$1, ImageClass as ImageClass$1, PhoneFieldClass as PhoneFieldClass$1, PhoneFieldInputBoxClass as PhoneFieldInputBoxClass$1, NewPasswordClass as NewPasswordClass$1, RecaptchaClass as RecaptchaClass$1, UploadFileClass as UploadFileClass$1, ButtonSelectionGroupClass as ButtonSelectionGroupClass$1, ButtonMultiSelectionGroupClass as ButtonMultiSelectionGroupClass$1, ModalClass as ModalClass$1, NotificationClass as NotificationClass$1, GridClass as GridClass$1, BadgeClass as BadgeClass$1, MultiSelectComboBoxClass as MultiSelectComboBoxClass$1, AvatarClass as AvatarClass$1, UserAttributeClass as UserAttributeClass$1, UserAuthMethodClass as UserAuthMethodClass$1, MappingsFieldClass as MappingsFieldClass$1, SamlGroupMappingsClass as SamlGroupMappingsClass$1, PolicyValidationClass as PolicyValidationClass$1, CodeSnippetClass as CodeSnippetClass$1, ComboBoxClass as ComboBoxClass$1, RadioGroupClass as RadioGroupClass$1, DateFieldClass as DateFieldClass$1, CalendarClass as CalendarClass$1, ListClass as ListClass$1, AppsListClass as AppsListClass$1, ScopesListClass as ScopesListClass$1, ThirdPartyAppLogoClass as ThirdPartyAppLogoClass$1, SecurityQuestionsSetupClass as SecurityQuestionsSetupClass$1, SecurityQuestionsVerifyClass as SecurityQuestionsVerifyClass$1, HybridFieldClass as HybridFieldClass$1, AlertClass as AlertClass$1, AddressFieldClass as AddressFieldClass$1, TimerButtonClass as TimerButtonClass$1 } from '@descope/web-components-ui';
|
|
2
2
|
export * from '@descope/web-components-ui';
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
|
|
@@ -434,6 +434,8 @@ const Alert = React.forwardRef(({ children, ...props }, ref) => (React.createEle
|
|
|
434
434
|
|
|
435
435
|
const AddressField = React.forwardRef(({ size = 'md', ...props }, ref) => (React.createElement("descope-address-field", { size: size, ...props, ref: ref })));
|
|
436
436
|
|
|
437
|
+
const TimerButton = React.forwardRef(({ children, color = 'primary', size = 'md', variant = 'contained', horizontal = false, 'text-align': textAlign = 'center', 'timer-seconds': timerSeconds = 0, 'timer-hide-icon': timerHideIcon = false, 'timer-paused': timerPause = false, ...props }, ref) => (React.createElement("descope-timer-button", { ...props, size: size, "text-align": textAlign, horizontal: horizontal, "button-variant": variant, "button-mode": color, "timer-hide-icon": timerHideIcon, "timer-seconds": timerSeconds, "timer-paused": timerPause, ref: ref }, children)));
|
|
438
|
+
|
|
437
439
|
const globalsThemeToStyle = globalsThemeToStyle$1;
|
|
438
440
|
const createComponentsTheme = createComponentsTheme$1;
|
|
439
441
|
const themeToStyle = themeToStyle$1;
|
|
@@ -496,5 +498,6 @@ const SecurityQuestionsVerifyClass = SecurityQuestionsVerifyClass$1;
|
|
|
496
498
|
const HybridFieldClass = HybridFieldClass$1;
|
|
497
499
|
const AlertClass = AlertClass$1;
|
|
498
500
|
const AddressFieldClass = AddressFieldClass$1;
|
|
501
|
+
const TimerButtonClass = TimerButtonClass$1;
|
|
499
502
|
|
|
500
|
-
export { AddressField, AddressFieldClass, Alert, AlertClass, AppsList, AppsListClass, Avatar, AvatarClass, Badge, BadgeClass, Boolean, Button, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CalendarClass, Checkbox, CheckboxClass, Code, CodeSnippet, CodeSnippetClass, ComboBox, ComboBoxClass, Container, ContainerClass, DateField, DateFieldClass, Divider, DividerClass, EmailFieldClass, EnrichedTextClass, Grid, GridClass, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, HybridField, HybridFieldClass, IconClass, Image, ImageClass, Input, Link, LinkClass, List, ListClass, ListItem, Loader, LoaderLinearClass, LoaderRadialClass, Logo, LogoClass, MappingsField, MappingsFieldClass, Modal, ModalClass, MultiSelect, MultiSelectComboBoxClass, NOTPImage, NOTPLink, NewPassword, NewPasswordClass, NotificationClass, NotpImageClass, NumberField, NumberFieldClass, PasscodeClass, Password, PasswordClass, Phone, PhoneFieldClass, PhoneFieldInputBoxClass, PolicyValidationClass, RadioGroupClass, Recaptcha, RecaptchaClass, RecaptchaV2, SAMLGroupMappings, SamlGroupMappingsClass, ScopesList, ScopesListClass, SecurityQuestionsSetup, SecurityQuestionsSetupClass, SecurityQuestionsVerify, SecurityQuestionsVerifyClass, Select, SingleSelect, Switch, SwitchToggleClass, TOTPImage, TOTPLink, Text, TextAreaClass, TextClass, TextField, TextFieldClass, Textarea, ThirdPartyAppLogo, ThirdPartyAppLogoClass, TotpImageClass, UploadFile, UploadFileClass, UserAttribute, UserAttributeClass, UserAuthMethod, UserAuthMethodClass, apple, authenticator, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, discord, edit, facebook, fingerprint, genColor, github, gitlab, globalsThemeToStyle, google, linkedin, microsoft, passkey, password, plus, reload, slack, sso, themeToStyle, themeVars, whatsapp };
|
|
503
|
+
export { AddressField, AddressFieldClass, Alert, AlertClass, AppsList, AppsListClass, Avatar, AvatarClass, Badge, BadgeClass, Boolean, Button, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CalendarClass, Checkbox, CheckboxClass, Code, CodeSnippet, CodeSnippetClass, ComboBox, ComboBoxClass, Container, ContainerClass, DateField, DateFieldClass, Divider, DividerClass, EmailFieldClass, EnrichedTextClass, Grid, GridClass, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, HybridField, HybridFieldClass, IconClass, Image, ImageClass, Input, Link, LinkClass, List, ListClass, ListItem, Loader, LoaderLinearClass, LoaderRadialClass, Logo, LogoClass, MappingsField, MappingsFieldClass, Modal, ModalClass, MultiSelect, MultiSelectComboBoxClass, NOTPImage, NOTPLink, NewPassword, NewPasswordClass, NotificationClass, NotpImageClass, NumberField, NumberFieldClass, PasscodeClass, Password, PasswordClass, Phone, PhoneFieldClass, PhoneFieldInputBoxClass, PolicyValidationClass, RadioGroupClass, Recaptcha, RecaptchaClass, RecaptchaV2, SAMLGroupMappings, SamlGroupMappingsClass, ScopesList, ScopesListClass, SecurityQuestionsSetup, SecurityQuestionsSetupClass, SecurityQuestionsVerify, SecurityQuestionsVerifyClass, Select, SingleSelect, Switch, SwitchToggleClass, TOTPImage, TOTPLink, Text, TextAreaClass, TextClass, TextField, TextFieldClass, Textarea, ThirdPartyAppLogo, ThirdPartyAppLogoClass, TimerButton, TimerButtonClass, TotpImageClass, UploadFile, UploadFileClass, UserAttribute, UserAttributeClass, UserAuthMethod, UserAuthMethodClass, apple, authenticator, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, discord, edit, facebook, fingerprint, genColor, github, gitlab, globalsThemeToStyle, google, linkedin, microsoft, passkey, password, plus, reload, slack, sso, themeToStyle, themeVars, whatsapp };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextAlign } from '../types';
|
|
3
|
+
type Props = React.JSX.IntrinsicElements['button'] & {
|
|
4
|
+
variant?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
size?: string;
|
|
7
|
+
horizontal?: boolean;
|
|
8
|
+
'text-align'?: TextAlign;
|
|
9
|
+
'full-width'?: boolean;
|
|
10
|
+
'timer-seconds'?: number;
|
|
11
|
+
'timer-hide-icon'?: boolean;
|
|
12
|
+
'timer-paused'?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare global {
|
|
15
|
+
namespace React.JSX {
|
|
16
|
+
interface IntrinsicElements {
|
|
17
|
+
'descope-timer-button': React.DetailedHTMLProps<React.HTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & Props;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
declare const TimerButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
22
|
+
variant?: string;
|
|
23
|
+
color?: string;
|
|
24
|
+
size?: string;
|
|
25
|
+
horizontal?: boolean;
|
|
26
|
+
'text-align'?: TextAlign;
|
|
27
|
+
'full-width'?: boolean;
|
|
28
|
+
'timer-seconds'?: number;
|
|
29
|
+
'timer-hide-icon'?: boolean;
|
|
30
|
+
'timer-paused'?: boolean;
|
|
31
|
+
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
32
|
+
export default TimerButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TimerButton } from './TimerButton';
|
|
@@ -82,6 +82,7 @@ export declare const SecurityQuestionsVerifyClass: ComponentClass;
|
|
|
82
82
|
export declare const HybridFieldClass: ComponentClass;
|
|
83
83
|
export declare const AlertClass: ComponentClass;
|
|
84
84
|
export declare const AddressFieldClass: ComponentClass;
|
|
85
|
+
export declare const TimerButtonClass: ComponentClass;
|
|
85
86
|
export { globalsThemeToStyle, createComponentsTheme, themeToStyle, componentsThemeManager, darkTheme, genColor, defaultTheme, themeVars };
|
|
86
87
|
export type Theme = {
|
|
87
88
|
globals: {
|
|
@@ -155,4 +156,5 @@ export * from './DateField';
|
|
|
155
156
|
export * from './HybridField';
|
|
156
157
|
export * from './Alert';
|
|
157
158
|
export * from './AddressField';
|
|
159
|
+
export * from './TimerButton';
|
|
158
160
|
export * from '@descope/web-components-ui';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.460",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"typescript": "^5.7.2"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@descope/web-components-ui": "1.
|
|
107
|
+
"@descope/web-components-ui": "1.44.0"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
110
|
"react": ">= 18"
|