@descope/flow-components 2.0.65 → 2.0.67
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 +5 -5
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +5 -5
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -128,7 +128,7 @@ const Container = React__default.default.forwardRef(({ background, justify, padd
|
|
|
128
128
|
'st-justify-content': justifyContent[justify],
|
|
129
129
|
'st-background-color': background,
|
|
130
130
|
'st-host-width': width,
|
|
131
|
-
'st-gap': spaceBetween && `${Number.
|
|
131
|
+
'st-gap': spaceBetween && `${Number.parseFloat(spaceBetween) / 4}rem`
|
|
132
132
|
};
|
|
133
133
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
134
134
|
return React__default.default.createElement("descope-container", { ...mergedProps, ref: ref });
|
|
@@ -156,8 +156,8 @@ TextField.defaultProps = {
|
|
|
156
156
|
size: 'md'
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
-
const
|
|
160
|
-
|
|
159
|
+
const Password = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-password", { ...props, ref: ref }));
|
|
160
|
+
Password.defaultProps = {
|
|
161
161
|
size: 'md'
|
|
162
162
|
};
|
|
163
163
|
|
|
@@ -166,7 +166,7 @@ const Input = React__default.default.forwardRef(({ type, ...rest }, ref) => {
|
|
|
166
166
|
case 'email':
|
|
167
167
|
return React__default.default.createElement(EmailField, { ...rest, ref: ref });
|
|
168
168
|
case 'password':
|
|
169
|
-
return React__default.default.createElement(
|
|
169
|
+
return React__default.default.createElement(Password, { ...rest, ref: ref });
|
|
170
170
|
case 'number':
|
|
171
171
|
return React__default.default.createElement(NumberField, { ...rest, ref: ref });
|
|
172
172
|
default:
|
|
@@ -245,7 +245,7 @@ exports.Loader = Loader;
|
|
|
245
245
|
exports.Logo = Logo;
|
|
246
246
|
exports.NewPassword = NewPassword;
|
|
247
247
|
exports.NumberField = NumberField;
|
|
248
|
-
exports.
|
|
248
|
+
exports.Password = Password;
|
|
249
249
|
exports.Phone = Phone;
|
|
250
250
|
exports.Select = Select;
|
|
251
251
|
exports.Switch = Switch;
|
package/dist/index.d.ts
CHANGED
|
@@ -260,11 +260,11 @@ declare const NumberField: React.ForwardRefExoticComponent<Omit<DescopeInputProp
|
|
|
260
260
|
declare global {
|
|
261
261
|
namespace JSX {
|
|
262
262
|
interface IntrinsicElements {
|
|
263
|
-
'descope-password
|
|
263
|
+
'descope-password': DescopeInputProps;
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
declare const
|
|
267
|
+
declare const Password: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
268
268
|
|
|
269
269
|
type Props$5 = {
|
|
270
270
|
'default-code'?: string;
|
|
@@ -342,4 +342,4 @@ declare const TOTPImage: React.ForwardRefExoticComponent<Omit<Props$1, "ref"> &
|
|
|
342
342
|
type Props = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
343
343
|
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
344
344
|
|
|
345
|
-
export { Boolean, Button, Checkbox, Code, Container, Divider, Image, Input, Link, Loader, Logo, NewPassword, NumberField,
|
|
345
|
+
export { Boolean, Button, Checkbox, Code, Container, Divider, Image, Input, Link, Loader, Logo, NewPassword, NumberField, Password, Phone, Select, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, _default$a as apple, _default$2 as discord, _default$9 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 as sso };
|
package/dist/index.esm.js
CHANGED
|
@@ -122,7 +122,7 @@ const Container = React.forwardRef(({ background, justify, paddingX = '0', paddi
|
|
|
122
122
|
'st-justify-content': justifyContent[justify],
|
|
123
123
|
'st-background-color': background,
|
|
124
124
|
'st-host-width': width,
|
|
125
|
-
'st-gap': spaceBetween && `${Number.
|
|
125
|
+
'st-gap': spaceBetween && `${Number.parseFloat(spaceBetween) / 4}rem`
|
|
126
126
|
};
|
|
127
127
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
128
128
|
return React.createElement("descope-container", { ...mergedProps, ref: ref });
|
|
@@ -150,8 +150,8 @@ TextField.defaultProps = {
|
|
|
150
150
|
size: 'md'
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
const
|
|
154
|
-
|
|
153
|
+
const Password = React.forwardRef((props, ref) => React.createElement("descope-password", { ...props, ref: ref }));
|
|
154
|
+
Password.defaultProps = {
|
|
155
155
|
size: 'md'
|
|
156
156
|
};
|
|
157
157
|
|
|
@@ -160,7 +160,7 @@ const Input = React.forwardRef(({ type, ...rest }, ref) => {
|
|
|
160
160
|
case 'email':
|
|
161
161
|
return React.createElement(EmailField, { ...rest, ref: ref });
|
|
162
162
|
case 'password':
|
|
163
|
-
return React.createElement(
|
|
163
|
+
return React.createElement(Password, { ...rest, ref: ref });
|
|
164
164
|
case 'number':
|
|
165
165
|
return React.createElement(NumberField, { ...rest, ref: ref });
|
|
166
166
|
default:
|
|
@@ -226,4 +226,4 @@ const TOTPLink = React.forwardRef(({ ...props }, ref) => {
|
|
|
226
226
|
return React.createElement(Link, { ref: ref, ...readyProps });
|
|
227
227
|
});
|
|
228
228
|
|
|
229
|
-
export { Boolean, Button, Checkbox, Code, Container, Divider, Image, Input, Link, Loader, Logo, NewPassword, NumberField,
|
|
229
|
+
export { Boolean, Button, Checkbox, Code, Container, Divider, Image, Input, Link, Loader, Logo, NewPassword, NumberField, Password, Phone, Select, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, apple, discord, facebook, fingerprint, github, gitlab, google, linkedin, microsoft, passkey, 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.67",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -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.126",
|
|
103
103
|
"rollup-plugin-dts": "^5.3.0"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|