@descope/flow-components 2.0.373 → 2.0.375

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 CHANGED
@@ -482,6 +482,11 @@ const SecurityQuestionsVerify = React__default.default.forwardRef(({ questions,
482
482
 
483
483
  const ThirdPartyAppLogo = React__default.default.forwardRef(({ ...props }, ref) => React__default.default.createElement("descope-third-party-app-logo", { ...props, ref: ref }));
484
484
 
485
+ const HybridField = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-hybrid-field", { ...props, ref: ref }));
486
+ HybridField.defaultProps = {
487
+ size: 'md'
488
+ };
489
+
485
490
  exports.AppsList = AppsList;
486
491
  exports.Avatar = Avatar;
487
492
  exports.Badge = Badge;
@@ -499,6 +504,7 @@ exports.GridCustomColumn = GridCustomColumn;
499
504
  exports.GridItemDetailsColumn = GridItemDetailsColumn;
500
505
  exports.GridSelectionColumn = GridSelectionColumn;
501
506
  exports.GridTextColumn = GridTextColumn;
507
+ exports.HybridField = HybridField;
502
508
  exports.Image = Image;
503
509
  exports.Input = Input;
504
510
  exports.Link = Link;
package/dist/index.d.ts CHANGED
@@ -52,8 +52,8 @@ declare const Switch: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "r
52
52
  type BooleanType = {
53
53
  type: 'switch' | 'checkbox';
54
54
  };
55
- type Props$B = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
56
- declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$B, "ref"> & React.RefAttributes<HTMLInputElement>>;
55
+ type Props$C = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
56
+ declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$C, "ref"> & React.RefAttributes<HTMLInputElement>>;
57
57
 
58
58
  declare global {
59
59
  namespace JSX {
@@ -75,17 +75,17 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
75
75
  'full-width'?: boolean;
76
76
  }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
77
77
 
78
- type Props$A = {
78
+ type Props$B = {
79
79
  digits?: number;
80
80
  };
81
81
  declare global {
82
82
  namespace JSX {
83
83
  interface IntrinsicElements {
84
- 'descope-passcode': DescopeInputProps & Props$A;
84
+ 'descope-passcode': DescopeInputProps & Props$B;
85
85
  }
86
86
  }
87
87
  }
88
- declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$A, "ref"> & React.RefAttributes<HTMLInputElement>>;
88
+ declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$B, "ref"> & React.RefAttributes<HTMLInputElement>>;
89
89
 
90
90
  type Never<T extends Record<string, any>> = {
91
91
  [K in keyof T]: never;
@@ -101,7 +101,7 @@ type ContainerAlignment = {
101
101
  'vertical-alignment'?: FlexAlignment;
102
102
  'space-between'?: 'sm' | 'md' | 'lg';
103
103
  };
104
- type Props$z = {
104
+ type Props$A = {
105
105
  direction?: 'row' | 'column';
106
106
  shadow?: 'md' | 'lg' | 'xl' | '2xl';
107
107
  'border-radius'?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
@@ -118,9 +118,9 @@ declare global {
118
118
  }
119
119
  }
120
120
  }
121
- declare const Container: React.ForwardRefExoticComponent<(Props$z & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
121
+ declare const Container: React.ForwardRefExoticComponent<(Props$A & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
122
122
 
123
- type Props$y = {
123
+ type Props$z = {
124
124
  vertical?: boolean;
125
125
  italic?: boolean;
126
126
  variant?: TypographyVariants;
@@ -130,15 +130,15 @@ type Props$y = {
130
130
  declare global {
131
131
  namespace JSX {
132
132
  interface IntrinsicElements {
133
- 'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$y, 'children'>;
133
+ 'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$z, 'children'>;
134
134
  }
135
135
  }
136
136
  }
137
- declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$y, "ref"> & React.RefAttributes<HTMLDivElement>>;
137
+ declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$z, "ref"> & React.RefAttributes<HTMLDivElement>>;
138
138
 
139
139
  declare const ReactComponent: (props: SVGProps<SVGSVGElement>) => JSX.Element;
140
140
 
141
- type Props$x = {
141
+ type Props$y = {
142
142
  width?: string;
143
143
  height?: string;
144
144
  alt?: string;
@@ -147,15 +147,15 @@ type Props$x = {
147
147
  declare global {
148
148
  namespace JSX {
149
149
  interface IntrinsicElements {
150
- 'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$x;
150
+ 'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$y;
151
151
  }
152
152
  }
153
153
  }
154
- declare const Image: React.ForwardRefExoticComponent<Props$x & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
154
+ declare const Image: React.ForwardRefExoticComponent<Props$y & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
155
155
 
156
156
  declare const Input: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
157
157
 
158
- type Props$w = {
158
+ type Props$x = {
159
159
  href?: string | undefined;
160
160
  italic?: boolean;
161
161
  variant?: TypographyVariants;
@@ -167,18 +167,18 @@ type Props$w = {
167
167
  declare global {
168
168
  namespace JSX {
169
169
  interface IntrinsicElements {
170
- 'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$w, 'children'>;
170
+ 'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$x, 'children'>;
171
171
  }
172
172
  }
173
173
  }
174
- declare const Link: React.ForwardRefExoticComponent<Props$w & React.RefAttributes<HTMLAnchorElement>>;
174
+ declare const Link: React.ForwardRefExoticComponent<Props$x & React.RefAttributes<HTMLAnchorElement>>;
175
175
 
176
- type Props$v = {
176
+ type Props$w = {
177
177
  variant?: 'linear' | 'radial';
178
178
  size?: 'xs' | 'sm' | 'md' | 'lg';
179
179
  color?: Mode;
180
180
  };
181
- type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$v>;
181
+ type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$w>;
182
182
  declare global {
183
183
  namespace JSX {
184
184
  interface IntrinsicElements {
@@ -187,22 +187,22 @@ declare global {
187
187
  }
188
188
  }
189
189
  }
190
- declare const Loader: React.ForwardRefExoticComponent<Props$v & React.RefAttributes<HTMLDivElement>>;
190
+ declare const Loader: React.ForwardRefExoticComponent<Props$w & React.RefAttributes<HTMLDivElement>>;
191
191
 
192
- type Props$u = {
192
+ type Props$v = {
193
193
  width?: string;
194
194
  height?: string;
195
195
  };
196
196
  declare global {
197
197
  namespace JSX {
198
198
  interface IntrinsicElements {
199
- 'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$u>;
199
+ 'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$v>;
200
200
  }
201
201
  }
202
202
  }
203
- declare const Logo: React.ForwardRefExoticComponent<Props$u & React.RefAttributes<HTMLDivElement>>;
203
+ declare const Logo: React.ForwardRefExoticComponent<Props$v & React.RefAttributes<HTMLDivElement>>;
204
204
 
205
- type Props$t = {
205
+ type Props$u = {
206
206
  'password-label'?: string;
207
207
  'password-placeholder'?: string;
208
208
  'confirm-label'?: string;
@@ -228,11 +228,11 @@ type Props$t = {
228
228
  declare global {
229
229
  namespace JSX {
230
230
  interface IntrinsicElements {
231
- 'descope-new-password': DescopeInputProps & Props$t;
231
+ 'descope-new-password': DescopeInputProps & Props$u;
232
232
  }
233
233
  }
234
234
  }
235
- declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$t, "ref"> & React.RefAttributes<HTMLInputElement>>;
235
+ declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$u, "ref"> & React.RefAttributes<HTMLInputElement>>;
236
236
 
237
237
  declare global {
238
238
  namespace JSX {
@@ -252,16 +252,16 @@ declare global {
252
252
  }
253
253
  declare const Password: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
254
254
 
255
- type Props$s = {
255
+ type Props$t = {
256
256
  variant: 'countrySelection' | 'inputBox';
257
257
  'default-code'?: string;
258
258
  'phone-input-placeholder'?: string;
259
259
  'country-input-placeholder'?: string;
260
260
  'restrict-countries'?: string;
261
261
  } & DescopeInputProps;
262
- declare const Phone: React.ForwardRefExoticComponent<Omit<Props$s, "ref"> & React.RefAttributes<HTMLInputElement>>;
262
+ declare const Phone: React.ForwardRefExoticComponent<Omit<Props$t, "ref"> & React.RefAttributes<HTMLInputElement>>;
263
263
 
264
- type Props$r = {
264
+ type Props$s = {
265
265
  children?: JSX.Element[];
266
266
  data?: string | Record<string, string>[];
267
267
  };
@@ -274,9 +274,9 @@ declare global {
274
274
  }
275
275
  }
276
276
  }
277
- declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$r, "ref"> & React.RefAttributes<HTMLInputElement>>;
277
+ declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$s, "ref"> & React.RefAttributes<HTMLInputElement>>;
278
278
 
279
- type Props$q = {
279
+ type Props$r = {
280
280
  italic?: boolean;
281
281
  variant?: string;
282
282
  mode?: string;
@@ -288,12 +288,12 @@ type Props$q = {
288
288
  declare global {
289
289
  namespace JSX {
290
290
  interface IntrinsicElements {
291
- 'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$q;
292
- 'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$q;
291
+ 'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$r;
292
+ 'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$r;
293
293
  }
294
294
  }
295
295
  }
296
- declare const Text: React.ForwardRefExoticComponent<Omit<Props$q & {
296
+ declare const Text: React.ForwardRefExoticComponent<Omit<Props$r & {
297
297
  typography?: TypographyVariants;
298
298
  } & Omit<React.HTMLProps<HTMLSpanElement>, "mode">, "ref"> & React.RefAttributes<HTMLElement>>;
299
299
 
@@ -315,39 +315,39 @@ declare global {
315
315
  }
316
316
  declare const TextField: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
317
317
 
318
- type Props$p = {
318
+ type Props$q = {
319
319
  width?: string;
320
320
  height?: string;
321
321
  };
322
322
  declare global {
323
323
  namespace JSX {
324
324
  interface IntrinsicElements {
325
- 'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$p>;
325
+ 'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$q>;
326
326
  }
327
327
  }
328
328
  }
329
- declare const TOTPImage: React.ForwardRefExoticComponent<Props$p & React.RefAttributes<HTMLDivElement>>;
329
+ declare const TOTPImage: React.ForwardRefExoticComponent<Props$q & React.RefAttributes<HTMLDivElement>>;
330
330
 
331
- type Props$o = Omit<React.ComponentProps<typeof Link>, 'href'>;
332
- declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$o, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
331
+ type Props$p = Omit<React.ComponentProps<typeof Link>, 'href'>;
332
+ declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$p, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
333
333
 
334
- type Props$n = {
334
+ type Props$o = {
335
335
  width?: string;
336
336
  height?: string;
337
337
  };
338
338
  declare global {
339
339
  namespace JSX {
340
340
  interface IntrinsicElements {
341
- 'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$n>;
341
+ 'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$o>;
342
342
  }
343
343
  }
344
344
  }
345
- declare const NOTPImage: React.ForwardRefExoticComponent<Props$n & React.RefAttributes<HTMLDivElement>>;
345
+ declare const NOTPImage: React.ForwardRefExoticComponent<Props$o & React.RefAttributes<HTMLDivElement>>;
346
346
 
347
- type Props$m = Omit<React.ComponentProps<typeof Link>, 'href'>;
348
- declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$m, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
347
+ type Props$n = Omit<React.ComponentProps<typeof Link>, 'href'>;
348
+ declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$n, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
349
349
 
350
- type Props$l = {
350
+ type Props$m = {
351
351
  title?: string;
352
352
  description?: string;
353
353
  icon?: string;
@@ -366,13 +366,13 @@ type Props$l = {
366
366
  declare global {
367
367
  namespace JSX {
368
368
  interface IntrinsicElements {
369
- 'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$l;
369
+ 'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$m;
370
370
  }
371
371
  }
372
372
  }
373
- declare const UploadFile: React.ForwardRefExoticComponent<Props$l & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
373
+ declare const UploadFile: React.ForwardRefExoticComponent<Props$m & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
374
374
 
375
- type Props$k = {
375
+ type Props$l = {
376
376
  enabled?: boolean;
377
377
  'site-key'?: string;
378
378
  enterprise?: boolean;
@@ -384,20 +384,20 @@ declare global {
384
384
  }
385
385
  namespace JSX {
386
386
  interface IntrinsicElements {
387
- 'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$k;
387
+ 'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$l;
388
388
  }
389
389
  }
390
390
  }
391
- declare const Recaptcha: React.ForwardRefExoticComponent<Props$k & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
391
+ declare const Recaptcha: React.ForwardRefExoticComponent<Props$l & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
392
392
 
393
- type Props$j = DescopeInputProps & {
393
+ type Props$k = DescopeInputProps & {
394
394
  'default-value'?: string;
395
395
  'allow-deselect'?: boolean;
396
396
  };
397
397
  declare global {
398
398
  namespace JSX {
399
399
  interface IntrinsicElements {
400
- 'descope-button-selection-group': Props$j;
400
+ 'descope-button-selection-group': Props$k;
401
401
  'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
402
402
  value: string;
403
403
  children: string;
@@ -423,10 +423,10 @@ type SingleSelectType = {
423
423
  layout?: 'horizontal' | 'vertical';
424
424
  'label-type'?: LabelType;
425
425
  };
426
- type Props$i = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
427
- declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$i, "ref"> & React.RefAttributes<HTMLInputElement>>;
426
+ type Props$j = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
427
+ declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$j, "ref"> & React.RefAttributes<HTMLInputElement>>;
428
428
 
429
- type Props$h = DescopeInputProps & {
429
+ type Props$i = DescopeInputProps & {
430
430
  'default-value'?: string;
431
431
  'item-label-path'?: string;
432
432
  'item-value-path'?: string;
@@ -434,7 +434,7 @@ type Props$h = DescopeInputProps & {
434
434
  declare global {
435
435
  namespace JSX {
436
436
  interface IntrinsicElements {
437
- 'descope-combobox': Props$h;
437
+ 'descope-combobox': Props$i;
438
438
  }
439
439
  }
440
440
  }
@@ -456,7 +456,7 @@ type Column = {
456
456
  resizable: boolean;
457
457
  };
458
458
  };
459
- type Props$g = {
459
+ type Props$h = {
460
460
  identifier: any;
461
461
  children?: JSX.Element[];
462
462
  size?: Omit<ComponentSize, 'xl'>;
@@ -472,7 +472,7 @@ declare global {
472
472
  }
473
473
  }
474
474
  }
475
- declare const Grid: React.ForwardRefExoticComponent<Props$g & React.RefAttributes<HTMLInputElement>>;
475
+ declare const Grid: React.ForwardRefExoticComponent<Props$h & React.RefAttributes<HTMLInputElement>>;
476
476
 
477
477
  type ColumnProps = {
478
478
  sortable?: boolean;
@@ -521,7 +521,7 @@ declare global {
521
521
  }
522
522
  declare const GridItemDetailsColumn: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<HTMLInputElement>>;
523
523
 
524
- type Props$f = {
524
+ type Props$g = {
525
525
  mode?: string;
526
526
  size?: string;
527
527
  bordered?: boolean;
@@ -530,11 +530,11 @@ type Props$f = {
530
530
  declare global {
531
531
  namespace JSX {
532
532
  interface IntrinsicElements {
533
- 'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$f;
533
+ 'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$g;
534
534
  }
535
535
  }
536
536
  }
537
- declare const Badge: React.ForwardRefExoticComponent<Props$f & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
537
+ declare const Badge: React.ForwardRefExoticComponent<Props$g & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
538
538
 
539
539
  declare global {
540
540
  namespace JSX {
@@ -543,12 +543,12 @@ declare global {
543
543
  }
544
544
  }
545
545
  }
546
- type Props$e = {
546
+ type Props$f = {
547
547
  opened?: boolean;
548
548
  };
549
- declare const Modal: React.ForwardRefExoticComponent<Props$e & React.RefAttributes<HTMLDivElement>>;
549
+ declare const Modal: React.ForwardRefExoticComponent<Props$f & React.RefAttributes<HTMLDivElement>>;
550
550
 
551
- type Props$d = DescopeInputProps & {
551
+ type Props$e = DescopeInputProps & {
552
552
  size?: 'xs' | 'sm' | 'md' | 'lg';
553
553
  'min-items-selection'?: number;
554
554
  'max-items-selection'?: number;
@@ -556,7 +556,7 @@ type Props$d = DescopeInputProps & {
556
556
  declare global {
557
557
  namespace JSX {
558
558
  interface IntrinsicElements {
559
- 'descope-button-multi-selection-group': Props$d & {
559
+ 'descope-button-multi-selection-group': Props$e & {
560
560
  'default-values'?: string;
561
561
  };
562
562
  'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
@@ -583,16 +583,16 @@ type MultiSelectType = {
583
583
  'max-items-selection'?: number;
584
584
  'label-type'?: string;
585
585
  };
586
- type Props$c = Omit<React.ComponentProps<typeof ButtonMultiSelectionGroup>, 'default-values'> & MultiSelectType & {
586
+ type Props$d = Omit<React.ComponentProps<typeof ButtonMultiSelectionGroup>, 'default-values'> & MultiSelectType & {
587
587
  'default-values'?: string[];
588
588
  };
589
- declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$c, "ref"> & React.RefAttributes<HTMLInputElement>>;
589
+ declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$d, "ref"> & React.RefAttributes<HTMLInputElement>>;
590
590
 
591
591
  type Item$2 = {
592
592
  label: string;
593
593
  value: string;
594
594
  };
595
- type Props$b = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
595
+ type Props$c = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
596
596
  'label-value'?: string;
597
597
  'label-attr'?: string;
598
598
  'button-label'?: string;
@@ -604,20 +604,20 @@ type Props$b = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'h
604
604
  declare global {
605
605
  namespace JSX {
606
606
  interface IntrinsicElements {
607
- 'descope-mappings-field': Omit<Props$b, 'default-values' | 'options'> & {
607
+ 'descope-mappings-field': Omit<Props$c, 'default-values' | 'options'> & {
608
608
  'default-values'?: string;
609
609
  options?: string;
610
610
  };
611
611
  }
612
612
  }
613
613
  }
614
- declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$b, "ref"> & React.RefAttributes<HTMLInputElement>>;
614
+ declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$c, "ref"> & React.RefAttributes<HTMLInputElement>>;
615
615
 
616
616
  type Item$1 = {
617
617
  label: string;
618
618
  value: string;
619
619
  };
620
- type Props$a = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
620
+ type Props$b = 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
  'label-group'?: string;
@@ -629,13 +629,13 @@ type Props$a = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'h
629
629
  declare global {
630
630
  namespace JSX {
631
631
  interface IntrinsicElements {
632
- 'descope-saml-group-mappings': Omit<Props$a, 'options'> & {
632
+ 'descope-saml-group-mappings': Omit<Props$b, 'options'> & {
633
633
  options?: string;
634
634
  };
635
635
  }
636
636
  }
637
637
  }
638
- declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$a, "ref"> & React.RefAttributes<HTMLInputElement>>;
638
+ declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$b, "ref"> & React.RefAttributes<HTMLInputElement>>;
639
639
 
640
640
  declare global {
641
641
  namespace JSX {
@@ -656,7 +656,7 @@ declare const UserAuthMethod: React.ForwardRefExoticComponent<Omit<React.ClassAt
656
656
  buttonIcon?: string;
657
657
  }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
658
658
 
659
- type Props$9 = {
659
+ type Props$a = {
660
660
  'badge-tooltip-text'?: string;
661
661
  'badge-label'?: string;
662
662
  value?: string;
@@ -668,13 +668,13 @@ type Props$9 = {
668
668
  declare global {
669
669
  namespace JSX {
670
670
  interface IntrinsicElements {
671
- 'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$9;
671
+ 'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$a;
672
672
  }
673
673
  }
674
674
  }
675
- declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$9, "ref"> & React.RefAttributes<HTMLButtonElement>>;
675
+ declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$a, "ref"> & React.RefAttributes<HTMLButtonElement>>;
676
676
 
677
- type Props$8 = {
677
+ type Props$9 = {
678
678
  img?: string;
679
679
  'display-name'?: string;
680
680
  size?: string;
@@ -683,26 +683,26 @@ type Props$8 = {
683
683
  declare global {
684
684
  namespace JSX {
685
685
  interface IntrinsicElements {
686
- 'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$8;
686
+ 'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$9;
687
687
  }
688
688
  }
689
689
  }
690
- declare const Avatar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$8, "ref"> & React.RefAttributes<HTMLButtonElement>>;
690
+ declare const Avatar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$9, "ref"> & React.RefAttributes<HTMLButtonElement>>;
691
691
 
692
- type Props$7 = {
692
+ type Props$8 = {
693
693
  lang?: 'xml' | 'html' | 'javascript' | 'css' | 'json';
694
694
  inline?: boolean;
695
695
  };
696
696
  declare global {
697
697
  namespace JSX {
698
698
  interface IntrinsicElements {
699
- 'descope-code-snippet': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$7;
699
+ 'descope-code-snippet': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$8;
700
700
  }
701
701
  }
702
702
  }
703
- declare const CodeSnippet: React.ForwardRefExoticComponent<Props$7 & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
703
+ declare const CodeSnippet: React.ForwardRefExoticComponent<Props$8 & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
704
704
 
705
- type Props$6 = {
705
+ type Props$7 = {
706
706
  emptyState?: React.ReactNode;
707
707
  children?: React.ReactNode[];
708
708
  variant?: 'list' | 'tiles';
@@ -710,26 +710,26 @@ type Props$6 = {
710
710
  declare global {
711
711
  namespace JSX {
712
712
  interface IntrinsicElements {
713
- 'descope-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$6>;
713
+ 'descope-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$7>;
714
714
  }
715
715
  }
716
716
  }
717
- declare const List: React.ForwardRefExoticComponent<Props$6 & React.RefAttributes<HTMLDivElement>>;
717
+ declare const List: React.ForwardRefExoticComponent<Props$7 & React.RefAttributes<HTMLDivElement>>;
718
718
 
719
- type Props$5 = {
719
+ type Props$6 = {
720
720
  variant?: 'row' | 'tile';
721
721
  children?: React.ReactNode;
722
722
  };
723
723
  declare global {
724
724
  namespace JSX {
725
725
  interface IntrinsicElements {
726
- 'descope-list-item': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$5>;
726
+ 'descope-list-item': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$6>;
727
727
  }
728
728
  }
729
729
  }
730
- declare const ListItem: React.ForwardRefExoticComponent<Props$5 & React.RefAttributes<HTMLDivElement>>;
730
+ declare const ListItem: React.ForwardRefExoticComponent<Props$6 & React.RefAttributes<HTMLDivElement>>;
731
731
 
732
- type Props$4 = {
732
+ type Props$5 = {
733
733
  emptyState?: React.ReactNode;
734
734
  variant?: 'list' | 'tiles';
735
735
  data?: any[];
@@ -738,18 +738,18 @@ type Props$4 = {
738
738
  declare global {
739
739
  namespace JSX {
740
740
  interface IntrinsicElements {
741
- 'descope-apps-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$4>;
741
+ 'descope-apps-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$5>;
742
742
  }
743
743
  }
744
744
  }
745
- declare const AppsList: React.ForwardRefExoticComponent<Props$4 & React.RefAttributes<HTMLDivElement>>;
745
+ declare const AppsList: React.ForwardRefExoticComponent<Props$5 & React.RefAttributes<HTMLDivElement>>;
746
746
 
747
747
  type Item = {
748
748
  desc: string;
749
749
  id: string;
750
750
  required?: boolean;
751
751
  };
752
- type Props$3 = {
752
+ type Props$4 = {
753
753
  variant?: 'checkbox' | 'switch';
754
754
  data?: Item[];
755
755
  readonly?: boolean;
@@ -758,17 +758,17 @@ type Props$3 = {
758
758
  declare global {
759
759
  namespace JSX {
760
760
  interface IntrinsicElements {
761
- 'descope-scopes-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$3>;
761
+ 'descope-scopes-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$4>;
762
762
  }
763
763
  }
764
764
  }
765
- declare const ScopesList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
765
+ declare const ScopesList: React.ForwardRefExoticComponent<Props$4 & React.RefAttributes<HTMLDivElement>>;
766
766
 
767
767
  type Question$1 = {
768
768
  id: string;
769
769
  text: string;
770
770
  };
771
- type Props$2 = {
771
+ type Props$3 = {
772
772
  questions?: Question$1[];
773
773
  readonly?: boolean;
774
774
  size?: 'xs' | 'sm' | 'md' | 'lg';
@@ -783,17 +783,17 @@ type Props$2 = {
783
783
  declare global {
784
784
  namespace JSX {
785
785
  interface IntrinsicElements {
786
- 'descope-security-questions-setup': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$2>;
786
+ 'descope-security-questions-setup': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$3>;
787
787
  }
788
788
  }
789
789
  }
790
- declare const SecurityQuestionsSetup: React.ForwardRefExoticComponent<Props$2 & React.RefAttributes<HTMLDivElement>>;
790
+ declare const SecurityQuestionsSetup: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
791
791
 
792
792
  type Question = {
793
793
  id: string;
794
794
  text: string;
795
795
  };
796
- type Props$1 = {
796
+ type Props$2 = {
797
797
  questions?: Question[];
798
798
  readonly?: boolean;
799
799
  size?: 'xs' | 'sm' | 'md' | 'lg';
@@ -807,23 +807,23 @@ type Props$1 = {
807
807
  declare global {
808
808
  namespace JSX {
809
809
  interface IntrinsicElements {
810
- 'descope-security-questions-verify': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$1>;
810
+ 'descope-security-questions-verify': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$2>;
811
811
  }
812
812
  }
813
813
  }
814
- declare const SecurityQuestionsVerify: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<HTMLDivElement>>;
814
+ declare const SecurityQuestionsVerify: React.ForwardRefExoticComponent<Props$2 & React.RefAttributes<HTMLDivElement>>;
815
815
 
816
- type Props = {
816
+ type Props$1 = {
817
817
  size: 'xs' | 'sm' | 'md' | 'lg';
818
818
  };
819
819
  declare global {
820
820
  namespace JSX {
821
821
  interface IntrinsicElements {
822
- 'descope-third-party-app-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props>;
822
+ 'descope-third-party-app-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$1>;
823
823
  }
824
824
  }
825
825
  }
826
- declare const ThirdPartyAppLogo: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
826
+ declare const ThirdPartyAppLogo: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<HTMLDivElement>>;
827
827
 
828
828
  declare global {
829
829
  namespace JSX {
@@ -834,4 +834,31 @@ declare global {
834
834
  }
835
835
  declare const DateField: React.ForwardRefExoticComponent<Omit<Omit<DescopeInputProps, "external-input">, "ref"> & React.RefAttributes<HTMLInputElement>>;
836
836
 
837
- export { AppsList, Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, DateField, Divider, Grid, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, List, ListItem, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, ScopesList, SecurityQuestionsSetup, SecurityQuestionsVerify, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, ThirdPartyAppLogo, UploadFile, UserAttribute, UserAuthMethod, ReactComponent as apple, ReactComponent as authenticator, ReactComponent as discord, ReactComponent as edit, 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 reload, ReactComponent as slack, ReactComponent as sso, ReactComponent as whatsapp };
837
+ type Props = {
838
+ variant?: 'countrySelection' | 'inputBox';
839
+ 'default-code'?: string;
840
+ 'phone-input-label'?: string;
841
+ 'phone-input-placeholder'?: string;
842
+ 'restrict-countries'?: string;
843
+ 'full-width'?: boolean;
844
+ bordered?: boolean;
845
+ label?: string;
846
+ placeholder?: string;
847
+ size?: ComponentSize;
848
+ 'helper-text'?: string;
849
+ 'data-errormessage-pattern-mismatch-email'?: string;
850
+ 'data-errormessage-value-missing-email'?: string;
851
+ 'data-errormessage-value-missing-phone'?: string;
852
+ 'label-type'?: LabelType;
853
+ 'external-input'?: boolean;
854
+ };
855
+ declare global {
856
+ namespace JSX {
857
+ interface IntrinsicElements {
858
+ 'descope-hybrid-field': React.DetailedHTMLProps<React.HTMLAttributes<HTMLInputElement>, HTMLInputElement> & PropsToAttrs<Props>;
859
+ }
860
+ }
861
+ }
862
+ declare const HybridField: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
863
+
864
+ export { AppsList, Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, DateField, Divider, Grid, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, HybridField, Image, Input, Link, List, ListItem, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, ScopesList, SecurityQuestionsSetup, SecurityQuestionsVerify, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, ThirdPartyAppLogo, UploadFile, UserAttribute, UserAuthMethod, ReactComponent as apple, ReactComponent as authenticator, ReactComponent as discord, ReactComponent as edit, 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 reload, ReactComponent as slack, ReactComponent as sso, ReactComponent as whatsapp };
package/dist/index.esm.js CHANGED
@@ -476,4 +476,9 @@ const SecurityQuestionsVerify = React.forwardRef(({ questions, ...props }, ref)
476
476
 
477
477
  const ThirdPartyAppLogo = React.forwardRef(({ ...props }, ref) => React.createElement("descope-third-party-app-logo", { ...props, ref: ref }));
478
478
 
479
- export { AppsList, Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, DateField, Divider, Grid, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, List, ListItem, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, ScopesList, SecurityQuestionsSetup, SecurityQuestionsVerify, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, ThirdPartyAppLogo, UploadFile, UserAttribute, UserAuthMethod, apple, authenticator, discord, edit, facebook, fingerprint, github, gitlab, google, linkedin, microsoft, passkey, password, plus, reload, slack, sso, whatsapp };
479
+ const HybridField = React.forwardRef((props, ref) => React.createElement("descope-hybrid-field", { ...props, ref: ref }));
480
+ HybridField.defaultProps = {
481
+ size: 'md'
482
+ };
483
+
484
+ export { AppsList, Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, DateField, Divider, Grid, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, HybridField, Image, Input, Link, List, ListItem, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, ScopesList, SecurityQuestionsSetup, SecurityQuestionsVerify, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, ThirdPartyAppLogo, UploadFile, UserAttribute, UserAuthMethod, apple, authenticator, discord, edit, facebook, fingerprint, github, gitlab, google, linkedin, microsoft, passkey, password, plus, reload, slack, sso, whatsapp };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.373",
3
+ "version": "2.0.375",
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.402"
105
+ "@descope/web-components-ui": "1.0.404"
106
106
  },
107
107
  "peerDependencies": {
108
108
  "react": ">=17"