phx-react 1.3.106 → 1.3.107
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/cjs/components/Login/Login.js +2 -2
- package/dist/cjs/utils/queryLogin.js +1 -1
- package/dist/cjs/utils/queryLogin.js.map +1 -1
- package/dist/esm/components/Login/Login.js +2 -2
- package/dist/esm/utils/queryLogin.js +1 -1
- package/dist/esm/utils/queryLogin.js.map +1 -1
- package/package.json +1 -1
|
@@ -86,14 +86,14 @@ var PHXLogin = function (props) {
|
|
|
86
86
|
react_1["default"].createElement(FormWrap_1.PHXFormWrap, { headerAction: false, footerAction: false, submit: true, onSubmit: handleSubmit(onSubmitForm) },
|
|
87
87
|
react_1["default"].createElement("div", { className: 'space-y-6' },
|
|
88
88
|
react_1["default"].createElement("div", { className: 'mt-2' },
|
|
89
|
-
react_1["default"].createElement(Input_1.PHXInput, { errorType: '
|
|
89
|
+
react_1["default"].createElement(Input_1.PHXInput, { errorType: 'custom-message', label: 'Email',
|
|
90
90
|
//@ts-ignore
|
|
91
91
|
error: errors.email, register: register('email', {
|
|
92
92
|
required: true
|
|
93
93
|
}), errorMessageCustom: 'Vui l\u00F2ng nh\u1EADp email' })),
|
|
94
94
|
react_1["default"].createElement("div", { className: 'relative mt-2' },
|
|
95
95
|
showPassword ? (react_1["default"].createElement(solid_1.EyeIcon, { className: 'w-4 h-5 absolute right-2 top-[1.8rem] cursor-pointer', onClick: handleClickShowPassword })) : (react_1["default"].createElement(solid_1.EyeSlashIcon, { className: 'w-4 h-5 absolute right-2 top-[1.8rem] cursor-pointer', onClick: handleClickShowPassword })),
|
|
96
|
-
react_1["default"].createElement(Input_1.PHXInput, { errorType: '
|
|
96
|
+
react_1["default"].createElement(Input_1.PHXInput, { errorType: 'custom-message',
|
|
97
97
|
//@ts-ignore
|
|
98
98
|
error: errors.password, errorMessageCustom: 'Vui l\u00F2ng nh\u1EADp m\u1EADt kh\u1EA9u', register: register('password', {
|
|
99
99
|
required: true
|
|
@@ -3,6 +3,6 @@ exports.__esModule = true;
|
|
|
3
3
|
exports.getUserInfo = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var client_1 = require("@apollo/client");
|
|
6
|
-
exports.getUserInfo = (0, client_1.gql)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n query GetUsers($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n school {\n name\n id\n mail\n phone\n group_id\n group {\n id\n name\n mail\n phone\n }\n }\n password\n full_name\n email\n phone_number\n }\n }\n"], ["\n query GetUsers($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n school {\n name\n id\n mail\n phone\n group_id\n group {\n id\n name\n mail\n phone\n }\n }\n password\n full_name\n email\n phone_number\n }\n }\n"])));
|
|
6
|
+
exports.getUserInfo = (0, client_1.gql)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n query GetUsers($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n school {\n id\n name\n id\n mail\n phone\n group_id\n group {\n id\n name\n mail\n phone\n }\n }\n password\n full_name\n email\n phone_number\n }\n }\n"], ["\n query GetUsers($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n school {\n id\n name\n id\n mail\n phone\n group_id\n group {\n id\n name\n mail\n phone\n }\n }\n password\n full_name\n email\n phone_number\n }\n }\n"])));
|
|
7
7
|
var templateObject_1;
|
|
8
8
|
//# sourceMappingURL=queryLogin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryLogin.js","sourceRoot":"","sources":["../../../src/utils/queryLogin.ts"],"names":[],"mappings":";;;;AAAA,yCAAoC;AAEvB,QAAA,WAAW,OAAG,YAAG,
|
|
1
|
+
{"version":3,"file":"queryLogin.js","sourceRoot":"","sources":["../../../src/utils/queryLogin.ts"],"names":[],"mappings":";;;;AAAA,yCAAoC;AAEvB,QAAA,WAAW,OAAG,YAAG,4eAAA,gaAuB7B,KAAA"}
|
|
@@ -83,14 +83,14 @@ export var PHXLogin = function (props) {
|
|
|
83
83
|
React.createElement(PHXFormWrap, { headerAction: false, footerAction: false, submit: true, onSubmit: handleSubmit(onSubmitForm) },
|
|
84
84
|
React.createElement("div", { className: 'space-y-6' },
|
|
85
85
|
React.createElement("div", { className: 'mt-2' },
|
|
86
|
-
React.createElement(PHXInput, { errorType: '
|
|
86
|
+
React.createElement(PHXInput, { errorType: 'custom-message', label: 'Email',
|
|
87
87
|
//@ts-ignore
|
|
88
88
|
error: errors.email, register: register('email', {
|
|
89
89
|
required: true
|
|
90
90
|
}), errorMessageCustom: 'Vui l\u00F2ng nh\u1EADp email' })),
|
|
91
91
|
React.createElement("div", { className: 'relative mt-2' },
|
|
92
92
|
showPassword ? (React.createElement(EyeIcon, { className: 'w-4 h-5 absolute right-2 top-[1.8rem] cursor-pointer', onClick: handleClickShowPassword })) : (React.createElement(EyeSlashIcon, { className: 'w-4 h-5 absolute right-2 top-[1.8rem] cursor-pointer', onClick: handleClickShowPassword })),
|
|
93
|
-
React.createElement(PHXInput, { errorType: '
|
|
93
|
+
React.createElement(PHXInput, { errorType: 'custom-message',
|
|
94
94
|
//@ts-ignore
|
|
95
95
|
error: errors.password, errorMessageCustom: 'Vui l\u00F2ng nh\u1EADp m\u1EADt kh\u1EA9u', register: register('password', {
|
|
96
96
|
required: true
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __makeTemplateObject } from "tslib";
|
|
2
2
|
import { gql } from '@apollo/client';
|
|
3
|
-
export var getUserInfo = gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query GetUsers($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n school {\n name\n id\n mail\n phone\n group_id\n group {\n id\n name\n mail\n phone\n }\n }\n password\n full_name\n email\n phone_number\n }\n }\n"], ["\n query GetUsers($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n school {\n name\n id\n mail\n phone\n group_id\n group {\n id\n name\n mail\n phone\n }\n }\n password\n full_name\n email\n phone_number\n }\n }\n"])));
|
|
3
|
+
export var getUserInfo = gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query GetUsers($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n school {\n id\n name\n id\n mail\n phone\n group_id\n group {\n id\n name\n mail\n phone\n }\n }\n password\n full_name\n email\n phone_number\n }\n }\n"], ["\n query GetUsers($email: String, $password: String) {\n users(where: { email: { _eq: $email }, password: { _eq: $password } }) {\n school {\n id\n name\n id\n mail\n phone\n group_id\n group {\n id\n name\n mail\n phone\n }\n }\n password\n full_name\n email\n phone_number\n }\n }\n"])));
|
|
4
4
|
var templateObject_1;
|
|
5
5
|
//# sourceMappingURL=queryLogin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryLogin.js","sourceRoot":"","sources":["../../../src/utils/queryLogin.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,IAAM,WAAW,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"queryLogin.js","sourceRoot":"","sources":["../../../src/utils/queryLogin.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,IAAM,WAAW,GAAG,GAAG,meAAA,gaAuB7B,IAAA,CAAA"}
|