@homefile/components-v2 2.7.7 → 2.7.9

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.
@@ -6,7 +6,7 @@ import { useShareHomeForm } from '../../hooks';
6
6
  import { ShareHomeContactList } from './ShareHomeContactList';
7
7
  export const ShareHomeForm = ({ contacts, loading, onAdd, onEmailSave, }) => {
8
8
  const { accountTypes, contact, handleChange, handleInputSelect, handleOpen, handleSelectContact, handleSubmit, hasError, open, types, } = useShareHomeForm(onAdd);
9
- return (_jsx(Box, { p: "base", w: "100%", children: _jsxs(Flex, { w: "100%", gap: "base", children: [_jsxs(Flex, { position: "relative", flex: 1, children: [_jsx(ShareWithButton, { marginRight: "-1px", onClick: handleOpen }), _jsx(TextInput, { autoCapitalize: "none", autoCorrect: "off", errorMessage: t('forms.errorEmail'), handleChange: handleChange, hasError: hasError, id: "email", placeholder: t('shareHome.placeholder'), value: contact.email, noOfLines: 1 }), open && (_jsx(ShareHomeContactList, { contacts: contacts, onClick: handleSelectContact, onDone: handleOpen, onChange: handleChange, onSave: (contact) => {
9
+ return (_jsx(Box, { p: "base", w: "100%", children: _jsxs(Flex, { w: "100%", gap: "base", children: [_jsxs(Flex, { position: "relative", flex: 1, children: [_jsx(ShareWithButton, { marginRight: "-1px", onClick: handleOpen }), _jsx(TextInput, { "data-testid": "share-home-form-email", autoCapitalize: "none", autoCorrect: "off", errorMessage: t('forms.errorEmail'), handleChange: handleChange, hasError: hasError, id: "email", placeholder: t('shareHome.placeholder'), value: contact.email, noOfLines: 1 }), open && (_jsx(ShareHomeContactList, { contacts: contacts, onClick: handleSelectContact, onDone: handleOpen, onChange: handleChange, onSave: (contact) => {
10
10
  onEmailSave(contact);
11
11
  handleOpen();
12
12
  }, selectedContact: contact }))] }), _jsx(SelectInputWithBadge, { handleClick: handleInputSelect, initialValue: accountTypes[0], items: types, width: "70px", height: "md" }), _jsx(Button, { "data-testid": "share-home-form-submit", variant: "tertiary", onClick: handleSubmit, disabled: !contact.email, isLoading: loading, h: "48px", children: t('shareHome.btInvite') })] }) }));
@@ -1,5 +1,5 @@
1
1
  import { faker } from '@faker-js/faker';
2
- const currentUserName = faker.internet.userName();
2
+ const currentUserName = faker.internet.username();
3
3
  export const messagesMock = [
4
4
  {
5
5
  _id: faker.database.mongodbObjectId(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.7.7",
3
+ "version": "2.7.9",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -29,6 +29,7 @@ export const ShareHomeForm = ({
29
29
  <Flex position="relative" flex={1}>
30
30
  <ShareWithButton marginRight="-1px" onClick={handleOpen} />
31
31
  <TextInput
32
+ data-testid="share-home-form-email"
32
33
  autoCapitalize="none"
33
34
  autoCorrect="off"
34
35
  errorMessage={t('forms.errorEmail')}
@@ -1,7 +1,7 @@
1
1
  import { InboxMessageI } from '@/interfaces'
2
2
  import { faker } from '@faker-js/faker'
3
3
 
4
- const currentUserName = faker.internet.userName()
4
+ const currentUserName = faker.internet.username()
5
5
 
6
6
  export const messagesMock: InboxMessageI[] = [
7
7
  {