-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kcopy): reskin component [KHCP-9663] (#1925)
* chore(sandbox): setup component sandbox [KHCP-9663] * feat(kcopy): reskin component [KHCP-9663] * fix(kcard): add comment [KHCP-9663] * chore(kcopy): sandbox tweaks [KHCP-9663] * fix(kcopy): address PR feedback [KHCP-9663] * fix(kcopy): address PR feedback [KHCP-9663] * fix(kcopy): address Pr feedback [KHCP-9663] * fix(kcopy): address PR feedback [KHCP-9663] * fix(kcopy): minor tweak [KHCP-9663] * chore(sandbox): minor fix [KHCP-9663]
- Loading branch information
Showing
8 changed files
with
288 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<template> | ||
<SandboxLayout | ||
:links="inject('app-links', [])" | ||
title="KCopy" | ||
> | ||
<div class="kcopy-sandbox"> | ||
<!-- Props --> | ||
<SandboxTitleComponent | ||
is-subtitle | ||
title="Props" | ||
/> | ||
<SandboxSectionComponent title="text"> | ||
<KCopy :text="uuid1" /> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="badge"> | ||
<KCopy | ||
badge | ||
:text="uuid1" | ||
/> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="badgeLabel"> | ||
<KCopy | ||
badge | ||
badge-label="Service ID:" | ||
:text="uuid1" | ||
/> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="truncate"> | ||
<KCopy | ||
:text="uuid1" | ||
truncate | ||
/> | ||
<KCopy | ||
badge | ||
:text="uuid1" | ||
truncate | ||
/> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="truncationLimit"> | ||
<KCopy | ||
:text="uuid1" | ||
truncate | ||
:truncation-limit="5" | ||
/> | ||
<KCopy | ||
badge | ||
:text="uuid1" | ||
truncate | ||
:truncation-limit="5" | ||
/> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="copyTooltip"> | ||
<KCopy | ||
copy-tooltip="Click to copy successfully" | ||
:text="uuid1" | ||
/> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="textTooltip"> | ||
<KCopy | ||
:text="uuid1" | ||
text-tooltip="Text hover tooltip" | ||
/> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="successTooltip"> | ||
<KCopy | ||
success-tooltip="Successfully copied" | ||
:text="uuid1" | ||
/> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="monospace"> | ||
<KCopy | ||
:monospace="false" | ||
:text="uuid1" | ||
/> | ||
<KCopy | ||
badge | ||
monospace | ||
:text="uuid1" | ||
/> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="format"> | ||
<KCopy :text="uuid1" /> | ||
<KCopy | ||
format="hidden" | ||
:text="uuid1" | ||
/> | ||
<KCopy | ||
format="redacted" | ||
:text="uuid1" | ||
/> | ||
<KCopy | ||
format="deleted" | ||
:text="uuid1" | ||
/> | ||
</SandboxSectionComponent> | ||
</div> | ||
</SandboxLayout> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { inject } from 'vue' | ||
import SandboxTitleComponent from '../components/SandboxTitleComponent.vue' | ||
import SandboxSectionComponent from '../components/SandboxSectionComponent.vue' | ||
const uuid1: string = '2cf64827-6c70-4116-906b-4c9aae83fc4a' | ||
</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.