Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
tailwind prettier format (#10239)
Browse files Browse the repository at this point in the history
Co-authored-by: Appaji <[email protected]>
  • Loading branch information
aditya-mitra and CITIZENDOT authored May 26, 2024
1 parent 20992c0 commit 7897dcc
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions packages/client-core/src/admin/adminRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ const AdminSideBar = () => {
<li key={index}>
<Link to={path}>
<Button
className={`text-theme-secondary hover:bg-theme-highlight] flex w-72 items-center justify-start rounded-xl px-2 py-3 font-medium ${
className={`hover:bg-theme-highlight] text-theme-secondary flex w-72 items-center justify-start rounded-xl px-2 py-3 font-medium ${
relativePath === path
? 'text-theme-primary bg-theme-highlight font-semibold '
? 'bg-theme-highlight text-theme-primary font-semibold '
: 'bg-theme-surface-main'
}`}
startIcon={sidebarItem.icon}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default function UpdateEngineModal() {
{projectState.projects.value
.filter((project) => project.name !== 'default-project' && project.repositoryPath)
.map((project) => (
<div key={project.id} className="bg-theme-surfaceInput border-theme-primary border px-3.5 py-5">
<div key={project.id} className="border-theme-primary bg-theme-surfaceInput border px-3.5 py-5">
<Checkbox
label={project.name}
value={projectsToUpdate.value.has(project.name)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ const AuthenticationTab = forwardRef(({ open }: { open: boolean }, ref: React.Mu
</div>

<div className="mt-6 grid grid-cols-8 gap-6">
<Button size="small" className="bg-theme-highlight text-primary col-span-1" onClick={handleCancel} fullWidth>
<Button size="small" className="text-primary bg-theme-highlight col-span-1" onClick={handleCancel} fullWidth>
{t('admin:components.common.reset')}
</Button>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const AwsTab = forwardRef(({ open }: { open: boolean }, ref: React.MutableRefObj
</div>

<div className="grid grid-cols-8 gap-6">
<Button size="small" className="bg-theme-highlight text-primary col-span-1" fullWidth onClick={handleCancel}>
<Button size="small" className="text-primary bg-theme-highlight col-span-1" fullWidth onClick={handleCancel}>
{t('admin:components.common.reset')}
</Button>
<Button size="small" variant="primary" className="col-span-1" fullWidth onClick={handleSubmit}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ const ClientTab = forwardRef(({ open }: { open: boolean }, ref: React.MutableRef
</div>

<div className="mt-6 grid grid-cols-8 gap-6">
<Button size="small" className="bg-theme-highlight text-primary col-span-1" onClick={handleCancel} fullWidth>
<Button size="small" className="text-primary bg-theme-highlight col-span-1" onClick={handleCancel} fullWidth>
{t('admin:components.common.reset')}
</Button>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const EmailTab = forwardRef(({ open }: { open: boolean }, ref: React.MutableRefO
)}

<div className="col-span-1 grid grid-cols-4 gap-6">
<Button size="small" className="bg-theme-highlight text-primary col-span-1" fullWidth onClick={handleCancel}>
<Button size="small" className="text-primary bg-theme-highlight col-span-1" fullWidth onClick={handleCancel}>
{t('admin:components.common.reset')}
</Button>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const HelmTab = forwardRef(({ open }: { open: boolean }, ref: React.MutableRefOb
/>

<div className="col-span-1 mt-6 grid grid-cols-4 gap-6">
<Button size="small" className="bg-theme-highlight text-primary col-span-1" onClick={handleCancel} fullWidth>
<Button size="small" className="text-primary bg-theme-highlight col-span-1" onClick={handleCancel} fullWidth>
{t('admin:components.common.reset')}
</Button>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const ProjectTab = forwardRef(({ open }: { open: boolean }, ref: React.MutableRe
<div className="mb-3 grid grid-cols-8 gap-2">
<Button
size="small"
className="bg-theme-highlight text-primary col-span-1"
className="text-primary bg-theme-highlight col-span-1"
fullWidth
onClick={handleCancel}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ const ServerTab = forwardRef(({ open }: { open: boolean }, ref: React.MutableRef
)}

<div className="col-span-1 grid grid-cols-4 gap-6">
<Button size="small" className="bg-theme-highlight text-primary col-span-1" fullWidth onClick={handleCancel}>
<Button size="small" className="text-primary bg-theme-highlight col-span-1" fullWidth onClick={handleCancel}>
{t('admin:components.common.reset')}
</Button>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const MultiEmailInput = ({ emailList, error, label, disabled }: LabelProps) => {
{label && <Label className="self-stretch">{label}</Label>}

{emailList.length > 0 && (
<div className="bg-theme-surfaceInput border-theme-primary flex flex-wrap gap-2 rounded-lg border px-3.5 py-1.5">
<div className="border-theme-primary bg-theme-surfaceInput flex flex-wrap gap-2 rounded-lg border px-3.5 py-1.5">
{emailList.value.map((item) => (
<div
className="bg-theme-surface-main text-theme-primary flex w-fit items-center justify-between gap-1 rounded px-2 py-1 text-black"
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/primitives/tailwind/MultiSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const MultiSelect = <T extends string | number>({
</p>
)}
<div
className="bg-theme-surface-main border-theme-primary textshadow-sm mt-2 flex min-h-10 w-full flex-auto flex-wrap items-center rounded-lg border px-3.5 pr-7"
className="textshadow-sm border-theme-primary bg-theme-surface-main mt-2 flex min-h-10 w-full flex-auto flex-wrap items-center rounded-lg border px-3.5 pr-7"
onClick={() => showOptions.set((value) => !value)}
>
{selectedOptions.length === 0 && (
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/primitives/tailwind/Radio/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const RadioRoot = ({
name={label}
onChange={onChange}
disabled={disabled}
className="text-blue-primary focus:ring-blue-primary checked:border-blue-primary shrink-0 rounded-full border-gray-200 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:bg-gray-800 dark:focus:ring-offset-gray-800"
className="text-blue-primary checked:border-blue-primary focus:ring-blue-primary shrink-0 rounded-full border-gray-200 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:bg-gray-800 dark:focus:ring-offset-gray-800"
/>
<label
onClick={() => onChange({ target: { value } } as any)}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/primitives/tailwind/Select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const Select = <T extends OptionValueType>({
value={option.value}
className={twMerge(
'text-theme-secondary cursor-pointer px-4 py-2',
option.disabled ? 'cursor-not-allowed' : 'hover:text-theme-highlight hover:bg-theme-highlight',
option.disabled ? 'cursor-not-allowed' : 'hover:bg-theme-highlight hover:text-theme-highlight',
menuItemClassName
)}
onClick={() => handleOptionItem(option)}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/primitives/tailwind/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const Tabs = ({
key={index}
className={twMerge(
twTabClassName,
currentTab.value === index ? 'text-theme-primary border-b-blue-primary border-b font-semibold' : '',
currentTab.value === index ? 'border-b-blue-primary text-theme-primary border-b font-semibold' : '',
tab.disabled ? 'border-none' : ''
)}
disabled={tab.disabled}
Expand Down

0 comments on commit 7897dcc

Please sign in to comment.