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 0e497a7b6f2..52c6580d8c1 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 (
-