@descope/flow-components 2.0.330 → 2.0.331
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/index.cjs.js +12 -0
- package/dist/index.d.ts +122 -82
- package/dist/index.esm.js +10 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -446,6 +446,16 @@ Avatar.defaultProps = {
|
|
|
446
446
|
|
|
447
447
|
const CodeSnippet = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-code-snippet", { ...props, ref: ref }));
|
|
448
448
|
|
|
449
|
+
const List = React__default.default.forwardRef(({ emptyState, children, ...props }, ref) => (React__default.default.createElement("descope-list", { ...props, ref: ref },
|
|
450
|
+
children,
|
|
451
|
+
React__default.default.createElement("div", { slot: "empty-state" }, emptyState))));
|
|
452
|
+
|
|
453
|
+
const ListItem = React__default.default.forwardRef((props, ref) => (React__default.default.createElement("descope-list-item", { ...props, ref: ref })));
|
|
454
|
+
|
|
455
|
+
const AppsList = React__default.default.forwardRef(({ emptyState, ...props }, ref) => (React__default.default.createElement("descope-apps-list", { ...props, ref: ref },
|
|
456
|
+
React__default.default.createElement("div", { slot: "empty-state" }, emptyState))));
|
|
457
|
+
|
|
458
|
+
exports.AppsList = AppsList;
|
|
449
459
|
exports.Avatar = Avatar;
|
|
450
460
|
exports.Badge = Badge;
|
|
451
461
|
exports.Boolean = Boolean;
|
|
@@ -464,6 +474,8 @@ exports.GridTextColumn = GridTextColumn;
|
|
|
464
474
|
exports.Image = Image;
|
|
465
475
|
exports.Input = Input;
|
|
466
476
|
exports.Link = Link;
|
|
477
|
+
exports.List = List;
|
|
478
|
+
exports.ListItem = ListItem;
|
|
467
479
|
exports.Loader = Loader;
|
|
468
480
|
exports.Logo = Logo;
|
|
469
481
|
exports.MappingsField = MappingsField;
|
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$x = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
|
|
55
|
+
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$x, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
56
56
|
|
|
57
57
|
declare global {
|
|
58
58
|
namespace JSX {
|
|
@@ -74,17 +74,17 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
|
|
|
74
74
|
'full-width'?: boolean;
|
|
75
75
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
76
76
|
|
|
77
|
-
type Props$
|
|
77
|
+
type Props$w = {
|
|
78
78
|
digits?: number;
|
|
79
79
|
};
|
|
80
80
|
declare global {
|
|
81
81
|
namespace JSX {
|
|
82
82
|
interface IntrinsicElements {
|
|
83
|
-
'descope-passcode': DescopeInputProps & Props$
|
|
83
|
+
'descope-passcode': DescopeInputProps & Props$w;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
87
|
+
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$w, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
88
88
|
|
|
89
89
|
type Never<T extends Record<string, any>> = {
|
|
90
90
|
[K in keyof T]: never;
|
|
@@ -100,7 +100,7 @@ type ContainerAlignment = {
|
|
|
100
100
|
'vertical-alignment'?: FlexAlignment;
|
|
101
101
|
'space-between'?: 'sm' | 'md' | 'lg';
|
|
102
102
|
};
|
|
103
|
-
type Props$
|
|
103
|
+
type Props$v = {
|
|
104
104
|
direction?: 'row' | 'column';
|
|
105
105
|
shadow?: 'md' | 'lg' | 'xl' | '2xl';
|
|
106
106
|
'border-radius'?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
@@ -116,9 +116,9 @@ declare global {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
declare const Container: React.ForwardRefExoticComponent<(Props$
|
|
119
|
+
declare const Container: React.ForwardRefExoticComponent<(Props$v & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
|
|
120
120
|
|
|
121
|
-
type Props$
|
|
121
|
+
type Props$u = {
|
|
122
122
|
vertical?: boolean;
|
|
123
123
|
italic?: boolean;
|
|
124
124
|
variant?: TypographyVariants;
|
|
@@ -128,15 +128,15 @@ type Props$r = {
|
|
|
128
128
|
declare global {
|
|
129
129
|
namespace JSX {
|
|
130
130
|
interface IntrinsicElements {
|
|
131
|
-
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$
|
|
131
|
+
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$u, 'children'>;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$
|
|
135
|
+
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$u, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
136
136
|
|
|
137
137
|
declare const ReactComponent: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
138
138
|
|
|
139
|
-
type Props$
|
|
139
|
+
type Props$t = {
|
|
140
140
|
width?: string;
|
|
141
141
|
height?: string;
|
|
142
142
|
alt?: string;
|
|
@@ -145,15 +145,15 @@ type Props$q = {
|
|
|
145
145
|
declare global {
|
|
146
146
|
namespace JSX {
|
|
147
147
|
interface IntrinsicElements {
|
|
148
|
-
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
148
|
+
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$t;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
declare const Image: React.ForwardRefExoticComponent<Props$
|
|
152
|
+
declare const Image: React.ForwardRefExoticComponent<Props$t & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
153
153
|
|
|
154
154
|
declare const Input: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
155
155
|
|
|
156
|
-
type Props$
|
|
156
|
+
type Props$s = {
|
|
157
157
|
href?: string | undefined;
|
|
158
158
|
italic?: boolean;
|
|
159
159
|
variant?: TypographyVariants;
|
|
@@ -165,18 +165,18 @@ type Props$p = {
|
|
|
165
165
|
declare global {
|
|
166
166
|
namespace JSX {
|
|
167
167
|
interface IntrinsicElements {
|
|
168
|
-
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$
|
|
168
|
+
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$s, 'children'>;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
declare const Link: React.ForwardRefExoticComponent<Props$
|
|
172
|
+
declare const Link: React.ForwardRefExoticComponent<Props$s & React.RefAttributes<HTMLAnchorElement>>;
|
|
173
173
|
|
|
174
|
-
type Props$
|
|
174
|
+
type Props$r = {
|
|
175
175
|
variant?: 'linear' | 'radial';
|
|
176
176
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
177
177
|
color?: Mode;
|
|
178
178
|
};
|
|
179
|
-
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
179
|
+
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$r>;
|
|
180
180
|
declare global {
|
|
181
181
|
namespace JSX {
|
|
182
182
|
interface IntrinsicElements {
|
|
@@ -185,22 +185,22 @@ declare global {
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
declare const Loader: React.ForwardRefExoticComponent<Props$
|
|
188
|
+
declare const Loader: React.ForwardRefExoticComponent<Props$r & React.RefAttributes<HTMLDivElement>>;
|
|
189
189
|
|
|
190
|
-
type Props$
|
|
190
|
+
type Props$q = {
|
|
191
191
|
width?: string;
|
|
192
192
|
height?: string;
|
|
193
193
|
};
|
|
194
194
|
declare global {
|
|
195
195
|
namespace JSX {
|
|
196
196
|
interface IntrinsicElements {
|
|
197
|
-
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
197
|
+
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$q>;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
declare const Logo: React.ForwardRefExoticComponent<Props$
|
|
201
|
+
declare const Logo: React.ForwardRefExoticComponent<Props$q & React.RefAttributes<HTMLDivElement>>;
|
|
202
202
|
|
|
203
|
-
type Props$
|
|
203
|
+
type Props$p = {
|
|
204
204
|
'password-label'?: string;
|
|
205
205
|
'password-placeholder'?: string;
|
|
206
206
|
'confirm-label'?: string;
|
|
@@ -226,11 +226,11 @@ type Props$m = {
|
|
|
226
226
|
declare global {
|
|
227
227
|
namespace JSX {
|
|
228
228
|
interface IntrinsicElements {
|
|
229
|
-
'descope-new-password': DescopeInputProps & Props$
|
|
229
|
+
'descope-new-password': DescopeInputProps & Props$p;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
233
|
+
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$p, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
234
234
|
|
|
235
235
|
declare global {
|
|
236
236
|
namespace JSX {
|
|
@@ -250,16 +250,16 @@ declare global {
|
|
|
250
250
|
}
|
|
251
251
|
declare const Password: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
252
252
|
|
|
253
|
-
type Props$
|
|
253
|
+
type Props$o = {
|
|
254
254
|
variant: 'countrySelection' | 'inputBox';
|
|
255
255
|
'default-code'?: string;
|
|
256
256
|
'phone-input-placeholder'?: string;
|
|
257
257
|
'country-input-placeholder'?: string;
|
|
258
258
|
'restrict-countries'?: string;
|
|
259
259
|
} & DescopeInputProps;
|
|
260
|
-
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$
|
|
260
|
+
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$o, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
261
261
|
|
|
262
|
-
type Props$
|
|
262
|
+
type Props$n = {
|
|
263
263
|
children?: JSX.Element[];
|
|
264
264
|
data?: string | Record<string, string>[];
|
|
265
265
|
};
|
|
@@ -272,9 +272,9 @@ declare global {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
|
-
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
275
|
+
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$n, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
276
276
|
|
|
277
|
-
type Props$
|
|
277
|
+
type Props$m = {
|
|
278
278
|
italic?: boolean;
|
|
279
279
|
variant?: string;
|
|
280
280
|
mode?: string;
|
|
@@ -285,18 +285,18 @@ type Props$j = {
|
|
|
285
285
|
declare global {
|
|
286
286
|
namespace JSX {
|
|
287
287
|
interface IntrinsicElements {
|
|
288
|
-
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
288
|
+
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$m;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
declare global {
|
|
293
293
|
namespace JSX {
|
|
294
294
|
interface IntrinsicElements {
|
|
295
|
-
'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
295
|
+
'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$m;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
declare const Text: React.ForwardRefExoticComponent<Omit<Props$
|
|
299
|
+
declare const Text: React.ForwardRefExoticComponent<Omit<Props$m & {
|
|
300
300
|
typography?: TypographyVariants;
|
|
301
301
|
} & Omit<React.HTMLProps<HTMLSpanElement>, "mode">, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
302
302
|
|
|
@@ -318,39 +318,39 @@ declare global {
|
|
|
318
318
|
}
|
|
319
319
|
declare const TextField: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
320
320
|
|
|
321
|
-
type Props$
|
|
321
|
+
type Props$l = {
|
|
322
322
|
width?: string;
|
|
323
323
|
height?: string;
|
|
324
324
|
};
|
|
325
325
|
declare global {
|
|
326
326
|
namespace JSX {
|
|
327
327
|
interface IntrinsicElements {
|
|
328
|
-
'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
328
|
+
'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$l>;
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
declare const TOTPImage: React.ForwardRefExoticComponent<Props$
|
|
332
|
+
declare const TOTPImage: React.ForwardRefExoticComponent<Props$l & React.RefAttributes<HTMLDivElement>>;
|
|
333
333
|
|
|
334
|
-
type Props$
|
|
335
|
-
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$
|
|
334
|
+
type Props$k = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
335
|
+
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$k, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
336
336
|
|
|
337
|
-
type Props$
|
|
337
|
+
type Props$j = {
|
|
338
338
|
width?: string;
|
|
339
339
|
height?: string;
|
|
340
340
|
};
|
|
341
341
|
declare global {
|
|
342
342
|
namespace JSX {
|
|
343
343
|
interface IntrinsicElements {
|
|
344
|
-
'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
344
|
+
'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$j>;
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
declare const NOTPImage: React.ForwardRefExoticComponent<Props$
|
|
348
|
+
declare const NOTPImage: React.ForwardRefExoticComponent<Props$j & React.RefAttributes<HTMLDivElement>>;
|
|
349
349
|
|
|
350
|
-
type Props$
|
|
351
|
-
declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$
|
|
350
|
+
type Props$i = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
351
|
+
declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$i, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
352
352
|
|
|
353
|
-
type Props$
|
|
353
|
+
type Props$h = {
|
|
354
354
|
title?: string;
|
|
355
355
|
description?: string;
|
|
356
356
|
icon?: string;
|
|
@@ -369,13 +369,13 @@ type Props$e = {
|
|
|
369
369
|
declare global {
|
|
370
370
|
namespace JSX {
|
|
371
371
|
interface IntrinsicElements {
|
|
372
|
-
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
372
|
+
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$h;
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
declare const UploadFile: React.ForwardRefExoticComponent<Props$
|
|
376
|
+
declare const UploadFile: React.ForwardRefExoticComponent<Props$h & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
377
377
|
|
|
378
|
-
type Props$
|
|
378
|
+
type Props$g = {
|
|
379
379
|
enabled?: boolean;
|
|
380
380
|
'site-key'?: string;
|
|
381
381
|
enterprise?: boolean;
|
|
@@ -387,20 +387,20 @@ declare global {
|
|
|
387
387
|
}
|
|
388
388
|
namespace JSX {
|
|
389
389
|
interface IntrinsicElements {
|
|
390
|
-
'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
390
|
+
'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$g;
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
declare const Recaptcha: React.ForwardRefExoticComponent<Props$
|
|
394
|
+
declare const Recaptcha: React.ForwardRefExoticComponent<Props$g & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
395
395
|
|
|
396
|
-
type Props$
|
|
396
|
+
type Props$f = DescopeInputProps & {
|
|
397
397
|
'default-value'?: string;
|
|
398
398
|
'allow-deselect'?: boolean;
|
|
399
399
|
};
|
|
400
400
|
declare global {
|
|
401
401
|
namespace JSX {
|
|
402
402
|
interface IntrinsicElements {
|
|
403
|
-
'descope-button-selection-group': Props$
|
|
403
|
+
'descope-button-selection-group': Props$f;
|
|
404
404
|
'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
|
|
405
405
|
value: string;
|
|
406
406
|
children: string;
|
|
@@ -426,10 +426,10 @@ type SingleSelectType = {
|
|
|
426
426
|
layout?: 'horizontal' | 'vertical';
|
|
427
427
|
'label-type'?: LabelType;
|
|
428
428
|
};
|
|
429
|
-
type Props$
|
|
430
|
-
declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$
|
|
429
|
+
type Props$e = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
|
|
430
|
+
declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$e, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
431
431
|
|
|
432
|
-
type Props$
|
|
432
|
+
type Props$d = DescopeInputProps & {
|
|
433
433
|
'default-value'?: string;
|
|
434
434
|
'item-label-path'?: string;
|
|
435
435
|
'item-value-path'?: string;
|
|
@@ -437,7 +437,7 @@ type Props$a = DescopeInputProps & {
|
|
|
437
437
|
declare global {
|
|
438
438
|
namespace JSX {
|
|
439
439
|
interface IntrinsicElements {
|
|
440
|
-
'descope-combobox': Props$
|
|
440
|
+
'descope-combobox': Props$d;
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
}
|
|
@@ -459,7 +459,7 @@ type Column = {
|
|
|
459
459
|
resizable: boolean;
|
|
460
460
|
};
|
|
461
461
|
};
|
|
462
|
-
type Props$
|
|
462
|
+
type Props$c = {
|
|
463
463
|
identifier: any;
|
|
464
464
|
children?: JSX.Element[];
|
|
465
465
|
size?: Omit<ComponentSize, 'xl'>;
|
|
@@ -475,7 +475,7 @@ declare global {
|
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
declare const Grid: React.ForwardRefExoticComponent<Props$
|
|
478
|
+
declare const Grid: React.ForwardRefExoticComponent<Props$c & React.RefAttributes<HTMLInputElement>>;
|
|
479
479
|
|
|
480
480
|
type ColumnProps = {
|
|
481
481
|
sortable?: boolean;
|
|
@@ -524,7 +524,7 @@ declare global {
|
|
|
524
524
|
}
|
|
525
525
|
declare const GridItemDetailsColumn: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<HTMLInputElement>>;
|
|
526
526
|
|
|
527
|
-
type Props$
|
|
527
|
+
type Props$b = {
|
|
528
528
|
mode?: string;
|
|
529
529
|
size?: string;
|
|
530
530
|
bordered?: boolean;
|
|
@@ -533,11 +533,11 @@ type Props$8 = {
|
|
|
533
533
|
declare global {
|
|
534
534
|
namespace JSX {
|
|
535
535
|
interface IntrinsicElements {
|
|
536
|
-
'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
536
|
+
'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$b;
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
declare const Badge: React.ForwardRefExoticComponent<Props$
|
|
540
|
+
declare const Badge: React.ForwardRefExoticComponent<Props$b & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
541
541
|
|
|
542
542
|
declare global {
|
|
543
543
|
namespace JSX {
|
|
@@ -546,12 +546,12 @@ declare global {
|
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
type Props$
|
|
549
|
+
type Props$a = {
|
|
550
550
|
opened?: boolean;
|
|
551
551
|
};
|
|
552
|
-
declare const Modal: React.ForwardRefExoticComponent<Props$
|
|
552
|
+
declare const Modal: React.ForwardRefExoticComponent<Props$a & React.RefAttributes<HTMLDivElement>>;
|
|
553
553
|
|
|
554
|
-
type Props$
|
|
554
|
+
type Props$9 = DescopeInputProps & {
|
|
555
555
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
556
556
|
'min-items-selection'?: number;
|
|
557
557
|
'max-items-selection'?: number;
|
|
@@ -559,7 +559,7 @@ type Props$6 = DescopeInputProps & {
|
|
|
559
559
|
declare global {
|
|
560
560
|
namespace JSX {
|
|
561
561
|
interface IntrinsicElements {
|
|
562
|
-
'descope-button-multi-selection-group': Props$
|
|
562
|
+
'descope-button-multi-selection-group': Props$9 & {
|
|
563
563
|
'default-values'?: string;
|
|
564
564
|
};
|
|
565
565
|
'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
|
|
@@ -586,16 +586,16 @@ type MultiSelectType = {
|
|
|
586
586
|
'max-items-selection'?: number;
|
|
587
587
|
'label-type'?: string;
|
|
588
588
|
};
|
|
589
|
-
type Props$
|
|
589
|
+
type Props$8 = Omit<React.ComponentProps<typeof ButtonMultiSelectionGroup>, 'default-values'> & MultiSelectType & {
|
|
590
590
|
'default-values'?: string[];
|
|
591
591
|
};
|
|
592
|
-
declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$
|
|
592
|
+
declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$8, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
593
593
|
|
|
594
594
|
type Item$1 = {
|
|
595
595
|
label: string;
|
|
596
596
|
value: string;
|
|
597
597
|
};
|
|
598
|
-
type Props$
|
|
598
|
+
type Props$7 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
|
|
599
599
|
'label-value'?: string;
|
|
600
600
|
'label-attr'?: string;
|
|
601
601
|
'button-label'?: string;
|
|
@@ -607,20 +607,20 @@ type Props$4 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'h
|
|
|
607
607
|
declare global {
|
|
608
608
|
namespace JSX {
|
|
609
609
|
interface IntrinsicElements {
|
|
610
|
-
'descope-mappings-field': Omit<Props$
|
|
610
|
+
'descope-mappings-field': Omit<Props$7, 'default-values' | 'options'> & {
|
|
611
611
|
'default-values'?: string;
|
|
612
612
|
options?: string;
|
|
613
613
|
};
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$
|
|
617
|
+
declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$7, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
618
618
|
|
|
619
619
|
type Item = {
|
|
620
620
|
label: string;
|
|
621
621
|
value: string;
|
|
622
622
|
};
|
|
623
|
-
type Props$
|
|
623
|
+
type Props$6 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
|
|
624
624
|
'label-value'?: string;
|
|
625
625
|
'label-attr'?: string;
|
|
626
626
|
'label-group'?: string;
|
|
@@ -632,13 +632,13 @@ type Props$3 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'h
|
|
|
632
632
|
declare global {
|
|
633
633
|
namespace JSX {
|
|
634
634
|
interface IntrinsicElements {
|
|
635
|
-
'descope-saml-group-mappings': Omit<Props$
|
|
635
|
+
'descope-saml-group-mappings': Omit<Props$6, 'options'> & {
|
|
636
636
|
options?: string;
|
|
637
637
|
};
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$
|
|
641
|
+
declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$6, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
642
642
|
|
|
643
643
|
declare global {
|
|
644
644
|
namespace JSX {
|
|
@@ -659,7 +659,7 @@ declare const UserAuthMethod: React.ForwardRefExoticComponent<Omit<React.ClassAt
|
|
|
659
659
|
buttonIcon?: string;
|
|
660
660
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
661
661
|
|
|
662
|
-
type Props$
|
|
662
|
+
type Props$5 = {
|
|
663
663
|
'badge-tooltip-text'?: string;
|
|
664
664
|
'badge-label'?: string;
|
|
665
665
|
value?: string;
|
|
@@ -671,13 +671,13 @@ type Props$2 = {
|
|
|
671
671
|
declare global {
|
|
672
672
|
namespace JSX {
|
|
673
673
|
interface IntrinsicElements {
|
|
674
|
-
'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
674
|
+
'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$5;
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
|
-
declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$
|
|
678
|
+
declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$5, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
679
679
|
|
|
680
|
-
type Props$
|
|
680
|
+
type Props$4 = {
|
|
681
681
|
img?: string;
|
|
682
682
|
'display-name'?: string;
|
|
683
683
|
size?: string;
|
|
@@ -686,23 +686,63 @@ type Props$1 = {
|
|
|
686
686
|
declare global {
|
|
687
687
|
namespace JSX {
|
|
688
688
|
interface IntrinsicElements {
|
|
689
|
-
'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
689
|
+
'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$4;
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
|
-
declare const Avatar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$
|
|
693
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$4, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
694
694
|
|
|
695
|
-
type Props = {
|
|
695
|
+
type Props$3 = {
|
|
696
696
|
lang?: 'xml' | 'html' | 'javascript' | 'css' | 'json';
|
|
697
697
|
inline?: boolean;
|
|
698
698
|
};
|
|
699
699
|
declare global {
|
|
700
700
|
namespace JSX {
|
|
701
701
|
interface IntrinsicElements {
|
|
702
|
-
'descope-code-snippet': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props;
|
|
702
|
+
'descope-code-snippet': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$3;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
declare const CodeSnippet: React.ForwardRefExoticComponent<Props$3 & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
707
|
+
|
|
708
|
+
type Props$2 = {
|
|
709
|
+
emptyState?: React.ReactNode;
|
|
710
|
+
children?: React.ReactNode[];
|
|
711
|
+
variant?: 'list' | 'tiles';
|
|
712
|
+
};
|
|
713
|
+
declare global {
|
|
714
|
+
namespace JSX {
|
|
715
|
+
interface IntrinsicElements {
|
|
716
|
+
'descope-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$2>;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
declare const List: React.ForwardRefExoticComponent<Props$2 & React.RefAttributes<HTMLDivElement>>;
|
|
721
|
+
|
|
722
|
+
type Props$1 = {
|
|
723
|
+
variant?: 'row' | 'tile';
|
|
724
|
+
children?: React.ReactNode;
|
|
725
|
+
};
|
|
726
|
+
declare global {
|
|
727
|
+
namespace JSX {
|
|
728
|
+
interface IntrinsicElements {
|
|
729
|
+
'descope-list-item': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$1>;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
declare const ListItem: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<HTMLDivElement>>;
|
|
734
|
+
|
|
735
|
+
type Props = {
|
|
736
|
+
emptyState?: React.ReactNode;
|
|
737
|
+
variant?: 'list' | 'tiles';
|
|
738
|
+
};
|
|
739
|
+
declare global {
|
|
740
|
+
namespace JSX {
|
|
741
|
+
interface IntrinsicElements {
|
|
742
|
+
'descope-apps-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props>;
|
|
703
743
|
}
|
|
704
744
|
}
|
|
705
745
|
}
|
|
706
|
-
declare const
|
|
746
|
+
declare const AppsList: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
707
747
|
|
|
708
|
-
export { Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, Divider, Grid, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, UploadFile, UserAttribute, UserAuthMethod, ReactComponent as apple, ReactComponent as discord, ReactComponent as facebook, ReactComponent as fingerprint, ReactComponent as github, ReactComponent as gitlab, ReactComponent as google, ReactComponent as linkedin, ReactComponent as microsoft, ReactComponent as passkey, ReactComponent as password, ReactComponent as plus, ReactComponent as slack, ReactComponent as sso, ReactComponent as whatsapp };
|
|
748
|
+
export { AppsList, Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, Divider, Grid, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, List, ListItem, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, UploadFile, UserAttribute, UserAuthMethod, ReactComponent as apple, ReactComponent as discord, ReactComponent as facebook, ReactComponent as fingerprint, ReactComponent as github, ReactComponent as gitlab, ReactComponent as google, ReactComponent as linkedin, ReactComponent as microsoft, ReactComponent as passkey, ReactComponent as password, ReactComponent as plus, ReactComponent as slack, ReactComponent as sso, ReactComponent as whatsapp };
|
package/dist/index.esm.js
CHANGED
|
@@ -440,4 +440,13 @@ Avatar.defaultProps = {
|
|
|
440
440
|
|
|
441
441
|
const CodeSnippet = React.forwardRef((props, ref) => React.createElement("descope-code-snippet", { ...props, ref: ref }));
|
|
442
442
|
|
|
443
|
-
|
|
443
|
+
const List = React.forwardRef(({ emptyState, children, ...props }, ref) => (React.createElement("descope-list", { ...props, ref: ref },
|
|
444
|
+
children,
|
|
445
|
+
React.createElement("div", { slot: "empty-state" }, emptyState))));
|
|
446
|
+
|
|
447
|
+
const ListItem = React.forwardRef((props, ref) => (React.createElement("descope-list-item", { ...props, ref: ref })));
|
|
448
|
+
|
|
449
|
+
const AppsList = React.forwardRef(({ emptyState, ...props }, ref) => (React.createElement("descope-apps-list", { ...props, ref: ref },
|
|
450
|
+
React.createElement("div", { slot: "empty-state" }, emptyState))));
|
|
451
|
+
|
|
452
|
+
export { AppsList, Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, Divider, Grid, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, List, ListItem, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, UploadFile, UserAttribute, UserAuthMethod, apple, discord, facebook, fingerprint, github, gitlab, google, linkedin, microsoft, passkey, password, plus, slack, sso, whatsapp };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.331",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"typescript": "^5.0.0"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@descope/web-components-ui": "1.0.
|
|
105
|
+
"@descope/web-components-ui": "1.0.368"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
108
|
"react": ">=17"
|