-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(klabel): component reskinning [KHCP-8987] (#1764)
* chore(sandbox): set up component sandbox [KHCP-8987] * fix(klabel): remove unneeded props [KHCP-8987] * feat(klabel): reskin component [KHCP-8987] * test(klabel): fix component tests [KHCP-8987] * fix(*): fix components affected by klabel [KHCP-8987] * fix(*): misc fixes [KHCP-8987] * docs(label): update component docs [KHCP-8987] * fix(klabel): address PR feedback [KHCP-8987] * fix: minor fix [KHCP-8987] * chore(sandbox): minor fix [KHCP-8987] * fix(ktooltip): make tooltip trigger focusable [KHCP-8987] * fix(klabel): address PR feedback [KHCP-8987] * fix(deps): bump @kong/design-tokens [KHCP-8987]
- Loading branch information
Showing
23 changed files
with
221 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<template> | ||
<div class="klabel-sandbox"> | ||
<SandboxTitleComponent | ||
title="KLabel" | ||
> | ||
<template #description> | ||
<KExternalLink href="https://www.figma.com/file/Yze0SWXl5nKjR0rFdilljK/Components?type=design&node-id=418%3A15878&mode=dev"> | ||
Figma | ||
</KExternalLink> | ||
</template> | ||
</SandboxTitleComponent> | ||
|
||
<KLabel> | ||
This is a label | ||
</KLabel> | ||
|
||
<!-- Props --> | ||
<SandboxTitleComponent | ||
is-subtitle | ||
title="Props" | ||
/> | ||
<SandboxSectionComponent title="info"> | ||
<KLabel | ||
info="This is an info text" | ||
> | ||
Label | ||
</KLabel> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="required"> | ||
<KLabel required> | ||
Required label | ||
</KLabel> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="required with info"> | ||
<KLabel | ||
info="This is an info text" | ||
required | ||
> | ||
Required label | ||
</KLabel> | ||
</SandboxSectionComponent> | ||
|
||
<!-- Props --> | ||
<SandboxTitleComponent | ||
is-subtitle | ||
title="Usage" | ||
/> | ||
<SandboxSectionComponent title="KInput"> | ||
<KInput | ||
label="Label" | ||
:label-attributes="{ | ||
info: 'KLabel info prop.', | ||
}" | ||
required | ||
/> | ||
</SandboxSectionComponent> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import SandboxTitleComponent from '../components/SandboxTitleComponent.vue' | ||
import SandboxSectionComponent from '../components/SandboxSectionComponent.vue' | ||
import { KExternalLink, KLabel, KInput } from '@/components' | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.