-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kcollapse): component reskin [KHCP-8976] (#2125)
* feat(kcollapse): reskin component - wip [KHCP-8976] * feat(kcollapse): component reskin [KHCP-8976] * test(kcollapse): update compoent tests [KHCP-8976] * fix(kcollapse): misc fixes [KHCP-8976] * docs(collapse): update component docs [KHCP-8976] * chore(sandbox): minor fix [KHCP-8976] * docs(collapse): misc fix [KHCP-8976] * fix(kcollapse): apply feedback Co-authored-by: Adam DeHaven <2229946+adamdehaven@users.noreply.github.com> * fix(kcollapse): address feedback [KHCP-8976] --------- Co-authored-by: Adam DeHaven <2229946+adamdehaven@users.noreply.github.com>
- Loading branch information
1 parent
d6baa3e
commit 95a0d62
Showing
9 changed files
with
380 additions
and
296 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,82 @@ | ||
<template> | ||
<SandboxLayout | ||
:links="inject('app-links', [])" | ||
title="KPagination" | ||
> | ||
<div class="kpagination-sandbox"> | ||
<!-- Figma --> | ||
<SandboxTitleComponent | ||
is-subtitle | ||
title="Figma" | ||
/> | ||
<KExternalLink href="https://www.figma.com/file/Yze0SWXl5nKjR0rFdilljK/Components?type=design&node-id=2020%3A11254&mode=dev&t=z4m6LiZVAeHHwxSH-1"> | ||
Figma | ||
</KExternalLink> | ||
|
||
<!-- Props --> | ||
<SandboxTitleComponent | ||
is-subtitle | ||
title="Props" | ||
/> | ||
<SandboxSectionComponent title="KCollapse title"> | ||
<KCollapse title="KCollapse title"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
</KCollapse> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="triggerAlignment"> | ||
<KCollapse | ||
title="KCollapse title" | ||
trigger-alignment="leading" | ||
trigger-label="Trigger label" | ||
> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
</KCollapse> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="triggerLabel"> | ||
<KCollapse | ||
trigger-label="Trigger label" | ||
> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
</KCollapse> | ||
</SandboxSectionComponent> | ||
|
||
<!-- Slots --> | ||
<SandboxTitleComponent | ||
is-subtitle | ||
title="Slots" | ||
/> | ||
<SandboxSectionComponent title="visible-content"> | ||
<KCollapse title="KCollapse title"> | ||
<template #visible-content> | ||
This is the visible content | ||
</template> | ||
This is the hidden content | ||
</KCollapse> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="trigger-content"> | ||
<KCollapse> | ||
<template #trigger-content> | ||
Custom trigger content | ||
</template> | ||
This is the hidden content | ||
</KCollapse> | ||
</SandboxSectionComponent> | ||
<SandboxSectionComponent title="trigger"> | ||
<KCollapse> | ||
<template #trigger="{ isCollapsed, toggle }"> | ||
<KButton @click="toggle()"> | ||
{{ isCollapsed ? 'Expand' : 'Collapse' }} | ||
</KButton> | ||
</template> | ||
This is the hidden content | ||
</KCollapse> | ||
</SandboxSectionComponent> | ||
</div> | ||
</SandboxLayout> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { inject } from 'vue' | ||
import SandboxTitleComponent from '../components/SandboxTitleComponent.vue' | ||
import SandboxSectionComponent from '../components/SandboxSectionComponent.vue' | ||
</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
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.