From dfcd1a2f290d879c7cb914193f5b636e602779d1 Mon Sep 17 00:00:00 2001 From: Gustav Larsson Date: Thu, 30 Jan 2025 14:16:33 +0100 Subject: [PATCH] Upgrade to Tailwind v4 --- .prettierrc | 3 +- components/AccountHoverCard.tsx | 6 +- components/AccountingCategorySelect.tsx | 6 +- components/Avatar.tsx | 2 +- components/ComboSelect.tsx | 2 +- components/CreateCollectiveMiniForm.tsx | 2 +- components/Drawer.tsx | 4 +- components/Dropzone.tsx | 4 +- components/ExchangeRate.tsx | 2 +- components/FeedbackModal.tsx | 2 +- components/FilesViewerModal.tsx | 8 +- components/GiftCard.tsx | 4 +- components/InputAmount.tsx | 6 +- components/LanguageSwitcher.tsx | 4 +- components/LoginBtn.js | 2 +- components/NewsAndUpdatesModal.js | 4 +- components/PasswordInput.tsx | 2 +- components/ProportionalAreaChart.tsx | 4 +- components/RichTextEditor.tsx | 2 +- components/SearchTrigger.tsx | 4 +- components/SignatureInput.tsx | 2 +- components/StackedAvatars.tsx | 2 +- components/StepsProgress.js | 8 +- components/StyledButtonSet.tsx | 2 +- components/StyledFilters.tsx | 2 +- components/StyledInputAmount.tsx | 6 +- components/Survey.tsx | 2 +- components/Tabs.tsx | 4 +- components/agreements/Agreement.tsx | 2 +- components/agreements/AgreementsTable.tsx | 4 +- components/budget/ExpenseBudgetItem.js | 4 +- components/budget/OrderBudgetItem.js | 2 +- components/changelog/ChangelogTrigger.js | 4 +- components/collective-navbar/index.js | 6 +- .../contributions/ContributionDrawer.tsx | 10 +- components/conversations/SmallComment.tsx | 6 +- components/conversations/SmallThread.tsx | 2 +- .../conversations/SmallThreadActivity.tsx | 12 +- components/conversations/Thread.js | 2 +- components/crowdfunding-redesign/Footer.tsx | 6 +- .../FundraiserLayout.tsx | 8 +- .../crowdfunding-redesign/FundraisingPage.tsx | 4 +- components/crowdfunding-redesign/Header.tsx | 18 +- components/crowdfunding-redesign/Tiers.tsx | 2 +- .../edit/EditFundraiser.tsx | 2 +- .../edit/EditProfile.tsx | 2 +- .../crowdfunding-redesign/edit/common.tsx | 6 +- .../finances/Finances.tsx | 2 +- .../finances/ProfileMetric.tsx | 4 +- .../finances/TransactionGroupDetails.tsx | 4 +- .../updates/UpdatesList.tsx | 4 +- components/dashboard/AccountSwitcher.tsx | 6 +- components/dashboard/DashboardHeader.tsx | 2 +- components/dashboard/DashboardSection.tsx | 10 +- components/dashboard/EmptyResults.tsx | 2 +- .../ExportHostedCollectivesCSVModal.tsx | 6 +- .../dashboard/ExportTransactionsCSVModal.tsx | 6 +- components/dashboard/MenuLink.tsx | 6 +- components/dashboard/SideBar.tsx | 5 +- .../filters/DateFilter/DateInput.tsx | 2 +- .../filters/DateFilter/DateRangeInput.tsx | 4 +- .../filters/DateFilter/TimezonePicker.tsx | 4 +- components/dashboard/filters/EmailFilter.tsx | 2 +- .../dashboard/filters/FilterDropdown.tsx | 2 +- components/dashboard/filters/Pagination.tsx | 2 +- components/dashboard/filters/SearchFilter.tsx | 6 +- .../dashboard/preview/AccountSwitcher.tsx | 4 +- .../dashboard/preview/DashboardTopBar.tsx | 4 +- .../GenericActivityDiffDataWithList.tsx | 6 +- .../dashboard/sections/Contributors.tsx | 2 +- .../sections/HostDashboardAgreements.tsx | 2 +- .../sections/HostVirtualCardRequests.tsx | 2 +- .../dashboard/sections/HostVirtualCards.tsx | 2 +- components/dashboard/sections/Team.tsx | 2 +- components/dashboard/sections/Vendors.tsx | 2 +- .../accounting/AccountingCategoriesTable.tsx | 2 +- .../accounting/AccountingCategoryDrawer.tsx | 16 +- .../dashboard/sections/accounting/index.tsx | 4 +- .../dashboard/sections/accounts/index.tsx | 2 +- .../sections/collectives/AddFundsModal.tsx | 6 +- .../sections/collectives/AllCollectives.tsx | 2 +- .../collectives/CollectiveDetails.tsx | 10 +- .../collectives/FreezeAccountModal.tsx | 2 +- .../collectives/HostApplicationDrawer.tsx | 4 +- .../collectives/HostApplicationRequests.tsx | 2 +- .../sections/collectives/HostApplications.tsx | 2 +- .../collectives/HostedCollectives.tsx | 2 +- .../sections/contributions/Contributions.tsx | 18 +- .../contributions/CreatePendingOrderModal.tsx | 4 +- .../expenses/ExpensePipelineOverview.tsx | 6 +- .../expenses/HostCreateExpenseModal.tsx | 2 +- .../expenses/HostDashboardExpenses.tsx | 2 +- .../sections/expenses/ReceivedExpenses.tsx | 2 +- .../expenses/ScheduledExpensesBanner.tsx | 2 +- .../sections/expenses/SubmittedExpenses.tsx | 2 +- .../reports/HostExpensesReportList.tsx | 2 +- .../reports/HostExpensesReportView.tsx | 8 +- .../legal-documents/HostDashboardTaxForms.tsx | 2 +- .../LegalDocumentServiceBadge.tsx | 2 +- .../LegalDocumentStatusBadge.tsx | 2 +- .../legal-documents/LegalDocumentsTable.tsx | 2 +- .../sections/overview/AccountTable.tsx | 2 +- .../dashboard/sections/overview/Accounts.tsx | 2 +- .../sections/overview/CollectiveOverview.tsx | 8 +- .../sections/overview/IndividualOverview.tsx | 4 +- .../dashboard/sections/overview/Metric.tsx | 2 +- .../sections/overview/TimelineItem.tsx | 4 +- .../reports/AccountTransactionReport.tsx | 6 +- .../reports/AccountTransactionReportsList.tsx | 2 +- .../sections/reports/DefinitionTooltip.tsx | 2 +- .../sections/reports/HostReportTabs.tsx | 2 +- .../reports/HostTransactionReport.tsx | 4 +- .../reports/HostTransactionReportsList.tsx | 2 +- .../sections/reports/LegacyColumnRows.tsx | 2 +- .../sections/reports/ReportContent.tsx | 4 +- .../sections/reports/ReportPeriodSelector.tsx | 6 +- .../reports/legacy/HostDashboardReports.tsx | 2 +- .../tax-information/TaxFormPreview.tsx | 2 +- .../TaxFormTypeSelectFields.tsx | 4 +- .../tax-information/TaxInformationForm.tsx | 2 +- .../TaxInformationFormDialog.tsx | 2 +- .../sections/tax-information/W8BenEForm.tsx | 12 +- .../sections/tax-information/W8BenForm.tsx | 4 +- .../sections/tax-information/W9Form.tsx | 2 +- .../CSVColumnSelector.tsx | 8 +- .../FilterWithRawValueButton.tsx | 2 +- .../SuggestedContributionsTable.tsx | 2 +- .../TransactionsImport.tsx | 12 +- .../transactions/TransactionDrawer.tsx | 4 +- .../sections/updates/SingleUpdateView.tsx | 2 +- .../sections/updates/UpdateFormView.tsx | 4 +- .../dashboard/sections/updates/index.tsx | 4 +- .../sections/ManagePaymentMethods.tsx | 6 +- .../edit-collective/sections/Webhooks.js | 6 +- .../sections/fiscal-host/ActiveFiscalHost.tsx | 2 +- .../fiscal-host/FiscalHostOCFTransition.tsx | 16 +- .../edit-collective/tiers/EditTierModal.js | 4 +- components/expenses/ConfirmOCRValues.tsx | 2 +- .../expenses/DeclineExpenseInviteButton.tsx | 4 +- components/expenses/ExpenseForm.js | 2 +- components/expenses/ExpenseItemForm.js | 2 +- components/expenses/PayoutMethodData.js | 4 +- .../list/SubmittedExpenseListItem.tsx | 4 +- components/navigation/DrawerMenu.tsx | 2 +- components/navigation/Footer.tsx | 4 +- components/navigation/ProfileMenu.tsx | 6 +- .../navigation/ProfileMenuMemberships.tsx | 4 +- components/navigation/TopBar.tsx | 4 +- components/navigation/preview/TopBar.tsx | 8 +- .../onboarding-modal/OnboardingModal.js | 4 +- components/orders/OrdersWithData.js | 2 +- components/orders/PaymentMethodPicker.tsx | 10 +- .../CreatePersonalTokenModal.js | 2 +- .../personal-token/PersonalTokenSettings.js | 2 +- .../search-page/SearchCollectiveCard.js | 4 +- components/search/ContextPill.tsx | 6 +- components/search/SearchCommand.tsx | 4 +- components/search/result/CommentResult.tsx | 2 +- components/search/result/ExpenseResult.tsx | 2 +- components/search/result/OrderResult.tsx | 2 +- .../search/result/TransactionResult.tsx | 2 +- components/search/result/UpdateResult.tsx | 2 +- .../submit-expense/PayoutMethodDetails.tsx | 8 +- .../submit-expense/SubmitExpenseFlow.tsx | 30 +- .../submit-expense/SubmitExpenseFlowSteps.tsx | 4 +- .../submit-expense/SubmittedExpense.tsx | 4 +- .../form/AdditionalDetailsSection.tsx | 2 +- .../form/ExpenseAccountItem.tsx | 4 +- .../form/ExpenseCategorySection.tsx | 2 +- .../form/ExpenseItemsSection.tsx | 10 +- .../form/ExpensePolicyContainer.tsx | 4 +- .../submit-expense/form/InviteUserOption.tsx | 4 +- .../form/PayoutMethodSection.tsx | 4 +- .../submit-expense/form/SummarySection.tsx | 14 +- .../form/TypeOfExpenseSection.tsx | 16 +- components/table/ColumnHeader.tsx | 2 +- components/table/RowActionsMenu.tsx | 2 +- .../transactions/TransactionsPageContent.tsx | 4 +- .../DevicesSettings.tsx | 2 +- .../RecoverySettings.tsx | 2 +- .../TwoFactorAuthenticationModal.tsx | 8 +- components/ui/Accordion.tsx | 2 +- components/ui/Alert.tsx | 4 +- components/ui/AlertDialog.tsx | 6 +- components/ui/Badge.tsx | 2 +- components/ui/Button.tsx | 2 +- components/ui/Card.tsx | 4 +- components/ui/Checkbox.tsx | 2 +- components/ui/Command.tsx | 8 +- components/ui/DataList.tsx | 2 +- components/ui/Dialog.tsx | 8 +- components/ui/DropdownMenu.tsx | 12 +- components/ui/HoverCard.tsx | 2 +- components/ui/InfoList.tsx | 2 +- components/ui/Input.tsx | 6 +- components/ui/Label.tsx | 2 +- components/ui/Popover.tsx | 2 +- components/ui/RadioGroup.tsx | 8 +- components/ui/Select.tsx | 12 +- components/ui/Sheet.tsx | 4 +- components/ui/Stepper.tsx | 35 +- components/ui/Switch.tsx | 4 +- components/ui/Table.tsx | 8 +- components/ui/Tabs.tsx | 4 +- components/ui/Textarea.tsx | 4 +- components/ui/Toast.tsx | 8 +- components/ui/Tooltip.tsx | 2 +- components/vendors/OrganizationDetails.tsx | 2 +- components/vendors/VendorDetails.tsx | 2 +- components/vendors/VendorForm.tsx | 14 +- .../VirtualCardRequestDrawer.tsx | 4 +- .../VirtualCardRequestsTable.tsx | 4 +- .../StripeVirtualCardComplianceStatement.tsx | 2 +- .../virtual-cards/VirtualCardDrawer.tsx | 4 +- .../virtual-cards/VirtualCardsTable.tsx | 4 +- package-lock.json | 927 +++++++++--------- package.json | 11 +- pages/dashboard.tsx | 4 +- pages/preview/[collectiveSlug]/index.tsx | 10 +- pages/reset-password-completed.js | 2 +- pages/reset-password-sent.js | 2 +- pages/reset-password.tsx | 2 +- pages/signinLinkSent.js | 2 +- pages/staticPage.js | 4 +- pages/welcome.tsx | 24 +- postcss.config.js | 3 +- public/static/styles/app.css | 441 ++++++--- tailwind.config.js | 112 --- 228 files changed, 1289 insertions(+), 1234 deletions(-) delete mode 100644 tailwind.config.js diff --git a/.prettierrc b/.prettierrc index 117bdf8132c..57065c61329 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,5 +4,6 @@ "arrowParens": "avoid", "printWidth": 120, "plugins": ["prettier-plugin-tailwindcss"], - "tailwindFunctions": ["clsx", "cn", "cva"] + "tailwindFunctions": ["clsx", "cn", "cva"], + "tailwindStylesheet": "./public/static/styles/app.css" } diff --git a/components/AccountHoverCard.tsx b/components/AccountHoverCard.tsx index 606dd5f4db6..94f7a04bfaf 100644 --- a/components/AccountHoverCard.tsx +++ b/components/AccountHoverCard.tsx @@ -259,7 +259,7 @@ type InfoItemProps = { const InfoItem = ({ Icon, info }: InfoItemProps) => (
- {info} + {info}
); @@ -346,7 +346,7 @@ export const AccountHoverCard = ({ {account.description && ( -
{account.description}
+
{account.description}
)} {(infoItems.length > 0 || asyncInfoItems.length > 0 || loading) && ( @@ -372,7 +372,7 @@ export const AccountHoverCard = ({ )} - {loading && } + {loading && } diff --git a/components/AccountingCategorySelect.tsx b/components/AccountingCategorySelect.tsx index 00fe1074681..ef16426c764 100644 --- a/components/AccountingCategorySelect.tsx +++ b/components/AccountingCategorySelect.tsx @@ -101,7 +101,7 @@ const getSelectionInfoForLabel = ( if (rolesHaveSelectedCategory.some(Boolean)) { const rolesToDisplay = roles.filter((_, index) => rolesHaveSelectedCategory[index]); return ( - + @@ -502,7 +502,7 @@ const AccountingCategorySelect = ({ role="button" onKeyDown={e => e.key === 'Enter' && triggerChange(option.value)} onClick={() => triggerChange(option.value)} - className="cursor-pointer text-[--primary-color-600] underline hover:opacity-80" + className="cursor-pointer text-(--primary-color-600) underline hover:opacity-80" aria-label={intl.formatMessage( { defaultMessage: 'Select {name}', id: 'G65XME' }, { name: option.value.name }, diff --git a/components/Avatar.tsx b/components/Avatar.tsx index 8f95e163471..d2033ce1793 100644 --- a/components/Avatar.tsx +++ b/components/Avatar.tsx @@ -48,7 +48,7 @@ const StyledAvatar = styled(Flex).attrs(props => ({ overflow: hidden; width: 64px; height: 64px; - flex-shrink: 0; + shrink: 0; ${color} ${space} ${layout} diff --git a/components/ComboSelect.tsx b/components/ComboSelect.tsx index c39421c43c5..ef20123a0be 100644 --- a/components/ComboSelect.tsx +++ b/components/ComboSelect.tsx @@ -96,7 +96,7 @@ export function ComboSelect(props: ComboSelectProps) { - + diff --git a/components/CreateCollectiveMiniForm.tsx b/components/CreateCollectiveMiniForm.tsx index 53326facfe0..cbd43ca4dca 100644 --- a/components/CreateCollectiveMiniForm.tsx +++ b/components/CreateCollectiveMiniForm.tsx @@ -299,7 +299,7 @@ const CreateCollectiveMiniForm = ({ return (
{CreateNewMessages[type] ? formatMessage(CreateNewMessages[type]) : null}
-
+
{(isUser || isOrganization) && !noAdminFields && ( {showCloseButton && ( {showActionsContainer && (
setDrawerActionsContainer(ref)} /> )} diff --git a/components/Dropzone.tsx b/components/Dropzone.tsx index dc831397885..e346906961b 100644 --- a/components/Dropzone.tsx +++ b/components/Dropzone.tsx @@ -122,7 +122,7 @@ const Dropzone = ({
img]:max-h-full [&>img]:max-w-full', isDragActive && 'border-muted-foreground/50', props.disabled && 'pointer-events-none opacity-60', @@ -278,7 +278,7 @@ const Dropzone = ({
)} {value && showActions && ( -
+
diff --git a/components/StackedAvatars.tsx b/components/StackedAvatars.tsx index b1efe71c827..9bfed89689f 100644 --- a/components/StackedAvatars.tsx +++ b/components/StackedAvatars.tsx @@ -23,7 +23,7 @@ const StackedAvatars = ({ return (
{displayed.map(account => ( -
+
( ))` height: 100%; z-index: 1; - flex-grow: 1; - flex-shrink: 1; + grow: 1; + shrink: 1; line { stroke-width: 1; stroke: #c4c7cc; @@ -158,7 +158,7 @@ const StepsOuter = styled(Flex)` `; const StepsMobileLeft = styled(Box)` - flex-grow: 2; + grow: 2; flex-direction: column; `; @@ -168,7 +168,7 @@ const StepsMobileRight = styled(Flex)` height: 56px; align-items: center; justify-content: center; - flex-shrink: 0; + shrink: 0; position: relative; `; diff --git a/components/StyledButtonSet.tsx b/components/StyledButtonSet.tsx index b22653386d6..9a3d2304156 100644 --- a/components/StyledButtonSet.tsx +++ b/components/StyledButtonSet.tsx @@ -17,7 +17,7 @@ type ButtonItemProps = { const ButtonItem = styled(StyledButton)` border-radius: 0; line-height: 1.5; - flex-grow: 1; + grow: 1; border-color: ${themeGet('colors.black.300')}; transition: color 0.2s, diff --git a/components/StyledFilters.tsx b/components/StyledFilters.tsx index d59bc625796..01b3004b2c1 100644 --- a/components/StyledFilters.tsx +++ b/components/StyledFilters.tsx @@ -44,7 +44,7 @@ const ButtonContainer = styled.span<{ flexGrow: FlexGrowProps['flexGrow'] }>` ${props => props.flexGrow && css` - flex-grow: ${props.flexGrow}; + grow: ${props.flexGrow}; `} `; diff --git a/components/StyledInputAmount.tsx b/components/StyledInputAmount.tsx index 4b7fd325ae4..95027576c04 100644 --- a/components/StyledInputAmount.tsx +++ b/components/StyledInputAmount.tsx @@ -81,10 +81,10 @@ const ConvertedAmountInput = ({ inputId, exchangeRate, onChange, baseAmount, min }; return ( -
+
= {exchangeRate.toCurrency}
{!hasCurrencyPicker ? ( -
+
{formatCurrencyName(currency, currencyDisplay)}
) : ( diff --git a/components/Survey.tsx b/components/Survey.tsx index 5939a2a7edb..20c9f3bbca6 100644 --- a/components/Survey.tsx +++ b/components/Survey.tsx @@ -126,7 +126,7 @@ export function Survey({ /> diff --git a/components/Tabs.tsx b/components/Tabs.tsx index f8dc4e4441c..6d53a624205 100644 --- a/components/Tabs.tsx +++ b/components/Tabs.tsx @@ -75,7 +75,7 @@ const Tabs = ({ tabs, selectedId, onChange, ...props }: TabsProps) => { key={tab.id} onClick={() => onChange?.(tab.id)} className={clsx( - 'ring-ringtransition-colors flex items-center justify-between gap-2 whitespace-nowrap rounded-md px-2 py-1 ring-inset focus:outline-none focus-visible:ring-2', + 'ring-ringtransition-colors flex items-center justify-between gap-2 rounded-md px-2 py-1 whitespace-nowrap ring-inset focus:outline-hidden focus-visible:ring-2', selected ? 'bg-primary/10' : 'hover:border-border hover:text-foreground/80', )} > @@ -99,7 +99,7 @@ const Tabs = ({ tabs, selectedId, onChange, ...props }: TabsProps) => { type="button" onClick={() => onChange?.(tab.id)} className={clsx( - 'flex gap-3 whitespace-nowrap border-b-2 px-1 pb-4 pt-2 text-sm font-medium ring-inset ring-ring transition-colors focus:outline-none focus-visible:ring-2', + 'flex gap-3 border-b-2 px-1 pt-2 pb-4 text-sm font-medium whitespace-nowrap ring-ring transition-colors ring-inset focus:outline-hidden focus-visible:ring-2', selected ? 'border-primary text-primary' : 'border-transparent text-muted-foreground hover:border-border hover:text-foreground/80', diff --git a/components/agreements/Agreement.tsx b/components/agreements/Agreement.tsx index b6aaf364dde..7ae3e17583f 100644 --- a/components/agreements/Agreement.tsx +++ b/components/agreements/Agreement.tsx @@ -65,7 +65,7 @@ export default function Agreement({ agreement, openFileViewer = undefined }: Agr agreement.expiresAt ? ( ) : ( - + ) diff --git a/components/agreements/AgreementsTable.tsx b/components/agreements/AgreementsTable.tsx index 24703adfff4..a95e60b519b 100644 --- a/components/agreements/AgreementsTable.tsx +++ b/components/agreements/AgreementsTable.tsx @@ -64,7 +64,7 @@ const columns: ColumnDef[] = [ ) : ( - + ); @@ -89,7 +89,7 @@ const columns: ColumnDef[] = [ size={32} borderRadius="8px" openFileViewer={() => meta?.onFilePreview(agreement)} - className="hover:shadow" + className="hover:shadow-sm" />
); diff --git a/components/budget/ExpenseBudgetItem.js b/components/budget/ExpenseBudgetItem.js index 64efd96d302..cd0eb3cd66f 100644 --- a/components/budget/ExpenseBudgetItem.js +++ b/components/budget/ExpenseBudgetItem.js @@ -148,7 +148,7 @@ const ExpenseBudgetItem = ({ useDrawer={useDrawer} >
-
+
{isLoading ? ( @@ -391,7 +391,7 @@ const ExpenseBudgetItem = ({
-
+
{isAdminView || isSubmitterView ? (
diff --git a/components/budget/OrderBudgetItem.js b/components/budget/OrderBudgetItem.js index 597b2556da9..fc6c9590b32 100644 --- a/components/budget/OrderBudgetItem.js +++ b/components/budget/OrderBudgetItem.js @@ -43,7 +43,7 @@ const ButtonsContainer = styled.div.attrs({ 'data-cy': 'order-actions' })` display: flex; flex-wrap: wrap; margin-top: 8px; - flex-grow: 1; + grow: 1; transition: opacity 0.05s; justify-content: flex-end; diff --git a/components/changelog/ChangelogTrigger.js b/components/changelog/ChangelogTrigger.js index f6bfe021b5e..16b5708201c 100644 --- a/components/changelog/ChangelogTrigger.js +++ b/components/changelog/ChangelogTrigger.js @@ -37,11 +37,11 @@ const ChangelogTrigger = ({ setShowNewsAndUpdates, setChangelogViewDate }) => { return ( - {!hasSeenNewUpdates &&
} + {!hasSeenNewUpdates &&
} -
+
{query.error ? ( ) : ( @@ -323,7 +323,7 @@ export function ContributionDrawer(props: ContributionDrawerProps) {
} value={ isLoading ? ( @@ -346,7 +346,7 @@ export function ContributionDrawer(props: ContributionDrawerProps) { /> } value={ isLoading ? ( @@ -525,10 +525,10 @@ export function ContributionDrawer(props: ContributionDrawerProps) {
-
+
-
+
- + Edit fundraiser prototype This will only affect the prototype and not your actual profile. diff --git a/components/crowdfunding-redesign/edit/EditProfile.tsx b/components/crowdfunding-redesign/edit/EditProfile.tsx index 363c4ed4fa8..94f9d28fe75 100644 --- a/components/crowdfunding-redesign/edit/EditProfile.tsx +++ b/components/crowdfunding-redesign/edit/EditProfile.tsx @@ -105,7 +105,7 @@ export function EditProfile({ account }) { - + Edit profile prototype This will only affect the prototype and not your actual profile. diff --git a/components/crowdfunding-redesign/edit/common.tsx b/components/crowdfunding-redesign/edit/common.tsx index f9e33839867..9ae77f9cc89 100644 --- a/components/crowdfunding-redesign/edit/common.tsx +++ b/components/crowdfunding-redesign/edit/common.tsx @@ -77,7 +77,7 @@ function ColorPicker({ value, onChange }) { className={clsx( 'size-10 cursor-pointer appearance-none overflow-hidden rounded-md border bg-transparent p-2.5', '[&::-moz-color-swatch]:rounded [&::-moz-color-swatch]:border-none [&::-moz-focus-inner]:p-0', - '[&::-webkit-color-swatch-wrapper]:p-0 [&::-webkit-color-swatch]:rounded [&::-webkit-color-swatch]:border-none', + '[&::-webkit-color-swatch]:rounded [&::-webkit-color-swatch]:border-none [&::-webkit-color-swatch-wrapper]:p-0', )} /> onChange(`#${e.target.value}`)} /> @@ -168,7 +168,7 @@ export const GoalsForm = ({ initialValues, schema, onSubmit, account }) => { return (
-
+
{({ field }) => { return ( @@ -249,7 +249,7 @@ export const GoalsForm = ({ initialValues, schema, onSubmit, account }) => {
-
+
)} diff --git a/components/dashboard/filters/Pagination.tsx b/components/dashboard/filters/Pagination.tsx index 2787ae32d8d..407e80cfcbd 100644 --- a/components/dashboard/filters/Pagination.tsx +++ b/components/dashboard/filters/Pagination.tsx @@ -30,7 +30,7 @@ function SelectLimit({ limit, setLimit, defaultLimit }) { diff --git a/components/dashboard/filters/SearchFilter.tsx b/components/dashboard/filters/SearchFilter.tsx index e749b895046..89a2d30fcda 100644 --- a/components/dashboard/filters/SearchFilter.tsx +++ b/components/dashboard/filters/SearchFilter.tsx @@ -39,12 +39,12 @@ function SearchFilter({ value, labelMsg, onChange, isViewActive }: FilterCompone { setInput(''); diff --git a/components/dashboard/preview/AccountSwitcher.tsx b/components/dashboard/preview/AccountSwitcher.tsx index dc4307149a5..6fffb4ca779 100644 --- a/components/dashboard/preview/AccountSwitcher.tsx +++ b/components/dashboard/preview/AccountSwitcher.tsx @@ -332,7 +332,7 @@ export default function AccountSwitcher({ activeSlug, defaultSlug, setDefaultSlu onClick={() => router.push(`/dashboard/${parentAccount.slug}`)} aria-expanded={open} className={clsx( - 'group h-8 justify-between gap-1.5 whitespace-nowrap rounded-full border-transparent px-2', + 'group h-8 justify-between gap-1.5 rounded-full border-transparent px-2 whitespace-nowrap', 'max-w-[14rem]', )} > @@ -354,7 +354,7 @@ export default function AccountSwitcher({ activeSlug, defaultSlug, setDefaultSlu role="combobox" aria-expanded={open} className={clsx( - 'group h-8 max-w-[10rem] justify-between gap-1.5 whitespace-nowrap rounded-full px-2 sm:max-w-[14rem]', + 'group h-8 max-w-[10rem] justify-between gap-1.5 rounded-full px-2 whitespace-nowrap sm:max-w-[14rem]', )} >
diff --git a/components/dashboard/preview/DashboardTopBar.tsx b/components/dashboard/preview/DashboardTopBar.tsx index 988c58fc080..ff0985e7c46 100644 --- a/components/dashboard/preview/DashboardTopBar.tsx +++ b/components/dashboard/preview/DashboardTopBar.tsx @@ -29,7 +29,7 @@ const MenuLink = ({ section, label, href, Icon, isActive, onChangeVisiblity, vis ref={ref} data-cy={`menu-item-${section}`} className={clsx( - 'group flex w-full items-center gap-x-1.5 rounded-full px-2.5 py-0.5 text-sm font-medium leading-6 antialiased transition-colors', + 'group flex w-full items-center gap-x-1.5 rounded-full px-2.5 py-0.5 text-sm leading-6 font-medium antialiased transition-colors', isActive ? 'bg-blue-50 text-blue-700' : 'text-slate-950 hover:bg-slate-50 hover:text-blue-700', inView ? 'visible' : 'invisible', )} @@ -71,7 +71,7 @@ const DashboardTopBar = ({ menuItems, isLoading, account }) => { ({ section, subMenu }) => section === selectedSection || subMenu?.find(item => item.section === selectedSection), ); return ( -
+
{isLoading diff --git a/components/dashboard/sections/ActivityLog/GenericActivityDiffDataWithList.tsx b/components/dashboard/sections/ActivityLog/GenericActivityDiffDataWithList.tsx index c418b5d9221..6af978062e8 100644 --- a/components/dashboard/sections/ActivityLog/GenericActivityDiffDataWithList.tsx +++ b/components/dashboard/sections/ActivityLog/GenericActivityDiffDataWithList.tsx @@ -112,7 +112,7 @@ export const GenericActivityDiffDataWithList = ({ activity }) => {
{added.map(item => ( -
+
{Object.keys(item) .filter(key => item[key] && !DEFAULT_IGNORED_FIELDS.includes(key)) .map(key => ( @@ -132,7 +132,7 @@ export const GenericActivityDiffDataWithList = ({ activity }) => {
{removed.map(item => ( -
+
{Object.keys(item) .filter(key => item[key] && !DEFAULT_IGNORED_FIELDS.includes(key)) .map(key => ( @@ -152,7 +152,7 @@ export const GenericActivityDiffDataWithList = ({ activity }) => {
{edited.map(({ previousData, newData }) => ( -
+
{ALWAYS_DISPLAYED.map(key => { if (previousData[key] === newData[key]) { return ( diff --git a/components/dashboard/sections/Contributors.tsx b/components/dashboard/sections/Contributors.tsx index 964ddef9b74..affa5780baf 100644 --- a/components/dashboard/sections/Contributors.tsx +++ b/components/dashboard/sections/Contributors.tsx @@ -284,7 +284,7 @@ const Contributors = ({ accountSlug }: ContributorsProps) => { const [isDownloadingCsv, setDownloadingCsv] = React.useState(false); return ( -
+
} actions={ diff --git a/components/dashboard/sections/HostDashboardAgreements.tsx b/components/dashboard/sections/HostDashboardAgreements.tsx index 56e6aba137e..8b45c9f35ed 100644 --- a/components/dashboard/sections/HostDashboardAgreements.tsx +++ b/components/dashboard/sections/HostDashboardAgreements.tsx @@ -83,7 +83,7 @@ const HostDashboardAgreements = ({ accountSlug: hostSlug }: DashboardSectionProp const canEdit = Boolean(LoggedInUser && !LoggedInUser.isAccountantOnly(data?.host)); return ( -
+
} actions={ diff --git a/components/dashboard/sections/HostVirtualCardRequests.tsx b/components/dashboard/sections/HostVirtualCardRequests.tsx index c7ac4e926d3..dc65527d787 100644 --- a/components/dashboard/sections/HostVirtualCardRequests.tsx +++ b/components/dashboard/sections/HostVirtualCardRequests.tsx @@ -200,7 +200,7 @@ export default function HostVirtualCardRequests({ accountSlug: hostSlug }: Dashb const loading = query.loading; return ( -
+
} description={ diff --git a/components/dashboard/sections/HostVirtualCards.tsx b/components/dashboard/sections/HostVirtualCards.tsx index 01a0d225dc5..c6b63128af8 100644 --- a/components/dashboard/sections/HostVirtualCards.tsx +++ b/components/dashboard/sections/HostVirtualCards.tsx @@ -312,7 +312,7 @@ const HostVirtualCards = ({ accountSlug: hostSlug }: DashboardSectionProps) => { }; return ( -
+
} description={ diff --git a/components/dashboard/sections/Team.tsx b/components/dashboard/sections/Team.tsx index d5b0553a0e4..80492cc04cf 100644 --- a/components/dashboard/sections/Team.tsx +++ b/components/dashboard/sections/Team.tsx @@ -214,7 +214,7 @@ const Team = ({ accountSlug }: DashboardSectionProps) => { data?.account?.childrenAccounts?.nodes?.filter(child => child.members?.nodes?.length > 0) || []; return ( -
+
} /> {loading ? ( diff --git a/components/dashboard/sections/Vendors.tsx b/components/dashboard/sections/Vendors.tsx index 7fcd981ee56..29e38724ec4 100644 --- a/components/dashboard/sections/Vendors.tsx +++ b/components/dashboard/sections/Vendors.tsx @@ -343,7 +343,7 @@ const Vendors = ({ accountSlug }: DashboardSectionProps) => { const error = queryError; return ( -
+
} description={ diff --git a/components/dashboard/sections/accounting/AccountingCategoriesTable.tsx b/components/dashboard/sections/accounting/AccountingCategoriesTable.tsx index 69e551a13e1..45d350012a3 100644 --- a/components/dashboard/sections/accounting/AccountingCategoriesTable.tsx +++ b/components/dashboard/sections/accounting/AccountingCategoriesTable.tsx @@ -49,7 +49,7 @@ const columns = [
{cell.getValue()} {row.original.friendlyName && ( -  Â· {row.original.friendlyName} +  Â· {row.original.friendlyName} )}
); diff --git a/components/dashboard/sections/accounting/AccountingCategoryDrawer.tsx b/components/dashboard/sections/accounting/AccountingCategoryDrawer.tsx index 52ba5c34a7d..2f31f91069e 100644 --- a/components/dashboard/sections/accounting/AccountingCategoryDrawer.tsx +++ b/components/dashboard/sections/accounting/AccountingCategoryDrawer.tsx @@ -73,7 +73,7 @@ function AccountingCategoryDrawerView(props: AccountingCategoryDrawerViewProps) return (
-