@rocket.chat/onboarding-ui 0.6.3-dev.365 → 0.6.3-dev.370
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/common/List/ListItem.d.ts +1 -1
- package/dist/cjs/common/List/index.d.ts +1 -1
- package/dist/cjs/forms/NewAccountForm/NewAccountForm.d.ts +19 -0
- package/dist/cjs/forms/NewAccountForm/NewAccountForm.d.ts.map +1 -0
- package/dist/cjs/forms/NewAccountForm/NewAccountForm.js +45 -0
- package/dist/cjs/forms/NewAccountForm/NewAccountForm.js.map +1 -0
- package/dist/cjs/forms/NewAccountForm/index.d.ts +2 -0
- package/dist/cjs/forms/NewAccountForm/index.d.ts.map +1 -0
- package/dist/cjs/forms/NewAccountForm/index.js +9 -0
- package/dist/cjs/forms/NewAccountForm/index.js.map +1 -0
- package/dist/cjs/forms/RegisterServerForm/OptionCard/index.d.ts +2 -2
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/pages/CreateNewAccountPage/CreateNewAccountPage.d.ts +14 -0
- package/dist/cjs/pages/CreateNewAccountPage/CreateNewAccountPage.d.ts.map +1 -0
- package/dist/cjs/pages/CreateNewAccountPage/CreateNewAccountPage.js +44 -0
- package/dist/cjs/pages/CreateNewAccountPage/CreateNewAccountPage.js.map +1 -0
- package/dist/cjs/pages/CreateNewAccountPage/index.d.ts +2 -0
- package/dist/cjs/pages/CreateNewAccountPage/index.d.ts.map +1 -0
- package/dist/cjs/pages/CreateNewAccountPage/index.js +9 -0
- package/dist/cjs/pages/CreateNewAccountPage/index.js.map +1 -0
- package/dist/cjs/pages/OauthAuthorizationPage/OauthAuthorizationPage.d.ts +12 -0
- package/dist/cjs/pages/OauthAuthorizationPage/OauthAuthorizationPage.d.ts.map +1 -0
- package/dist/cjs/pages/OauthAuthorizationPage/OauthAuthorizationPage.js +30 -0
- package/dist/cjs/pages/OauthAuthorizationPage/OauthAuthorizationPage.js.map +1 -0
- package/dist/cjs/pages/OauthAuthorizationPage/index.d.ts +2 -0
- package/dist/cjs/pages/OauthAuthorizationPage/index.d.ts.map +1 -0
- package/dist/cjs/pages/OauthAuthorizationPage/index.js +9 -0
- package/dist/cjs/pages/OauthAuthorizationPage/index.js.map +1 -0
- package/dist/esm/common/List/ListItem.d.ts +1 -1
- package/dist/esm/common/List/index.d.ts +1 -1
- package/dist/esm/forms/NewAccountForm/NewAccountForm.d.ts +19 -0
- package/dist/esm/forms/NewAccountForm/NewAccountForm.d.ts.map +1 -0
- package/dist/esm/forms/NewAccountForm/NewAccountForm.js +40 -0
- package/dist/esm/forms/NewAccountForm/NewAccountForm.js.map +1 -0
- package/dist/esm/forms/NewAccountForm/index.d.ts +2 -0
- package/dist/esm/forms/NewAccountForm/index.d.ts.map +1 -0
- package/dist/esm/forms/NewAccountForm/index.js +2 -0
- package/dist/esm/forms/NewAccountForm/index.js.map +1 -0
- package/dist/esm/forms/RegisterServerForm/OptionCard/index.d.ts +2 -2
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/pages/CreateNewAccountPage/CreateNewAccountPage.d.ts +14 -0
- package/dist/esm/pages/CreateNewAccountPage/CreateNewAccountPage.d.ts.map +1 -0
- package/dist/esm/pages/CreateNewAccountPage/CreateNewAccountPage.js +39 -0
- package/dist/esm/pages/CreateNewAccountPage/CreateNewAccountPage.js.map +1 -0
- package/dist/esm/pages/CreateNewAccountPage/index.d.ts +2 -0
- package/dist/esm/pages/CreateNewAccountPage/index.d.ts.map +1 -0
- package/dist/esm/pages/CreateNewAccountPage/index.js +2 -0
- package/dist/esm/pages/CreateNewAccountPage/index.js.map +1 -0
- package/dist/esm/pages/OauthAuthorizationPage/OauthAuthorizationPage.d.ts +12 -0
- package/dist/esm/pages/OauthAuthorizationPage/OauthAuthorizationPage.d.ts.map +1 -0
- package/dist/esm/pages/OauthAuthorizationPage/OauthAuthorizationPage.js +25 -0
- package/dist/esm/pages/OauthAuthorizationPage/OauthAuthorizationPage.js.map +1 -0
- package/dist/esm/pages/OauthAuthorizationPage/index.d.ts +2 -0
- package/dist/esm/pages/OauthAuthorizationPage/index.d.ts.map +1 -0
- package/dist/esm/pages/OauthAuthorizationPage/index.js +2 -0
- package/dist/esm/pages/OauthAuthorizationPage/index.js.map +1 -0
- package/package.json +11 -11
|
@@ -2,7 +2,7 @@ import { Box, Icon } from '@rocket.chat/fuselage';
|
|
|
2
2
|
import type { ComponentProps, ReactElement, ReactNode } from 'react';
|
|
3
3
|
declare const ListItem: ({ children, icon, iconColor, fontScale, }: {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
icon?:
|
|
5
|
+
icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "info" | "underline" | "copy" | "user" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-up-box" | "at" | "avatar" | "backspace" | "bag" | "ball" | "balloon" | "balloon-arrow-left" | "balloon-arrow-top-right" | "balloon-close-top-right" | "balloon-ellipsis" | "balloon-exclamation" | "balloon-off" | "balloons" | "balloon-text" | "ban" | "bell" | "bell-off" | "book" | "brush" | "burger" | "burger-arrow-left" | "business" | "calendar" | "camera" | "card" | "check" | "chevron-down" | "chevron-expand" | "chevron-left" | "chevron-right" | "chevron-up" | "circle-arrow-down" | "circle-check" | "circle-cross" | "clipboard" | "clock" | "cloud-arrow-up" | "cloud-plus" | "cog" | "condensed-view" | "contact" | "crop" | "cross" | "cross-small" | "cube" | "customize" | "desktop" | "dialpad" | "doc" | "document-eye" | "doner" | "emoji" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-off" | "group-by-type" | "hash" | "hashtag-lock" | "h-bar" | "headphone" | "headphone-off" | "headset" | "help" | "history" | "home" | "joystick" | "kebab" | "keyboard" | "language" | "list-bullets" | "list-numbers" | "live" | "lock" | "login" | "magnifier" | "mail" | "mail-arrow-top-right" | "meatballs" | "medium-view" | "members" | "mic" | "mic-off" | "mobile" | "moon" | "musical-note" | "new-window" | "pause" | "pause-unfilled" | "pencil" | "pencil-box" | "phone" | "phone-disabled" | "phone-in" | "phone-off" | "phone-out" | "pin" | "pin-map" | "play" | "plus" | "plus-small" | "podcast" | "quote" | "rec" | "refresh" | "send" | "send-filled" | "sheet" | "shield" | "shield-check" | "shredder" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "strike" | "success-circle" | "sun" | "team" | "team-arrow-right" | "team-lock" | "text-decrease" | "text-increase" | "trash" | "undo" | "user-arrow-right" | "user-plus" | "video-disabled" | "video-filled" | "video-off" | "volume" | "volume-disabled" | "volume-lock" | "volume-off" | "warning" | "zip" | "add-reaction" | "add-user" | "attachment" | "back" | "baloon-arrow-left" | "baloon-arrow-top-right" | "baloon-close-top-right" | "baloon-ellipsis" | "baloon-exclamation" | "baloons" | "baloon-text" | "cancel" | "canned-response" | "chat" | "checkmark-circled" | "circled-arrow-down" | "computer" | "discover" | "discussion" | "edit" | "edit-rounded" | "file-document" | "file-generic" | "file-google-drive" | "file-pdf" | "files-audio" | "file-sheets" | "files-video" | "files-zip" | "game" | "hashtag" | "import" | "info-circled" | "jump" | "jump-to-message" | "map-pin" | "message" | "message-disabled" | "modal-warning" | "multiline" | "omnichannel" | "permalink" | "post" | "queue" | "reload" | "reply-directly" | "report" | "send-active" | "share" | "shield-alt" | "sign-out" | "sort-amount-down" | "th-list" | "thread" | "upload" | "user-rounded" | "file-keynote" | "hand-pointer" | "list-alt" | "livechat" | "loading" | "play-solid" | "reply" | "sort-down" | "sort-up" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
|
|
6
6
|
iconColor?: ComponentProps<typeof Icon>['color'];
|
|
7
7
|
fontScale?: ComponentProps<typeof Box>['fontScale'];
|
|
8
8
|
}) => ReactElement;
|
|
@@ -8,7 +8,7 @@ declare const _default: (({ children, listStyleType, icon, spacing, color, }: {
|
|
|
8
8
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
9
9
|
Item: ({ children, icon, iconColor, fontScale, }: {
|
|
10
10
|
children: import("react").ReactNode;
|
|
11
|
-
icon?:
|
|
11
|
+
icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "info" | "underline" | "copy" | "user" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-up-box" | "at" | "avatar" | "backspace" | "bag" | "ball" | "balloon" | "balloon-arrow-left" | "balloon-arrow-top-right" | "balloon-close-top-right" | "balloon-ellipsis" | "balloon-exclamation" | "balloon-off" | "balloons" | "balloon-text" | "ban" | "bell" | "bell-off" | "book" | "brush" | "burger" | "burger-arrow-left" | "business" | "calendar" | "camera" | "card" | "check" | "chevron-down" | "chevron-expand" | "chevron-left" | "chevron-right" | "chevron-up" | "circle-arrow-down" | "circle-check" | "circle-cross" | "clipboard" | "clock" | "cloud-arrow-up" | "cloud-plus" | "cog" | "condensed-view" | "contact" | "crop" | "cross" | "cross-small" | "cube" | "customize" | "desktop" | "dialpad" | "doc" | "document-eye" | "doner" | "emoji" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-off" | "group-by-type" | "hash" | "hashtag-lock" | "h-bar" | "headphone" | "headphone-off" | "headset" | "help" | "history" | "home" | "joystick" | "kebab" | "keyboard" | "language" | "list-bullets" | "list-numbers" | "live" | "lock" | "login" | "magnifier" | "mail" | "mail-arrow-top-right" | "meatballs" | "medium-view" | "members" | "mic" | "mic-off" | "mobile" | "moon" | "musical-note" | "new-window" | "pause" | "pause-unfilled" | "pencil" | "pencil-box" | "phone" | "phone-disabled" | "phone-in" | "phone-off" | "phone-out" | "pin" | "pin-map" | "play" | "plus" | "plus-small" | "podcast" | "quote" | "rec" | "refresh" | "send" | "send-filled" | "sheet" | "shield" | "shield-check" | "shredder" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "strike" | "success-circle" | "sun" | "team" | "team-arrow-right" | "team-lock" | "text-decrease" | "text-increase" | "trash" | "undo" | "user-arrow-right" | "user-plus" | "video-disabled" | "video-filled" | "video-off" | "volume" | "volume-disabled" | "volume-lock" | "volume-off" | "warning" | "zip" | "add-reaction" | "add-user" | "attachment" | "back" | "baloon-arrow-left" | "baloon-arrow-top-right" | "baloon-close-top-right" | "baloon-ellipsis" | "baloon-exclamation" | "baloons" | "baloon-text" | "cancel" | "canned-response" | "chat" | "checkmark-circled" | "circled-arrow-down" | "computer" | "discover" | "discussion" | "edit" | "edit-rounded" | "file-document" | "file-generic" | "file-google-drive" | "file-pdf" | "files-audio" | "file-sheets" | "files-video" | "files-zip" | "game" | "hashtag" | "import" | "info-circled" | "jump" | "jump-to-message" | "map-pin" | "message" | "message-disabled" | "modal-warning" | "multiline" | "omnichannel" | "permalink" | "post" | "queue" | "reload" | "reply-directly" | "report" | "send-active" | "share" | "shield-alt" | "sign-out" | "sort-amount-down" | "th-list" | "thread" | "upload" | "user-rounded" | "file-keynote" | "hand-pointer" | "list-alt" | "livechat" | "loading" | "play-solid" | "reply" | "sort-down" | "sort-up" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
|
|
12
12
|
iconColor?: (import("csstype").Property.Color & string) | undefined;
|
|
13
13
|
fontScale?: ("h1" | "h2" | "h3" | "h4" | "h5" | "hero" | "p1" | "p2" | "p3" | "p4" | "c1" | "c2" | "micro") | undefined;
|
|
14
14
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { SubmitHandler, Validate } from 'react-hook-form';
|
|
3
|
+
export declare type NewAccountPayload = {
|
|
4
|
+
name: string;
|
|
5
|
+
email: string;
|
|
6
|
+
password: string;
|
|
7
|
+
confirmPassword: string;
|
|
8
|
+
agreement?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare type NewAccountFormProps = {
|
|
11
|
+
initialValues?: Omit<NewAccountPayload, 'password'>;
|
|
12
|
+
validateEmail: Validate<string>;
|
|
13
|
+
validatePassword: Validate<string>;
|
|
14
|
+
validateConfirmationPassword: Validate<string>;
|
|
15
|
+
onSubmit: SubmitHandler<NewAccountPayload>;
|
|
16
|
+
};
|
|
17
|
+
declare const NewAccountForm: ({ validateEmail, validatePassword, validateConfirmationPassword, onSubmit, }: NewAccountFormProps) => ReactElement;
|
|
18
|
+
export default NewAccountForm;
|
|
19
|
+
//# sourceMappingURL=NewAccountForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewAccountForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/NewAccountForm/NewAccountForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAChD,OAAO,EAAW,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAKnE,oBAAY,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,aAAK,mBAAmB,GAAG;IACzB,aAAa,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;IACpD,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChC,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnC,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/C,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CAC5C,CAAC;AAEF,QAAA,MAAM,cAAc,iFAKjB,mBAAmB,KAAG,YAgIxB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
+
var fuselage_1 = require("@rocket.chat/fuselage");
|
|
19
|
+
var react_1 = require("react");
|
|
20
|
+
var react_hook_form_1 = require("react-hook-form");
|
|
21
|
+
var react_i18next_1 = require("react-i18next");
|
|
22
|
+
var Form_1 = __importDefault(require("../../common/Form"));
|
|
23
|
+
var NewAccountForm = function (_a) {
|
|
24
|
+
var _b;
|
|
25
|
+
var validateEmail = _a.validateEmail, validatePassword = _a.validatePassword, validateConfirmationPassword = _a.validateConfirmationPassword, onSubmit = _a.onSubmit;
|
|
26
|
+
var t = react_i18next_1.useTranslation().t;
|
|
27
|
+
var _c = react_hook_form_1.useForm({ mode: 'onChange' }), register = _c.register, handleSubmit = _c.handleSubmit, _d = _c.formState, isValidating = _d.isValidating, isSubmitting = _d.isSubmitting, isValid = _d.isValid, errors = _d.errors, setFocus = _c.setFocus;
|
|
28
|
+
react_1.useEffect(function () {
|
|
29
|
+
setFocus('name');
|
|
30
|
+
}, [setFocus]);
|
|
31
|
+
return (jsx_runtime_1.jsxs(Form_1.default, __assign({ onSubmit: handleSubmit(onSubmit) }, { children: [jsx_runtime_1.jsx(Form_1.default.Container, { children: jsx_runtime_1.jsxs(fuselage_1.FieldGroup, { children: [jsx_runtime_1.jsxs(fuselage_1.Field, { children: [jsx_runtime_1.jsx(fuselage_1.Field.Label, { children: t('form.newAccountForm.fields.name.label') }, void 0), jsx_runtime_1.jsx(fuselage_1.Field.Row, { children: jsx_runtime_1.jsx(fuselage_1.TextInput, __assign({}, register('name', {
|
|
32
|
+
required: String(t('component.form.requiredField')),
|
|
33
|
+
})), void 0) }, void 0), errors.name && jsx_runtime_1.jsx(fuselage_1.Field.Error, { children: errors.name.message }, void 0)] }, void 0), jsx_runtime_1.jsxs(fuselage_1.Field, { children: [jsx_runtime_1.jsx(fuselage_1.Field.Label, { children: t('form.newAccountForm.fields.email.label') }, void 0), jsx_runtime_1.jsx(fuselage_1.Field.Row, { children: jsx_runtime_1.jsx(fuselage_1.EmailInput, __assign({}, register('email', {
|
|
34
|
+
validate: validateEmail,
|
|
35
|
+
required: true,
|
|
36
|
+
})), void 0) }, void 0), (errors === null || errors === void 0 ? void 0 : errors.email) && jsx_runtime_1.jsx(fuselage_1.Field.Error, { children: errors.email.message }, void 0)] }, void 0), jsx_runtime_1.jsxs(fuselage_1.Field, { children: [jsx_runtime_1.jsx(fuselage_1.Field.Label, { children: t('form.newAccountForm.fields.password.label') }, void 0), jsx_runtime_1.jsx(fuselage_1.Field.Row, { children: jsx_runtime_1.jsx(fuselage_1.PasswordInput, __assign({}, register('password', {
|
|
37
|
+
required: true,
|
|
38
|
+
validate: validatePassword,
|
|
39
|
+
})), void 0) }, void 0), errors.password && (jsx_runtime_1.jsx(fuselage_1.Field.Error, { children: errors.password.message }, void 0))] }, void 0), jsx_runtime_1.jsxs(fuselage_1.Field, { children: [jsx_runtime_1.jsx(fuselage_1.Field.Label, { children: t('form.newAccountForm.fields.confirmPassword.label') }, void 0), jsx_runtime_1.jsx(fuselage_1.Field.Row, { children: jsx_runtime_1.jsx(fuselage_1.PasswordInput, __assign({}, register('confirmPassword', {
|
|
40
|
+
required: true,
|
|
41
|
+
validate: validateConfirmationPassword,
|
|
42
|
+
})), void 0) }, void 0), errors.confirmPassword && (jsx_runtime_1.jsx(fuselage_1.Field.Error, { children: errors.confirmPassword.message }, void 0))] }, void 0), jsx_runtime_1.jsxs(fuselage_1.Field, { children: [jsx_runtime_1.jsxs(fuselage_1.Field.Row, __assign({ justifyContent: 'flex-start' }, { children: [jsx_runtime_1.jsx(fuselage_1.CheckBox, __assign({}, register('agreement', { required: true }), { mie: 'x8' }), void 0), jsx_runtime_1.jsx(fuselage_1.Box, __assign({ is: 'label', htmlFor: 'agreement', withRichContent: true, fontScale: 'c1' }, { children: jsx_runtime_1.jsxs(react_i18next_1.Trans, __assign({ i18nKey: 'component.form.termsAndConditions' }, { children: ["I agree with", jsx_runtime_1.jsx("a", __assign({ href: 'https://rocket.chat/terms', target: '_blank', rel: 'noopener noreferrer' }, { children: "Terms and Conditions" }), void 0), "and", jsx_runtime_1.jsx("a", __assign({ href: 'https://rocket.chat/policy', target: '_blank', rel: 'noopener noreferrer' }, { children: "Privacy Polic" }), void 0)] }), void 0) }), void 0)] }), void 0), ((_b = errors.agreement) === null || _b === void 0 ? void 0 : _b.type) === 'required' && (jsx_runtime_1.jsx(fuselage_1.Field.Error, { children: t('component.form.requiredField') }, void 0))] }, void 0)] }, void 0) }, void 0), jsx_runtime_1.jsx(Form_1.default.Footer, { children: jsx_runtime_1.jsx(fuselage_1.ButtonGroup, __assign({ flexGrow: 1 }, { children: jsx_runtime_1.jsx(fuselage_1.Button, __assign({ type: 'submit', primary: true, disabled: isValidating || isSubmitting || !isValid }, { children: t('component.form.action.next') }), void 0) }), void 0) }, void 0)] }), void 0));
|
|
43
|
+
};
|
|
44
|
+
exports.default = NewAccountForm;
|
|
45
|
+
//# sourceMappingURL=NewAccountForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewAccountForm.js","sourceRoot":"","sources":["../../../../src/forms/NewAccountForm/NewAccountForm.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAU+B;AAC/B,+BAAgD;AAChD,mDAAmE;AACnE,+CAAsD;AAEtD,2DAAqC;AAkBrC,IAAM,cAAc,GAAG,UAAC,EAKF;;QAJpB,aAAa,mBAAA,EACb,gBAAgB,sBAAA,EAChB,4BAA4B,kCAAA,EAC5B,QAAQ,cAAA;IAEA,IAAA,CAAC,GAAK,8BAAc,EAAE,EAArB,CAAsB;IAEzB,IAAA,KAKF,yBAAO,CAAoB,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAJlD,QAAQ,cAAA,EACR,YAAY,kBAAA,EACZ,iBAA0D,EAA7C,YAAY,kBAAA,EAAE,YAAY,kBAAA,EAAE,OAAO,aAAA,EAAE,MAAM,YAAA,EACxD,QAAQ,cAC0C,CAAC;IAErD,iBAAS,CAAC;QACR,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnB,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,CACL,mBAAC,cAAI,aAAC,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,iBACpC,kBAAC,cAAI,CAAC,SAAS,cACb,mBAAC,qBAAU,eACT,mBAAC,gBAAK,eACJ,kBAAC,gBAAK,CAAC,KAAK,cACT,CAAC,CAAC,uCAAuC,CAAC,WAC/B,EACd,kBAAC,gBAAK,CAAC,GAAG,cACR,kBAAC,oBAAS,eACJ,QAAQ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AO,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var NewAccountForm_1 = require("./NewAccountForm");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(NewAccountForm_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/forms/NewAccountForm/index.ts"],"names":[],"mappings":";;;;;;AAAA,mDAA2C;AAAlC,0HAAA,OAAO,OAAA"}
|
|
@@ -22,14 +22,14 @@ declare const _default: (({ selected, onClick, children, }: {
|
|
|
22
22
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
23
23
|
Item: ({ children, icon, iconColor, fontScale, }: {
|
|
24
24
|
children: import("react").ReactNode;
|
|
25
|
-
icon?:
|
|
25
|
+
icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "info" | "underline" | "copy" | "user" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-up-box" | "at" | "avatar" | "backspace" | "bag" | "ball" | "balloon" | "balloon-arrow-left" | "balloon-arrow-top-right" | "balloon-close-top-right" | "balloon-ellipsis" | "balloon-exclamation" | "balloon-off" | "balloons" | "balloon-text" | "ban" | "bell" | "bell-off" | "book" | "brush" | "burger" | "burger-arrow-left" | "business" | "calendar" | "camera" | "card" | "check" | "chevron-down" | "chevron-expand" | "chevron-left" | "chevron-right" | "chevron-up" | "circle-arrow-down" | "circle-check" | "circle-cross" | "clipboard" | "clock" | "cloud-arrow-up" | "cloud-plus" | "cog" | "condensed-view" | "contact" | "crop" | "cross" | "cross-small" | "cube" | "customize" | "desktop" | "dialpad" | "doc" | "document-eye" | "doner" | "emoji" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-off" | "group-by-type" | "hash" | "hashtag-lock" | "h-bar" | "headphone" | "headphone-off" | "headset" | "help" | "history" | "home" | "joystick" | "kebab" | "keyboard" | "language" | "list-bullets" | "list-numbers" | "live" | "lock" | "login" | "magnifier" | "mail" | "mail-arrow-top-right" | "meatballs" | "medium-view" | "members" | "mic" | "mic-off" | "mobile" | "moon" | "musical-note" | "new-window" | "pause" | "pause-unfilled" | "pencil" | "pencil-box" | "phone" | "phone-disabled" | "phone-in" | "phone-off" | "phone-out" | "pin" | "pin-map" | "play" | "plus" | "plus-small" | "podcast" | "quote" | "rec" | "refresh" | "send" | "send-filled" | "sheet" | "shield" | "shield-check" | "shredder" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "strike" | "success-circle" | "sun" | "team" | "team-arrow-right" | "team-lock" | "text-decrease" | "text-increase" | "trash" | "undo" | "user-arrow-right" | "user-plus" | "video-disabled" | "video-filled" | "video-off" | "volume" | "volume-disabled" | "volume-lock" | "volume-off" | "warning" | "zip" | "add-reaction" | "add-user" | "attachment" | "back" | "baloon-arrow-left" | "baloon-arrow-top-right" | "baloon-close-top-right" | "baloon-ellipsis" | "baloon-exclamation" | "baloons" | "baloon-text" | "cancel" | "canned-response" | "chat" | "checkmark-circled" | "circled-arrow-down" | "computer" | "discover" | "discussion" | "edit" | "edit-rounded" | "file-document" | "file-generic" | "file-google-drive" | "file-pdf" | "files-audio" | "file-sheets" | "files-video" | "files-zip" | "game" | "hashtag" | "import" | "info-circled" | "jump" | "jump-to-message" | "map-pin" | "message" | "message-disabled" | "modal-warning" | "multiline" | "omnichannel" | "permalink" | "post" | "queue" | "reload" | "reply-directly" | "report" | "send-active" | "share" | "shield-alt" | "sign-out" | "sort-amount-down" | "th-list" | "thread" | "upload" | "user-rounded" | "file-keynote" | "hand-pointer" | "list-alt" | "livechat" | "loading" | "play-solid" | "reply" | "sort-down" | "sort-up" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
|
|
26
26
|
iconColor?: (import("csstype").Property.Color & string) | undefined;
|
|
27
27
|
fontScale?: ("h1" | "h2" | "h3" | "h4" | "h5" | "hero" | "p1" | "p2" | "p3" | "p4" | "c1" | "c2" | "micro") | undefined;
|
|
28
28
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
29
29
|
};
|
|
30
30
|
ListItem: ({ children, icon, iconColor, fontScale, }: {
|
|
31
31
|
children: import("react").ReactNode;
|
|
32
|
-
icon?:
|
|
32
|
+
icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "info" | "underline" | "copy" | "user" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-up-box" | "at" | "avatar" | "backspace" | "bag" | "ball" | "balloon" | "balloon-arrow-left" | "balloon-arrow-top-right" | "balloon-close-top-right" | "balloon-ellipsis" | "balloon-exclamation" | "balloon-off" | "balloons" | "balloon-text" | "ban" | "bell" | "bell-off" | "book" | "brush" | "burger" | "burger-arrow-left" | "business" | "calendar" | "camera" | "card" | "check" | "chevron-down" | "chevron-expand" | "chevron-left" | "chevron-right" | "chevron-up" | "circle-arrow-down" | "circle-check" | "circle-cross" | "clipboard" | "clock" | "cloud-arrow-up" | "cloud-plus" | "cog" | "condensed-view" | "contact" | "crop" | "cross" | "cross-small" | "cube" | "customize" | "desktop" | "dialpad" | "doc" | "document-eye" | "doner" | "emoji" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-off" | "group-by-type" | "hash" | "hashtag-lock" | "h-bar" | "headphone" | "headphone-off" | "headset" | "help" | "history" | "home" | "joystick" | "kebab" | "keyboard" | "language" | "list-bullets" | "list-numbers" | "live" | "lock" | "login" | "magnifier" | "mail" | "mail-arrow-top-right" | "meatballs" | "medium-view" | "members" | "mic" | "mic-off" | "mobile" | "moon" | "musical-note" | "new-window" | "pause" | "pause-unfilled" | "pencil" | "pencil-box" | "phone" | "phone-disabled" | "phone-in" | "phone-off" | "phone-out" | "pin" | "pin-map" | "play" | "plus" | "plus-small" | "podcast" | "quote" | "rec" | "refresh" | "send" | "send-filled" | "sheet" | "shield" | "shield-check" | "shredder" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "strike" | "success-circle" | "sun" | "team" | "team-arrow-right" | "team-lock" | "text-decrease" | "text-increase" | "trash" | "undo" | "user-arrow-right" | "user-plus" | "video-disabled" | "video-filled" | "video-off" | "volume" | "volume-disabled" | "volume-lock" | "volume-off" | "warning" | "zip" | "add-reaction" | "add-user" | "attachment" | "back" | "baloon-arrow-left" | "baloon-arrow-top-right" | "baloon-close-top-right" | "baloon-ellipsis" | "baloon-exclamation" | "baloons" | "baloon-text" | "cancel" | "canned-response" | "chat" | "checkmark-circled" | "circled-arrow-down" | "computer" | "discover" | "discussion" | "edit" | "edit-rounded" | "file-document" | "file-generic" | "file-google-drive" | "file-pdf" | "files-audio" | "file-sheets" | "files-video" | "files-zip" | "game" | "hashtag" | "import" | "info-circled" | "jump" | "jump-to-message" | "map-pin" | "message" | "message-disabled" | "modal-warning" | "multiline" | "omnichannel" | "permalink" | "post" | "queue" | "reload" | "reply-directly" | "report" | "send-active" | "share" | "shield-alt" | "sign-out" | "sort-amount-down" | "th-list" | "thread" | "upload" | "user-rounded" | "file-keynote" | "hand-pointer" | "list-alt" | "livechat" | "loading" | "play-solid" | "reply" | "sort-down" | "sort-up" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
|
|
33
33
|
iconColor?: (import("csstype").Property.Color & string) | undefined;
|
|
34
34
|
fontScale?: ("h1" | "h2" | "h3" | "h4" | "h5" | "hero" | "p1" | "p2" | "p3" | "p4" | "c1" | "c2" | "micro") | undefined;
|
|
35
35
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -12,4 +12,6 @@ export { default as RegisterServerPage } from './pages/RegisterServerPage';
|
|
|
12
12
|
export { default as RequestTrialPage } from './pages/RequestTrialPage';
|
|
13
13
|
export { default as DarkModeProvider } from './common/DarkModeProvider';
|
|
14
14
|
export { default as LoginPage } from './pages/LoginPage';
|
|
15
|
+
export { default as CreateNewAccountPage } from './pages/CreateNewAccountPage';
|
|
16
|
+
export { default as OauthAuthorizationPage } from './pages/OauthAuthorizationPage';
|
|
15
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,OA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AAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LoginPage = exports.DarkModeProvider = exports.RequestTrialPage = exports.RegisterServerPage = exports.OrganizationInfoPage = exports.LoginLinkEmailPage = exports.InvalidLinkPage = exports.EmailConfirmedPage = exports.CreateCloudWorkspacePage = exports.ConfirmationProcessPage = exports.CloudAccountEmailPage = exports.CheckYourEmailPage = exports.AwaitingConfirmationPage = exports.AdminInfoPage = void 0;
|
|
6
|
+
exports.OauthAuthorizationPage = exports.CreateNewAccountPage = exports.LoginPage = exports.DarkModeProvider = exports.RequestTrialPage = exports.RegisterServerPage = exports.OrganizationInfoPage = exports.LoginLinkEmailPage = exports.InvalidLinkPage = exports.EmailConfirmedPage = exports.CreateCloudWorkspacePage = exports.ConfirmationProcessPage = exports.CloudAccountEmailPage = exports.CheckYourEmailPage = exports.AwaitingConfirmationPage = exports.AdminInfoPage = void 0;
|
|
7
7
|
var AdminInfoPage_1 = require("./pages/AdminInfoPage");
|
|
8
8
|
Object.defineProperty(exports, "AdminInfoPage", { enumerable: true, get: function () { return __importDefault(AdminInfoPage_1).default; } });
|
|
9
9
|
var AwaitingConfirmationPage_1 = require("./pages/AwaitingConfirmationPage");
|
|
@@ -32,4 +32,8 @@ var DarkModeProvider_1 = require("./common/DarkModeProvider");
|
|
|
32
32
|
Object.defineProperty(exports, "DarkModeProvider", { enumerable: true, get: function () { return __importDefault(DarkModeProvider_1).default; } });
|
|
33
33
|
var LoginPage_1 = require("./pages/LoginPage");
|
|
34
34
|
Object.defineProperty(exports, "LoginPage", { enumerable: true, get: function () { return __importDefault(LoginPage_1).default; } });
|
|
35
|
+
var CreateNewAccountPage_1 = require("./pages/CreateNewAccountPage");
|
|
36
|
+
Object.defineProperty(exports, "CreateNewAccountPage", { enumerable: true, get: function () { return __importDefault(CreateNewAccountPage_1).default; } });
|
|
37
|
+
var OauthAuthorizationPage_1 = require("./pages/OauthAuthorizationPage");
|
|
38
|
+
Object.defineProperty(exports, "OauthAuthorizationPage", { enumerable: true, get: function () { return __importDefault(OauthAuthorizationPage_1).default; } });
|
|
35
39
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAiE;AAAxD,+HAAA,OAAO,OAAiB;AACjC,6EAAuF;AAA9E,qJAAA,OAAO,OAA4B;AAC5C,iEAA2E;AAAlE,yIAAA,OAAO,OAAsB;AACtC,uEAAiF;AAAxE,+IAAA,OAAO,OAAyB;AACzC,2EAAqF;AAA5E,mJAAA,OAAO,OAA2B;AAC3C,6EAAuF;AAA9E,qJAAA,OAAO,OAA4B;AAC5C,iEAA2E;AAAlE,yIAAA,OAAO,OAAsB;AACtC,2DAAqE;AAA5D,mIAAA,OAAO,OAAmB;AACnC,iEAA2E;AAAlE,yIAAA,OAAO,OAAsB;AACtC,qEAA+E;AAAtE,6IAAA,OAAO,OAAwB;AACxC,iEAA2E;AAAlE,yIAAA,OAAO,OAAsB;AACtC,6DAAuE;AAA9D,qIAAA,OAAO,OAAoB;AACpC,8DAAwE;AAA/D,qIAAA,OAAO,OAAoB;AACpC,+CAAyD;AAAhD,uHAAA,OAAO,OAAa"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAiE;AAAxD,+HAAA,OAAO,OAAiB;AACjC,6EAAuF;AAA9E,qJAAA,OAAO,OAA4B;AAC5C,iEAA2E;AAAlE,yIAAA,OAAO,OAAsB;AACtC,uEAAiF;AAAxE,+IAAA,OAAO,OAAyB;AACzC,2EAAqF;AAA5E,mJAAA,OAAO,OAA2B;AAC3C,6EAAuF;AAA9E,qJAAA,OAAO,OAA4B;AAC5C,iEAA2E;AAAlE,yIAAA,OAAO,OAAsB;AACtC,2DAAqE;AAA5D,mIAAA,OAAO,OAAmB;AACnC,iEAA2E;AAAlE,yIAAA,OAAO,OAAsB;AACtC,qEAA+E;AAAtE,6IAAA,OAAO,OAAwB;AACxC,iEAA2E;AAAlE,yIAAA,OAAO,OAAsB;AACtC,6DAAuE;AAA9D,qIAAA,OAAO,OAAoB;AACpC,8DAAwE;AAA/D,qIAAA,OAAO,OAAoB;AACpC,+CAAyD;AAAhD,uHAAA,OAAO,OAAa;AAC7B,qEAA+E;AAAtE,6IAAA,OAAO,OAAwB;AACxC,yEAAmF;AAA1E,iJAAA,OAAO,OAA0B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { SubmitHandler, Validate } from 'react-hook-form';
|
|
3
|
+
import type { NewAccountPayload } from '../../forms/NewAccountForm/NewAccountForm';
|
|
4
|
+
declare type CreateNewAccountPageProps = {
|
|
5
|
+
initialValues?: Omit<NewAccountPayload, 'password'>;
|
|
6
|
+
validateEmail: Validate<string>;
|
|
7
|
+
validatePassword: Validate<string>;
|
|
8
|
+
validateConfirmationPassword: Validate<string>;
|
|
9
|
+
onSubmit: SubmitHandler<NewAccountPayload>;
|
|
10
|
+
onLogin: () => void;
|
|
11
|
+
};
|
|
12
|
+
declare const CreateNewAccountPage: ({ onLogin, ...props }: CreateNewAccountPageProps) => ReactElement;
|
|
13
|
+
export default CreateNewAccountPage;
|
|
14
|
+
//# sourceMappingURL=CreateNewAccountPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateNewAccountPage.d.ts","sourceRoot":"","sources":["../../../../src/pages/CreateNewAccountPage/CreateNewAccountPage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAQ/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,aAAK,yBAAyB,GAAG;IAC/B,aAAa,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;IACpD,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChC,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnC,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/C,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAMF,QAAA,MAAM,oBAAoB,0BAGvB,yBAAyB,KAAG,YAoB9B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
29
|
+
var fuselage_1 = require("@rocket.chat/fuselage");
|
|
30
|
+
var react_i18next_1 = require("react-i18next");
|
|
31
|
+
var ActionLink_1 = __importDefault(require("../../common/ActionLink"));
|
|
32
|
+
var BackgroundLayer_1 = __importDefault(require("../../common/BackgroundLayer"));
|
|
33
|
+
var FormPageLayout_1 = __importDefault(require("../../common/FormPageLayout"));
|
|
34
|
+
var NewAccountForm_1 = __importDefault(require("../../forms/NewAccountForm"));
|
|
35
|
+
var pageLayoutStyleProps = {
|
|
36
|
+
justifyContent: 'center',
|
|
37
|
+
};
|
|
38
|
+
var CreateNewAccountPage = function (_a) {
|
|
39
|
+
var onLogin = _a.onLogin, props = __rest(_a, ["onLogin"]);
|
|
40
|
+
var t = react_i18next_1.useTranslation().t;
|
|
41
|
+
return (jsx_runtime_1.jsx(BackgroundLayer_1.default, { children: jsx_runtime_1.jsxs(FormPageLayout_1.default, __assign({ title: t('page.newAccountForm.title'), styleProps: pageLayoutStyleProps }, { children: [jsx_runtime_1.jsx(NewAccountForm_1.default, __assign({}, props), void 0), jsx_runtime_1.jsx(fuselage_1.Box, __assign({ fontScale: 'h4', pbs: 'x40' }, { children: jsx_runtime_1.jsxs(react_i18next_1.Trans, __assign({ i18nKey: 'component.createNewAccountPage' }, { children: ["Already registered?", jsx_runtime_1.jsx(ActionLink_1.default, __assign({ fontScale: 'h4', onClick: onLogin }, { children: "Go to login" }), void 0)] }), void 0) }), void 0)] }), void 0) }, void 0));
|
|
42
|
+
};
|
|
43
|
+
exports.default = CreateNewAccountPage;
|
|
44
|
+
//# sourceMappingURL=CreateNewAccountPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateNewAccountPage.js","sourceRoot":"","sources":["../../../../src/pages/CreateNewAccountPage/CreateNewAccountPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA4C;AAG5C,+CAAsD;AAEtD,uEAAiD;AACjD,iFAA2D;AAC3D,+EAAyD;AAEzD,8EAAwD;AAYxD,IAAM,oBAAoB,GAA6B;IACrD,cAAc,EAAE,QAAQ;CACzB,CAAC;AAEF,IAAM,oBAAoB,GAAG,UAAC,EAGF;IAF1B,IAAA,OAAO,aAAA,EACJ,KAAK,cAFoB,WAG7B,CADS;IAEA,IAAA,CAAC,GAAK,8BAAc,EAAE,EAArB,CAAsB;IAC/B,OAAO,CACL,kBAAC,yBAAe,cACd,mBAAC,wBAAc,aACb,KAAK,EAAE,CAAC,CAAC,2BAA2B,CAAC,EACrC,UAAU,EAAE,oBAAoB,iBAEhC,kBAAC,wBAAc,eAAK,KAAK,UAAI,EAC7B,kBAAC,cAAG,aAAC,SAAS,EAAC,IAAI,EAAC,GAAG,EAAC,KAAK,gBAC3B,mBAAC,qBAAK,aAAC,OAAO,EAAC,gCAAgC,wCAE7C,kBAAC,oBAAU,aAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAE,OAAO,yCAE9B,aACP,YACJ,aACS,WACD,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pages/CreateNewAccountPage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var CreateNewAccountPage_1 = require("./CreateNewAccountPage");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(CreateNewAccountPage_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/CreateNewAccountPage/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAiD;AAAxC,gIAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
declare type OauthAuthorizationPageProps = {
|
|
3
|
+
clientName?: string;
|
|
4
|
+
onClickAuthorizeOAuth: () => void;
|
|
5
|
+
error: {
|
|
6
|
+
message?: string;
|
|
7
|
+
onGoBack?: () => void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
declare const OauthAuthorizationPage: ({ clientName, onClickAuthorizeOAuth, error, }: OauthAuthorizationPageProps) => ReactElement;
|
|
11
|
+
export default OauthAuthorizationPage;
|
|
12
|
+
//# sourceMappingURL=OauthAuthorizationPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OauthAuthorizationPage.d.ts","sourceRoot":"","sources":["../../../../src/pages/OauthAuthorizationPage/OauthAuthorizationPage.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAM1C,aAAK,2BAA2B,GAAG;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,KAAK,EAAE;QACL,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,QAAA,MAAM,sBAAsB,kDAIzB,2BAA2B,KAAG,YAkEhC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
+
var fuselage_1 = require("@rocket.chat/fuselage");
|
|
19
|
+
var colors_json_1 = __importDefault(require("@rocket.chat/fuselage-tokens/colors.json"));
|
|
20
|
+
var react_i18next_1 = require("react-i18next");
|
|
21
|
+
var BackgroundLayer_1 = __importDefault(require("../../common/BackgroundLayer"));
|
|
22
|
+
var OnboardingLogo_1 = require("../../common/OnboardingLogo");
|
|
23
|
+
var OauthAuthorizationPage = function (_a) {
|
|
24
|
+
var clientName = _a.clientName, onClickAuthorizeOAuth = _a.onClickAuthorizeOAuth, error = _a.error;
|
|
25
|
+
var t = react_i18next_1.useTranslation().t;
|
|
26
|
+
var name = clientName || '...loading...';
|
|
27
|
+
return (jsx_runtime_1.jsx(BackgroundLayer_1.default, { children: jsx_runtime_1.jsxs(fuselage_1.Box, __assign({ display: 'flex', flexDirection: 'column', alignItems: 'center', textAlign: 'center', width: '100%', maxWidth: 576, paddingBlock: 32, paddingInline: 16 }, { children: [jsx_runtime_1.jsx(OnboardingLogo_1.OnboardingLogo, {}, void 0), jsx_runtime_1.jsx(fuselage_1.Box, __assign({ fontWeight: 500, width: '100%', mbs: 'x24', mbe: 'x36', fontSize: 'x57', lineHeight: 'x62', fontFamily: 'sans' }, { children: t('page.oauthAuthorizationPage.title') }), void 0), jsx_runtime_1.jsx(fuselage_1.Box, __assign({ width: 'full', backgroundColor: 'white' }, { children: jsx_runtime_1.jsx(fuselage_1.Box, __assign({ fontScale: 'p1', p: 'x40', textAlign: 'start', color: colors_json_1.default.n900 }, { children: error.message ? (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [jsx_runtime_1.jsx(fuselage_1.Box, __assign({ fontScale: 'h1', mbe: 'x18' }, { children: "Error" }), void 0), error.message, jsx_runtime_1.jsx(fuselage_1.Box, __assign({ mbs: 'x24' }, { children: jsx_runtime_1.jsx(fuselage_1.Button, __assign({ onClick: error.onGoBack, primary: true }, { children: t('page.oauthAuthorizationPage.buttons.goBack') }), void 0) }), void 0)] }, void 0)) : (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [jsx_runtime_1.jsxs(react_i18next_1.Trans, __assign({ i18nKey: 'page.oauthAuthorizationPage.allowLogin', name: name }, { children: ["Do you wish to allow", jsx_runtime_1.jsx("strong", { children: { name: name } }, void 0), "to login with your Rocket.Chat Cloud Account?"] }), void 0), jsx_runtime_1.jsx(fuselage_1.Box, __assign({ mbs: 'x24' }, { children: jsx_runtime_1.jsx(fuselage_1.Button, __assign({ onClick: onClickAuthorizeOAuth, primary: true }, { children: t('page.oauthAuthorizationPage.buttons.authorize') }), void 0) }), void 0)] }, void 0)) }), void 0) }), void 0)] }), void 0) }, void 0));
|
|
28
|
+
};
|
|
29
|
+
exports.default = OauthAuthorizationPage;
|
|
30
|
+
//# sourceMappingURL=OauthAuthorizationPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OauthAuthorizationPage.js","sourceRoot":"","sources":["../../../../src/pages/OauthAuthorizationPage/OauthAuthorizationPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAAoD;AACpD,yFAA8D;AAE9D,+CAAsD;AAEtD,iFAA2D;AAC3D,8DAA6D;AAW7D,IAAM,sBAAsB,GAAG,UAAC,EAIF;QAH5B,UAAU,gBAAA,EACV,qBAAqB,2BAAA,EACrB,KAAK,WAAA;IAEG,IAAA,CAAC,GAAK,8BAAc,EAAE,EAArB,CAAsB;IAE/B,IAAM,IAAI,GAAG,UAAU,IAAI,eAAe,CAAC;IAE3C,OAAO,CACL,kBAAC,yBAAe,cACd,mBAAC,cAAG,aACF,OAAO,EAAC,MAAM,EACd,aAAa,EAAC,QAAQ,EACtB,UAAU,EAAC,QAAQ,EACnB,SAAS,EAAC,QAAQ,EAClB,KAAK,EAAC,MAAM,EACZ,QAAQ,EAAE,GAAG,EACb,YAAY,EAAE,EAAE,EAChB,aAAa,EAAE,EAAE,iBAEjB,kBAAC,+BAAc,aAAG,EAClB,kBAAC,cAAG,aACF,UAAU,EAAE,GAAG,EACf,KAAK,EAAC,MAAM,EACZ,GAAG,EAAC,KAAK,EACT,GAAG,EAAC,KAAK,EACT,QAAQ,EAAC,KAAK,EACd,UAAU,EAAC,KAAK,EAChB,UAAU,EAAC,MAAM,gBAEhB,CAAC,CAAC,mCAAmC,CAAC,YACnC,EACN,kBAAC,cAAG,aAAC,KAAK,EAAC,MAAM,EAAC,eAAe,EAAC,OAAO,gBACvC,kBAAC,cAAG,aAAC,SAAS,EAAC,IAAI,EAAC,CAAC,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAE,qBAAM,CAAC,IAAI,gBAC7D,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CACf,wDACE,kBAAC,cAAG,aAAC,SAAS,EAAC,IAAI,EAAC,GAAG,EAAC,KAAK,mCAEvB,EACL,KAAK,CAAC,OAAO,EACd,kBAAC,cAAG,aAAC,GAAG,EAAC,KAAK,gBACZ,kBAAC,iBAAM,aAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,OAAO,sBACrC,CAAC,CAAC,4CAA4C,CAAC,YACzC,YACL,YACL,CACJ,CAAC,CAAC,CAAC,CACF,wDACE,mBAAC,qBAAK,aACJ,OAAO,EAAC,wCAAwC,EAChD,IAAI,EAAE,IAAI,yCAGV,wCAAS,EAAE,IAAI,MAAA,EAAE,WAAU,8DAErB,EAER,kBAAC,cAAG,aAAC,GAAG,EAAC,KAAK,gBACZ,kBAAC,iBAAM,aAAC,OAAO,EAAE,qBAAqB,EAAE,OAAO,sBAC5C,CAAC,CAAC,+CAA+C,CAAC,YAC5C,YACL,YACL,CACJ,YACG,YACF,aACF,WACU,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pages/OauthAuthorizationPage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var OauthAuthorizationPage_1 = require("./OauthAuthorizationPage");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(OauthAuthorizationPage_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/OauthAuthorizationPage/index.ts"],"names":[],"mappings":";;;;;;AAAA,mEAAmD;AAA1C,kIAAA,OAAO,OAAA"}
|
|
@@ -2,7 +2,7 @@ import { Box, Icon } from '@rocket.chat/fuselage';
|
|
|
2
2
|
import type { ComponentProps, ReactElement, ReactNode } from 'react';
|
|
3
3
|
declare const ListItem: ({ children, icon, iconColor, fontScale, }: {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
icon?:
|
|
5
|
+
icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "info" | "underline" | "copy" | "user" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-up-box" | "at" | "avatar" | "backspace" | "bag" | "ball" | "balloon" | "balloon-arrow-left" | "balloon-arrow-top-right" | "balloon-close-top-right" | "balloon-ellipsis" | "balloon-exclamation" | "balloon-off" | "balloons" | "balloon-text" | "ban" | "bell" | "bell-off" | "book" | "brush" | "burger" | "burger-arrow-left" | "business" | "calendar" | "camera" | "card" | "check" | "chevron-down" | "chevron-expand" | "chevron-left" | "chevron-right" | "chevron-up" | "circle-arrow-down" | "circle-check" | "circle-cross" | "clipboard" | "clock" | "cloud-arrow-up" | "cloud-plus" | "cog" | "condensed-view" | "contact" | "crop" | "cross" | "cross-small" | "cube" | "customize" | "desktop" | "dialpad" | "doc" | "document-eye" | "doner" | "emoji" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-off" | "group-by-type" | "hash" | "hashtag-lock" | "h-bar" | "headphone" | "headphone-off" | "headset" | "help" | "history" | "home" | "joystick" | "kebab" | "keyboard" | "language" | "list-bullets" | "list-numbers" | "live" | "lock" | "login" | "magnifier" | "mail" | "mail-arrow-top-right" | "meatballs" | "medium-view" | "members" | "mic" | "mic-off" | "mobile" | "moon" | "musical-note" | "new-window" | "pause" | "pause-unfilled" | "pencil" | "pencil-box" | "phone" | "phone-disabled" | "phone-in" | "phone-off" | "phone-out" | "pin" | "pin-map" | "play" | "plus" | "plus-small" | "podcast" | "quote" | "rec" | "refresh" | "send" | "send-filled" | "sheet" | "shield" | "shield-check" | "shredder" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "strike" | "success-circle" | "sun" | "team" | "team-arrow-right" | "team-lock" | "text-decrease" | "text-increase" | "trash" | "undo" | "user-arrow-right" | "user-plus" | "video-disabled" | "video-filled" | "video-off" | "volume" | "volume-disabled" | "volume-lock" | "volume-off" | "warning" | "zip" | "add-reaction" | "add-user" | "attachment" | "back" | "baloon-arrow-left" | "baloon-arrow-top-right" | "baloon-close-top-right" | "baloon-ellipsis" | "baloon-exclamation" | "baloons" | "baloon-text" | "cancel" | "canned-response" | "chat" | "checkmark-circled" | "circled-arrow-down" | "computer" | "discover" | "discussion" | "edit" | "edit-rounded" | "file-document" | "file-generic" | "file-google-drive" | "file-pdf" | "files-audio" | "file-sheets" | "files-video" | "files-zip" | "game" | "hashtag" | "import" | "info-circled" | "jump" | "jump-to-message" | "map-pin" | "message" | "message-disabled" | "modal-warning" | "multiline" | "omnichannel" | "permalink" | "post" | "queue" | "reload" | "reply-directly" | "report" | "send-active" | "share" | "shield-alt" | "sign-out" | "sort-amount-down" | "th-list" | "thread" | "upload" | "user-rounded" | "file-keynote" | "hand-pointer" | "list-alt" | "livechat" | "loading" | "play-solid" | "reply" | "sort-down" | "sort-up" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
|
|
6
6
|
iconColor?: ComponentProps<typeof Icon>['color'];
|
|
7
7
|
fontScale?: ComponentProps<typeof Box>['fontScale'];
|
|
8
8
|
}) => ReactElement;
|
|
@@ -8,7 +8,7 @@ declare const _default: (({ children, listStyleType, icon, spacing, color, }: {
|
|
|
8
8
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
9
9
|
Item: ({ children, icon, iconColor, fontScale, }: {
|
|
10
10
|
children: import("react").ReactNode;
|
|
11
|
-
icon?:
|
|
11
|
+
icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "info" | "underline" | "copy" | "user" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-up-box" | "at" | "avatar" | "backspace" | "bag" | "ball" | "balloon" | "balloon-arrow-left" | "balloon-arrow-top-right" | "balloon-close-top-right" | "balloon-ellipsis" | "balloon-exclamation" | "balloon-off" | "balloons" | "balloon-text" | "ban" | "bell" | "bell-off" | "book" | "brush" | "burger" | "burger-arrow-left" | "business" | "calendar" | "camera" | "card" | "check" | "chevron-down" | "chevron-expand" | "chevron-left" | "chevron-right" | "chevron-up" | "circle-arrow-down" | "circle-check" | "circle-cross" | "clipboard" | "clock" | "cloud-arrow-up" | "cloud-plus" | "cog" | "condensed-view" | "contact" | "crop" | "cross" | "cross-small" | "cube" | "customize" | "desktop" | "dialpad" | "doc" | "document-eye" | "doner" | "emoji" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-off" | "group-by-type" | "hash" | "hashtag-lock" | "h-bar" | "headphone" | "headphone-off" | "headset" | "help" | "history" | "home" | "joystick" | "kebab" | "keyboard" | "language" | "list-bullets" | "list-numbers" | "live" | "lock" | "login" | "magnifier" | "mail" | "mail-arrow-top-right" | "meatballs" | "medium-view" | "members" | "mic" | "mic-off" | "mobile" | "moon" | "musical-note" | "new-window" | "pause" | "pause-unfilled" | "pencil" | "pencil-box" | "phone" | "phone-disabled" | "phone-in" | "phone-off" | "phone-out" | "pin" | "pin-map" | "play" | "plus" | "plus-small" | "podcast" | "quote" | "rec" | "refresh" | "send" | "send-filled" | "sheet" | "shield" | "shield-check" | "shredder" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "strike" | "success-circle" | "sun" | "team" | "team-arrow-right" | "team-lock" | "text-decrease" | "text-increase" | "trash" | "undo" | "user-arrow-right" | "user-plus" | "video-disabled" | "video-filled" | "video-off" | "volume" | "volume-disabled" | "volume-lock" | "volume-off" | "warning" | "zip" | "add-reaction" | "add-user" | "attachment" | "back" | "baloon-arrow-left" | "baloon-arrow-top-right" | "baloon-close-top-right" | "baloon-ellipsis" | "baloon-exclamation" | "baloons" | "baloon-text" | "cancel" | "canned-response" | "chat" | "checkmark-circled" | "circled-arrow-down" | "computer" | "discover" | "discussion" | "edit" | "edit-rounded" | "file-document" | "file-generic" | "file-google-drive" | "file-pdf" | "files-audio" | "file-sheets" | "files-video" | "files-zip" | "game" | "hashtag" | "import" | "info-circled" | "jump" | "jump-to-message" | "map-pin" | "message" | "message-disabled" | "modal-warning" | "multiline" | "omnichannel" | "permalink" | "post" | "queue" | "reload" | "reply-directly" | "report" | "send-active" | "share" | "shield-alt" | "sign-out" | "sort-amount-down" | "th-list" | "thread" | "upload" | "user-rounded" | "file-keynote" | "hand-pointer" | "list-alt" | "livechat" | "loading" | "play-solid" | "reply" | "sort-down" | "sort-up" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
|
|
12
12
|
iconColor?: (import("csstype").Property.Color & string) | undefined;
|
|
13
13
|
fontScale?: ("h1" | "h2" | "h3" | "h4" | "h5" | "hero" | "p1" | "p2" | "p3" | "p4" | "c1" | "c2" | "micro") | undefined;
|
|
14
14
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { SubmitHandler, Validate } from 'react-hook-form';
|
|
3
|
+
export declare type NewAccountPayload = {
|
|
4
|
+
name: string;
|
|
5
|
+
email: string;
|
|
6
|
+
password: string;
|
|
7
|
+
confirmPassword: string;
|
|
8
|
+
agreement?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare type NewAccountFormProps = {
|
|
11
|
+
initialValues?: Omit<NewAccountPayload, 'password'>;
|
|
12
|
+
validateEmail: Validate<string>;
|
|
13
|
+
validatePassword: Validate<string>;
|
|
14
|
+
validateConfirmationPassword: Validate<string>;
|
|
15
|
+
onSubmit: SubmitHandler<NewAccountPayload>;
|
|
16
|
+
};
|
|
17
|
+
declare const NewAccountForm: ({ validateEmail, validatePassword, validateConfirmationPassword, onSubmit, }: NewAccountFormProps) => ReactElement;
|
|
18
|
+
export default NewAccountForm;
|
|
19
|
+
//# sourceMappingURL=NewAccountForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewAccountForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/NewAccountForm/NewAccountForm.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAChD,OAAO,EAAW,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAKnE,oBAAY,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,aAAK,mBAAmB,GAAG;IACzB,aAAa,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;IACpD,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChC,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnC,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/C,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CAC5C,CAAC;AAEF,QAAA,MAAM,cAAc,iFAKjB,mBAAmB,KAAG,YAgIxB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { EmailInput, FieldGroup, Field, ButtonGroup, Button, PasswordInput, TextInput, Box, CheckBox, } from '@rocket.chat/fuselage';
|
|
14
|
+
import { useEffect } from 'react';
|
|
15
|
+
import { useForm } from 'react-hook-form';
|
|
16
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
17
|
+
import Form from '../../common/Form';
|
|
18
|
+
var NewAccountForm = function (_a) {
|
|
19
|
+
var _b;
|
|
20
|
+
var validateEmail = _a.validateEmail, validatePassword = _a.validatePassword, validateConfirmationPassword = _a.validateConfirmationPassword, onSubmit = _a.onSubmit;
|
|
21
|
+
var t = useTranslation().t;
|
|
22
|
+
var _c = useForm({ mode: 'onChange' }), register = _c.register, handleSubmit = _c.handleSubmit, _d = _c.formState, isValidating = _d.isValidating, isSubmitting = _d.isSubmitting, isValid = _d.isValid, errors = _d.errors, setFocus = _c.setFocus;
|
|
23
|
+
useEffect(function () {
|
|
24
|
+
setFocus('name');
|
|
25
|
+
}, [setFocus]);
|
|
26
|
+
return (_jsxs(Form, __assign({ onSubmit: handleSubmit(onSubmit) }, { children: [_jsx(Form.Container, { children: _jsxs(FieldGroup, { children: [_jsxs(Field, { children: [_jsx(Field.Label, { children: t('form.newAccountForm.fields.name.label') }, void 0), _jsx(Field.Row, { children: _jsx(TextInput, __assign({}, register('name', {
|
|
27
|
+
required: String(t('component.form.requiredField')),
|
|
28
|
+
})), void 0) }, void 0), errors.name && _jsx(Field.Error, { children: errors.name.message }, void 0)] }, void 0), _jsxs(Field, { children: [_jsx(Field.Label, { children: t('form.newAccountForm.fields.email.label') }, void 0), _jsx(Field.Row, { children: _jsx(EmailInput, __assign({}, register('email', {
|
|
29
|
+
validate: validateEmail,
|
|
30
|
+
required: true,
|
|
31
|
+
})), void 0) }, void 0), (errors === null || errors === void 0 ? void 0 : errors.email) && _jsx(Field.Error, { children: errors.email.message }, void 0)] }, void 0), _jsxs(Field, { children: [_jsx(Field.Label, { children: t('form.newAccountForm.fields.password.label') }, void 0), _jsx(Field.Row, { children: _jsx(PasswordInput, __assign({}, register('password', {
|
|
32
|
+
required: true,
|
|
33
|
+
validate: validatePassword,
|
|
34
|
+
})), void 0) }, void 0), errors.password && (_jsx(Field.Error, { children: errors.password.message }, void 0))] }, void 0), _jsxs(Field, { children: [_jsx(Field.Label, { children: t('form.newAccountForm.fields.confirmPassword.label') }, void 0), _jsx(Field.Row, { children: _jsx(PasswordInput, __assign({}, register('confirmPassword', {
|
|
35
|
+
required: true,
|
|
36
|
+
validate: validateConfirmationPassword,
|
|
37
|
+
})), void 0) }, void 0), errors.confirmPassword && (_jsx(Field.Error, { children: errors.confirmPassword.message }, void 0))] }, void 0), _jsxs(Field, { children: [_jsxs(Field.Row, __assign({ justifyContent: 'flex-start' }, { children: [_jsx(CheckBox, __assign({}, register('agreement', { required: true }), { mie: 'x8' }), void 0), _jsx(Box, __assign({ is: 'label', htmlFor: 'agreement', withRichContent: true, fontScale: 'c1' }, { children: _jsxs(Trans, __assign({ i18nKey: 'component.form.termsAndConditions' }, { children: ["I agree with", _jsx("a", __assign({ href: 'https://rocket.chat/terms', target: '_blank', rel: 'noopener noreferrer' }, { children: "Terms and Conditions" }), void 0), "and", _jsx("a", __assign({ href: 'https://rocket.chat/policy', target: '_blank', rel: 'noopener noreferrer' }, { children: "Privacy Polic" }), void 0)] }), void 0) }), void 0)] }), void 0), ((_b = errors.agreement) === null || _b === void 0 ? void 0 : _b.type) === 'required' && (_jsx(Field.Error, { children: t('component.form.requiredField') }, void 0))] }, void 0)] }, void 0) }, void 0), _jsx(Form.Footer, { children: _jsx(ButtonGroup, __assign({ flexGrow: 1 }, { children: _jsx(Button, __assign({ type: 'submit', primary: true, disabled: isValidating || isSubmitting || !isValid }, { children: t('component.form.action.next') }), void 0) }), void 0) }, void 0)] }), void 0));
|
|
38
|
+
};
|
|
39
|
+
export default NewAccountForm;
|
|
40
|
+
//# sourceMappingURL=NewAccountForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewAccountForm.js","sourceRoot":"","sources":["../../../../src/forms/NewAccountForm/NewAccountForm.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,UAAU,EACV,KAAK,EACL,WAAW,EACX,MAAM,EACN,aAAa,EACb,SAAS,EACT,GAAG,EACH,QAAQ,GACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,OAAO,EAA2B,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,IAAI,MAAM,mBAAmB,CAAC;AAkBrC,IAAM,cAAc,GAAG,UAAC,EAKF;;QAJ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AA4B,EACjC,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,2CAGvB,aACE,YACJ,aACI,EACX,CAAA,MAAA,MAAM,CAAC,SAAS,0CAAE,IAAI,MAAK,UAAU,IAAI,CACxC,KAAC,KAAK,CAAC,KAAK,cAAE,CAAC,CAAC,8BAA8B,CAAC,WAAe,CAC/D,YACK,YACG,WACE,EACjB,KAAC,IAAI,CAAC,MAAM,cACV,KAAC,WAAW,aAAC,QAAQ,EAAE,CAAC,gBACtB,KAAC,MAAM,aACL,IAAI,EAAC,QAAQ,EACb,OAAO,QACP,QAAQ,EAAE,YAAY,IAAI,YAAY,IAAI,CAAC,OAAO,gBAEjD,CAAC,CAAC,4BAA4B,CAAC,YACzB,YACG,WACF,aACT,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/forms/NewAccountForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/forms/NewAccountForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -22,14 +22,14 @@ declare const _default: (({ selected, onClick, children, }: {
|
|
|
22
22
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
23
23
|
Item: ({ children, icon, iconColor, fontScale, }: {
|
|
24
24
|
children: import("react").ReactNode;
|
|
25
|
-
icon?:
|
|
25
|
+
icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "info" | "underline" | "copy" | "user" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-up-box" | "at" | "avatar" | "backspace" | "bag" | "ball" | "balloon" | "balloon-arrow-left" | "balloon-arrow-top-right" | "balloon-close-top-right" | "balloon-ellipsis" | "balloon-exclamation" | "balloon-off" | "balloons" | "balloon-text" | "ban" | "bell" | "bell-off" | "book" | "brush" | "burger" | "burger-arrow-left" | "business" | "calendar" | "camera" | "card" | "check" | "chevron-down" | "chevron-expand" | "chevron-left" | "chevron-right" | "chevron-up" | "circle-arrow-down" | "circle-check" | "circle-cross" | "clipboard" | "clock" | "cloud-arrow-up" | "cloud-plus" | "cog" | "condensed-view" | "contact" | "crop" | "cross" | "cross-small" | "cube" | "customize" | "desktop" | "dialpad" | "doc" | "document-eye" | "doner" | "emoji" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-off" | "group-by-type" | "hash" | "hashtag-lock" | "h-bar" | "headphone" | "headphone-off" | "headset" | "help" | "history" | "home" | "joystick" | "kebab" | "keyboard" | "language" | "list-bullets" | "list-numbers" | "live" | "lock" | "login" | "magnifier" | "mail" | "mail-arrow-top-right" | "meatballs" | "medium-view" | "members" | "mic" | "mic-off" | "mobile" | "moon" | "musical-note" | "new-window" | "pause" | "pause-unfilled" | "pencil" | "pencil-box" | "phone" | "phone-disabled" | "phone-in" | "phone-off" | "phone-out" | "pin" | "pin-map" | "play" | "plus" | "plus-small" | "podcast" | "quote" | "rec" | "refresh" | "send" | "send-filled" | "sheet" | "shield" | "shield-check" | "shredder" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "strike" | "success-circle" | "sun" | "team" | "team-arrow-right" | "team-lock" | "text-decrease" | "text-increase" | "trash" | "undo" | "user-arrow-right" | "user-plus" | "video-disabled" | "video-filled" | "video-off" | "volume" | "volume-disabled" | "volume-lock" | "volume-off" | "warning" | "zip" | "add-reaction" | "add-user" | "attachment" | "back" | "baloon-arrow-left" | "baloon-arrow-top-right" | "baloon-close-top-right" | "baloon-ellipsis" | "baloon-exclamation" | "baloons" | "baloon-text" | "cancel" | "canned-response" | "chat" | "checkmark-circled" | "circled-arrow-down" | "computer" | "discover" | "discussion" | "edit" | "edit-rounded" | "file-document" | "file-generic" | "file-google-drive" | "file-pdf" | "files-audio" | "file-sheets" | "files-video" | "files-zip" | "game" | "hashtag" | "import" | "info-circled" | "jump" | "jump-to-message" | "map-pin" | "message" | "message-disabled" | "modal-warning" | "multiline" | "omnichannel" | "permalink" | "post" | "queue" | "reload" | "reply-directly" | "report" | "send-active" | "share" | "shield-alt" | "sign-out" | "sort-amount-down" | "th-list" | "thread" | "upload" | "user-rounded" | "file-keynote" | "hand-pointer" | "list-alt" | "livechat" | "loading" | "play-solid" | "reply" | "sort-down" | "sort-up" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
|
|
26
26
|
iconColor?: (import("csstype").Property.Color & string) | undefined;
|
|
27
27
|
fontScale?: ("h1" | "h2" | "h3" | "h4" | "h5" | "hero" | "p1" | "p2" | "p3" | "p4" | "c1" | "c2" | "micro") | undefined;
|
|
28
28
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
29
29
|
};
|
|
30
30
|
ListItem: ({ children, icon, iconColor, fontScale, }: {
|
|
31
31
|
children: import("react").ReactNode;
|
|
32
|
-
icon?:
|
|
32
|
+
icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "info" | "underline" | "copy" | "user" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-up-box" | "at" | "avatar" | "backspace" | "bag" | "ball" | "balloon" | "balloon-arrow-left" | "balloon-arrow-top-right" | "balloon-close-top-right" | "balloon-ellipsis" | "balloon-exclamation" | "balloon-off" | "balloons" | "balloon-text" | "ban" | "bell" | "bell-off" | "book" | "brush" | "burger" | "burger-arrow-left" | "business" | "calendar" | "camera" | "card" | "check" | "chevron-down" | "chevron-expand" | "chevron-left" | "chevron-right" | "chevron-up" | "circle-arrow-down" | "circle-check" | "circle-cross" | "clipboard" | "clock" | "cloud-arrow-up" | "cloud-plus" | "cog" | "condensed-view" | "contact" | "crop" | "cross" | "cross-small" | "cube" | "customize" | "desktop" | "dialpad" | "doc" | "document-eye" | "doner" | "emoji" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-off" | "group-by-type" | "hash" | "hashtag-lock" | "h-bar" | "headphone" | "headphone-off" | "headset" | "help" | "history" | "home" | "joystick" | "kebab" | "keyboard" | "language" | "list-bullets" | "list-numbers" | "live" | "lock" | "login" | "magnifier" | "mail" | "mail-arrow-top-right" | "meatballs" | "medium-view" | "members" | "mic" | "mic-off" | "mobile" | "moon" | "musical-note" | "new-window" | "pause" | "pause-unfilled" | "pencil" | "pencil-box" | "phone" | "phone-disabled" | "phone-in" | "phone-off" | "phone-out" | "pin" | "pin-map" | "play" | "plus" | "plus-small" | "podcast" | "quote" | "rec" | "refresh" | "send" | "send-filled" | "sheet" | "shield" | "shield-check" | "shredder" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "strike" | "success-circle" | "sun" | "team" | "team-arrow-right" | "team-lock" | "text-decrease" | "text-increase" | "trash" | "undo" | "user-arrow-right" | "user-plus" | "video-disabled" | "video-filled" | "video-off" | "volume" | "volume-disabled" | "volume-lock" | "volume-off" | "warning" | "zip" | "add-reaction" | "add-user" | "attachment" | "back" | "baloon-arrow-left" | "baloon-arrow-top-right" | "baloon-close-top-right" | "baloon-ellipsis" | "baloon-exclamation" | "baloons" | "baloon-text" | "cancel" | "canned-response" | "chat" | "checkmark-circled" | "circled-arrow-down" | "computer" | "discover" | "discussion" | "edit" | "edit-rounded" | "file-document" | "file-generic" | "file-google-drive" | "file-pdf" | "files-audio" | "file-sheets" | "files-video" | "files-zip" | "game" | "hashtag" | "import" | "info-circled" | "jump" | "jump-to-message" | "map-pin" | "message" | "message-disabled" | "modal-warning" | "multiline" | "omnichannel" | "permalink" | "post" | "queue" | "reload" | "reply-directly" | "report" | "send-active" | "share" | "shield-alt" | "sign-out" | "sort-amount-down" | "th-list" | "thread" | "upload" | "user-rounded" | "file-keynote" | "hand-pointer" | "list-alt" | "livechat" | "loading" | "play-solid" | "reply" | "sort-down" | "sort-up" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
|
|
33
33
|
iconColor?: (import("csstype").Property.Color & string) | undefined;
|
|
34
34
|
fontScale?: ("h1" | "h2" | "h3" | "h4" | "h5" | "hero" | "p1" | "p2" | "p3" | "p4" | "c1" | "c2" | "micro") | undefined;
|
|
35
35
|
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -12,4 +12,6 @@ export { default as RegisterServerPage } from './pages/RegisterServerPage';
|
|
|
12
12
|
export { default as RequestTrialPage } from './pages/RequestTrialPage';
|
|
13
13
|
export { default as DarkModeProvider } from './common/DarkModeProvider';
|
|
14
14
|
export { default as LoginPage } from './pages/LoginPage';
|
|
15
|
+
export { default as CreateNewAccountPage } from './pages/CreateNewAccountPage';
|
|
16
|
+
export { default as OauthAuthorizationPage } from './pages/OauthAuthorizationPage';
|
|
15
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EA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I,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -12,4 +12,6 @@ export { default as RegisterServerPage } from './pages/RegisterServerPage';
|
|
|
12
12
|
export { default as RequestTrialPage } from './pages/RequestTrialPage';
|
|
13
13
|
export { default as DarkModeProvider } from './common/DarkModeProvider';
|
|
14
14
|
export { default as LoginPage } from './pages/LoginPage';
|
|
15
|
+
export { default as CreateNewAccountPage } from './pages/CreateNewAccountPage';
|
|
16
|
+
export { default as OauthAuthorizationPage } from './pages/OauthAuthorizationPage';
|
|
15
17
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE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AAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { SubmitHandler, Validate } from 'react-hook-form';
|
|
3
|
+
import type { NewAccountPayload } from '../../forms/NewAccountForm/NewAccountForm';
|
|
4
|
+
declare type CreateNewAccountPageProps = {
|
|
5
|
+
initialValues?: Omit<NewAccountPayload, 'password'>;
|
|
6
|
+
validateEmail: Validate<string>;
|
|
7
|
+
validatePassword: Validate<string>;
|
|
8
|
+
validateConfirmationPassword: Validate<string>;
|
|
9
|
+
onSubmit: SubmitHandler<NewAccountPayload>;
|
|
10
|
+
onLogin: () => void;
|
|
11
|
+
};
|
|
12
|
+
declare const CreateNewAccountPage: ({ onLogin, ...props }: CreateNewAccountPageProps) => ReactElement;
|
|
13
|
+
export default CreateNewAccountPage;
|
|
14
|
+
//# sourceMappingURL=CreateNewAccountPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateNewAccountPage.d.ts","sourceRoot":"","sources":["../../../../src/pages/CreateNewAccountPage/CreateNewAccountPage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAQ/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,aAAK,yBAAyB,GAAG;IAC/B,aAAa,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;IACpD,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChC,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnC,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC/C,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAMF,QAAA,MAAM,oBAAoB,0BAGvB,yBAAyB,KAAG,YAoB9B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { Box } from '@rocket.chat/fuselage';
|
|
25
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
26
|
+
import ActionLink from '../../common/ActionLink';
|
|
27
|
+
import BackgroundLayer from '../../common/BackgroundLayer';
|
|
28
|
+
import FormPageLayout from '../../common/FormPageLayout';
|
|
29
|
+
import NewAccountForm from '../../forms/NewAccountForm';
|
|
30
|
+
var pageLayoutStyleProps = {
|
|
31
|
+
justifyContent: 'center',
|
|
32
|
+
};
|
|
33
|
+
var CreateNewAccountPage = function (_a) {
|
|
34
|
+
var onLogin = _a.onLogin, props = __rest(_a, ["onLogin"]);
|
|
35
|
+
var t = useTranslation().t;
|
|
36
|
+
return (_jsx(BackgroundLayer, { children: _jsxs(FormPageLayout, __assign({ title: t('page.newAccountForm.title'), styleProps: pageLayoutStyleProps }, { children: [_jsx(NewAccountForm, __assign({}, props), void 0), _jsx(Box, __assign({ fontScale: 'h4', pbs: 'x40' }, { children: _jsxs(Trans, __assign({ i18nKey: 'component.createNewAccountPage' }, { children: ["Already registered?", _jsx(ActionLink, __assign({ fontScale: 'h4', onClick: onLogin }, { children: "Go to login" }), void 0)] }), void 0) }), void 0)] }), void 0) }, void 0));
|
|
37
|
+
};
|
|
38
|
+
export default CreateNewAccountPage;
|
|
39
|
+
//# sourceMappingURL=CreateNewAccountPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateNewAccountPage.js","sourceRoot":"","sources":["../../../../src/pages/CreateNewAccountPage/CreateNewAccountPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAG5C,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAEzD,OAAO,cAAc,MAAM,4BAA4B,CAAC;AAYxD,IAAM,oBAAoB,GAA6B;IACrD,cAAc,EAAE,QAAQ;CACzB,CAAC;AAEF,IAAM,oBAAoB,GAAG,UAAC,EAGF;IAF1B,IAAA,OAAO,aAAA,EACJ,KAAK,cAFoB,WAG7B,CADS;IAEA,IAAA,CAAC,GAAK,cAAc,EAAE,EAArB,CAAsB;IAC/B,OAAO,CACL,KAAC,eAAe,cACd,MAAC,cAAc,aACb,KAAK,EAAE,CAAC,CAAC,2BAA2B,CAAC,EACrC,UAAU,EAAE,oBAAoB,iBAEhC,KAAC,cAAc,eAAK,KAAK,UAAI,EAC7B,KAAC,GAAG,aAAC,SAAS,EAAC,IAAI,EAAC,GAAG,EAAC,KAAK,gBAC3B,MAAC,KAAK,aAAC,OAAO,EAAC,gCAAgC,wCAE7C,KAAC,UAAU,aAAC,SAAS,EAAC,IAAI,EAAC,OAAO,EAAE,OAAO,yCAE9B,aACP,YACJ,aACS,WACD,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pages/CreateNewAccountPage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/CreateNewAccountPage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
declare type OauthAuthorizationPageProps = {
|
|
3
|
+
clientName?: string;
|
|
4
|
+
onClickAuthorizeOAuth: () => void;
|
|
5
|
+
error: {
|
|
6
|
+
message?: string;
|
|
7
|
+
onGoBack?: () => void;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
declare const OauthAuthorizationPage: ({ clientName, onClickAuthorizeOAuth, error, }: OauthAuthorizationPageProps) => ReactElement;
|
|
11
|
+
export default OauthAuthorizationPage;
|
|
12
|
+
//# sourceMappingURL=OauthAuthorizationPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OauthAuthorizationPage.d.ts","sourceRoot":"","sources":["../../../../src/pages/OauthAuthorizationPage/OauthAuthorizationPage.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAM1C,aAAK,2BAA2B,GAAG;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,KAAK,EAAE;QACL,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,QAAA,MAAM,sBAAsB,kDAIzB,2BAA2B,KAAG,YAkEhC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { Box, Button } from '@rocket.chat/fuselage';
|
|
14
|
+
import colors from '@rocket.chat/fuselage-tokens/colors.json';
|
|
15
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
16
|
+
import BackgroundLayer from '../../common/BackgroundLayer';
|
|
17
|
+
import { OnboardingLogo } from '../../common/OnboardingLogo';
|
|
18
|
+
var OauthAuthorizationPage = function (_a) {
|
|
19
|
+
var clientName = _a.clientName, onClickAuthorizeOAuth = _a.onClickAuthorizeOAuth, error = _a.error;
|
|
20
|
+
var t = useTranslation().t;
|
|
21
|
+
var name = clientName || '...loading...';
|
|
22
|
+
return (_jsx(BackgroundLayer, { children: _jsxs(Box, __assign({ display: 'flex', flexDirection: 'column', alignItems: 'center', textAlign: 'center', width: '100%', maxWidth: 576, paddingBlock: 32, paddingInline: 16 }, { children: [_jsx(OnboardingLogo, {}, void 0), _jsx(Box, __assign({ fontWeight: 500, width: '100%', mbs: 'x24', mbe: 'x36', fontSize: 'x57', lineHeight: 'x62', fontFamily: 'sans' }, { children: t('page.oauthAuthorizationPage.title') }), void 0), _jsx(Box, __assign({ width: 'full', backgroundColor: 'white' }, { children: _jsx(Box, __assign({ fontScale: 'p1', p: 'x40', textAlign: 'start', color: colors.n900 }, { children: error.message ? (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ fontScale: 'h1', mbe: 'x18' }, { children: "Error" }), void 0), error.message, _jsx(Box, __assign({ mbs: 'x24' }, { children: _jsx(Button, __assign({ onClick: error.onGoBack, primary: true }, { children: t('page.oauthAuthorizationPage.buttons.goBack') }), void 0) }), void 0)] }, void 0)) : (_jsxs(_Fragment, { children: [_jsxs(Trans, __assign({ i18nKey: 'page.oauthAuthorizationPage.allowLogin', name: name }, { children: ["Do you wish to allow", _jsx("strong", { children: { name: name } }, void 0), "to login with your Rocket.Chat Cloud Account?"] }), void 0), _jsx(Box, __assign({ mbs: 'x24' }, { children: _jsx(Button, __assign({ onClick: onClickAuthorizeOAuth, primary: true }, { children: t('page.oauthAuthorizationPage.buttons.authorize') }), void 0) }), void 0)] }, void 0)) }), void 0) }), void 0)] }), void 0) }, void 0));
|
|
23
|
+
};
|
|
24
|
+
export default OauthAuthorizationPage;
|
|
25
|
+
//# sourceMappingURL=OauthAuthorizationPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OauthAuthorizationPage.js","sourceRoot":"","sources":["../../../../src/pages/OauthAuthorizationPage/OauthAuthorizationPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,MAAM,MAAM,0CAA0C,CAAC;AAE9D,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAW7D,IAAM,sBAAsB,GAAG,UAAC,EAIF;QAH5B,UAAU,gBAAA,EACV,qBAAqB,2BAAA,EACrB,KAAK,WAAA;IAEG,IAAA,CAAC,GAAK,cAAc,EAAE,EAArB,CAAsB;IAE/B,IAAM,IAAI,GAAG,UAAU,IAAI,eAAe,CAAC;IAE3C,OAAO,CACL,KAAC,eAAe,cACd,MAAC,GAAG,aACF,OAAO,EAAC,MAAM,EACd,aAAa,EAAC,QAAQ,EACtB,UAAU,EAAC,QAAQ,EACnB,SAAS,EAAC,QAAQ,EAClB,KAAK,EAAC,MAAM,EACZ,QAAQ,EAAE,GAAG,EACb,YAAY,EAAE,EAAE,EAChB,aAAa,EAAE,EAAE,iBAEjB,KAAC,cAAc,aAA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AAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/OauthAuthorizationPage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rocket.chat/onboarding-ui",
|
|
3
|
-
"version": "0.6.3-dev.
|
|
3
|
+
"version": "0.6.3-dev.370+7442f02a",
|
|
4
4
|
"description": "Set of components and functions for the onboarding experience on Rocket.Chat",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rocketchat"
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"url": "https://github.com/RocketChat/Rocket.Chat.Fuselage/issues"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@rocket.chat/eslint-config-alt": "^0.6.3-dev.
|
|
51
|
-
"@rocket.chat/fuselage-polyfills": "^0.6.3-dev.
|
|
52
|
-
"@rocket.chat/fuselage-tokens": "^0.6.3-dev.
|
|
53
|
-
"@rocket.chat/prettier-config": "^0.6.3-dev.
|
|
50
|
+
"@rocket.chat/eslint-config-alt": "^0.6.3-dev.370+7442f02a",
|
|
51
|
+
"@rocket.chat/fuselage-polyfills": "^0.6.3-dev.370+7442f02a",
|
|
52
|
+
"@rocket.chat/fuselage-tokens": "^0.6.3-dev.370+7442f02a",
|
|
53
|
+
"@rocket.chat/prettier-config": "^0.6.3-dev.370+7442f02a",
|
|
54
54
|
"@storybook/addon-essentials": "^6.3.4",
|
|
55
55
|
"@storybook/addons": "^6.3.4",
|
|
56
56
|
"@storybook/react": "^6.3.4",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
"typescript": "^4.3.4"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@rocket.chat/fuselage": "^0.6.3-dev.
|
|
80
|
-
"@rocket.chat/fuselage-hooks": "^0.6.3-dev.
|
|
81
|
-
"@rocket.chat/icons": "^0.6.3-dev.
|
|
82
|
-
"@rocket.chat/logo": "^0.6.3-dev.
|
|
83
|
-
"@rocket.chat/styled": "^0.6.3-dev.
|
|
79
|
+
"@rocket.chat/fuselage": "^0.6.3-dev.370+7442f02a",
|
|
80
|
+
"@rocket.chat/fuselage-hooks": "^0.6.3-dev.370+7442f02a",
|
|
81
|
+
"@rocket.chat/icons": "^0.6.3-dev.370+7442f02a",
|
|
82
|
+
"@rocket.chat/logo": "^0.6.3-dev.370+7442f02a",
|
|
83
|
+
"@rocket.chat/styled": "^0.6.3-dev.370+7442f02a",
|
|
84
84
|
"i18next": "^20.3.2",
|
|
85
85
|
"react-hook-form": "^7.10.1",
|
|
86
86
|
"react-i18next": "^11.11.0",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "7442f02ab0ffa5b083f9905e242ae7d03c632e58"
|
|
119
119
|
}
|