feat: migrate to pnpm (#253)

This commit is contained in:
Ahmed Bouhuolia
2023-10-04 12:17:27 +02:00
committed by GitHub
parent 5df454dd30
commit ee62e3e1c2
211 changed files with 25984 additions and 24350 deletions

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import { FSelect } from '@/components/Forms';
export function AccountsTypesSelect({ ...props }) {

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
// Filters accounts items.
export const accountPredicate = (query, account, _index, exactMatch) => {

View File

@@ -1,6 +1,6 @@
// @ts-nocheck
import React from 'react';
import { Formik, FastField, FieldArray, useFormikContext } from 'formik';
import { Formik, FastField, FieldArray } from 'formik';
import {
Button,
FormGroup,

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Router, Switch, Route } from 'react-router';
import { createBrowserHistory } from 'history';
import { QueryClientProvider, QueryClient } from 'react-query';

View File

@@ -18,10 +18,10 @@ export const CardFooterActions = styled.div`
border-top: 1px solid #e0e7ea;
margin-top: 30px;
.bp3-button {
.bp4-button {
min-width: 70px;
+ .bp3-button {
+ .bp4-button {
margin-left: 10px;
}
}

View File

@@ -1,6 +1,6 @@
.menu{
:global .bp3-heading{
:global .bp4-heading{
font-weight: 400;
opacity: 0.5;
font-size: 12px;

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import * as R from 'ramda';
import BigcapitalLoading from './BigcapitalLoading';
import withDashboard from '@/containers/Dashboard/withDashboard';

View File

@@ -21,7 +21,7 @@ export function DataTableEditable({
}
const DatatableEditableRoot = styled.div`
.bp3-form-group {
.bp4-form-group {
margin-bottom: 0;
}
.table {
@@ -69,17 +69,17 @@ const DatatableEditableRoot = styled.div`
}
.tr {
&:hover .td,
.bp3-input {
.bp4-input {
background-color: transparent;
}
.bp3-form-group:not(.bp3-intent-danger) .bp3-input,
.form-group--select-list .bp3-button {
.bp4-form-group:not(.bp4-intent-danger) .bp4-input,
.form-group--select-list .bp4-button {
border-color: #ffffff;
color: #222;
border-radius: 3px;
text-align: inherit;
}
.bp3-form-group:not(.bp3-intent-danger) .bp3-input {
.bp4-form-group:not(.bp4-intent-danger) .bp4-input {
border-radius: 2px;
padding-left: 14px;
padding-right: 14px;
@@ -88,7 +88,7 @@ const DatatableEditableRoot = styled.div`
box-shadow: 0 0 0 2px #116cd0;
}
}
.form-group--select-list .bp3-button {
.form-group--select-list .bp4-button {
padding-left: 6px;
padding-right: 6px;
@@ -97,16 +97,16 @@ const DatatableEditableRoot = styled.div`
}
}
.form-group--select-list,
.bp3-form-group {
&.bp3-intent-danger {
.bp3-button:not(.bp3-minimal),
.bp3-input {
.bp4-form-group {
&.bp4-intent-danger {
.bp4-button:not(.bp4-minimal),
.bp4-input {
border-color: #f7b6b6;
}
}
}
.td.actions {
.bp3-button {
.bp4-button {
color: #80858f;
}
}

View File

@@ -35,7 +35,7 @@ const DialogFooterActionsRoot = styled.div`
${(props) =>
props.alignment === 'right' ? 'margin-left: auto;' : 'margin-right: auto;'};
.bp3-button {
.bp4-button {
margin-left: 5px;
margin-left: 5px;
}

View File

@@ -1,5 +1,3 @@
import React from 'react';
import AccountDialog from '@/containers/Dialogs/AccountDialog';
import InviteUserDialog from '@/containers/Dialogs/InviteUserDialog';
import UserFormDialog from '@/containers/Dialogs/UserFormDialog';

View File

@@ -17,8 +17,8 @@ export function DrawerMainTabs({ children, ...restProps }) {
}
const DrawerMainTabsRoot = styled.div`
.bp3-tabs {
.bp3-tab-list {
.bp4-tabs {
.bp4-tab-list {
position: relative;
background-color: #fff;
padding: 0 15px;
@@ -28,7 +28,7 @@ const DrawerMainTabsRoot = styled.div`
margin-right: 25px;
}
&.bp3-large > .bp3-tab {
&.bp4-large > .bp4-tab {
font-size: 15px;
color: #7f8596;
margin: 0 1rem;
@@ -38,13 +38,13 @@ const DrawerMainTabsRoot = styled.div`
color: #0052cc;
}
}
.bp3-tab-indicator-wrapper .bp3-tab-indicator {
.bp4-tab-indicator-wrapper .bp4-tab-indicator {
height: 2px;
bottom: -2px;
}
}
.bp3-tab-panel {
.bp4-tab-panel {
margin-top: 0;
.card {

View File

@@ -60,8 +60,8 @@ export function ExchangeRateMutedField({
}
const ExchangeRateFormGroup = styled(FormGroup)`
&.bp3-form-group {
label.bp3-label {
&.bp4-form-group {
label.bp4-label {
font-size: 12px;
opacity: 0.7;
line-height: 1;
@@ -79,7 +79,7 @@ const ExchangeRateButton = styled.div`
position: relative;
padding-right: 28px;
.bp3-button {
.bp4-button {
position: absolute;
right: 0;
}
@@ -88,7 +88,7 @@ const ExchangeRateButton = styled.div`
const ExchangeRateFormGroupContent = styled.div`
padding: 5px 0;
.bp3-form-group {
.bp4-form-group {
padding: 2px;
margin: 2px 4px !important;
}

View File

@@ -26,7 +26,7 @@ const SelectButton = styled(Button)`
position: relative;
padding-right: 30px;
&:not(.is-selected):not([class*='bp3-intent-']):not(.bp3-minimal) {
&:not(.is-selected):not([class*='bp4-intent-']):not(.bp4-minimal) {
color: #5c7080;
}
&:after {
@@ -46,13 +46,13 @@ const SelectButton = styled(Button)`
margin-right: 12px;
border-radius: 1px;
}
&:not([class*='bp3-intent-']):not(.bp3-disabled) {
&:not([class*='bp4-intent-']):not(.bp4-disabled) {
&,
&:hover {
background: #fff;
}
}
.bp3-intent-danger & {
.bp4-intent-danger & {
border-color: #db3737;
}
`;

View File

@@ -2,5 +2,5 @@
import React from 'react';
export function MenuItemLabel({ text }) {
return <span class="bp3-menu-item-labeler">{text}</span>;
return <span class="bp4-menu-item-labeler">{text}</span>;
}

View File

@@ -18,16 +18,16 @@ const FormTopBarRoot = styled(Navbar)`
height: 35px;
padding: 0 20px;
.bp3-navbar-group {
.bp4-navbar-group {
height: 35px;
}
.bp3-navbar-divider {
.bp4-navbar-divider {
border-left-color: #d2dce2;
}
.bp3-skeleton {
.bp4-skeleton {
max-height: 10px;
}
.bp3-button {
.bp4-button {
&:hover {
background: rgba(167, 182, 194, 0.12);
color: #32304a;

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import PropTypes from 'prop-types';
export const For = ({ render, of }) =>

View File

@@ -22,12 +22,12 @@ export function MakeJournalFormFooterLeft() {
}
const DescriptionFormGroup = styled(FFormGroup)`
&.bp3-form-group {
.bp3-label {
&.bp4-form-group {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Formik } from 'formik';
import { Link } from 'react-router-dom';

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React, { useMemo } from 'react';
import intl from 'react-intl-universal';
import { Formik } from 'formik';
import { Link } from 'react-router-dom';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import styled from 'styled-components';
import { Spinner } from '@blueprintjs/core';
@@ -39,7 +40,7 @@ export const AuthInsiderCopyright = styled.div`
color: #666;
margin-top: 1.2rem;
.bp3-icon-bigcapital {
.bp4-icon-bigcapital {
svg {
path {
fill: #a3a3a3;
@@ -65,11 +66,11 @@ export const AuthFooterLink = styled.p`
export const AuthSubmitButton = styled(Button)`
margin-top: 20px;
&.bp3-intent-primary {
&.bp4-intent-primary {
background-color: #0052cc;
&:disabled,
&.bp3-disabled {
&.bp4-disabled {
background-color: rgba(0, 82, 204, 0.4);
}
}

View File

@@ -178,7 +178,7 @@ const AccountSwitchItemUpdatedAt = styled.div`
`;
const AccountSwitchButtonBase = styled(Button)`
.bp3-button-text {
.bp4-button-text {
margin-right: 5px;
}
`;

View File

@@ -34,10 +34,10 @@ export function Sidebar() {
* @returns {React.JSX}
*/
function SidebarFooterVersion() {
const { MONOREPO_VERSION } = process.env;
const { REACT_APP_VERSION } = process.env;
if (!MONOREPO_VERSION) {
if (!REACT_APP_VERSION) {
return null;
}
return <div class="sidebar__version">v{MONOREPO_VERSION}</div>;
return <div class="sidebar__version">v{REACT_APP_VERSION}</div>;
}

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Button, Popover, Menu, Position } from '@blueprintjs/core';
import { Icon } from '@/components';

View File

@@ -53,7 +53,7 @@ export const ItemManuTransaction = ({ onChange }) => {
};
const ItemSwitchButton = styled(Button)`
.bp3-button-text {
.bp4-button-text {
display: flex;
color: #727983;
}

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import intl from 'react-intl-universal';
import { defaultTo } from 'lodash';

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import styled from 'styled-components';
import { CommercialDocBox } from '@/components';

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import styled from 'styled-components';
import { Card } from '@/components';

View File

@@ -20,12 +20,12 @@ export function ExpenseFormFooterLeft() {
);
}
const DescriptionFormGroup = styled(FFormGroup)`
&.bp3-form-group {
.bp3-label {
&.bp4-form-group {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}

View File

@@ -110,7 +110,7 @@ export default compose(
)(APAgingSummaryHeader);
const APAgingDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 520px;
}
`;

View File

@@ -14,12 +14,11 @@ import classNames from 'classnames';
import NumberFormatDropdown from '@/components/NumberFormatDropdown';
import { safeInvoke } from '@blueprintjs/core/lib/esm/common/utils';
import { useARAgingSummaryContext } from './ARAgingSummaryProvider';
import withARAgingSummaryActions from './withARAgingSummaryActions';
import withARAgingSummary from './withARAgingSummary';
import { compose } from '@/utils';
import { compose, safeInvoke } from '@/utils';
/**
* A/R Aging summary sheet - Actions bar.

View File

@@ -116,7 +116,7 @@ export default compose(
)(ARAgingSummaryHeader);
const ARAgingDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 520px;
}
`;

View File

@@ -125,7 +125,7 @@ export default compose(
)(BalanceSheetHeader);
const BalanceSheetFinancialHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 520px;
}
`;

View File

@@ -159,7 +159,7 @@ export default function BalanceSheetHeaderComparisonPanal() {
}
const BalanceSheetComparisonWrap = styled.div`
.bp3-form-group {
.bp4-form-group {
margin-bottom: 3px;
}
`;

View File

@@ -1,6 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Row, Col } from '@/components';
import FinancialStatementDateRange from '../FinancialStatementDateRange';
import FinancialStatementsFilter from '../FinancialStatementsFilter';

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import {
NavbarGroup,
Button,

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import { FastField } from 'formik';
import { DateInput } from '@blueprintjs/datetime';
import { FormGroup, Position, Checkbox } from '@blueprintjs/core';

View File

@@ -100,7 +100,7 @@ export default compose(
)(CustomersBalanceSummaryHeader);
const CustomerBalanceDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 450px;
}
`;

View File

@@ -101,7 +101,7 @@ export default compose(
)(CustomersTransactionsHeader);
const CustomerTransactionsDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 450px;
}
`;

View File

@@ -47,7 +47,7 @@ export default function FinancialStatementsFilter({
{({ form: { setFieldValue }, field: { value } }) => (
<FormGroup
label={label}
className="form-group--select-list bp3-fill"
className="form-group--select-list bp4-fill"
inline={false}
>
<ListSelect

View File

@@ -120,7 +120,7 @@ export default compose(
)(GeneralLedgerHeader);
const GeneralLedgerDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 520px;
}
`;

View File

@@ -119,7 +119,7 @@ export default compose(
)(InventoryItemDetailsHeader);
const InventoryItemDetailsDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 400px;
}
`;

View File

@@ -117,7 +117,7 @@ export default compose(
)(InventoryValuationHeader);
const InventoryValuationDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 450px;
}
`;

View File

@@ -98,7 +98,7 @@ export default compose(
)(JournalHeader);
const JournalDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 350px;
}
`;

View File

@@ -114,7 +114,7 @@ export default R.compose(
)(ProfitLossHeader);
const ProfitLossSheetHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 520px;
}
`;

View File

@@ -191,7 +191,7 @@ export default function ProfitLossSheetHeaderComparisonPanel() {
}
const ProfitLossSheetComparisonWrap = styled.div`
.bp3-form-group {
.bp4-form-group {
margin-bottom: 3px;
}
`;

View File

@@ -109,7 +109,7 @@ export default compose(
)(ProjectProfitabilitySummaryHeader);
const ProjectProfitabilityDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 520px;
}
`;

View File

@@ -98,7 +98,7 @@ export default compose(
)(PurchasesByItemsHeader);
const PurchasesByItemsDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 450px;
}
`;

View File

@@ -105,7 +105,7 @@ export default compose(
)(SalesByItemsHeader);
const SalesByItemsDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 450px;
}
`;

View File

@@ -108,7 +108,7 @@ export default compose(
)(SalesTaxLiabilitySummaryHeader);
const SalesTaxSummaryFinancialHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 320px;
}
`;

View File

@@ -18,7 +18,7 @@ export default function SelectsListColumnsBy(props) {
{({ form, field: { value }, meta: { error, touched } }) => (
<FormGroup
label={<T id={'display_report_columns'} />}
className="form-group-display-columns-by form-group--select-list bp3-fill"
className="form-group-display-columns-by form-group--select-list bp4-fill"
inline={false}
{...formGroupProps}
>

View File

@@ -127,7 +127,7 @@ export default compose(
)(TrialBalanceSheetHeader);
const TrialBalanceSheetDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 450px;
}
`;

View File

@@ -102,7 +102,7 @@ export default compose(
)(VendorsBalanceSummaryHeader);
const VendorBalanceDrawerHeader = styled(FinancialStatementHeader)`
.bp3-drawer {
.bp4-drawer {
max-height: 450px;
}
`;

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import {
NavbarGroup,
NavbarDivider,

View File

@@ -87,7 +87,7 @@ const BranchesTable = styled(DataTable)`
min-height: 38px;
.td.td-name {
.bp3-icon {
.bp4-icon {
margin: 0;
margin-left: 2px;
vertical-align: top;

View File

@@ -221,10 +221,10 @@ const CardFooterActions = styled.div`
border-top: 1px solid #e0e7ea;
margin-top: 30px;
.bp3-button {
.bp4-button {
min-width: 70px;
+ .bp3-button {
+ .bp4-button {
margin-left: 10px;
}
}

View File

@@ -1,5 +1,4 @@
// @ts-nocheck
import React from 'react';
import ContentLoader from 'react-content-loader';
export default function PreferencesPageLoader(props) {

View File

@@ -49,7 +49,7 @@ const RoleFormFloatingActionsRoot = styled.div`
border-top: 1px solid #d2dde2;
box-shadow: 0px -1px 4px 0px rgb(0 0 0 / 5%);
.bp3-button {
.bp4-button {
margin-right: 10px;
}
`;

View File

@@ -374,7 +374,7 @@ export const RolesPermissionList = () => {
};
const PermissionCheckbox = styled(Checkbox)`
&.bp3-control.bp3-checkbox .bp3-control-indicator {
&.bp4-control.bp4-checkbox .bp4-control-indicator {
border-radius: 2px;
border-color: #555;
@@ -454,7 +454,7 @@ const ModulePermissionsTableRoot = styled.table`
}
tr td {
.bp3-control.bp3-inline {
.bp4-control.bp4-inline {
margin: 0;
}

View File

@@ -150,7 +150,7 @@ export const WarehouseTitle = styled.div`
font-weight: 500;
line-height: 1;
.bp3-icon {
.bp4-icon {
margin: 0;
margin-left: 2px;
vertical-align: top;

View File

@@ -40,17 +40,17 @@ function EstimatedExpenseFormDialog({
export default compose(withDialogRedux())(EstimatedExpenseFormDialog);
const EstimateExpenseFormDialogRoot = styled(Dialog)`
.bp3-dialog-body {
.bp3-form-group {
.bp4-dialog-body {
.bp4-form-group {
margin-bottom: 15px;
label.bp3-label {
label.bp4-label {
margin-bottom: 3px;
font-size: 13px;
}
}
}
.bp3-dialog-footer {
.bp4-dialog-footer {
padding-top: 10px;
}
`;

View File

@@ -48,7 +48,7 @@ function ProjectEntriesFormFloatingActions({
export default compose(withDialogActions)(ProjectEntriesFormFloatingActions);
const SaveButton = styled(Button)`
&.bp3-button {
&.bp4-button {
margin-left: 0px;
}
`;

View File

@@ -102,8 +102,8 @@ const BillableEntryFooter = styled.div`
`;
const BillableEntryButton = styled(Button)`
&.bp3-button.bp3-small,
&.bp3-button:not([class*='bp3-intent-']):not(.bp3-minimal).bp3-small {
&.bp4-button.bp4-small,
&.bp4-button:not([class*='bp4-intent-']):not(.bp4-minimal).bp4-small {
font-size: 12px;
color: #2172ed;
background: transparent;

View File

@@ -41,18 +41,18 @@ function ProjectBillableEntriesFormDialog({
export default compose(withDialogRedux())(ProjectBillableEntriesFormDialog);
const ProjectBillableEntriesFormDialogRoot = styled(Dialog)`
.bp3-dialog-body {
.bp3-form-group {
.bp4-dialog-body {
.bp4-form-group {
margin-bottom: 15px;
label.bp3-label {
label.bp4-label {
margin-bottom: 3px;
font-size: 13px;
}
}
}
.bp3-dialog-footer {
.bp3-dialog-footer-actions {
.bp4-dialog-footer {
.bp4-dialog-footer-actions {
display: flex;
justify-content: flex-start;
}

View File

@@ -48,8 +48,8 @@ export default function ProjectDetailTabs() {
}
const ProjectTabsContent = styled.div`
.bp3-tabs {
.bp3-tab-list {
.bp4-tabs {
.bp4-tab-list {
padding: 0 20px;
background-color: #fff;
border-bottom: 1px solid #d2dce2;
@@ -58,7 +58,7 @@ const ProjectTabsContent = styled.div`
margin-right: 0;
}
&.bp3-large > .bp3-tab {
&.bp4-large > .bp4-tab {
font-size: 15px;
font-weight: 400;
color: #7f8596;
@@ -69,12 +69,12 @@ const ProjectTabsContent = styled.div`
color: #0052cc;
}
}
.bp3-tab-indicator-wrapper .bp3-tab-indicator {
.bp4-tab-indicator-wrapper .bp4-tab-indicator {
height: 2px;
bottom: -2px;
}
}
.bp3-tab-panel {
.bp4-tab-panel {
/* margin: 20px 32px; */
/* margin: 20px; */
/* margin-top: 20px;

View File

@@ -109,13 +109,13 @@ const TaskTimeFull = styled.div`
`;
const TaskProgressBar = styled(ProgressBar)`
&.bp3-progress-bar {
&.bp4-progress-bar {
display: block;
flex-shrink: 0;
height: 4px;
max-width: 150px;
&,
.bp3-progress-meter {
.bp4-progress-meter {
border-radius: 4px;
}
}

View File

@@ -76,10 +76,10 @@ export const FinancialCardText = styled.div`
color: #7b8195;
`;
export const FinancialCardProgressBar = styled(ProgressBar)`
&.bp3-progress-bar {
&.bp4-progress-bar {
height: 3px;
&,
.bp3-progress-meter {
.bp4-progress-meter {
border-radius: 0;
}
}

View File

@@ -40,17 +40,17 @@ function ProjectExpenseFormDialog({
export default compose(withDialogRedux())(ProjectExpenseFormDialog);
const ProjectExpenseFormDialogRoot = styled(Dialog)`
.bp3-dialog-body {
.bp3-form-group {
.bp4-dialog-body {
.bp4-form-group {
margin-bottom: 15px;
label.bp3-label {
label.bp4-label {
margin-bottom: 3px;
font-size: 13px;
}
}
}
.bp3-dialog-footer {
.bp4-dialog-footer {
padding-top: 10px;
}
`;

View File

@@ -43,17 +43,17 @@ function ProjectFormDialog({
export default compose(withDialogRedux())(ProjectFormDialog);
const ProjectFormDialogRoot = styled(Dialog)`
.bp3-dialog-body {
.bp3-form-group {
.bp4-dialog-body {
.bp4-form-group {
margin-bottom: 0;
label.bp3-label {
label.bp4-label {
margin-bottom: 3px;
font-size: 13px;
}
}
}
.bp3-dialog-footer {
.bp4-dialog-footer {
padding-top: 10px;
}
`;

View File

@@ -34,22 +34,22 @@ function ProjectInvoicingFormDialog({ dialogName, payload: {}, isOpen }) {
export default compose(withDialogRedux())(ProjectInvoicingFormDialog);
const ProjectInvoicingFormDialogRoot = styled(Dialog)`
.bp3-dialog-body {
.bp3-form-group {
.bp4-dialog-body {
.bp4-form-group {
margin-bottom: 15px;
margin-top: 15px;
label.bp3-label {
label.bp4-label {
margin-bottom: 3px;
font-size: 13px;
}
}
label.bp3-control.bp3-checkbox {
label.bp4-control.bp4-checkbox {
margin-top: 15px;
}
}
.bp3-dialog-footer {
.bp4-dialog-footer {
padding-top: 10px;
}
`;

View File

@@ -113,7 +113,7 @@ function ProjectTimeEntryFormFields() {
export default ProjectTimeEntryFormFields;
const DurationInputGroup = styled(FInputGroup)`
.bp3-input {
.bp4-input {
width: 150px;
}
`;

View File

@@ -47,18 +47,18 @@ function ProjectTimeEntryFormDialog({
export default compose(withDialogRedux())(ProjectTimeEntryFormDialog);
const ProjectTimeEntryFormDialogRoot = styled(Dialog)`
.bp3-dialog-body {
.bp3-form-group {
.bp4-dialog-body {
.bp4-form-group {
margin-bottom: 0;
label.bp3-label {
label.bp4-label {
margin-bottom: 3px;
font-size: 13px;
}
}
.form-group {
&--description {
.bp3-form-content {
.bp4-form-content {
textarea {
width: 100%;
min-width: 100%;
@@ -68,7 +68,7 @@ const ProjectTimeEntryFormDialogRoot = styled(Dialog)`
}
}
}
.bp3-dialog-footer {
.bp4-dialog-footer {
padding-top: 10px;
}
`;

View File

@@ -195,13 +195,13 @@ const ProjectStatusTaskAmount = styled.div`
`;
const ProjectProgressBar = styled(ProgressBar)`
&.bp3-progress-bar {
&.bp4-progress-bar {
display: block;
flex-shrink: 0;
height: 3px;
max-width: 110px;
&,
.bp3-progress-meter {
.bp4-progress-meter {
border-radius: 0;
}
}

View File

@@ -22,12 +22,12 @@ export function BillFormFooterLeft() {
}
const TermsConditsFormGroup = styled(FFormGroup)`
&.bp3-form-group {
.bp3-label {
&.bp4-form-group {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}

View File

@@ -88,7 +88,7 @@ export function BillUniversalSearchItem(
text={
<div>
<div>{item.text}</div>
<span class="bp3-text-muted">
<span class="bp4-text-muted">
{item.reference.bill_number}{' '}
<Icon icon={'caret-right-16'} iconSize={16} />
{item.reference.formatted_bill_date}

View File

@@ -22,12 +22,12 @@ export function VendorCreditNoteFormFooterLeft() {
}
const TermsConditsFormGroup = styled(FFormGroup)`
&.bp3-form-group {
.bp3-label {
&.bp4-form-group {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}

View File

@@ -74,7 +74,7 @@ export function VendorCreditUniversalSearchItem(
text={
<div>
<div>{item.text}</div>
<span class="bp3-text-muted">
<span class="bp4-text-muted">
{item.reference.vendor_credit_number}{' '}
<Icon icon={'caret-right-16'} iconSize={16} />
{item.reference.formatted_vendor_credit_date}

View File

@@ -28,14 +28,14 @@ export function PaymentMadeFormFooterLeft() {
}
const InternalNoteFormGroup = styled(FFormGroup)`
&.bp3-form-group {
&.bp4-form-group {
margin-bottom: 40px;
.bp3-label {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}

View File

@@ -44,7 +44,7 @@ export function PaymentMadeUniversalSearchItem(
<div>
<div>{highlightText(text, query)}</div>
<span class="bp3-text-muted">
<span class="bp4-text-muted">
{reference.payment_number && (
<>
{highlightText(reference.payment_number, query)}

View File

@@ -34,26 +34,26 @@ export function CreditNoteFormFooterLeft() {
}
const CreditNoteMsgFormGroup = styled(FFormGroup)`
&.bp3-form-group {
&.bp4-form-group {
margin-bottom: 40px;
.bp3-label {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}
`;
const TermsConditsFormGroup = styled(FFormGroup)`
&.bp3-form-group {
.bp3-label {
&.bp4-form-group {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}

View File

@@ -73,7 +73,7 @@ export function CreditNoteUniversalSearchItem(
text={
<div>
<div>{item.text}</div>
<span class="bp3-text-muted">
<span class="bp4-text-muted">
{item.reference.credit_note_number}{' '}
<Icon icon={'caret-right-16'} iconSize={16} />
{item.reference.formatted_credit_note_date}

View File

@@ -34,26 +34,26 @@ export function EstimateFormFooterLeft() {
}
const EstimateMsgFormGroup = styled(FFormGroup)`
&.bp3-form-group {
&.bp4-form-group {
margin-bottom: 40px;
.bp3-label {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}
`;
const TermsConditsFormGroup = styled(FFormGroup)`
&.bp3-form-group {
.bp3-label {
&.bp4-form-group {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}

View File

@@ -76,7 +76,7 @@ export function EstimateUniversalSearchItem(
text={
<div>
<div>{item.text}</div>
<span class="bp3-text-muted">
<span class="bp4-text-muted">
{item.reference.estimate_number}{' '}
<Icon icon={'caret-right-16'} iconSize={16} />
{item.reference.formatted_estimate_date}

View File

@@ -60,7 +60,7 @@ const InclusiveFormGroup = styled(FFormGroup)`
margin-bottom: 0;
margin-left: auto;
&.bp3-form-group.bp3-inline label.bp3-label {
&.bp4-form-group.bp4-inline label.bp4-label {
line-height: 1.25;
opacity: 0.6;
margin-right: 8px;
@@ -68,7 +68,7 @@ const InclusiveFormGroup = styled(FFormGroup)`
`;
const InclusiveSelect = styled(FSelect)`
.bp3-button {
.bp4-button {
padding-right: 24px;
}
`;

View File

@@ -35,26 +35,26 @@ export function InvoiceFormFooterLeft() {
}
const InvoiceMsgFormGroup = styled(FFormGroup)`
&.bp3-form-group {
&.bp4-form-group {
margin-bottom: 40px;
.bp3-label {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}
`;
const TermsConditsFormGroup = styled(FFormGroup)`
&.bp3-form-group {
.bp3-label {
&.bp4-form-group {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}

View File

@@ -80,7 +80,7 @@ export function InvoiceUniversalSearchItem(
text={
<div>
<div>{highlightText(item.text, query)}</div>
<span class="bp3-text-muted">
<span class="bp4-text-muted">
{highlightText(item.reference.invoice_no, query)}{' '}
<Icon icon={'caret-right-16'} iconSize={16} />
{item.reference.formatted_invoice_date}

View File

@@ -26,12 +26,12 @@ export function PaymentReceiveFormFootetLeft() {
}
const TermsConditsFormGroup = styled(FFormGroup)`
&.bp3-form-group {
.bp3-label {
&.bp4-form-group {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}

View File

@@ -50,7 +50,7 @@ export function PaymentReceiveUniversalSearchItem(
<div>
<div>{highlightText(item.text, query)}</div>
<span class="bp3-text-muted">
<span class="bp4-text-muted">
{highlightText(item.reference.payment_receive_no, query)}{' '}
<Icon icon={'caret-right-16'} iconSize={16} />
{highlightText(item.reference.formatted_payment_date, query)}

View File

@@ -36,26 +36,26 @@ export function ReceiptFormFooterLeft() {
}
const ReceiptMsgFormGroup = styled(FFormGroup)`
&.bp3-form-group {
&.bp4-form-group {
margin-bottom: 40px;
.bp3-label {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}
`;
const TermsConditsFormGroup = styled(FFormGroup)`
&.bp3-form-group {
.bp3-label {
&.bp4-form-group {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}

View File

@@ -66,7 +66,7 @@ export function ReceiptUniversalSearchItem(
text={
<div>
<div>{item.text}</div>
<span class="bp3-text-muted">
<span class="bp4-text-muted">
{item.reference.receipt_number}{' '}
<Icon icon={'caret-right-16'} iconSize={16} />
{item.reference.formatted_receipt_date}

View File

@@ -372,7 +372,7 @@ const TransLockingIcon = styled.div`
border-radius: 8px;
color: #93a1ba;
.bp3-icon {
.bp4-icon {
position: relative;
top: 1px;
}
@@ -381,7 +381,7 @@ const TransLockingIcon = styled.div`
export const TransLockingActions = styled.div`
display: flex;
.bp3-divider {
.bp4-divider {
margin: 2px;
}
`;

View File

@@ -18,7 +18,7 @@ function UniversalSearchItemDetail(item, { handleClick, modifiers, query }) {
<div>{highlightText(item.text, query)}</div>
{item.subText && (
<span class="bp3-text-muted">
<span class="bp4-text-muted">
{highlightText(item.subText, query)}
</span>
)}

View File

@@ -22,12 +22,12 @@ export function WarehouseTransferFormFooterLeft() {
}
const TermsConditsFormGroup = styled(FFormGroup)`
&.bp3-form-group {
.bp3-label {
&.bp4-form-group {
.bp4-label {
font-size: 12px;
margin-bottom: 12px;
}
.bp3-form-content {
.bp4-form-content {
margin-left: 10px;
}
}

View File

@@ -1,14 +1,10 @@
@import './normalize.scss';
@import './_base.scss';
@import './Base.scss';
// Blueprint framework.
@import '@blueprintjs/core/src/blueprint.scss';
@import '@blueprintjs/datetime/src/blueprint-datetime.scss';
@import '@blueprintjs/popover2/src/blueprint-popover2.scss';
@import 'basscss';
// Objects
@import 'objects/form';
@import 'objects/switch';
@@ -51,56 +47,56 @@ body.hide-scrollbar .Pane2 {
overflow: hidden;
}
.bp3-fill {
.bp4-fill {
.bp3-popover-wrapper,
.bp3-popover-target {
.bp4-popover-wrapper,
.bp4-popover-target {
display: block;
width: 100%;
}
.bp3-button {
.bp4-button {
width: 100%;
justify-content: start;
}
}
.bp3-datepicker-caption .bp3-html-select::after {
.bp4-datepicker-caption .bp4-html-select::after {
margin-right: 6px;
}
.bp3-select-popover .bp3-menu,
.bp3-multi-select-popover .bp3-menu {
.bp4-select-popover .bp4-menu,
.bp4-multi-select-popover .bp4-menu {
max-height: 300px;
overflow: auto;
}
.bp3-form-group .bp3-label {
.bp4-form-group .bp4-label {
.hint {
.bp3-popover-wrapper {
.bp4-popover-wrapper {
display: inline;
}
}
&:not(.bp3-inline) .hint .bp3-popover-target {
&:not(.bp4-inline) .hint .bp4-popover-target {
display: inline;
margin-left: 0;
}
}
.bp3-popover.bp3-tooltip {
.bp4-popover.bp4-tooltip {
max-width: 300px;
}
.bp3-timezone-picker {
.bp3-button {
.bp4-timezone-picker {
.bp4-button {
[icon='caret-down'] {
display: none;
}
}
}
.bp3-progress-bar.bp3-intent-primary .bp3-progress-meter {
.bp4-progress-bar.bp4-intent-primary .bp4-progress-meter {
background-color: #0066ff;
}
@@ -183,7 +179,7 @@ body.hide-scrollbar .Pane2 {
.ReactVirtualized__List {}
.bp3-drawer {
.bp4-drawer {
box-shadow: 0 0 0;
background-color: #fbfbfb;
@@ -194,7 +190,7 @@ body.hide-scrollbar .Pane2 {
// RTL Icons.
html[dir='rtl'] {
.bp3-icon-caret-right {
.bp4-icon-caret-right {
transform: scaleX(-1);
}
}
@@ -205,12 +201,12 @@ html[lang^='ar'] {
}
}
.bp3-popover2 {
.bp4-popover2 {
box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.02), 0 2px 4px rgba(16, 22, 26, 0.1),
0 8px 24px rgba(16, 22, 26, 0.1);
}
.bp3-tooltip2 .bp3-popover2-arrow:before {
.bp4-tooltip2 .bp4-popover2-arrow:before {
box-shadow: 0 0 0;
}
@@ -230,38 +226,38 @@ html[lang^='ar'] {
z-index: 9999999;
margin: 6px;
.bp3-button {
.bp4-button {
border-color: rgba(0, 0, 0, 0.25);
color: rgb(25, 32, 37);
min-height: 30px;
padding-left: 14px;
padding-right: 14px;
&+.bp3-button {
&+.bp4-button {
margin-left: 8px;
}
}
}
.bp3-dialog {
.bp4-dialog {
&-body {
&:not(.loading) {
margin: 0;
}
>.bp3-spinner {
>.bp4-spinner {
margin: 20px 0;
}
}
}
}
.bp3-drawer {
.bp4-drawer {
border-left: 1px solid #00115e;
}
.drawer-portal {
.bp3-overlay-backdrop {
.bp4-overlay-backdrop {
background: rgba(0, 10, 30, 0.05);
}
}

View File

@@ -1,3 +0,0 @@
@import 'variables';
@import 'functions';

View File

@@ -0,0 +1,3 @@
@import '_variables';
@import '_functions';

View File

@@ -0,0 +1,54 @@
// Characters which are escaped by the escape-svg function
$escaped-characters: (("<", "%3c"),
(">", "%3e"),
("#", "%23"),
("(", "%28"),
(")", "%29"),
) !default;
$svg-icon-map: ('16px/small-minus.svg': "path fill-rule='evenodd' clip-rule='evenodd' d='M11 7H5c-.55 0-1 .45-1 1s.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1z' fill='%23fff'/",
'16px/small-tick.svg': "path fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0 0 12 5z' fill='%23fff'/",
'16px/chevron-right.svg': "path fill-rule='evenodd' clip-rule='evenodd' d='M10.71 7.29l-4-4a1.003 1.003 0 0 0-1.42 1.42L8.59 8 5.3 11.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71l4-4c.18-.18.29-.43.29-.71 0-.28-.11-.53-.29-.71z' fill='%235C7080'/",
'16px/more.svg': "g fill='%235C7080'%3E%3Ccircle cx='2' cy='8.03' r='2'/%3E%3Ccircle cx='14' cy='8.03' r='2'/%3E%3Ccircle cx='8' cy='8.03' r='2'/%3E%3C/g",
) !default;
// Replace `$search` with `$replace` in `$string`
// Used on our SVG icon backgrounds for custom forms.
//
// @author Hugo Giraudel
// @param {String} $string - Initial string
// @param {String} $search - Substring to replace
// @param {String} $replace ('') - New value
// @return {String} - Updated string
@function str-replace($string, $search, $replace: "") {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1)+$replace+str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
}
@return $string;
}
@function escape-svg($string) {
@if str-index($string, "data:image/svg+xml") {
@each $char,
$encoded in $escaped-characters {
@if str-index($string, "url(")==1 {
$string: url("#{str-replace(str-slice($string, 6, -3), $char, $encoded)}");
}
@else {
$string: str-replace($string, $char, $encoded);
}
}
}
@return $string;
}
@function svg-icon($inline-svg, $fill-color) {
@return url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3C"+ map-get($svg-icon-map, $inline-svg) + "%3E%3C/svg%3E")
}

View File

@@ -1,6 +1,7 @@
@import '@blueprintjs/core/src/common/_variables.scss';
@import "@blueprintjs/colors/lib/scss/colors";
@import '@blueprintjs/core/src/common/variables';
$ns: bp3;
$ns: bp4;
$pt-popover-box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.02),
0 2px 4px rgba(16, 22, 26, 0.1), 0 8px 24px rgba(16, 22, 26, 0.1);
@@ -48,4 +49,4 @@ $form-check-input-indeterminate-bg-image: url("data:image/svg+xml,<svg xmlns='ht
// z-indexs
$zindex-dashboard-splash-screen: 39;
$zindex-toast: 40;
$zindex-toast: 40;

View File

@@ -1,6 +1,6 @@
.bp3-alert{
.bp3-alert-footer{
.bp3-button{
.bp4-alert{
.bp4-alert-footer{
.bp4-button{
min-width: 70px;
}
}

View File

@@ -14,7 +14,7 @@
z-index: 999;
}
.bp3-spinner{
.bp4-spinner{
position: absolute;
z-index: 999999;
left: 50%;
@@ -22,7 +22,7 @@
margin-top: -20px;
margin-left: -20px;
}
&:not(.is-loading) .bp3-spinner{
&:not(.is-loading) .bp4-spinner{
display: none;
}
}

Some files were not shown because too many files have changed in this diff Show More