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 }) =>