-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #775 from dnum-mi/develop
Develop
- Loading branch information
Showing
66 changed files
with
2,682 additions
and
1,496 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<script lang="ts" setup> | ||
import DsfrButton, { type DsfrButtonProps } from '../../src/components/DsfrButton/DsfrButton.vue' | ||
defineProps<DsfrButtonProps & { isLoading: boolean }>() | ||
</script> | ||
|
||
<template> | ||
<DsfrButton v-bind="$props"> | ||
<slot /> | ||
</DsfrButton> | ||
<Transition | ||
name="x" | ||
mode="out-in" | ||
> | ||
<DsfrButton | ||
v-if="isLoading" | ||
class="wrapper" | ||
@click.prevent | ||
> | ||
<VIcon | ||
name="ri-loader-4-line" | ||
animation="spin" | ||
/> | ||
</DsfrButton> | ||
</Transition> | ||
</template> | ||
|
||
<style scoped> | ||
.x-enter-active, .x-leave-active { | ||
transition: all 0.3s ease-in-out; | ||
width: 3.25rem; | ||
opacity: 0.8; | ||
padding-inline: 0.5rem; | ||
margin-inline: 0; | ||
} | ||
.x-enter-from, .x-leave-to { | ||
width: 0; | ||
opacity: 0; | ||
padding-inline: 0; | ||
margin-inline: 0; | ||
} | ||
.wrapper { | ||
opacity: 0.8; | ||
} | ||
</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
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,34 @@ | ||
## 🌟 Introduction | ||
|
||
Ici la documentation de DSFR | ||
|
||
🏅 La documentation sur ... sur le [DSFR](https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/<nom-dsfr>) | ||
|
||
<VIcon name="vi-file-type-storybook" /> La story sur ... sur le storybook de [VueDsfr](https://storybook.vue-ds.fr/?path=/docs/composants-dsfr<nom-composant>--docs) | ||
|
||
## 📐 Structure | ||
|
||
## 🛠️ Props | ||
|
||
## 📡 Événements | ||
|
||
## 🧩 Slots | ||
|
||
## 📝 Exemples | ||
|
||
## ⚙️ Code source du composant | ||
|
||
Dans le titre ## 📝 Exemples, je veux simplement ceci: | ||
|
||
::: code-group | ||
|
||
::: | ||
|
||
Et dans `## ⚙️ Code source du composant`, je veux ceci: | ||
|
||
::: code-group | ||
|
||
Dsfr.vue | ||
Dsfr.types.ts | ||
|
||
::: |
Oops, something went wrong.