Skip to content

Commit 66cfffe

Browse files
committed
style(eslint): apply rule tailwind class sorting
1 parent ff6e658 commit 66cfffe

25 files changed

+90
-90
lines changed

frontend/layers/base/app/components/BaseAccordion.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const accordionItems = computed(() => {
1616

1717
<template>
1818
<RkAccordionRoot
19-
class="flex flex-col gap-2xl justify-evenly"
19+
class="flex flex-col justify-evenly gap-2xl"
2020
type="multiple"
2121
>
2222
<template
@@ -25,12 +25,12 @@ const accordionItems = computed(() => {
2525
>
2626
<RkAccordionItem
2727
v-slot="{ open }"
28-
class=" flex flex-col p-3xl bg-white dark:bg-gray-950 border border-gray-100 dark:border-gray-900 rounded-md"
28+
class=" flex flex-col rounded-md border border-gray-100 bg-white p-3xl dark:border-gray-900 dark:bg-gray-950"
2929
:value="item.value"
3030
>
3131
<RkAccordionHeader>
3232
<RkAccordionTrigger
33-
class="text-left group flex gap-md justify-between items-center w-full text-xl font-bold cursor-pointer"
33+
class="group flex w-full cursor-pointer items-center justify-between gap-md text-left text-xl font-bold"
3434
>
3535
<span>{{ item.title }}</span>
3636
<BaseIcon
@@ -42,7 +42,7 @@ const accordionItems = computed(() => {
4242
</RkAccordionHeader>
4343
<RkAccordionContent
4444
style="--slide-height: var(--reka-accordion-content-height);"
45-
class="data-[state=open]:animate-slide-down data-[state=closed]:animate-slide-up overflow-clip font-medium"
45+
class="overflow-clip font-medium data-[state=closed]:animate-slide-up data-[state=open]:animate-slide-down"
4646
>
4747
<BaseText
4848
is="div"

frontend/layers/base/app/components/BaseButton.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ const {
2626
:is="to ? NuxtLink : 'button'"
2727
:to
2828
:disabled
29-
class="flex justify-center items-center bg-linear-to-b rounded-full font-semibold disabled:opacity-40 aria-disabled:opacity-40 aria-disabled:pointer-events-none active:opacity-80"
29+
class="flex items-center justify-center rounded-full bg-linear-to-b font-semibold active:opacity-80 disabled:opacity-40 aria-disabled:pointer-events-none aria-disabled:opacity-40"
3030
:class="[
31-
variant === 'primary' && 'from-gray-700 to-gray-900 text-white dark:from-gray-100 dark:to-gray-300 dark:text-black opacity-90 hover:opacity-95',
32-
variant === 'secondary' && 'from-gray-300 to-gray-200 text-black dark:from-charcoal-600 dark:to-charcoal-700 dark:text-white opacity-90 hover:opacity-95',
31+
variant === 'primary' && 'from-gray-700 to-gray-900 text-white opacity-90 hover:opacity-95 dark:from-gray-100 dark:to-gray-300 dark:text-black',
32+
variant === 'secondary' && 'from-gray-300 to-gray-200 text-black opacity-90 hover:opacity-95 dark:from-charcoal-600 dark:to-charcoal-700 dark:text-white',
3333
variant === 'branded' && 'from-brand-500 to-brand-700 text-white hover:opacity-90',
34-
variant === 'quaternary' && 'text-black dark:text-white hover:opacity-95',
35-
size === 'md' && 'text-sm py-md px-sm',
36-
size === 'lg' && 'text-md py-lg px-2xl',
37-
size === 'xl' && 'text-md py-xl px-3xl',
34+
variant === 'quaternary' && 'text-black hover:opacity-95 dark:text-white',
35+
size === 'md' && 'px-sm py-md text-sm',
36+
size === 'lg' && 'px-2xl py-lg text-md',
37+
size === 'xl' && 'px-3xl py-xl text-md',
3838
full ? 'w-full' : 'min-w-fit',
3939
]"
4040
>

frontend/layers/base/app/components/BaseButtonIcon.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ const isButton = computed(() => !to)
3636
:type="isButton ? 'button' : undefined"
3737
:disabled="isDisabled"
3838
:to
39-
class="border flex rounded-full bg-linear-to-b disabled:opacity-40 aria-disabled:opacity-40 active:opacity-80 size-fit"
39+
class="flex size-fit rounded-full border bg-linear-to-b active:opacity-80 disabled:opacity-40 aria-disabled:opacity-40"
4040
:class="[
41-
variant === 'secondary' && 'from-gray-300 to-gray-200 dark:from-charcoal-600 dark:to-charcoal-700 opacity-90 border-transparent',
42-
variant === 'tertiary' && 'dark:border-charcoal-400 border-gray-200',
41+
variant === 'secondary' && 'border-transparent from-gray-300 to-gray-200 opacity-90 dark:from-charcoal-600 dark:to-charcoal-700',
42+
variant === 'tertiary' && 'border-gray-200 dark:border-charcoal-400',
4343
size === 'md' && 'p-md',
4444
size === 'lg' && 'p-md',
4545
]"

frontend/layers/base/app/components/BaseCard.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ const id = useId()
2626
</script>
2727

2828
<template>
29-
<div class="dark:bg-gray-950 border border-gray-100 dark:border-gray-900 p-3xl rounded-4xl flex flex-col gap-2xl w-full">
29+
<div class="flex w-full flex-col gap-2xl rounded-4xl border border-gray-100 p-3xl dark:border-gray-900 dark:bg-gray-950">
3030
<slot name="header">
3131
<header
3232
v-if="title"
33-
class="flex gap-md justify-between"
33+
class="flex justify-between gap-md"
3434
>
3535
<LazyBaseIcon
3636
v-if="titleIcon"
3737
:name="titleIcon"
38-
class="shrink-0 text-2xl justify-self-end"
38+
class="shrink-0 justify-self-end text-2xl"
3939
/>
4040
<span class="grow">
4141
<LazyBaseHeading
@@ -68,7 +68,7 @@ const id = useId()
6868
<slot />
6969
<div
7070
v-if="$slots.footer"
71-
class="pt-3xl mt-auto"
71+
class="mt-auto pt-3xl"
7272
>
7373
<slot name="footer" />
7474
</div>

frontend/layers/base/app/components/BaseChip.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ const {
1414

1515
<template>
1616
<button
17-
class="text-nowrap border-1 font-semibold focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand-300"
17+
class="border-1 font-semibold text-nowrap focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand-300"
1818
type="button"
1919
:class="[
20-
variant === 'neutral' && 'bg-gray-100 dark:bg-gray-900 border-gray-200 dark:border-gray-800 text-gray-600 dark:text-gray-400 aria-pressed:bg-gray-200 dark:aria-pressed:bg-gray-700 aria-pressed:border-gray-300 dark:aria-pressed:border-gray-700 aria-pressed:text-black dark:aria-pressed:text-white aria-pressed:shadow-none',
21-
size === 'sm' && 'px-md py-xs rounded-md ',
20+
variant === 'neutral' && 'border-gray-200 bg-gray-100 text-gray-600 aria-pressed:border-gray-300 aria-pressed:bg-gray-200 aria-pressed:text-black aria-pressed:shadow-none dark:border-gray-800 dark:bg-gray-900 dark:text-gray-400 dark:aria-pressed:border-gray-700 dark:aria-pressed:bg-gray-700 dark:aria-pressed:text-white',
21+
size === 'sm' && 'rounded-md px-md py-xs ',
2222
icon && 'flex items-center gap-md',
2323
]"
2424
:aria-pressed="isSelected"

frontend/layers/base/app/components/BaseList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ defineProps<
1616
<BaseIcon
1717
name="check"
1818
aria-hidden="true"
19-
class="shrink-0 text-lg mt-[.125rem]"
19+
class="mt-[.125rem] shrink-0 text-lg"
2020
/>
2121
</slot>
2222
<span class="">

frontend/layers/base/app/components/BaseNavigation.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const v1Domain = useV1Domain()
1919
</script>
2020

2121
<template>
22-
<nav class="p-2xl isolate bg-gray-50 dark:bg-transparent">
23-
<div class="max-w-8xl mx-auto grid gap-2xl [&>*]:[grid-area:1/1]">
24-
<span class="flex gap-2xl items-center z-10 w-fit">
22+
<nav class="isolate bg-gray-50 p-2xl dark:bg-transparent">
23+
<div class="mx-auto grid max-w-8xl gap-2xl [&>*]:[grid-area:1/1]">
24+
<span class="z-10 flex w-fit items-center gap-2xl">
2525
<BaseButtonIcon
2626
screenreader-text="base.common.open_navigation"
2727
class="sm:hidden"
@@ -31,7 +31,7 @@ const v1Domain = useV1Domain()
3131
/>
3232
<NuxtLink
3333
to="/"
34-
class="flex gap-sm p-md rounded-full w-fit"
34+
class="flex w-fit gap-sm rounded-full p-md"
3535
>
3636
<BaseScreenreaderOnly screenreader-text="base.beaconchain_homepage" />
3737
<TheLogoMark
@@ -44,7 +44,7 @@ const v1Domain = useV1Domain()
4444
/>
4545
</NuxtLink>
4646
</span>
47-
<ul class="hidden sm:flex gap-xl justify-center">
47+
<ul class="hidden justify-center gap-xl sm:flex">
4848
<li
4949
v-for="{ icon, label, to } in items"
5050
:key="label"

frontend/layers/base/app/components/BaseNavigationItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defineProps<BaseNavigationItem>()
1313

1414
<template>
1515
<NuxtLink
16-
class="font-semibold flex gap-md items-center py-sm px-md bg-linear-to-b rounded-full border border-gray-200 dark:border-transparent dark:from-charcoal-600 dark:to-charcoal-700 opacity-90 hover:opacity-95 text-sm"
16+
class="flex items-center gap-md rounded-full border border-gray-200 bg-linear-to-b px-md py-sm text-sm font-semibold opacity-90 hover:opacity-95 dark:border-transparent dark:from-charcoal-600 dark:to-charcoal-700"
1717
:to
1818
>
1919
<BaseIcon :name="icon" />

frontend/layers/base/app/components/BaseNavigationLeftContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ watchEffect(() => {
4545
<div
4646
ref="navigation"
4747
:open="isOpen"
48-
class="bg-white dark:bg-black fixed inset-[0] right-auto h-screen p-2xl w-3xs border-r border-r-gray-200 dark:border-r-gray-700"
48+
class="fixed inset-[0] right-auto h-screen w-3xs border-r border-r-gray-200 bg-white p-2xl dark:border-r-gray-700 dark:bg-black"
4949
@keydown.escape="close"
5050
>
5151
<BaseScreenreaderOnly

frontend/layers/base/app/components/BaseNavigationLeftItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defineProps<BaseNavigationItem>()
66

77
<template>
88
<NuxtLink
9-
class="font-semibold flex gap-md items-center p-lg opacity-90 hover:opacity-95 text-sm rounded-xl"
9+
class="flex items-center gap-md rounded-xl p-lg text-sm font-semibold opacity-90 hover:opacity-95"
1010
:to
1111
>
1212
<BaseIcon :name="icon" />

0 commit comments

Comments
 (0)