@descope/flow-components 2.0.113 → 2.0.115
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 +10 -1
- package/dist/index.d.ts +3 -8
- package/dist/index.esm.js +10 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -207,7 +207,16 @@ const Logo = React__default.default.forwardRef(({ width, height, ...props }, ref
|
|
|
207
207
|
|
|
208
208
|
const NewPassword = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-new-password", { ...props, ref: ref }));
|
|
209
209
|
|
|
210
|
-
const
|
|
210
|
+
const PhoneCountrySelection = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-phone-field", { ...props, ref: ref }));
|
|
211
|
+
|
|
212
|
+
const PhoneInputBox = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-phone-input-box-field", { ...props, ref: ref }));
|
|
213
|
+
|
|
214
|
+
const Phone = React__default.default.forwardRef(({ variant, ...props }, ref) => {
|
|
215
|
+
if (variant === 'inputBox') {
|
|
216
|
+
return React__default.default.createElement(PhoneInputBox, { ...props, ref: ref });
|
|
217
|
+
}
|
|
218
|
+
return React__default.default.createElement(PhoneCountrySelection, { ...props, ref: ref });
|
|
219
|
+
});
|
|
211
220
|
|
|
212
221
|
const Select = React__default.default.forwardRef(({ children, ...restProps }, ref) => (React__default.default.createElement("descope-combo-box", { ...restProps, ref: ref }, children)));
|
|
213
222
|
Select.defaultProps = {
|
package/dist/index.d.ts
CHANGED
|
@@ -273,18 +273,13 @@ declare global {
|
|
|
273
273
|
declare const Password: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
274
274
|
|
|
275
275
|
type Props$6 = {
|
|
276
|
+
variant: 'countrySelection' | 'inputBox';
|
|
276
277
|
'default-code'?: string;
|
|
277
278
|
'phone-input-placeholder'?: string;
|
|
278
279
|
'country-input-placeholder'?: string;
|
|
280
|
+
'restrict-countries'?: string;
|
|
279
281
|
};
|
|
280
|
-
declare
|
|
281
|
-
namespace JSX {
|
|
282
|
-
interface IntrinsicElements {
|
|
283
|
-
'descope-phone-field': DescopeInputProps & Props$6;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
declare const Phone: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$6, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
282
|
+
declare const Phone: React.ForwardRefExoticComponent<Props$6 & React.RefAttributes<HTMLInputElement>>;
|
|
288
283
|
|
|
289
284
|
type Props$5 = {
|
|
290
285
|
children?: JSX.Element[];
|
package/dist/index.esm.js
CHANGED
|
@@ -201,7 +201,16 @@ const Logo = React.forwardRef(({ width, height, ...props }, ref) => (React.creat
|
|
|
201
201
|
|
|
202
202
|
const NewPassword = React.forwardRef((props, ref) => React.createElement("descope-new-password", { ...props, ref: ref }));
|
|
203
203
|
|
|
204
|
-
const
|
|
204
|
+
const PhoneCountrySelection = React.forwardRef((props, ref) => React.createElement("descope-phone-field", { ...props, ref: ref }));
|
|
205
|
+
|
|
206
|
+
const PhoneInputBox = React.forwardRef((props, ref) => React.createElement("descope-phone-input-box-field", { ...props, ref: ref }));
|
|
207
|
+
|
|
208
|
+
const Phone = React.forwardRef(({ variant, ...props }, ref) => {
|
|
209
|
+
if (variant === 'inputBox') {
|
|
210
|
+
return React.createElement(PhoneInputBox, { ...props, ref: ref });
|
|
211
|
+
}
|
|
212
|
+
return React.createElement(PhoneCountrySelection, { ...props, ref: ref });
|
|
213
|
+
});
|
|
205
214
|
|
|
206
215
|
const Select = React.forwardRef(({ children, ...restProps }, ref) => (React.createElement("descope-combo-box", { ...restProps, ref: ref }, children)));
|
|
207
216
|
Select.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.115",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@babel/core": "7.23.
|
|
39
|
+
"@babel/core": "7.23.2",
|
|
40
40
|
"@babel/preset-env": "7.23.2",
|
|
41
41
|
"@babel/preset-react": "7.22.15",
|
|
42
42
|
"@babel/preset-typescript": "7.23.2",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"typescript": "^4.5.3"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@descope/web-components-ui": "1.0.
|
|
102
|
+
"@descope/web-components-ui": "1.0.176",
|
|
103
103
|
"rollup-plugin-dts": "^5.3.0"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|