#74 - fix icons
This commit is contained in:
parent
6ea9139754
commit
1c83f2dbaa
@ -12,120 +12,57 @@ const types = [
|
|||||||
{
|
{
|
||||||
text: 'Urlop wypoczynkowy',
|
text: 'Urlop wypoczynkowy',
|
||||||
value: 'vacation',
|
value: 'vacation',
|
||||||
outline: {
|
|
||||||
icon: WhiteBalanceSunnyIcon,
|
|
||||||
background: 'bg-white',
|
|
||||||
foreground: 'text-amber-500',
|
|
||||||
},
|
|
||||||
solid: {
|
|
||||||
icon: WhiteBalanceSunnyIcon,
|
icon: WhiteBalanceSunnyIcon,
|
||||||
color: 'text-amber-500',
|
color: 'text-amber-500',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
{
|
{
|
||||||
text: 'Urlop na żądanie',
|
text: 'Urlop na żądanie',
|
||||||
value: 'vacation_on_request',
|
value: 'vacation_on_request',
|
||||||
outline: {
|
|
||||||
icon: CommentAlertIcon,
|
|
||||||
background: 'bg-white',
|
|
||||||
foreground: 'text-slate-500',
|
|
||||||
},
|
|
||||||
solid: {
|
|
||||||
icon: CommentAlertIcon,
|
icon: CommentAlertIcon,
|
||||||
color: 'text-slate-500',
|
color: 'text-slate-500',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
{
|
{
|
||||||
text: 'Urlop okolicznościowy',
|
text: 'Urlop okolicznościowy',
|
||||||
value: 'special_vacation',
|
value: 'special_vacation',
|
||||||
outline: {
|
|
||||||
icon: StarShootingIcon,
|
|
||||||
background: 'bg-white',
|
|
||||||
foreground: 'text-orange-500',
|
|
||||||
},
|
|
||||||
solid: {
|
|
||||||
icon: StarShootingIcon,
|
icon: StarShootingIcon,
|
||||||
color: 'text-orange-500',
|
color: 'text-orange-500',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
{
|
{
|
||||||
text: 'Opieka nad dzieckiem art 188 kp',
|
text: 'Opieka nad dzieckiem art 188 kp',
|
||||||
value: 'childcare_vacation',
|
value: 'childcare_vacation',
|
||||||
outline: {
|
|
||||||
icon: BabyCarriageIcon,
|
|
||||||
background: 'bg-white',
|
|
||||||
foreground: 'text-purple-500',
|
|
||||||
},
|
|
||||||
solid: {
|
|
||||||
icon: BabyCarriageIcon,
|
icon: BabyCarriageIcon,
|
||||||
color: 'text-purple-500',
|
color: 'text-purple-500',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
{
|
{
|
||||||
text: 'Urlop szkoleniowy',
|
text: 'Urlop szkoleniowy',
|
||||||
value: 'training_vacation',
|
value: 'training_vacation',
|
||||||
outline: {
|
|
||||||
icon: HumanMaleBoardIcon,
|
|
||||||
background: 'bg-white',
|
|
||||||
foreground: 'text-blumilk-500',
|
|
||||||
},
|
|
||||||
solid: {
|
|
||||||
icon: HumanMaleBoardIcon,
|
icon: HumanMaleBoardIcon,
|
||||||
color: 'text-blumilk-500',
|
color: 'text-blumilk-500',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
{
|
{
|
||||||
text: 'Urlop bezpłatny',
|
text: 'Urlop bezpłatny',
|
||||||
value: 'unpaid_vacation',
|
value: 'unpaid_vacation',
|
||||||
outline: {
|
|
||||||
icon: CurrencyUsdOffIcon,
|
|
||||||
background: 'bg-white',
|
|
||||||
foreground: 'text-emerald-500',
|
|
||||||
},
|
|
||||||
solid: {
|
|
||||||
icon: CurrencyUsdOffIcon,
|
icon: CurrencyUsdOffIcon,
|
||||||
color: 'text-emerald-500',
|
color: 'text-emerald-500',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
{
|
{
|
||||||
text: 'Wolontariat',
|
text: 'Wolontariat',
|
||||||
value: 'volunteering_vacation',
|
value: 'volunteering_vacation',
|
||||||
outline: {
|
|
||||||
icon: HandHeartOutlineIcon,
|
|
||||||
background: 'bg-white',
|
|
||||||
foreground: 'text-pink-500',
|
|
||||||
},
|
|
||||||
solid: {
|
|
||||||
icon: HandHeartOutlineIcon,
|
icon: HandHeartOutlineIcon,
|
||||||
color: 'text-pink-500',
|
color: 'text-pink-500',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
{
|
{
|
||||||
text: 'Odbiór za święto',
|
text: 'Odbiór za święto',
|
||||||
value: 'time_in_lieu',
|
value: 'time_in_lieu',
|
||||||
outline: {
|
|
||||||
icon: CalendarCheckIcon,
|
|
||||||
background: 'bg-white',
|
|
||||||
foreground: 'text-stone-500',
|
|
||||||
},
|
|
||||||
solid: {
|
|
||||||
icon: CalendarCheckIcon,
|
icon: CalendarCheckIcon,
|
||||||
color: 'text-stone-500',
|
color: 'text-stone-500',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
{
|
{
|
||||||
text: 'Zwolnienie lekarskie',
|
text: 'Zwolnienie lekarskie',
|
||||||
value: 'sick_vacation',
|
value: 'sick_vacation',
|
||||||
outline: {
|
|
||||||
icon: MedicalBagIcon,
|
|
||||||
background: 'bg-white',
|
|
||||||
foreground: 'text-rose-500',
|
|
||||||
},
|
|
||||||
solid: {
|
|
||||||
icon: MedicalBagIcon,
|
icon: MedicalBagIcon,
|
||||||
color: 'text-rose-500',
|
color: 'text-rose-500',
|
||||||
},
|
},
|
||||||
},
|
|
||||||
]
|
]
|
||||||
|
|
||||||
export function useVacationTypeInfo() {
|
export function useVacationTypeInfo() {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<component
|
<component
|
||||||
:is="vacationTypeInfo.solid.icon"
|
:is="vacationTypeInfo.icon"
|
||||||
:class="[vacationTypeInfo.solid.color ,'w-5 h-5 mr-1.5']"
|
:class="[vacationTypeInfo.color ,'w-5 h-5 mr-1.5']"
|
||||||
:size="20"
|
:size="20"
|
||||||
/>
|
/>
|
||||||
<span>{{ vacationTypeInfo.text }}</span>
|
<span>{{ vacationTypeInfo.text }}</span>
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<Popper hover>
|
<Popper hover>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<div>
|
<div>
|
||||||
<span :class="[typeInfo.outline.foreground, 'flex items-center justify-center']">
|
<span :class="[typeInfo.color, 'flex items-center justify-center']">
|
||||||
<component :is="typeInfo.outline.icon" />
|
<component :is="typeInfo.icon" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user