@homefile/components-v2 2.8.20 → 2.8.22

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.
@@ -0,0 +1,17 @@
1
+ <svg id="Grupo_13722" data-name="Grupo 13722" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="21.294" height="24.292" viewBox="0 0 21.294 24.292">
2
+ <defs>
3
+ <clipPath id="clip-path">
4
+ <rect id="Retângulo_13838" data-name="Retângulo 13838" width="21.294" height="24.292" fill="none"/>
5
+ </clipPath>
6
+ </defs>
7
+ <path id="Caminho_9958" data-name="Caminho 9958" d="M34.207,65v1.794H30.78V65h3.427Z" transform="translate(-23.247 -49.091)" fill="#e24c5d"/>
8
+ <rect id="Retângulo_13835" data-name="Retângulo 13835" width="3.427" height="6.589" transform="translate(7.534 17.703)" fill="#40566b"/>
9
+ <g id="Grupo_11926" data-name="Grupo 11926">
10
+ <g id="Grupo_11925" data-name="Grupo 11925" clip-path="url(#clip-path)">
11
+ <path id="Caminho_9959" data-name="Caminho 9959" d="M18.491,4.65V7.832A1.471,1.471,0,0,1,17.023,9.3H1.469A1.473,1.473,0,0,1,0,7.832V1.469A1.473,1.473,0,0,1,1.469,0H17.023a1.471,1.471,0,0,1,1.469,1.469Z" fill="#f6cf76"/>
12
+ <path id="Caminho_9960" data-name="Caminho 9960" d="M37.014,29.126H36.28v-2.08a1.838,1.838,0,0,1,1.836-1.836h8.743a1.1,1.1,0,0,0,1.1-1.1V19.336a1.014,1.014,0,0,0-.849-1.1H45.892V17.5H47.11a1.726,1.726,0,0,1,1.584,1.836v4.773a1.838,1.838,0,0,1-1.836,1.836H38.116a1.1,1.1,0,0,0-1.1,1.1Z" transform="translate(-27.4 -13.217)" fill="#40566b"/>
13
+ <rect id="Retângulo_13836" data-name="Retângulo 13836" width="10.914" height="0.734" transform="translate(4.751 1.53)" fill="#fea856"/>
14
+ <rect id="Retângulo_13837" data-name="Retângulo 13837" width="0.773" height="0.734" transform="translate(2.937 1.53)" fill="#fea856"/>
15
+ </g>
16
+ </g>
17
+ </svg>
@@ -36,6 +36,7 @@ import Construction from './construction.svg';
36
36
  import Contacts from './contacts.svg';
37
37
  import Contacts2 from './contacts2.svg';
38
38
  import Contributor from './contributor.svg';
39
+ import Create from './create.svg';
39
40
  import CreditCard from './credit-card.svg';
40
41
  import Detector from './detector.svg';
41
42
  import Diamond from './diamond.svg';
@@ -159,7 +160,7 @@ import WizardDetailed from './wizard-detailed.svg';
159
160
  import WizardQuick from './wizard-quick.svg';
160
161
  import YellowFolder from './yellow-folder.svg';
161
162
  import YellowFolderUnshared from './yellow-folder-unshared.svg';
162
- export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, BookOpened, Box, Building, Calc, Calendar2, Catalog, ChatBubble, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, Company2, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, Exclamation, Face, Feedback, FileUploading, Finance, Fire, Flag, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, Laundry, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plate, Play, Plus, Pool, Pool2, PressureWasher, Price, Profile, ProgressReport, Proposal, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, RelationshipHome, ResendPassword, Rocket, Roof2, Security, Send, ShareHome, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
163
+ export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, BookOpened, Box, Building, Calc, Calendar2, Catalog, ChatBubble, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, Company2, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, Create, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, Exclamation, Face, Feedback, FileUploading, Finance, Fire, Flag, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, Laundry, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plate, Play, Plus, Pool, Pool2, PressureWasher, Price, Profile, ProgressReport, Proposal, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, RelationshipHome, ResendPassword, Rocket, Roof2, Security, Send, ShareHome, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
163
164
  export * from './alerts';
164
165
  export * from './animations';
165
166
  export * from './appliances';
@@ -36,6 +36,7 @@ import Construction from './construction.svg';
36
36
  import Contacts from './contacts.svg';
37
37
  import Contacts2 from './contacts2.svg';
38
38
  import Contributor from './contributor.svg';
39
+ import Create from './create.svg';
39
40
  import CreditCard from './credit-card.svg';
40
41
  import Detector from './detector.svg';
41
42
  import Diamond from './diamond.svg';
@@ -159,7 +160,7 @@ import WizardDetailed from './wizard-detailed.svg';
159
160
  import WizardQuick from './wizard-quick.svg';
160
161
  import YellowFolder from './yellow-folder.svg';
161
162
  import YellowFolderUnshared from './yellow-folder-unshared.svg';
162
- export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, BookOpened, Box, Building, Calc, Calendar2, Catalog, ChatBubble, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, Company2, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, Exclamation, Face, Feedback, FileUploading, Finance, Fire, Flag, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, Laundry, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plate, Play, Plus, Pool, Pool2, PressureWasher, Price, Profile, ProgressReport, Proposal, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, RelationshipHome, ResendPassword, Rocket, Roof2, Security, Send, ShareHome, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
163
+ export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, BookOpened, Box, Building, Calc, Calendar2, Catalog, ChatBubble, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, Company2, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, Create, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, Exclamation, Face, Feedback, FileUploading, Finance, Fire, Flag, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, Laundry, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plate, Play, Plus, Pool, Pool2, PressureWasher, Price, Profile, ProgressReport, Proposal, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, RelationshipHome, ResendPassword, Rocket, Roof2, Security, Send, ShareHome, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
163
164
  export * from './alerts';
164
165
  export * from './animations';
165
166
  export * from './appliances';
@@ -36,6 +36,7 @@ import Construction from './construction.svg'
36
36
  import Contacts from './contacts.svg'
37
37
  import Contacts2 from './contacts2.svg'
38
38
  import Contributor from './contributor.svg'
39
+ import Create from './create.svg'
39
40
  import CreditCard from './credit-card.svg'
40
41
  import Detector from './detector.svg'
41
42
  import Diamond from './diamond.svg'
@@ -199,6 +200,7 @@ export {
199
200
  Contacts,
200
201
  Contacts2,
201
202
  Contributor,
203
+ Create,
202
204
  CreditCard,
203
205
  Detector,
204
206
  Diamond,
@@ -1,3 +1,3 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { ItemFormPanelI } from '../../../../interfaces';
3
- export declare const ItemFormPanel: ({ children, itemName, onClose, onSaveItemName, onSubmitForm, panelIcon, panelTitle, showOverlay, }: PropsWithChildren<ItemFormPanelI>) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ItemFormPanel: ({ children, onClose, onSubmitForm, panelIcon, panelTitle, showOverlay, }: PropsWithChildren<ItemFormPanelI>) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,15 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { DrawerBody, DrawerHeader, DrawerContent, DrawerFooter, Box, } from '@chakra-ui/react';
3
- import { PanelHeader, FooterDrawer, ItemNameHeader, ItemFormFooter, Overlay, } from '../../..';
4
- export const ItemFormPanel = ({ children, itemName, onClose, onSaveItemName, onSubmitForm, panelIcon, panelTitle, showOverlay = false, }) => {
5
- return (_jsxs(DrawerContent, { bg: "lightBlue.1", children: [_jsx(DrawerHeader, { p: "0", children: _jsx(PanelHeader, { handleCloseButton: onClose, icon: panelIcon, title: panelTitle }) }), _jsxs(DrawerBody, { p: "0", overflowX: "hidden", bg: "lightBlue.1", children: [_jsx(ItemNameHeader, { id: "item-name", onSave: onSaveItemName, value: itemName }), _jsxs(Box, { position: "relative", mb: "200px", children: [_jsx(Overlay, { showOverlay: showOverlay, position: "absolute", w: "inherit", h: "inherit", zIndex: "9" }), children] })] }), _jsx(FooterDrawer, { isOpen: !showOverlay, children: _jsx(DrawerFooter, { w: "100%", py: "0", children: _jsx(ItemFormFooter, { onSave: onSubmitForm, onCancel: onClose }) }) })] }));
3
+ import { PanelHeader, FooterDrawer, ItemFormFooter, Overlay, } from '../../..';
4
+ export const ItemFormPanel = ({ children, onClose, onSubmitForm, panelIcon, panelTitle, showOverlay = false, }) => {
5
+ let firstChild = null;
6
+ let otherChildren = children;
7
+ if (Array.isArray(children) && children.length > 0) {
8
+ const header = children[0];
9
+ if (header.props.id === 'item-name-header') {
10
+ firstChild = header;
11
+ otherChildren = children.slice(1);
12
+ }
13
+ }
14
+ return (_jsxs(DrawerContent, { bg: "lightBlue.1", children: [_jsx(DrawerHeader, { p: "0", children: _jsx(PanelHeader, { handleCloseButton: onClose, icon: panelIcon, title: panelTitle }) }), _jsxs(DrawerBody, { p: "0", overflowX: "hidden", bg: "lightBlue.1", children: [firstChild, _jsxs(Box, { position: "relative", mb: "200px", children: [_jsx(Overlay, { showOverlay: showOverlay, position: "absolute", w: "inherit", h: "inherit", zIndex: "9" }), otherChildren] })] }), _jsx(FooterDrawer, { isOpen: !showOverlay, children: _jsx(DrawerFooter, { w: "100%", py: "0", children: _jsx(ItemFormFooter, { onSave: onSubmitForm, onCancel: onClose }) }) })] }));
6
15
  };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { ActivateAccount, ActiveSubscription, AddCardBanner, AddEditContactPanel, AddFolder, AddHomeContent, AddHomeItem, AddHomeItemHeader, AddMedia, AddPropertyRecords, Address, AddPopup, AddTile, AlertBanner, AphwTile, AppBar, AssignableReceipts, BackHeader, BarDivider, CancelAccount, CatalogPopup, CloudsAnimation, ContactList, ContactsContent, ContainerHeader, CreateDocumentHeader, CreateHouseholdItemHeader, CreditCardContainer, CreditCardError, CustomerTile, DeleteBanner, Dialog, DisplayFiles, DisplayFilesDetail, DisplayOptions, DisplayReceipts, DocumentMenu, DocumentNameHeader, DocumentPreview, DynamicForm, EditAccountType, EditHomeBody, EditHomeFooter, EditHomeHeader, EditHomePanel, EmailPermissions, EmailValidation, Feedback, FileDetail, FilesUploader, FlowStep, FolderDetail, FolderDetailBody, FolderDetailContent, FolderDetailFooter, FolderDetailHeader, FolderInfo, FolderSharing, FolderTypeSelection, FooterButtons, FooterDrawer, GenericBackHeader, GroupCard, GroupsContainer, GroupsHeader, Header, HelpContent, HomeAssistant, HomeAssistantPanel, HomeBoardGrid, HomeBoardTour, HomeCard, HomeCardWithRecipent, HomeDetailsContent, HomefileMonitoring, HomeHeader, HomeMonitor, HomeMonitorSteps, HomeSharedWith, InboxForwardBanner, InboxTile, ItemFormPanel, ItemFormTabs, ItemNameHeader, ItemsReviewBanner, ItemSubTypeSelect, Launchpad, LaunchpadAutofilerBanner, LaunchpadReceiptAutofiler, LaunchpadReceiptPanel, LaunchpadTour, LeftPanel, Loading, MediaDetailsStep, MessagePanel, MessageChatPanel, MonitorAlerts, MonthlyCharge, MortgageInfo, MoveModal, MyHomes, MyProfileBody, MyProfileContent, MyProfileFooter, MyProfileHeader, MyProfilePanel, NewCreditCard, NewCreditCardHeader, NewPassword, NotBeChargedBanner, Notifications, NotificationsReminder, NotificationsPanel, NotificationCard, Overlay, PanelHeader, PartnerActiveSubscription, PartnerCatalogPanel, PartnerContent, PartnerCustomerCode, PartnerDetails, PartnerImages, PartnerPanel, PasswordInput, PaymentReceipts, PdfButton, PeopleConnected, ProfileDetailsTab, ProfilePaymentTab, ProjectList, PropertyRecords, PropertyTaxes, ReadOnlyDynamicForm, ReadOnlyImage, ReadOnlyToggle, ReceiptAutofiler, ReceiptBody, ReceiptContent, ReceiptDetails, ReceiptFilters, ReceiptFooter, ReceiptHeader, ReceiptInfos, ReceiptItem, ReceiptItems, ReceiptPDF, ReceiptsDisplayOptions, ReceiptsFiled, ReceiptsHeader, ReceiptsInfo, ReceiptsReceivedContent, RecipientForm, RecipientsToShare, RecipientTab, RecordsInputs, ResendResetPassword, ResetPassword, ReviewBanner, RightPanel, RolePermissionsTab, RoomHeader, RoomsBoardTour, RoomsMenu, RoomsMenuMobile, RoomStep, RoomVideo, SalesTax, SatisfactionTile, SectionHeader, SendCommunication, ShareContactsContent, SharedAccounts, SharedHomeContent, SharedHomeHeader, ShareHome, ShareHomeConnections, ShareHomeForm, ShineTile, ShortPartnerTile, SignIn, SignUp, StepHeader, StorageUsed, Subscription, SubscriptionCard, SubscriptionTable, Summary, TabsHeader, TextInput, ToBeDeletedBody, ToBeDeletedContent, ToBeDeletedFooter, ToBeDeletedHeader, TourButton, Trash, TrendingValue, TrialBanner, TutorialsButton, TwoFactor, TwoFactorSetting, UpdateList, UserDetails, ValueMonitor, ViewContactPanel, VideoPlayer, VideoPlayerModal, WellDone, YtdTile, } from './components';
2
2
  export { useCustomToast } from './hooks';
3
3
  export { randomColor } from './utils';
4
- export { Contacts, MagnifyingGlassReport, Message, Register, Receipts, Price, BlueFolderShared, Calendar } from './assets/images';
4
+ export { Contacts, MagnifyingGlassReport, Message, Register, Receipts, Price, BlueFolderShared, Calendar, Create } from './assets/images';
5
5
  export { billingProxy, dynamicFormProxy, homeCardProxy, partnerContentProxy, partnerDetailsProxy, paymentMethodProxy, recordsInputsProxy, recordsInputsToDBProxy, userDetailsProxy, confirmAddressProxy, } from './proxies';
6
6
  import theme from './theme';
7
7
  export { theme };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { ActivateAccount, ActiveSubscription, AddCardBanner, AddEditContactPanel, AddFolder, AddHomeContent, AddHomeItem, AddHomeItemHeader, AddMedia, AddPropertyRecords, Address, AddPopup, AddTile, AlertBanner, AphwTile, AppBar, AssignableReceipts, BackHeader, BarDivider, CancelAccount, CatalogPopup, CloudsAnimation, ContactList, ContactsContent, ContainerHeader, CreateDocumentHeader, CreateHouseholdItemHeader, CreditCardContainer, CreditCardError, CustomerTile, DeleteBanner, Dialog, DisplayFiles, DisplayFilesDetail, DisplayOptions, DisplayReceipts, DocumentMenu, DocumentNameHeader, DocumentPreview, DynamicForm, EditAccountType, EditHomeBody, EditHomeFooter, EditHomeHeader, EditHomePanel, EmailPermissions, EmailValidation, Feedback, FileDetail, FilesUploader, FlowStep, FolderDetail, FolderDetailBody, FolderDetailContent, FolderDetailFooter, FolderDetailHeader, FolderInfo, FolderSharing, FolderTypeSelection, FooterButtons, FooterDrawer, GenericBackHeader, GroupCard, GroupsContainer, GroupsHeader, Header, HelpContent, HomeAssistant, HomeAssistantPanel, HomeBoardGrid, HomeBoardTour, HomeCard, HomeCardWithRecipent, HomeDetailsContent, HomefileMonitoring, HomeHeader, HomeMonitor, HomeMonitorSteps, HomeSharedWith, InboxForwardBanner, InboxTile, ItemFormPanel, ItemFormTabs, ItemNameHeader, ItemsReviewBanner, ItemSubTypeSelect, Launchpad, LaunchpadAutofilerBanner, LaunchpadReceiptAutofiler, LaunchpadReceiptPanel, LaunchpadTour, LeftPanel, Loading, MediaDetailsStep, MessagePanel, MessageChatPanel, MonitorAlerts, MonthlyCharge, MortgageInfo, MoveModal, MyHomes, MyProfileBody, MyProfileContent, MyProfileFooter, MyProfileHeader, MyProfilePanel, NewCreditCard, NewCreditCardHeader, NewPassword, NotBeChargedBanner, Notifications, NotificationsReminder, NotificationsPanel, NotificationCard, Overlay, PanelHeader, PartnerActiveSubscription, PartnerCatalogPanel, PartnerContent, PartnerCustomerCode, PartnerDetails, PartnerImages, PartnerPanel, PasswordInput, PaymentReceipts, PdfButton, PeopleConnected, ProfileDetailsTab, ProfilePaymentTab, ProjectList, PropertyRecords, PropertyTaxes, ReadOnlyDynamicForm, ReadOnlyImage, ReadOnlyToggle, ReceiptAutofiler, ReceiptBody, ReceiptContent, ReceiptDetails, ReceiptFilters, ReceiptFooter, ReceiptHeader, ReceiptInfos, ReceiptItem, ReceiptItems, ReceiptPDF, ReceiptsDisplayOptions, ReceiptsFiled, ReceiptsHeader, ReceiptsInfo, ReceiptsReceivedContent, RecipientForm, RecipientsToShare, RecipientTab, RecordsInputs, ResendResetPassword, ResetPassword, ReviewBanner, RightPanel, RolePermissionsTab, RoomHeader, RoomsBoardTour, RoomsMenu, RoomsMenuMobile, RoomStep, RoomVideo, SalesTax, SatisfactionTile, SectionHeader, SendCommunication, ShareContactsContent, SharedAccounts, SharedHomeContent, SharedHomeHeader, ShareHome, ShareHomeConnections, ShareHomeForm, ShineTile, ShortPartnerTile, SignIn, SignUp, StepHeader, StorageUsed, Subscription, SubscriptionCard, SubscriptionTable, Summary, TabsHeader, TextInput, ToBeDeletedBody, ToBeDeletedContent, ToBeDeletedFooter, ToBeDeletedHeader, TourButton, Trash, TrendingValue, TrialBanner, TutorialsButton, TwoFactor, TwoFactorSetting, UpdateList, UserDetails, ValueMonitor, ViewContactPanel, VideoPlayer, VideoPlayerModal, WellDone, YtdTile, } from './components';
2
2
  export { useCustomToast } from './hooks';
3
3
  export { randomColor } from './utils';
4
- export { Contacts, MagnifyingGlassReport, Message, Register, Receipts, Price, BlueFolderShared, Calendar } from './assets/images';
4
+ export { Contacts, MagnifyingGlassReport, Message, Register, Receipts, Price, BlueFolderShared, Calendar, Create } from './assets/images';
5
5
  export { billingProxy, dynamicFormProxy, homeCardProxy, partnerContentProxy, partnerDetailsProxy, paymentMethodProxy, recordsInputsProxy, recordsInputsToDBProxy, userDetailsProxy, confirmAddressProxy, } from './proxies';
6
6
  import theme from './theme';
7
7
  export { theme };
@@ -1,7 +1,5 @@
1
1
  export interface ItemFormPanelI {
2
- itemName?: string;
3
2
  onClose: () => void;
4
- onSaveItemName: (name: string) => void;
5
3
  onSubmitForm: () => void;
6
4
  panelIcon: string;
7
5
  panelTitle: string;
@@ -1,5 +1,5 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ItemFormPanel, ItemFormTabs, RightPanel } from '../../../components';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ItemFormPanel, ItemFormTabs, ItemNameHeader, RightPanel, } from '../../../components';
3
3
  import { Paint } from '../../../assets/images/groups';
4
4
  import { action } from '@storybook/addon-actions';
5
5
  import { contactFieldsMock } from '../../../mocks';
@@ -16,5 +16,5 @@ export default {
16
16
  },
17
17
  };
18
18
  export const ItemFormPanelComponent = (args) => {
19
- return (_jsx(RightPanel, { isOpen: true, onClose: () => null, children: _jsx(ItemFormPanel, Object.assign({}, args, { children: _jsx(ItemFormTabs, { form: contactFieldsMock }) })) }));
19
+ return (_jsx(RightPanel, { isOpen: true, onClose: () => null, children: _jsxs(ItemFormPanel, Object.assign({}, args, { children: [_jsx(ItemNameHeader, { id: "item-name-header", onSave: action('onSaveItemName') }), _jsx(ItemFormTabs, { form: contactFieldsMock })] })) }));
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.8.20",
3
+ "version": "2.8.22",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -0,0 +1,17 @@
1
+ <svg id="Grupo_13722" data-name="Grupo 13722" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="21.294" height="24.292" viewBox="0 0 21.294 24.292">
2
+ <defs>
3
+ <clipPath id="clip-path">
4
+ <rect id="Retângulo_13838" data-name="Retângulo 13838" width="21.294" height="24.292" fill="none"/>
5
+ </clipPath>
6
+ </defs>
7
+ <path id="Caminho_9958" data-name="Caminho 9958" d="M34.207,65v1.794H30.78V65h3.427Z" transform="translate(-23.247 -49.091)" fill="#e24c5d"/>
8
+ <rect id="Retângulo_13835" data-name="Retângulo 13835" width="3.427" height="6.589" transform="translate(7.534 17.703)" fill="#40566b"/>
9
+ <g id="Grupo_11926" data-name="Grupo 11926">
10
+ <g id="Grupo_11925" data-name="Grupo 11925" clip-path="url(#clip-path)">
11
+ <path id="Caminho_9959" data-name="Caminho 9959" d="M18.491,4.65V7.832A1.471,1.471,0,0,1,17.023,9.3H1.469A1.473,1.473,0,0,1,0,7.832V1.469A1.473,1.473,0,0,1,1.469,0H17.023a1.471,1.471,0,0,1,1.469,1.469Z" fill="#f6cf76"/>
12
+ <path id="Caminho_9960" data-name="Caminho 9960" d="M37.014,29.126H36.28v-2.08a1.838,1.838,0,0,1,1.836-1.836h8.743a1.1,1.1,0,0,0,1.1-1.1V19.336a1.014,1.014,0,0,0-.849-1.1H45.892V17.5H47.11a1.726,1.726,0,0,1,1.584,1.836v4.773a1.838,1.838,0,0,1-1.836,1.836H38.116a1.1,1.1,0,0,0-1.1,1.1Z" transform="translate(-27.4 -13.217)" fill="#40566b"/>
13
+ <rect id="Retângulo_13836" data-name="Retângulo 13836" width="10.914" height="0.734" transform="translate(4.751 1.53)" fill="#fea856"/>
14
+ <rect id="Retângulo_13837" data-name="Retângulo 13837" width="0.773" height="0.734" transform="translate(2.937 1.53)" fill="#fea856"/>
15
+ </g>
16
+ </g>
17
+ </svg>
@@ -36,6 +36,7 @@ import Construction from './construction.svg'
36
36
  import Contacts from './contacts.svg'
37
37
  import Contacts2 from './contacts2.svg'
38
38
  import Contributor from './contributor.svg'
39
+ import Create from './create.svg'
39
40
  import CreditCard from './credit-card.svg'
40
41
  import Detector from './detector.svg'
41
42
  import Diamond from './diamond.svg'
@@ -199,6 +200,7 @@ export {
199
200
  Contacts,
200
201
  Contacts2,
201
202
  Contributor,
203
+ Create,
202
204
  CreditCard,
203
205
  Detector,
204
206
  Diamond,
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react'
1
+ import { PropsWithChildren, ReactNode } from 'react'
2
2
  import {
3
3
  DrawerBody,
4
4
  DrawerHeader,
@@ -9,7 +9,6 @@ import {
9
9
  import {
10
10
  PanelHeader,
11
11
  FooterDrawer,
12
- ItemNameHeader,
13
12
  ItemFormFooter,
14
13
  Overlay,
15
14
  } from '@/components'
@@ -17,14 +16,23 @@ import { ItemFormPanelI } from '@/interfaces'
17
16
 
18
17
  export const ItemFormPanel = ({
19
18
  children,
20
- itemName,
21
19
  onClose,
22
- onSaveItemName,
23
20
  onSubmitForm,
24
21
  panelIcon,
25
22
  panelTitle,
26
23
  showOverlay = false,
27
24
  }: PropsWithChildren<ItemFormPanelI>) => {
25
+ let firstChild: ReactNode | null = null
26
+ let otherChildren: ReactNode = children
27
+
28
+ if (Array.isArray(children) && children.length > 0) {
29
+ const header = children[0]
30
+ if (header.props.id === 'item-name-header') {
31
+ firstChild = header
32
+ otherChildren = children.slice(1)
33
+ }
34
+ }
35
+
28
36
  return (
29
37
  <DrawerContent bg="lightBlue.1">
30
38
  <DrawerHeader p="0">
@@ -36,11 +44,7 @@ export const ItemFormPanel = ({
36
44
  </DrawerHeader>
37
45
 
38
46
  <DrawerBody p="0" overflowX="hidden" bg="lightBlue.1">
39
- <ItemNameHeader
40
- id="item-name"
41
- onSave={onSaveItemName}
42
- value={itemName}
43
- />
47
+ {firstChild}
44
48
  <Box position="relative" mb="200px">
45
49
  <Overlay
46
50
  showOverlay={showOverlay}
@@ -49,7 +53,7 @@ export const ItemFormPanel = ({
49
53
  h="inherit"
50
54
  zIndex="9"
51
55
  />
52
- {children}
56
+ {otherChildren}
53
57
  </Box>
54
58
  </DrawerBody>
55
59
  <FooterDrawer isOpen={!showOverlay}>
package/src/index.ts CHANGED
@@ -221,7 +221,8 @@ export {
221
221
  Receipts,
222
222
  Price,
223
223
  BlueFolderShared,
224
- Calendar
224
+ Calendar,
225
+ Create
225
226
  } from './assets/images'
226
227
 
227
228
  export {
@@ -1,7 +1,5 @@
1
1
  export interface ItemFormPanelI {
2
- itemName?: string
3
2
  onClose: () => void
4
- onSaveItemName: (name: string) => void
5
3
  onSubmitForm: () => void
6
4
  panelIcon: string
7
5
  panelTitle: string
@@ -1,5 +1,10 @@
1
1
  import { Meta } from '@storybook/react'
2
- import { ItemFormPanel, ItemFormTabs, RightPanel } from '@/components'
2
+ import {
3
+ ItemFormPanel,
4
+ ItemFormTabs,
5
+ ItemNameHeader,
6
+ RightPanel,
7
+ } from '@/components'
3
8
  import { ItemFormPanelI } from '@/interfaces'
4
9
  import { Paint } from '@/assets/images/groups'
5
10
  import { action } from '@storybook/addon-actions'
@@ -22,6 +27,10 @@ export const ItemFormPanelComponent = (args: ItemFormPanelI) => {
22
27
  return (
23
28
  <RightPanel isOpen onClose={() => null}>
24
29
  <ItemFormPanel {...args}>
30
+ <ItemNameHeader
31
+ id="item-name-header"
32
+ onSave={action('onSaveItemName')}
33
+ />
25
34
  <ItemFormTabs form={contactFieldsMock} />
26
35
  </ItemFormPanel>
27
36
  </RightPanel>