|
1 | 1 | <template> |
2 | | - <set-picker :enabled="enabled" :sets="groups" :align="variant === 'between' ? 'center' : 'start'" @added="addSet"> |
| 2 | + <div class="inline-block" v-if="variant === 'button'"> |
| 3 | + <set-picker :enabled="enabled" :sets="groups" align="start" @added="addSet"> |
| 4 | + <template #trigger> |
| 5 | + <div class="inline-flex relative pt-2" :class="{ 'pt-6': showConnector }"> |
| 6 | + <div v-if="showConnector" class="absolute group-hover:opacity-0 transition-opacity delay-25 duration-125 inset-y-0 h-full left-3.5 border-l-1 border-gray-400 dark:border-gray-600 border-dashed z-0 dark:bg-gray-850" /> |
| 7 | + <Button v-if="enabled" size="sm" :text="label" icon="plus" class="relative z-2" /> |
| 8 | + </div> |
| 9 | + </template> |
| 10 | + </set-picker> |
| 11 | + </div> |
| 12 | + <set-picker v-else :enabled="enabled" :sets="groups" align="center" @added="addSet"> |
3 | 13 | <template #trigger> |
4 | | - <div class="flex relative pt-2" :class="{ 'pt-6': showConnector }" v-if="variant === 'button'"> |
5 | | - <div v-if="showConnector" class="absolute group-hover:opacity-0 transition-opacity delay-25 duration-125 inset-y-0 h-full left-3.5 border-l-1 border-gray-400 dark:border-gray-600 border-dashed z-0 dark:bg-gray-850" /> |
6 | | - <Button v-if="enabled" size="sm" :text="label" icon="plus" class="relative z-2" /> |
7 | | - </div> |
8 | 14 | <div |
9 | | - v-if="variant === 'between'" |
10 | 15 | class="flex justify-center relative group py-3" |
11 | | - :class="{ '-mt-3': isFirst }" |
| 16 | + :class="{ 'py-3.5 -mt-2 top-0.5': isFirst }" |
12 | 17 | > |
13 | 18 | <div |
14 | 19 | v-if="showConnector" |
15 | 20 | class="absolute group-hover:opacity-0 transition-opacity delay-10 duration-250 inset-y-0 left-3.5 border-l-1 border-gray-400 dark:border-gray-600 border-dashed z-0 dark:bg-gray-850" |
16 | | - :class="isFirst ? 'h-[50%] top-[50%] opacity-50' : 'h-full opacity-100'" |
| 21 | + :class="isFirst ? 'h-[65%] top-[30%] opacity-60' : 'h-full opacity-100'" |
17 | 22 | /> |
18 | | - <button class="w-full absolute inset-0 h-full opacity-0 group-hover:opacity-100 transition-opacity delay-10 duration-250 cursor-pointer"> |
| 23 | + <button |
| 24 | + class="absolute inset-0 h-full w-full opacity-0 group-hover:opacity-100 transition-opacity delay-10 duration-250 cursor-pointer" |
| 25 | + > |
19 | 26 | <div class="h-full flex flex-col justify-center"> |
20 | | - <div class="rounded-full bg-gray-200 dark:bg-gray-700 h-2" /> |
| 27 | + <div class="rounded-full bg-[linear-gradient(90deg,theme(colors.gray.100)_0%,theme(colors.gray.200)_50%,theme(colors.gray.100)_100%)] dark:bg-[linear-gradient(90deg,theme(colors.gray.800)_0%,theme(colors.gray.700)_50%,theme(colors.gray.800)_100%)] h-2" /> |
21 | 28 | </div> |
22 | 29 | </button> |
23 | 30 | <Button v-if="enabled" round icon="plus" size="sm" class="-my-4 z-3 opacity-0 group-hover:opacity-100 transition-opacity delay-10 duration-250" /> |
|
0 commit comments