@descope/flow-components 2.0.244 → 2.0.245
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 +6 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.esm.js +6 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -287,7 +287,12 @@ Select.defaultProps = {
|
|
|
287
287
|
size: 'md'
|
|
288
288
|
};
|
|
289
289
|
|
|
290
|
-
const Text = React__default.default.forwardRef((
|
|
290
|
+
const Text = React__default.default.forwardRef(({ isEnriched, ...props }, ref) => {
|
|
291
|
+
if (isEnriched) {
|
|
292
|
+
return (React__default.default.createElement("descope-enriched-text", { ...props, ref: ref }, props.children));
|
|
293
|
+
}
|
|
294
|
+
return (React__default.default.createElement("descope-text", { ...props, ref: ref }, props.children));
|
|
295
|
+
});
|
|
291
296
|
|
|
292
297
|
const Textarea = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-text-area", { ...props, ref: ref }));
|
|
293
298
|
Textarea.defaultProps = {
|
package/dist/index.d.ts
CHANGED
|
@@ -354,6 +354,7 @@ type Props$i = {
|
|
|
354
354
|
italic?: boolean;
|
|
355
355
|
variant?: string;
|
|
356
356
|
mode?: string;
|
|
357
|
+
isEnriched?: boolean;
|
|
357
358
|
'full-width'?: boolean;
|
|
358
359
|
'text-align'?: TextAlign;
|
|
359
360
|
};
|
|
@@ -364,6 +365,13 @@ declare global {
|
|
|
364
365
|
}
|
|
365
366
|
}
|
|
366
367
|
}
|
|
368
|
+
declare global {
|
|
369
|
+
namespace JSX {
|
|
370
|
+
interface IntrinsicElements {
|
|
371
|
+
'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$i;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
367
375
|
declare const Text: React.ForwardRefExoticComponent<Omit<Props$i & {
|
|
368
376
|
typography?: TypographyVariants;
|
|
369
377
|
} & Omit<React.HTMLProps<HTMLSpanElement>, "mode">, "ref"> & React.RefAttributes<HTMLElement>>;
|
package/dist/index.esm.js
CHANGED
|
@@ -281,7 +281,12 @@ Select.defaultProps = {
|
|
|
281
281
|
size: 'md'
|
|
282
282
|
};
|
|
283
283
|
|
|
284
|
-
const Text = React.forwardRef((
|
|
284
|
+
const Text = React.forwardRef(({ isEnriched, ...props }, ref) => {
|
|
285
|
+
if (isEnriched) {
|
|
286
|
+
return (React.createElement("descope-enriched-text", { ...props, ref: ref }, props.children));
|
|
287
|
+
}
|
|
288
|
+
return (React.createElement("descope-text", { ...props, ref: ref }, props.children));
|
|
289
|
+
});
|
|
285
290
|
|
|
286
291
|
const Textarea = React.forwardRef((props, ref) => React.createElement("descope-text-area", { ...props, ref: ref }));
|
|
287
292
|
Textarea.defaultProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.245",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"typescript": "^5.0.0"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@descope/web-components-ui": "1.0.
|
|
103
|
+
"@descope/web-components-ui": "1.0.298"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"react": ">=17"
|