@rocket.chat/onboarding-ui 0.32.0-dev.11 → 0.32.0-dev.14

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/README.md CHANGED
@@ -25,11 +25,11 @@
25
25
  Firstly, install the peer dependencies (prerequisites):
26
26
 
27
27
  ```sh
28
- npm i @rocket.chat/fuselage-polyfills react react-dom
28
+ npm i @rocket.chat/fuselage-polyfills react react-dom react-i18next
29
29
 
30
30
  # or, if you are using yarn:
31
31
 
32
- yarn add @rocket.chat/fuselage-polyfills react react-dom
32
+ yarn add @rocket.chat/fuselage-polyfills react react-dom react-i18next
33
33
  ```
34
34
 
35
35
  Add `@rocket.chat/onboarding-ui` as a dependency:
@@ -11,7 +11,7 @@ declare const List: {
11
11
  }): ReactElement;
12
12
  Item: ({ children, icon, iconColor, fontScale, }: {
13
13
  children: ReactNode;
14
- icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "copy" | "user" | "underline" | "info" | "warning" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-stack-up" | "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" | "circle-exclamation" | "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-neutral" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-cross" | "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" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "stopwatch" | "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" | "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" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
14
+ icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "copy" | "user" | "underline" | "info" | "warning" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-stack-up" | "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" | "circle-exclamation" | "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-neutral" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-cross" | "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-blank" | "shield-check" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "stopwatch" | "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" | "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" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
15
15
  iconColor?: (import("csstype").Property.Color & string) | undefined;
16
16
  fontScale?: ("h1" | "h2" | "h3" | "h4" | "h5" | "hero" | "p1" | "p1m" | "p1b" | "p2" | "p2m" | "p2b" | "c1" | "c2" | "micro") | undefined;
17
17
  }) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -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?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "copy" | "user" | "underline" | "info" | "warning" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-stack-up" | "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" | "circle-exclamation" | "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-neutral" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-cross" | "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" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "stopwatch" | "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" | "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" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
5
+ icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "copy" | "user" | "underline" | "info" | "warning" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-stack-up" | "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" | "circle-exclamation" | "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-neutral" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-cross" | "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-blank" | "shield-check" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "stopwatch" | "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" | "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" | "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;
@@ -1 +1 @@
1
- {"version":3,"file":"CreateCloudWorkspaceForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAa1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAQ/D,aAAK,+BAA+B,GAAG;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,aAAK,6BAA6B,GAAG;IACnC,aAAa,CAAC,EAAE,+BAA+B,CAAC;IAChD,QAAQ,EAAE,aAAa,CAAC,+BAA+B,CAAC,CAAC;IACzD,mBAAmB,EAAE,YAAY,E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C,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,wBAAwB,8HAS3B,6BAA6B,KAAG,YA6MlC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -25,11 +25,16 @@ var CreateCloudWorkspaceForm = function (_a) {
25
25
  var _b, _c, _d;
26
26
  var defaultValues = _a.defaultValues, onSubmit = _a.onSubmit, domain = _a.domain, serverRegionOptions = _a.serverRegionOptions, languageOptions = _a.languageOptions, onBackButtonClick = _a.onBackButtonClick, validateUrl = _a.validateUrl, validateEmail = _a.validateEmail;
27
27
  var t = react_i18next_1.useTranslation().t;
28
- var _e = react_hook_form_1.useForm({ mode: 'onChange' }), register = _e.register, control = _e.control, handleSubmit = _e.handleSubmit, _f = _e.formState, isValid = _f.isValid, isValidating = _f.isValidating, isSubmitting = _f.isSubmitting, errors = _f.errors;
28
+ var _e = react_hook_form_1.useForm({ mode: 'onChange' }), register = _e.register, control = _e.control, handleSubmit = _e.handleSubmit, setValue = _e.setValue, _f = _e.formState, isValid = _f.isValid, isValidating = _f.isValidating, isSubmitting = _f.isSubmitting, errors = _f.errors;
29
+ var onNameBlur = function (e) {
30
+ var fieldValue = e.target.value;
31
+ var workspaceURL = fieldValue.replace(/[^a-zA-Z0-9-]/g, '').toLowerCase();
32
+ setValue('workspaceURL', workspaceURL, { shouldValidate: true });
33
+ };
29
34
  return (jsx_runtime_1.jsxs(Form_1.default, __assign({ onSubmit: handleSubmit(onSubmit) }, { children: [jsx_runtime_1.jsx(Form_1.default.Title, { children: t('form.createCloudWorkspace.title') }, void 0), jsx_runtime_1.jsxs(fuselage_1.FieldGroup, __assign({ mbs: 'x16' }, { children: [jsx_runtime_1.jsxs(fuselage_1.Field, { children: [jsx_runtime_1.jsx(fuselage_1.Field.Label, { children: t('form.createCloudWorkspace.fields.orgEmail.label') }, void 0), jsx_runtime_1.jsx(fuselage_1.Field.Row, { children: jsx_runtime_1.jsx(fuselage_1.EmailInput, __assign({}, register('organizationEmail', {
30
35
  required: true,
31
36
  validate: validateEmail,
32
- }), { defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.organizationEmail, error: ((_b = errors === null || errors === void 0 ? void 0 : errors.organizationEmail) === null || _b === void 0 ? void 0 : _b.type) || undefined }), void 0) }, void 0), (errors === null || errors === void 0 ? void 0 : errors.organizationEmail) && (jsx_runtime_1.jsx(fuselage_1.Field.Error, { children: errors.organizationEmail.message }, void 0))] }, void 0), jsx_runtime_1.jsxs(fuselage_1.Field, { children: [jsx_runtime_1.jsx(fuselage_1.Field.Label, { children: jsx_runtime_1.jsx(fuselage_1.Box, __assign({ display: 'inline', mie: 'x8' }, { children: t('form.createCloudWorkspace.fields.workspaceName.label') }), void 0) }, void 0), jsx_runtime_1.jsx(fuselage_1.Field.Row, { children: jsx_runtime_1.jsx(fuselage_1.TextInput, __assign({}, register('workspaceName', { required: true }), { defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.workspaceName, error: ((_c = errors === null || errors === void 0 ? void 0 : errors.workspaceName) === null || _c === void 0 ? void 0 : _c.type) || undefined }), void 0) }, void 0), errors.workspaceName && (jsx_runtime_1.jsx(fuselage_1.Field.Error, { children: t('component.form.requiredField') }, void 0))] }, void 0), jsx_runtime_1.jsxs(fuselage_1.Field, { children: [jsx_runtime_1.jsx(fuselage_1.Field.Label, { children: jsx_runtime_1.jsx(fuselage_1.Box, __assign({ display: 'inline', mie: 'x8' }, { children: t('form.createCloudWorkspace.fields.workspaceUrl.label') }), void 0) }, void 0), jsx_runtime_1.jsx(fuselage_1.Field.Row, { children: jsx_runtime_1.jsx(WorkspaceUrlInput_1.default, __assign({ domain: domain }, register('workspaceURL', {
37
+ }), { defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.organizationEmail, error: ((_b = errors === null || errors === void 0 ? void 0 : errors.organizationEmail) === null || _b === void 0 ? void 0 : _b.type) || undefined }), void 0) }, void 0), (errors === null || errors === void 0 ? void 0 : errors.organizationEmail) && (jsx_runtime_1.jsx(fuselage_1.Field.Error, { children: errors.organizationEmail.message }, void 0))] }, void 0), jsx_runtime_1.jsxs(fuselage_1.Field, { children: [jsx_runtime_1.jsx(fuselage_1.Field.Label, { children: jsx_runtime_1.jsx(fuselage_1.Box, __assign({ display: 'inline', mie: 'x8' }, { children: t('form.createCloudWorkspace.fields.workspaceName.label') }), void 0) }, void 0), jsx_runtime_1.jsx(fuselage_1.Field.Row, { children: jsx_runtime_1.jsx(fuselage_1.TextInput, __assign({}, register('workspaceName', { required: true }), { defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.workspaceName, error: ((_c = errors === null || errors === void 0 ? void 0 : errors.workspaceName) === null || _c === void 0 ? void 0 : _c.type) || undefined, onBlur: onNameBlur }), void 0) }, void 0), errors.workspaceName && (jsx_runtime_1.jsx(fuselage_1.Field.Error, { children: t('component.form.requiredField') }, void 0))] }, void 0), jsx_runtime_1.jsxs(fuselage_1.Field, { children: [jsx_runtime_1.jsx(fuselage_1.Field.Label, { children: jsx_runtime_1.jsx(fuselage_1.Box, __assign({ display: 'inline', mie: 'x8' }, { children: t('form.createCloudWorkspace.fields.workspaceUrl.label') }), void 0) }, void 0), jsx_runtime_1.jsx(fuselage_1.Field.Row, { children: jsx_runtime_1.jsx(WorkspaceUrlInput_1.default, __assign({ domain: domain }, register('workspaceURL', {
33
38
  required: true,
34
39
  validate: validateUrl,
35
40
  }), { defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.workspaceURL }), void 0) }, void 0), (errors === null || errors === void 0 ? void 0 : errors.workspaceURL) && (jsx_runtime_1.jsx(fuselage_1.Field.Error, { children: errors.workspaceURL.message }, void 0))] }, void 0), jsx_runtime_1.jsxs(fuselage_1.Grid, __assign({ mb: 'x16' }, { children: [jsx_runtime_1.jsx(fuselage_1.Grid.Item, { children: jsx_runtime_1.jsxs(fuselage_1.Field, { children: [jsx_runtime_1.jsxs(fuselage_1.Field.Label, { children: [jsx_runtime_1.jsx(fuselage_1.Box, __assign({ display: 'inline', mie: 'x8' }, { children: t('form.createCloudWorkspace.fields.serverRegion.label') }), void 0), jsx_runtime_1.jsx(InformationTooltipTrigger_1.default, { text: t('form.createCloudWorkspace.fields.serverRegion.tooltip') }, void 0)] }, void 0), jsx_runtime_1.jsx(fuselage_1.Field.Row, { children: jsx_runtime_1.jsx(react_hook_form_1.Controller, { name: 'serverRegion', control: control, rules: { required: true }, defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.serverRegion, render: function (_a) {
@@ -38,7 +43,7 @@ var CreateCloudWorkspaceForm = function (_a) {
38
43
  } }, void 0) }, void 0)] }, void 0) }, void 0), jsx_runtime_1.jsx(fuselage_1.Grid.Item, { children: jsx_runtime_1.jsxs(fuselage_1.Field, { children: [jsx_runtime_1.jsxs(fuselage_1.Field.Label, { children: [jsx_runtime_1.jsx(fuselage_1.Box, __assign({ display: 'inline', mie: 'x8' }, { children: t('form.createCloudWorkspace.fields.language.label') }), void 0), jsx_runtime_1.jsx(InformationTooltipTrigger_1.default, { text: t('form.createCloudWorkspace.fields.language.tooltip') }, void 0)] }, void 0), jsx_runtime_1.jsx(fuselage_1.Field.Row, { children: jsx_runtime_1.jsx(react_hook_form_1.Controller, { name: 'language', control: control, rules: { required: true }, defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.language, render: function (_a) {
39
44
  var field = _a.field;
40
45
  return (jsx_runtime_1.jsx(fuselage_1.Select, __assign({}, field, { options: languageOptions, placeholder: t('form.createCloudWorkspace.fields.language.label') }), void 0));
41
- } }, void 0) }, void 0)] }, void 0) }, 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 Policy" }), void 0)] }), void 0) }), void 0)] }), void 0), ((_d = errors.agreement) === null || _d === void 0 ? void 0 : _d.type) === 'required' && (jsx_runtime_1.jsx(fuselage_1.Field.Error, { children: t('component.form.requiredField') }, void 0))] }, void 0), jsx_runtime_1.jsx(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('updates'), { mie: 'x8' }), void 0), jsx_runtime_1.jsx(fuselage_1.Box, __assign({ fontScale: 'c1' }, { children: t('form.createCloudWorkspace.fields.keepMeInformed') }), void 0)] }), void 0) }, void 0)] }), void 0), jsx_runtime_1.jsx(Form_1.default.Footer, { children: jsx_runtime_1.jsxs(fuselage_1.ButtonGroup, { children: [onBackButtonClick && (jsx_runtime_1.jsx(fuselage_1.Button, __assign({ disabled: isSubmitting, onClick: onBackButtonClick }, { children: t('component.form.action.back') }), void 0)), 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));
46
+ } }, void 0) }, void 0)] }, void 0) }, void 0)] }), void 0), jsx_runtime_1.jsx(fuselage_1.Divider, { mb: 'x0' }, 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 Policy" }), void 0)] }), void 0) }), void 0)] }), void 0), ((_d = errors.agreement) === null || _d === void 0 ? void 0 : _d.type) === 'required' && (jsx_runtime_1.jsx(fuselage_1.Field.Error, { children: t('component.form.requiredField') }, void 0))] }, void 0), jsx_runtime_1.jsx(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('updates'), { mie: 'x8' }), void 0), jsx_runtime_1.jsx(fuselage_1.Box, __assign({ fontScale: 'c1' }, { children: t('form.createCloudWorkspace.fields.keepMeInformed') }), void 0)] }), void 0) }, void 0)] }), void 0), jsx_runtime_1.jsx(Form_1.default.Footer, { children: jsx_runtime_1.jsxs(fuselage_1.ButtonGroup, { children: [onBackButtonClick && (jsx_runtime_1.jsx(fuselage_1.Button, __assign({ disabled: isSubmitting, onClick: onBackButtonClick }, { children: t('component.form.action.back') }), void 0)), 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));
42
47
  };
43
48
  exports.default = CreateCloudWorkspaceForm;
44
49
  //# sourceMappingURL=CreateCloudWorkspaceForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateCloudWorkspaceForm.js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AI,CAAC,MAAM,cACV,mBAAC,sBAAW,eACT,iBAAiB,IAAI,CACpB,kBAAC,iBAAM,aAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB,gBACvD,CAAC,CAAC,4BAA4B,CAAC,YACzB,CACV,EAED,kBAAC,iBAAM,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,kBAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"CreateCloudWorkspaceForm.js","sourceRoot":"","sources":["../../../../src/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,kDAY+B;AAG/B,mDAAsD;AACtD,+CAAsD;AAEtD,2DAAqC;AACrC,qGAA6D;AAC7D,0EAAoD;AAuBpD,IAAM,wBAAwB,GAAG,UAAC,EASF;;QAR9B,aAAa,mBAAA,EACb,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,mBAAmB,yBAAA,EACnB,eAAe,qBAAA,EACf,iBAAiB,uBAAA,EACjB,WAAW,iBAAA,EACX,aAAa,mBAAA;IAEL,IAAA,CAAC,GAAK,8BAAc,EAAE,EAArB,CAAsB;IAEzB,IAAA,KAMF,yBAAO,CAAkC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EALhE,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,iBAA0D,EAA7C,OAAO,aAAA,EAAE,YAAY,kBAAA,EAAE,YAAY,kBAAA,EAAE,MAAM,YACQ,CAAC;IAEnE,IAAM,UAAU,GAAG,UAAC,CAA+B;QACjD,IAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;QAClC,IAAM,YAAY,GAAG,UAAU,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@@ declare const List: {
11
11
  }): ReactElement;
12
12
  Item: ({ children, icon, iconColor, fontScale, }: {
13
13
  children: ReactNode;
14
- icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "copy" | "user" | "underline" | "info" | "warning" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-stack-up" | "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" | "circle-exclamation" | "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-neutral" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-cross" | "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" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "stopwatch" | "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" | "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" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
14
+ icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "copy" | "user" | "underline" | "info" | "warning" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-stack-up" | "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" | "circle-exclamation" | "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-neutral" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-cross" | "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-blank" | "shield-check" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "stopwatch" | "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" | "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" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
15
15
  iconColor?: (import("csstype").Property.Color & string) | undefined;
16
16
  fontScale?: ("h1" | "h2" | "h3" | "h4" | "h5" | "hero" | "p1" | "p1m" | "p1b" | "p2" | "p2m" | "p2b" | "c1" | "c2" | "micro") | undefined;
17
17
  }) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -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?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "copy" | "user" | "underline" | "info" | "warning" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-stack-up" | "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" | "circle-exclamation" | "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-neutral" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-cross" | "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" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "stopwatch" | "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" | "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" | "adobe" | "facebook" | "github" | "gitlab" | "google" | "google-drive" | "hubot" | "linkedin" | "twitter" | undefined;
5
+ icon?: "audio" | "code" | "link" | "menu" | "video" | "circle" | "image" | "file" | "list" | "key" | "download" | "clip" | "italic" | "bold" | "copy" | "user" | "underline" | "info" | "warning" | "arrow-back" | "arrow-collapse" | "arrow-down" | "arrow-down-box" | "arrow-expand" | "arrow-fall" | "arrow-jump" | "arrow-loop" | "arrow-return" | "arrow-rise" | "arrow-stack-up" | "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" | "circle-exclamation" | "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-neutral" | "emoji-plus" | "eraser" | "error-circle" | "exit" | "extended-view" | "eye" | "eye-off" | "fingerprint" | "flag" | "folder" | "globe" | "globe-cross" | "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-blank" | "shield-check" | "signal" | "sms" | "sort" | "sort-az" | "squares" | "stack" | "star" | "star-filled" | "stopwatch" | "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" | "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" | "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;
@@ -1 +1 @@
1
- {"version":3,"file":"CreateCloudWorkspaceForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAa1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAQ/D,aAAK,+BAA+B,GAAG;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,aAAK,6BAA6B,GAAG;IACnC,aAAa,CAAC,EAAE,+BAA+B,CAAC;IAChD,QAAQ,EAAE,aAAa,CAAC,+BAA+B,CAAC,CAAC;IACzD,mBAAmB,EAAE,YAAY,EAAE,CAAC;IACpC,eAAe,EAAE,YAAY,EAAE,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,wBAAwB,8HAS3B,6BAA6B,KAAG,YAmMlC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"CreateCloudWorkspaceForm.d.ts","sourceRoot":"","sources":["../../../../src/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAc1D,OAAO,KAAK,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAQ/D,aAAK,+BAA+B,GAAG;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,aAAK,6BAA6B,GAAG;IACnC,aAAa,CAAC,EAAE,+BAA+B,CAAC;IAChD,QAAQ,EAAE,aAAa,CAAC,+BAA+B,CAAC,CAAC;IACzD,mBAAmB,EAAE,YAAY,EAAE,CAAC;IACpC,eAAe,EAAE,YAAY,EAAE,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,wBAAwB,8HAS3B,6BAA6B,KAAG,YA6MlC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { FieldGroup, Field, ButtonGroup, Button, Box, EmailInput, TextInput, Select, CheckBox, Grid, } from '@rocket.chat/fuselage';
13
+ import { FieldGroup, Field, ButtonGroup, Button, Box, Divider, EmailInput, TextInput, Select, CheckBox, Grid, } from '@rocket.chat/fuselage';
14
14
  import { useForm, Controller } from 'react-hook-form';
15
15
  import { useTranslation, Trans } from 'react-i18next';
16
16
  import Form from '../../common/Form';
@@ -20,11 +20,16 @@ var CreateCloudWorkspaceForm = function (_a) {
20
20
  var _b, _c, _d;
21
21
  var defaultValues = _a.defaultValues, onSubmit = _a.onSubmit, domain = _a.domain, serverRegionOptions = _a.serverRegionOptions, languageOptions = _a.languageOptions, onBackButtonClick = _a.onBackButtonClick, validateUrl = _a.validateUrl, validateEmail = _a.validateEmail;
22
22
  var t = useTranslation().t;
23
- var _e = useForm({ mode: 'onChange' }), register = _e.register, control = _e.control, handleSubmit = _e.handleSubmit, _f = _e.formState, isValid = _f.isValid, isValidating = _f.isValidating, isSubmitting = _f.isSubmitting, errors = _f.errors;
23
+ var _e = useForm({ mode: 'onChange' }), register = _e.register, control = _e.control, handleSubmit = _e.handleSubmit, setValue = _e.setValue, _f = _e.formState, isValid = _f.isValid, isValidating = _f.isValidating, isSubmitting = _f.isSubmitting, errors = _f.errors;
24
+ var onNameBlur = function (e) {
25
+ var fieldValue = e.target.value;
26
+ var workspaceURL = fieldValue.replace(/[^a-zA-Z0-9-]/g, '').toLowerCase();
27
+ setValue('workspaceURL', workspaceURL, { shouldValidate: true });
28
+ };
24
29
  return (_jsxs(Form, __assign({ onSubmit: handleSubmit(onSubmit) }, { children: [_jsx(Form.Title, { children: t('form.createCloudWorkspace.title') }, void 0), _jsxs(FieldGroup, __assign({ mbs: 'x16' }, { children: [_jsxs(Field, { children: [_jsx(Field.Label, { children: t('form.createCloudWorkspace.fields.orgEmail.label') }, void 0), _jsx(Field.Row, { children: _jsx(EmailInput, __assign({}, register('organizationEmail', {
25
30
  required: true,
26
31
  validate: validateEmail,
27
- }), { defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.organizationEmail, error: ((_b = errors === null || errors === void 0 ? void 0 : errors.organizationEmail) === null || _b === void 0 ? void 0 : _b.type) || undefined }), void 0) }, void 0), (errors === null || errors === void 0 ? void 0 : errors.organizationEmail) && (_jsx(Field.Error, { children: errors.organizationEmail.message }, void 0))] }, void 0), _jsxs(Field, { children: [_jsx(Field.Label, { children: _jsx(Box, __assign({ display: 'inline', mie: 'x8' }, { children: t('form.createCloudWorkspace.fields.workspaceName.label') }), void 0) }, void 0), _jsx(Field.Row, { children: _jsx(TextInput, __assign({}, register('workspaceName', { required: true }), { defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.workspaceName, error: ((_c = errors === null || errors === void 0 ? void 0 : errors.workspaceName) === null || _c === void 0 ? void 0 : _c.type) || undefined }), void 0) }, void 0), errors.workspaceName && (_jsx(Field.Error, { children: t('component.form.requiredField') }, void 0))] }, void 0), _jsxs(Field, { children: [_jsx(Field.Label, { children: _jsx(Box, __assign({ display: 'inline', mie: 'x8' }, { children: t('form.createCloudWorkspace.fields.workspaceUrl.label') }), void 0) }, void 0), _jsx(Field.Row, { children: _jsx(WorkspaceUrlInput, __assign({ domain: domain }, register('workspaceURL', {
32
+ }), { defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.organizationEmail, error: ((_b = errors === null || errors === void 0 ? void 0 : errors.organizationEmail) === null || _b === void 0 ? void 0 : _b.type) || undefined }), void 0) }, void 0), (errors === null || errors === void 0 ? void 0 : errors.organizationEmail) && (_jsx(Field.Error, { children: errors.organizationEmail.message }, void 0))] }, void 0), _jsxs(Field, { children: [_jsx(Field.Label, { children: _jsx(Box, __assign({ display: 'inline', mie: 'x8' }, { children: t('form.createCloudWorkspace.fields.workspaceName.label') }), void 0) }, void 0), _jsx(Field.Row, { children: _jsx(TextInput, __assign({}, register('workspaceName', { required: true }), { defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.workspaceName, error: ((_c = errors === null || errors === void 0 ? void 0 : errors.workspaceName) === null || _c === void 0 ? void 0 : _c.type) || undefined, onBlur: onNameBlur }), void 0) }, void 0), errors.workspaceName && (_jsx(Field.Error, { children: t('component.form.requiredField') }, void 0))] }, void 0), _jsxs(Field, { children: [_jsx(Field.Label, { children: _jsx(Box, __assign({ display: 'inline', mie: 'x8' }, { children: t('form.createCloudWorkspace.fields.workspaceUrl.label') }), void 0) }, void 0), _jsx(Field.Row, { children: _jsx(WorkspaceUrlInput, __assign({ domain: domain }, register('workspaceURL', {
28
33
  required: true,
29
34
  validate: validateUrl,
30
35
  }), { defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.workspaceURL }), void 0) }, void 0), (errors === null || errors === void 0 ? void 0 : errors.workspaceURL) && (_jsx(Field.Error, { children: errors.workspaceURL.message }, void 0))] }, void 0), _jsxs(Grid, __assign({ mb: 'x16' }, { children: [_jsx(Grid.Item, { children: _jsxs(Field, { children: [_jsxs(Field.Label, { children: [_jsx(Box, __assign({ display: 'inline', mie: 'x8' }, { children: t('form.createCloudWorkspace.fields.serverRegion.label') }), void 0), _jsx(Tooltip, { text: t('form.createCloudWorkspace.fields.serverRegion.tooltip') }, void 0)] }, void 0), _jsx(Field.Row, { children: _jsx(Controller, { name: 'serverRegion', control: control, rules: { required: true }, defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.serverRegion, render: function (_a) {
@@ -33,7 +38,7 @@ var CreateCloudWorkspaceForm = function (_a) {
33
38
  } }, void 0) }, void 0)] }, void 0) }, void 0), _jsx(Grid.Item, { children: _jsxs(Field, { children: [_jsxs(Field.Label, { children: [_jsx(Box, __assign({ display: 'inline', mie: 'x8' }, { children: t('form.createCloudWorkspace.fields.language.label') }), void 0), _jsx(Tooltip, { text: t('form.createCloudWorkspace.fields.language.tooltip') }, void 0)] }, void 0), _jsx(Field.Row, { children: _jsx(Controller, { name: 'language', control: control, rules: { required: true }, defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.language, render: function (_a) {
34
39
  var field = _a.field;
35
40
  return (_jsx(Select, __assign({}, field, { options: languageOptions, placeholder: t('form.createCloudWorkspace.fields.language.label') }), void 0));
36
- } }, void 0) }, void 0)] }, void 0) }, 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 Policy" }), void 0)] }), void 0) }), void 0)] }), void 0), ((_d = errors.agreement) === null || _d === void 0 ? void 0 : _d.type) === 'required' && (_jsx(Field.Error, { children: t('component.form.requiredField') }, void 0))] }, void 0), _jsx(Field, { children: _jsxs(Field.Row, __assign({ justifyContent: 'flex-start' }, { children: [_jsx(CheckBox, __assign({}, register('updates'), { mie: 'x8' }), void 0), _jsx(Box, __assign({ fontScale: 'c1' }, { children: t('form.createCloudWorkspace.fields.keepMeInformed') }), void 0)] }), void 0) }, void 0)] }), void 0), _jsx(Form.Footer, { children: _jsxs(ButtonGroup, { children: [onBackButtonClick && (_jsx(Button, __assign({ disabled: isSubmitting, onClick: onBackButtonClick }, { children: t('component.form.action.back') }), void 0)), _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));
41
+ } }, void 0) }, void 0)] }, void 0) }, void 0)] }), void 0), _jsx(Divider, { mb: 'x0' }, 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 Policy" }), void 0)] }), void 0) }), void 0)] }), void 0), ((_d = errors.agreement) === null || _d === void 0 ? void 0 : _d.type) === 'required' && (_jsx(Field.Error, { children: t('component.form.requiredField') }, void 0))] }, void 0), _jsx(Field, { children: _jsxs(Field.Row, __assign({ justifyContent: 'flex-start' }, { children: [_jsx(CheckBox, __assign({}, register('updates'), { mie: 'x8' }), void 0), _jsx(Box, __assign({ fontScale: 'c1' }, { children: t('form.createCloudWorkspace.fields.keepMeInformed') }), void 0)] }), void 0) }, void 0)] }), void 0), _jsx(Form.Footer, { children: _jsxs(ButtonGroup, { children: [onBackButtonClick && (_jsx(Button, __assign({ disabled: isSubmitting, onClick: onBackButtonClick }, { children: t('component.form.action.back') }), void 0)), _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));
37
42
  };
38
43
  export default CreateCloudWorkspaceForm;
39
44
  //# sourceMappingURL=CreateCloudWorkspaceForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateCloudWorkspaceForm.js","sourceRoot":"","sources":["../../../../src/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EACL,UAAU,EACV,KAAK,EACL,WAAW,EACX,MAAM,EACN,GAAG,EACH,UAAU,EACV,SAAS,EACT,MAAM,EACN,QAAQ,EACR,IAAI,GACL,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,IAAI,MAAM,mBAAmB,CAAC;AACrC,OA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,QAAQ,EAAE,YAAY,IAAI,YAAY,IAAI,CAAC,OAAO,gBAEjD,CAAC,CAAC,4BAA4B,CAAC,YACzB,YACG,WACF,aACT,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"CreateCloudWorkspaceForm.js","sourceRoot":"","sources":["../../../../src/forms/CreateCloudWorkspaceForm/CreateCloudWorkspaceForm.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EACL,UAAU,EACV,KAAK,EACL,WAAW,EACX,MAAM,EACN,GAAG,EACH,OAAO,EACP,UAAU,EACV,SAAS,EACT,MAAM,EACN,QAAQ,EACR,IAAI,GACL,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,IAAI,MAAM,mBAAmB,CAAC;AACrC,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAuBpD,IAAM,wBAAwB,GAAG,UAAC,EASF;;QAR9B,aAAa,mBAAA,EACb,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,mBAAmB,yBAAA,EACnB,eAAe,qBAAA,EACf,iBAAiB,uBAAA,EACjB,WAAW,iBAAA,EACX,aAAa,mBAAA;IAEL,IAAA,CAAC,GAAK,cAAc,EAAE,EAArB,CAAsB;IAEzB,IAAA,KAMF,OAAO,CAAkC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EALhE,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,iBAA0D,EAA7C,OAAO,aAAA,EAAE,YAAY,kBAAA,EAAE,YAAY,kBAAA,EAAE,MAAM,YACQ,CAAC;IAEnE,IAAM,UAAU,GAAG,UAAC,CAA+B;QACjD,IAAM,UAAU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rocket.chat/onboarding-ui",
3
- "version": "0.32.0-dev.11",
3
+ "version": "0.32.0-dev.14",
4
4
  "description": "Set of components and functions for the onboarding experience on Rocket.Chat",
5
5
  "keywords": [
6
6
  "rocketchat"
@@ -43,10 +43,10 @@
43
43
  "url": "https://github.com/RocketChat/Rocket.Chat.Fuselage/issues"
44
44
  },
45
45
  "devDependencies": {
46
- "@rocket.chat/eslint-config-alt": "~0.31.10-dev.3",
47
- "@rocket.chat/fuselage-polyfills": "~0.31.10-dev.3",
48
- "@rocket.chat/fuselage-tokens": "~0.31.10-dev.3",
49
- "@rocket.chat/prettier-config": "~0.31.10-dev.3",
46
+ "@rocket.chat/eslint-config-alt": "~0.31.10-dev.6",
47
+ "@rocket.chat/fuselage-polyfills": "~0.31.10-dev.6",
48
+ "@rocket.chat/fuselage-tokens": "~0.31.10-dev.6",
49
+ "@rocket.chat/prettier-config": "~0.31.10-dev.6",
50
50
  "@storybook/addon-essentials": "~6.4.18",
51
51
  "@storybook/addons": "~6.4.18",
52
52
  "@storybook/react": "~6.4.18",
@@ -65,6 +65,7 @@
65
65
  "prettier": "~2.5.1",
66
66
  "react": "^17.0.2",
67
67
  "react-dom": "^17.0.2",
68
+ "react-i18next": "~11.15.4",
68
69
  "rimraf": "^3.0.2",
69
70
  "storybook-dark-mode": "^1.0.8",
70
71
  "ts-jest": "~27.1.3",
@@ -72,19 +73,19 @@
72
73
  "typescript": "~4.3.5"
73
74
  },
74
75
  "dependencies": {
75
- "@rocket.chat/fuselage": "~0.32.0-dev.11",
76
- "@rocket.chat/fuselage-hooks": "~0.31.10-dev.3",
77
- "@rocket.chat/icons": "~0.31.10-dev.3",
78
- "@rocket.chat/logo": "~0.31.10-dev.3",
79
- "@rocket.chat/styled": "~0.31.10-dev.3",
76
+ "@rocket.chat/fuselage": "~0.32.0-dev.14",
77
+ "@rocket.chat/fuselage-hooks": "~0.31.10-dev.6",
78
+ "@rocket.chat/icons": "~0.31.10-dev.6",
79
+ "@rocket.chat/logo": "~0.31.10-dev.6",
80
+ "@rocket.chat/styled": "~0.31.10-dev.6",
80
81
  "i18next": "~21.6.11",
81
82
  "react-hook-form": "~7.27.0",
82
- "react-i18next": "~11.15.4",
83
83
  "tslib": "~2.3.1"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "@rocket.chat/fuselage-polyfills": "*",
87
87
  "react": "17.0.2",
88
- "react-dom": "17.0.2"
88
+ "react-dom": "17.0.2",
89
+ "react-i18next": "~11.15.4"
89
90
  }
90
91
  }