-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Remove vue files from prettierignore * Format files * Fix linter warnings
- Loading branch information
1 parent
661b83c
commit df5c928
Showing
357 changed files
with
3,043 additions
and
2,482 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,4 @@ package-lock.json | |
**/*.ts | ||
**/*.mts | ||
**/*.cts | ||
**/*.vue | ||
**/*.md |
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 |
---|---|---|
@@ -1,90 +1,92 @@ | ||
<template> | ||
<div class="container"> | ||
<div class="example-wrapper vvd-root"> | ||
<div | ||
class="example" | ||
:class="{ | ||
'example--no-padding': noPadding, | ||
'example--visible-overflow': visibleOverflow, | ||
'example--no-overflow': noOverflow, | ||
}" | ||
> | ||
<slot name="example" /> | ||
</div> | ||
</div> | ||
<div class="controls"> | ||
<VButton | ||
icon="code-solid" | ||
:appearance="isCodeVisible ? 'filled' : 'ghost'" | ||
@click="isCodeVisible = !isCodeVisible" | ||
/> | ||
</div> | ||
<div v-if="isCodeVisible" class="code"> | ||
<slot name="code" /> | ||
</div> | ||
</div> | ||
<div class="container"> | ||
<div class="example-wrapper vvd-root"> | ||
<div | ||
class="example" | ||
:class="{ | ||
'example--no-padding': noPadding, | ||
'example--visible-overflow': visibleOverflow, | ||
'example--no-overflow': noOverflow, | ||
}" | ||
> | ||
<slot name="example" /> | ||
</div> | ||
</div> | ||
<div class="controls"> | ||
<VButton | ||
icon="code-solid" | ||
:appearance="isCodeVisible ? 'filled' : 'ghost'" | ||
@click="isCodeVisible = !isCodeVisible" | ||
/> | ||
</div> | ||
<div v-if="isCodeVisible" class="code"> | ||
<slot name="code" /> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { defineClientComponent } from 'vitepress'; | ||
import { ref } from 'vue'; | ||
defineProps({ | ||
noPadding: Boolean, | ||
visibleOverflow: Boolean, | ||
noOverflow: Boolean, | ||
noPadding: Boolean, | ||
visibleOverflow: Boolean, | ||
noOverflow: Boolean, | ||
}); | ||
const VButton = defineClientComponent(async () => (await import('@vonage/vivid-vue')).VButton); | ||
const VButton = defineClientComponent( | ||
async () => (await import('@vonage/vivid-vue')).VButton | ||
); | ||
const isCodeVisible = ref(false); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.controls { | ||
border-top: 1px solid lightgray; | ||
padding: 4px 8px; | ||
display: flex; | ||
flex-direction: row-reverse; | ||
border-top: 1px solid lightgray; | ||
padding: 4px 8px; | ||
display: flex; | ||
flex-direction: row-reverse; | ||
border-left: 1px solid lightgray; | ||
border-right: 1px solid lightgray; | ||
border-bottom: 1px solid lightgray; | ||
border-left: 1px solid lightgray; | ||
border-right: 1px solid lightgray; | ||
border-bottom: 1px solid lightgray; | ||
} | ||
.example { | ||
background-image: url(data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22%23F5F5F5%22%2F%3E%0A%3Crect%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%23fff%22%2F%3E%0A%3Crect%20x%3D%2210%22%20y%3D%2210%22%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%23fff%22%2F%3E%0A%3C%2Fsvg%3E%0A); | ||
padding: 16px; | ||
background-image: url(data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22%23F5F5F5%22%2F%3E%0A%3Crect%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%23fff%22%2F%3E%0A%3Crect%20x%3D%2210%22%20y%3D%2210%22%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%23fff%22%2F%3E%0A%3C%2Fsvg%3E%0A); | ||
padding: 16px; | ||
border-top-left-radius: 8px; | ||
border-top-right-radius: 8px; | ||
border: 1px solid lightgray; | ||
overflow-x: auto; | ||
border-top-left-radius: 8px; | ||
border-top-right-radius: 8px; | ||
border: 1px solid lightgray; | ||
overflow-x: auto; | ||
transform: translateX(0); | ||
transform: translateX(0); | ||
&--no-padding { | ||
padding: 0; | ||
} | ||
&--no-padding { | ||
padding: 0; | ||
} | ||
&--no-overflow { | ||
overflow: hidden; | ||
} | ||
&--no-overflow { | ||
overflow: hidden; | ||
} | ||
&--visible-overflow { | ||
overflow: visible; | ||
} | ||
&--visible-overflow { | ||
overflow: visible; | ||
} | ||
} | ||
.code { | ||
:deep([class*='language-']) { | ||
border-top-left-radius: 0; | ||
border-top-right-radius: 0; | ||
margin: 0; | ||
} | ||
:deep([class*='language-']) { | ||
border-top-left-radius: 0; | ||
border-top-right-radius: 0; | ||
margin: 0; | ||
} | ||
} | ||
</style> |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<template> | ||
<div> | ||
<Layout /> | ||
</div> | ||
<div> | ||
<Layout /> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
|
20 changes: 14 additions & 6 deletions
20
apps/vue-docs/docs/examples/components/accordion/ExpandedExample.vue
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
20 changes: 14 additions & 6 deletions
20
apps/vue-docs/docs/examples/components/accordion/MultiModeExample.vue
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
10 changes: 5 additions & 5 deletions
10
apps/vue-docs/docs/examples/components/accordionItem/ExpandedExample.vue
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
10 changes: 5 additions & 5 deletions
10
apps/vue-docs/docs/examples/components/accordionItem/HeadingExample.vue
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
10 changes: 5 additions & 5 deletions
10
apps/vue-docs/docs/examples/components/accordionItem/HeadingLevelExample.vue
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
10 changes: 5 additions & 5 deletions
10
apps/vue-docs/docs/examples/components/accordionItem/IconExample.vue
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
14 changes: 9 additions & 5 deletions
14
apps/vue-docs/docs/examples/components/accordionItem/IconTrailingExample.vue
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
10 changes: 5 additions & 5 deletions
10
apps/vue-docs/docs/examples/components/accordionItem/MetaExample.vue
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
10 changes: 5 additions & 5 deletions
10
apps/vue-docs/docs/examples/components/accordionItem/NoIndicatorExample.vue
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
31 changes: 20 additions & 11 deletions
31
apps/vue-docs/docs/examples/components/accordionItem/SizeExample.vue
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
12 changes: 6 additions & 6 deletions
12
apps/vue-docs/docs/examples/components/action-group/ActionGroupExample.vue
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.