Skip to content

Commit

Permalink
fix(*): fix imports and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mptap committed Dec 12, 2024
1 parent 05c0fef commit 31c6543
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
action-button-text="Create a gateway"
description="Lorem ipsum dolor sit amet consectetur adipisicing elit. Id quidem aperiam similique vitae beatae. Repellat quam voluptas vitae, maxime consequuntur praesentium suscipit. Numquam aliquid nulla vel esse accusantium reiciendis error?"
:features="features"
learn-more-link="https://konghq.com"
pricing="Lorem ipsum dolor sit amet consectetur adipisicing elit."
title="Gateway Manager"
>
<template #icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,54 +53,55 @@
>
<slot name="message" />
</div>
</div>
<div
v-if="(actionButtonText) || $slots.action"
class="entity-empty-state-action"
>
<KButton
appearance="primary"
@click="$emit('click-action')"
>
{{ actionButtonText }}
</KButton>
<KButton
v-if="learnMoreLink"
appearance="secondary"
:to="learnMoreLink"
>
<BookIcon decorative />
{{ t('emptyState.learnMore') }}
</KButton>
</div>
<div class="entity-empty-state-card-container">
<template
v-for="feature in features"
:key="feature"
<div
v-if="(actionButtonText) || $slots.action"
class="entity-empty-state-action"
>
<KCard
class="entity-empty-state-card"
:title="feature.title"
<KButton
appearance="primary"
@click="$emit('click-action')"
>
<template #title>
<component
:is="feature.iconVariant"
:color="`var(--kui-color-text-neutral-stronger, ${KUI_COLOR_TEXT_NEUTRAL_STRONGER})`"
:size="KUI_ICON_SIZE_30"
/>
<div>{{ feature.title }}</div>
</template>
<template #default>
{{ feature.description }}
</template>
</KCard>
</template>
{{ actionButtonText }}
</KButton>
<KButton
v-if="learnMoreLink"
appearance="secondary"
:to="learnMoreLink"
>
<BookIcon decorative />
{{ t('emptyState.learnMore') }}
</KButton>
</div>
<div class="entity-empty-state-card-container">
<template
v-for="feature in features"
:key="feature"
>
<KCard
class="entity-empty-state-card"
:title="feature.title"
>
<template #title>
<component
:is="feature.iconVariant"
:color="`var(--kui-color-text-neutral-stronger, ${KUI_COLOR_TEXT_NEUTRAL_STRONGER})`"
:size="KUI_ICON_SIZE_30"
/>
<div>{{ feature.title }}</div>
</template>
<template #default>
{{ feature.description }}
</template>
</KCard>
</template>
</div>
</div>
</template>

<script lang="ts" setup>
import { type PropType } from 'vue'
import KButton from '@kong/kongponents'
import { KButton } from '@kong/kongponents'
import { BookIcon } from '@kong/icons'
import composables from '../../composables'
import type { EmptyStateFeature } from 'src/types/entity-empty-state'
import { KUI_ICON_SIZE_30, KUI_COLOR_TEXT_NEUTRAL_STRONGER } from '@kong/design-tokens'
Expand Down

0 comments on commit 31c6543

Please sign in to comment.