@descope/flow-components 2.0.195 → 2.0.196
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 +15 -0
- package/dist/index.d.ts +131 -50
- package/dist/index.esm.js +11 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -276,6 +276,17 @@ const SingleSelect = React__default.default.forwardRef(({ variant, data, allowCl
|
|
|
276
276
|
return (React__default.default.createElement(ComboBox, { "clear-button-visible": allowClearValue, "item-label-path": "data-name", "item-value-path": "data-id", ...props, ref: ref }, data?.map(({ label, value }) => (React__default.default.createElement("span", { "data-name": label, "data-id": value, key: value }, label)))));
|
|
277
277
|
});
|
|
278
278
|
|
|
279
|
+
const Grid = React__default.default.forwardRef(({ ...props }, ref) => (React__default.default.createElement("descope-grid", { ...props, ref: ref })));
|
|
280
|
+
|
|
281
|
+
const GridCustomColumn = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-grid-custom-column", { ...props, ref: ref }));
|
|
282
|
+
|
|
283
|
+
const GridSelectionColumn = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-grid-selection-column", { ...props, ref: ref }));
|
|
284
|
+
|
|
285
|
+
const GridTextColumn = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-grid-text-column", { ...props, ref: ref }));
|
|
286
|
+
|
|
287
|
+
const Badge = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-badge", { ...props, ref: ref }));
|
|
288
|
+
|
|
289
|
+
exports.Badge = Badge;
|
|
279
290
|
exports.Boolean = Boolean;
|
|
280
291
|
exports.Button = Button;
|
|
281
292
|
exports.Checkbox = Checkbox;
|
|
@@ -283,6 +294,10 @@ exports.Code = Code;
|
|
|
283
294
|
exports.ComboBox = ComboBox;
|
|
284
295
|
exports.Container = Container;
|
|
285
296
|
exports.Divider = Divider;
|
|
297
|
+
exports.Grid = Grid;
|
|
298
|
+
exports.GridCustomColumn = GridCustomColumn;
|
|
299
|
+
exports.GridSelectionColumn = GridSelectionColumn;
|
|
300
|
+
exports.GridTextColumn = GridTextColumn;
|
|
286
301
|
exports.Image = Image;
|
|
287
302
|
exports.Input = Input;
|
|
288
303
|
exports.Link = Link;
|
package/dist/index.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ declare const Switch: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "r
|
|
|
44
44
|
type BooleanType = {
|
|
45
45
|
type: 'switch' | 'checkbox';
|
|
46
46
|
};
|
|
47
|
-
type Props$
|
|
48
|
-
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$
|
|
47
|
+
type Props$k = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
|
|
48
|
+
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$k, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
49
49
|
|
|
50
50
|
declare global {
|
|
51
51
|
namespace JSX {
|
|
@@ -67,17 +67,17 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
|
|
|
67
67
|
'full-width'?: boolean;
|
|
68
68
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
69
69
|
|
|
70
|
-
type Props$
|
|
70
|
+
type Props$j = {
|
|
71
71
|
digits?: number;
|
|
72
72
|
};
|
|
73
73
|
declare global {
|
|
74
74
|
namespace JSX {
|
|
75
75
|
interface IntrinsicElements {
|
|
76
|
-
'descope-passcode': DescopeInputProps & Props$
|
|
76
|
+
'descope-passcode': DescopeInputProps & Props$j;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
80
|
+
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$j, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
81
81
|
|
|
82
82
|
type Never<T extends Record<string, any>> = {
|
|
83
83
|
[K in keyof T]: never;
|
|
@@ -93,7 +93,7 @@ type ContainerAlignment = {
|
|
|
93
93
|
'vertical-alignment'?: FlexAlignment;
|
|
94
94
|
'space-between'?: 'sm' | 'md' | 'lg';
|
|
95
95
|
};
|
|
96
|
-
type Props$
|
|
96
|
+
type Props$i = {
|
|
97
97
|
direction?: 'row' | 'column';
|
|
98
98
|
shadow?: 'md' | 'lg' | 'xl' | '2xl';
|
|
99
99
|
'border-radius'?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
@@ -109,9 +109,9 @@ declare global {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
declare const Container: React.ForwardRefExoticComponent<(Props$
|
|
112
|
+
declare const Container: React.ForwardRefExoticComponent<(Props$i & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
|
|
113
113
|
|
|
114
|
-
type Props$
|
|
114
|
+
type Props$h = {
|
|
115
115
|
vertical?: boolean;
|
|
116
116
|
italic?: boolean;
|
|
117
117
|
variant?: TypographyVariants;
|
|
@@ -121,11 +121,11 @@ type Props$f = {
|
|
|
121
121
|
declare global {
|
|
122
122
|
namespace JSX {
|
|
123
123
|
interface IntrinsicElements {
|
|
124
|
-
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$
|
|
124
|
+
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$h, 'children'>;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$
|
|
128
|
+
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$h, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
129
129
|
|
|
130
130
|
declare const _default$b: ({ noColor }: {
|
|
131
131
|
noColor: any;
|
|
@@ -175,7 +175,7 @@ declare const _default: ({ noColor }: {
|
|
|
175
175
|
noColor: any;
|
|
176
176
|
}) => React.JSX.Element;
|
|
177
177
|
|
|
178
|
-
type Props$
|
|
178
|
+
type Props$g = {
|
|
179
179
|
width?: string;
|
|
180
180
|
height?: string;
|
|
181
181
|
alt?: string;
|
|
@@ -184,15 +184,15 @@ type Props$e = {
|
|
|
184
184
|
declare global {
|
|
185
185
|
namespace JSX {
|
|
186
186
|
interface IntrinsicElements {
|
|
187
|
-
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
187
|
+
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$g;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
declare const Image: React.ForwardRefExoticComponent<Props$
|
|
191
|
+
declare const Image: React.ForwardRefExoticComponent<Props$g & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
192
192
|
|
|
193
193
|
declare const Input: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
194
194
|
|
|
195
|
-
type Props$
|
|
195
|
+
type Props$f = {
|
|
196
196
|
href?: string | undefined;
|
|
197
197
|
italic?: boolean;
|
|
198
198
|
variant?: TypographyVariants;
|
|
@@ -204,18 +204,18 @@ type Props$d = {
|
|
|
204
204
|
declare global {
|
|
205
205
|
namespace JSX {
|
|
206
206
|
interface IntrinsicElements {
|
|
207
|
-
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$
|
|
207
|
+
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$f, 'children'>;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
declare const Link: React.ForwardRefExoticComponent<Props$
|
|
211
|
+
declare const Link: React.ForwardRefExoticComponent<Props$f & React.RefAttributes<HTMLAnchorElement>>;
|
|
212
212
|
|
|
213
|
-
type Props$
|
|
213
|
+
type Props$e = {
|
|
214
214
|
variant?: 'linear' | 'radial';
|
|
215
215
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
216
216
|
color?: Mode;
|
|
217
217
|
};
|
|
218
|
-
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
218
|
+
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$e>;
|
|
219
219
|
declare global {
|
|
220
220
|
namespace JSX {
|
|
221
221
|
interface IntrinsicElements {
|
|
@@ -224,22 +224,22 @@ declare global {
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
declare const Loader: React.ForwardRefExoticComponent<Props$
|
|
227
|
+
declare const Loader: React.ForwardRefExoticComponent<Props$e & React.RefAttributes<HTMLDivElement>>;
|
|
228
228
|
|
|
229
|
-
type Props$
|
|
229
|
+
type Props$d = {
|
|
230
230
|
width?: string;
|
|
231
231
|
height?: string;
|
|
232
232
|
};
|
|
233
233
|
declare global {
|
|
234
234
|
namespace JSX {
|
|
235
235
|
interface IntrinsicElements {
|
|
236
|
-
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
236
|
+
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$d>;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
declare const Logo: React.ForwardRefExoticComponent<Props$
|
|
240
|
+
declare const Logo: React.ForwardRefExoticComponent<Props$d & React.RefAttributes<HTMLDivElement>>;
|
|
241
241
|
|
|
242
|
-
type Props$
|
|
242
|
+
type Props$c = {
|
|
243
243
|
'password-label'?: string;
|
|
244
244
|
'password-placeholder'?: string;
|
|
245
245
|
'confirm-label'?: string;
|
|
@@ -249,11 +249,11 @@ type Props$a = {
|
|
|
249
249
|
declare global {
|
|
250
250
|
namespace JSX {
|
|
251
251
|
interface IntrinsicElements {
|
|
252
|
-
'descope-new-password': DescopeInputProps & Props$
|
|
252
|
+
'descope-new-password': DescopeInputProps & Props$c;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
256
|
+
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$c, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
257
257
|
|
|
258
258
|
declare global {
|
|
259
259
|
namespace JSX {
|
|
@@ -273,16 +273,16 @@ declare global {
|
|
|
273
273
|
}
|
|
274
274
|
declare const Password: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
275
275
|
|
|
276
|
-
type Props$
|
|
276
|
+
type Props$b = {
|
|
277
277
|
variant: 'countrySelection' | 'inputBox';
|
|
278
278
|
'default-code'?: string;
|
|
279
279
|
'phone-input-placeholder'?: string;
|
|
280
280
|
'country-input-placeholder'?: string;
|
|
281
281
|
'restrict-countries'?: string;
|
|
282
282
|
} & DescopeInputProps;
|
|
283
|
-
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$
|
|
283
|
+
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$b, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
284
284
|
|
|
285
|
-
type Props$
|
|
285
|
+
type Props$a = {
|
|
286
286
|
children?: JSX.Element[];
|
|
287
287
|
};
|
|
288
288
|
declare global {
|
|
@@ -292,9 +292,9 @@ declare global {
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
295
|
+
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$a, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
296
296
|
|
|
297
|
-
type Props$
|
|
297
|
+
type Props$9 = {
|
|
298
298
|
italic?: boolean;
|
|
299
299
|
variant?: string;
|
|
300
300
|
mode?: string;
|
|
@@ -304,11 +304,11 @@ type Props$7 = {
|
|
|
304
304
|
declare global {
|
|
305
305
|
namespace JSX {
|
|
306
306
|
interface IntrinsicElements {
|
|
307
|
-
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
307
|
+
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$9;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
declare const Text: React.ForwardRefExoticComponent<Omit<Props$
|
|
311
|
+
declare const Text: React.ForwardRefExoticComponent<Omit<Props$9 & {
|
|
312
312
|
typography?: TypographyVariants;
|
|
313
313
|
} & Omit<React.HTMLProps<HTMLSpanElement>, "mode">, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
314
314
|
|
|
@@ -330,23 +330,23 @@ declare global {
|
|
|
330
330
|
}
|
|
331
331
|
declare const TextField: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
332
332
|
|
|
333
|
-
type Props$
|
|
333
|
+
type Props$8 = {
|
|
334
334
|
width?: string;
|
|
335
335
|
height?: string;
|
|
336
336
|
};
|
|
337
337
|
declare global {
|
|
338
338
|
namespace JSX {
|
|
339
339
|
interface IntrinsicElements {
|
|
340
|
-
'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
340
|
+
'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$8>;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
declare const TOTPImage: React.ForwardRefExoticComponent<Props$
|
|
344
|
+
declare const TOTPImage: React.ForwardRefExoticComponent<Props$8 & React.RefAttributes<HTMLDivElement>>;
|
|
345
345
|
|
|
346
|
-
type Props$
|
|
347
|
-
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$
|
|
346
|
+
type Props$7 = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
347
|
+
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$7, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
348
348
|
|
|
349
|
-
type Props$
|
|
349
|
+
type Props$6 = {
|
|
350
350
|
title?: string;
|
|
351
351
|
description?: string;
|
|
352
352
|
icon?: string;
|
|
@@ -365,13 +365,13 @@ type Props$4 = {
|
|
|
365
365
|
declare global {
|
|
366
366
|
namespace JSX {
|
|
367
367
|
interface IntrinsicElements {
|
|
368
|
-
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
368
|
+
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$6;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
declare const UploadFile: React.ForwardRefExoticComponent<Props$
|
|
372
|
+
declare const UploadFile: React.ForwardRefExoticComponent<Props$6 & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
373
373
|
|
|
374
|
-
type Props$
|
|
374
|
+
type Props$5 = {
|
|
375
375
|
enabled?: boolean;
|
|
376
376
|
'site-key'?: string;
|
|
377
377
|
enterprise?: boolean;
|
|
@@ -383,20 +383,20 @@ declare global {
|
|
|
383
383
|
}
|
|
384
384
|
namespace JSX {
|
|
385
385
|
interface IntrinsicElements {
|
|
386
|
-
'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
386
|
+
'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$5;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
declare const Recaptcha: React.ForwardRefExoticComponent<Props$
|
|
390
|
+
declare const Recaptcha: React.ForwardRefExoticComponent<Props$5 & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
391
391
|
|
|
392
|
-
type Props$
|
|
392
|
+
type Props$4 = DescopeInputProps & {
|
|
393
393
|
'default-value'?: string;
|
|
394
394
|
'allow-deselect'?: boolean;
|
|
395
395
|
};
|
|
396
396
|
declare global {
|
|
397
397
|
namespace JSX {
|
|
398
398
|
interface IntrinsicElements {
|
|
399
|
-
'descope-button-selection-group': Props$
|
|
399
|
+
'descope-button-selection-group': Props$4;
|
|
400
400
|
'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
|
|
401
401
|
value: string;
|
|
402
402
|
children: string;
|
|
@@ -420,10 +420,10 @@ type SingleSelectType = {
|
|
|
420
420
|
data?: Item[];
|
|
421
421
|
allowClearValue?: boolean;
|
|
422
422
|
};
|
|
423
|
-
type Props$
|
|
424
|
-
declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$
|
|
423
|
+
type Props$3 = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
|
|
424
|
+
declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$3, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
425
425
|
|
|
426
|
-
type Props = DescopeInputProps & {
|
|
426
|
+
type Props$2 = DescopeInputProps & {
|
|
427
427
|
'default-value'?: string;
|
|
428
428
|
'item-label-path'?: string;
|
|
429
429
|
'item-value-path'?: string;
|
|
@@ -431,7 +431,7 @@ type Props = DescopeInputProps & {
|
|
|
431
431
|
declare global {
|
|
432
432
|
namespace JSX {
|
|
433
433
|
interface IntrinsicElements {
|
|
434
|
-
'descope-combobox': Props;
|
|
434
|
+
'descope-combobox': Props$2;
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
}
|
|
@@ -443,4 +443,85 @@ declare const ComboBox: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & De
|
|
|
443
443
|
children?: JSX.Element[];
|
|
444
444
|
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
445
445
|
|
|
446
|
-
|
|
446
|
+
type Column = {
|
|
447
|
+
path: '';
|
|
448
|
+
header: string;
|
|
449
|
+
type: 'selection' | 'text';
|
|
450
|
+
attrs: {
|
|
451
|
+
frozen: boolean;
|
|
452
|
+
'auto-width': boolean;
|
|
453
|
+
resizable: boolean;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
type Props$1 = {
|
|
457
|
+
identifier: any;
|
|
458
|
+
children?: JSX.Element[];
|
|
459
|
+
size?: Omit<ComponentSize, 'xl'>;
|
|
460
|
+
bordered?: boolean;
|
|
461
|
+
columns?: Column[];
|
|
462
|
+
'column-reordering-allowed'?: boolean;
|
|
463
|
+
data?: Record<string, any>;
|
|
464
|
+
};
|
|
465
|
+
declare global {
|
|
466
|
+
namespace JSX {
|
|
467
|
+
interface IntrinsicElements {
|
|
468
|
+
'descope-grid': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
declare const Grid: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<HTMLInputElement>>;
|
|
473
|
+
|
|
474
|
+
type ColumnProps = {
|
|
475
|
+
sortable?: boolean;
|
|
476
|
+
path: string;
|
|
477
|
+
header: string;
|
|
478
|
+
resizable?: boolean;
|
|
479
|
+
'auto-width?': boolean;
|
|
480
|
+
frozen?: boolean;
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
declare global {
|
|
484
|
+
namespace JSX {
|
|
485
|
+
interface IntrinsicElements {
|
|
486
|
+
'descope-grid-custom-column': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
declare const GridCustomColumn: React.ForwardRefExoticComponent<ColumnProps & {
|
|
491
|
+
children: JSX.Element[];
|
|
492
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
493
|
+
|
|
494
|
+
declare global {
|
|
495
|
+
namespace JSX {
|
|
496
|
+
interface IntrinsicElements {
|
|
497
|
+
'descope-grid-selection-column': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
declare const GridSelectionColumn: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<HTMLInputElement>>;
|
|
502
|
+
|
|
503
|
+
declare global {
|
|
504
|
+
namespace JSX {
|
|
505
|
+
interface IntrinsicElements {
|
|
506
|
+
'descope-grid-text-column': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
declare const GridTextColumn: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<HTMLInputElement>>;
|
|
511
|
+
|
|
512
|
+
type Props = {
|
|
513
|
+
mode?: string;
|
|
514
|
+
size?: string;
|
|
515
|
+
bordered?: boolean;
|
|
516
|
+
'full-width': boolean;
|
|
517
|
+
};
|
|
518
|
+
declare global {
|
|
519
|
+
namespace JSX {
|
|
520
|
+
interface IntrinsicElements {
|
|
521
|
+
'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
declare const Badge: React.ForwardRefExoticComponent<Props & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
526
|
+
|
|
527
|
+
export { Badge, Boolean, Button, Checkbox, Code, ComboBox, Container, Divider, Grid, GridCustomColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, Loader, Logo, NewPassword, NumberField, Password, Phone, Recaptcha, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, UploadFile, _default$b as apple, _default$2 as discord, _default$a as facebook, _default$8 as fingerprint, _default$6 as github, _default$5 as gitlab, _default$4 as google, _default$1 as linkedin, _default$3 as microsoft, _default$7 as passkey, _default$9 as slack, _default as sso };
|
package/dist/index.esm.js
CHANGED
|
@@ -270,4 +270,14 @@ const SingleSelect = React.forwardRef(({ variant, data, allowClearValue, ...prop
|
|
|
270
270
|
return (React.createElement(ComboBox, { "clear-button-visible": allowClearValue, "item-label-path": "data-name", "item-value-path": "data-id", ...props, ref: ref }, data?.map(({ label, value }) => (React.createElement("span", { "data-name": label, "data-id": value, key: value }, label)))));
|
|
271
271
|
});
|
|
272
272
|
|
|
273
|
-
|
|
273
|
+
const Grid = React.forwardRef(({ ...props }, ref) => (React.createElement("descope-grid", { ...props, ref: ref })));
|
|
274
|
+
|
|
275
|
+
const GridCustomColumn = React.forwardRef((props, ref) => React.createElement("descope-grid-custom-column", { ...props, ref: ref }));
|
|
276
|
+
|
|
277
|
+
const GridSelectionColumn = React.forwardRef((props, ref) => React.createElement("descope-grid-selection-column", { ...props, ref: ref }));
|
|
278
|
+
|
|
279
|
+
const GridTextColumn = React.forwardRef((props, ref) => React.createElement("descope-grid-text-column", { ...props, ref: ref }));
|
|
280
|
+
|
|
281
|
+
const Badge = React.forwardRef((props, ref) => React.createElement("descope-badge", { ...props, ref: ref }));
|
|
282
|
+
|
|
283
|
+
export { Badge, Boolean, Button, Checkbox, Code, ComboBox, Container, Divider, Grid, GridCustomColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, Loader, Logo, NewPassword, NumberField, Password, Phone, Recaptcha, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, UploadFile, apple, discord, facebook, fingerprint, github, gitlab, google, linkedin, microsoft, passkey, slack, sso };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.196",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"rollup-plugin-dts": "^6.0.0"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@descope/web-components-ui": "1.0.
|
|
103
|
+
"@descope/web-components-ui": "1.0.244"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"react": ">=17"
|