From c46948049cdc4a58e0237f2c1cddb16df8bc9b66 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Tue, 26 Dec 2023 22:57:41 +0200 Subject: [PATCH] feat: add send mail icon --- .../EstimateDetailActionsBar.tsx | 14 +- .../InvoiceDetailActionsBar.tsx | 6 +- .../PaymentReceiveActionsBar.tsx | 14 +- .../ReceiptDetailActionBar.tsx | 15 +- .../EstimateMailDialog/EstimateMailDialog.tsx | 2 + .../EstimateMailDialogBoot.tsx | 1 + .../EstimateMailDialogForm.tsx | 44 +++++- .../EstimatesLanding/EstimatesDataTable.tsx | 7 + .../Estimates/EstimatesLanding/components.tsx | 6 + .../InvoiceMailDialog/InvoiceMailDialog.tsx | 1 + .../InvoiceMailDialogBoot.tsx | 1 + .../InvoiceMailDialogForm.tsx | 44 +++++- .../InvoicesLanding/InvoicesDataTable.tsx | 7 + .../Invoices/InvoicesLanding/components.tsx | 7 +- .../PaymentMailDialog/PaymentMailDialog.tsx | 1 + .../PaymentMailDialogForm.tsx | 48 ++++++- .../PaymentsLanding/PaymentReceivesTable.tsx | 15 +- .../PaymentsLanding/components.tsx | 12 +- .../ReceiptMailDialog/ReceiptMailDialog.tsx | 1 + .../ReceiptMailDialogBoot.tsx | 1 + .../ReceiptMailDialogForm.tsx | 43 +++++- .../ReceiptsLanding/ReceiptActionsBar.tsx | 1 - .../ReceiptsLanding/ReceiptsTable.tsx | 7 + .../Receipts/ReceiptsLanding/components.tsx | 7 +- .../SendMailNotificationForm.tsx | 134 ++++++++++++++---- packages/webapp/src/static/json/icons.tsx | 12 +- 26 files changed, 369 insertions(+), 82 deletions(-) diff --git a/packages/webapp/src/containers/Drawers/EstimateDetailDrawer/EstimateDetailActionsBar.tsx b/packages/webapp/src/containers/Drawers/EstimateDetailDrawer/EstimateDetailActionsBar.tsx index 65821afd8..3ba5b0d02 100644 --- a/packages/webapp/src/containers/Drawers/EstimateDetailDrawer/EstimateDetailActionsBar.tsx +++ b/packages/webapp/src/containers/Drawers/EstimateDetailDrawer/EstimateDetailActionsBar.tsx @@ -84,20 +84,18 @@ function EstimateDetailActionsBar({ + + + + + ); } + +const HeaderBox = styled('div')` + border-top-right-radius: 5px; + border-top-left-radius: 5px; + border: 1px solid #dddfe9; + padding: 15px; + + .bp4-form-group { + margin: 0; + padding-top: 12px; + padding-bottom: 12px; + + &:not(:last-of-type) { + border-bottom: 1px solid #dddfe9; + } + &:first-of-type { + padding-top: 0; + } + &:last-of-type { + padding-bottom: 0; + } + } + + .bp4-form-content { + flex: 1 0; + } + + .bp4-label { + min-width: 65px; + color: #738091; + } + + .bp4-input { + } +`; diff --git a/packages/webapp/src/static/json/icons.tsx b/packages/webapp/src/static/json/icons.tsx index b13e9ffa5..e60213bb8 100644 --- a/packages/webapp/src/static/json/icons.tsx +++ b/packages/webapp/src/static/json/icons.tsx @@ -561,8 +561,14 @@ export default { }, 'content-copy': { path: [ - 'M15 0H5c-.55 0-1 .45-1 1v2h2V2h8v7h-1v2h2c.55 0 1-.45 1-1V1c0-.55-.45-1-1-1zm-4 4H1c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-1 10H2V6h8v8z' + 'M15 0H5c-.55 0-1 .45-1 1v2h2V2h8v7h-1v2h2c.55 0 1-.45 1-1V1c0-.55-.45-1-1-1zm-4 4H1c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-1 10H2V6h8v8z', ], - viewBox: '0 0 16 16' - } + viewBox: '0 0 16 16', + }, + envelope: { + path: [ + 'M0 4.01v11.91l6.27-6.27L0 4.01zm18.91-1.03H1.09L10 10.97l8.91-7.99zm-5.18 6.66L20 15.92V4.01l-6.27 5.63zm-3.23 2.9c-.13.12-.31.19-.5.19s-.37-.07-.5-.19l-2.11-1.89-6.33 6.33h17.88l-6.33-6.33-2.11 1.89z', + ], + viewBox: '0 0 20 20', + }, };