File tree Expand file tree Collapse file tree 11 files changed +43
-41
lines changed
Expand file tree Collapse file tree 11 files changed +43
-41
lines changed Original file line number Diff line number Diff line change 3838 run : npm run build
3939
4040 - name : Construire le storybook
41- run : npm run story:build
41+ run : npm run story:build
Original file line number Diff line number Diff line change 1- # UI Kit du Lab. ANSSI
1+ # UI Kit du Lab. ANSSI
Original file line number Diff line number Diff line change 1- import { defineConfig } from 'histoire'
2- import { HstSvelte } from '@histoire/plugin-svelte'
1+ import { defineConfig } from 'histoire' ;
2+ import { HstSvelte } from '@histoire/plugin-svelte' ;
33import { defaultColors } from 'histoire' ;
44
55export default defineConfig ( {
66 outDir : 'dist-histoire' ,
7- plugins : [
8- HstSvelte ( ) ,
9- ] ,
7+ plugins : [ HstSvelte ( ) ] ,
108 setupFile : '/stories/histoire.setup.ts' ,
119 theme : {
12- title : " Lab. ANSSI - UI Kit" ,
10+ title : ' Lab. ANSSI - UI Kit' ,
1311 favicon : 'favicon.ico' ,
1412 logo : {
1513 square : '/static/ANSSI-sombre.svg' ,
1614 light : '/static/ANSSI.svg' ,
17- dark : '/static/ANSSI-sombre.svg' ,
15+ dark : '/static/ANSSI-sombre.svg'
1816 } ,
1917 colors : {
2018 primary : {
@@ -27,9 +25,9 @@ export default defineConfig({
2725 600 : '#4f44e3' ,
2826 700 : '#463dca' ,
2927 800 : '#3e35b0' ,
30- 900 : '#352e97' ,
31- } ,
28+ 900 : '#352e97'
29+ }
3230 } ,
33- logoHref : 'https://acme.com' ,
31+ logoHref : 'https://acme.com'
3432 }
35- } )
33+ } ) ;
Original file line number Diff line number Diff line change 11// Couleurs
22$text-mention-grey : #666666 ;
3- $background-default-grey-active : #EDEDED ;
4- $border-default-grey : #DDDDDD ;
3+ $background-default-grey-active : #ededed ;
4+ $border-default-grey : #dddddd ;
Original file line number Diff line number Diff line change 1818 <a href =" /securite" >Sécurité</a >
1919 <div class =" separateur" ></div >
2020 <a href =" /accessibilite"
21- >Accessiblité: {conformiteAccessibilite === ' conforme' ? ' conforme' : ' non conforme' }</a
22- >
21+ >Accessiblité: {conformiteAccessibilite === ' conforme' ? ' conforme' : ' non conforme' }</a
22+ >
2323</div >
2424
2525<style lang =" scss" >
3737 border-top : 1px solid $border-default-grey ;
3838
3939 @include a-partir-de (desktop) {
40- margin : 0 24px ;
41- column-gap : 16px ;
40+ margin : 0 24px ;
41+ column-gap : 16px ;
4242 }
4343
4444 a {
5757 }
5858
5959 & :active {
60- background : #ededed ;
61- }
60+ background : #ededed ;
61+ }
6262 }
6363 }
6464
Original file line number Diff line number Diff line change 11export { default as NavigationPiedDePage } from './NavigationPiedDePage.svelte' ;
2-
Original file line number Diff line number Diff line change 1- @use " sass:map" ;
2- @use " sass:meta" ;
1+ @use ' sass:map' ;
2+ @use ' sass:meta' ;
33
44$points-de-rupture-a-partir-de : (
5- desktop : ( min-width : 932px )
5+ desktop : (
6+ min-width : 932px
7+ )
68) !default ;
79
810@mixin a-partir-de ($point-de-rupture ) {
9- @if map .has-key ($points-de-rupture-a-partir-de , $point-de-rupture ) {
10- @media #{meta .inspect (map .get ($points-de-rupture-a-partir-de , $point-de-rupture ))} {
11- @content ;
12- }
13- }
14-
15- @else {
16- @warn " Un point de rupture inconnu (`#{$point-de-rupture } `) a été utilisé. "
11+ @if map .has-key ($points-de-rupture-a-partir-de , $point-de-rupture ) {
12+ @media #{meta .inspect (map .get ($points-de-rupture-a-partir-de , $point-de-rupture ))} {
13+ @content ;
14+ }
15+ } @else {
16+ @warn " Un point de rupture inconnu (`#{$point-de-rupture } `) a été utilisé. "
1717 + " Les points de rupture disponibles sont: #{map-keys ($points-de-rupture-a-partir-de )} ." ;
18- }
19- }
18+ }
19+ }
Original file line number Diff line number Diff line change 11### Svelte
2+
23``` svelte
34<NavigationPiedDePage conformiteAccessibilite="conforme" />
45```
56
67### HTML
8+
79``` html
8- <lab-anssi-navigation-pied-de-page conformiteAccessibilite =" conforme" ></lab-anssi-navigation-pied-de-page >
10+ <lab-anssi-navigation-pied-de-page
11+ conformiteAccessibilite =" conforme"
12+ ></lab-anssi-navigation-pied-de-page >
913```
1014
1115### Propriétés
16+
1217``` typescript
1318type conformiteAccessibilite = ' conforme' | ' nonConforme' ;
14- ```
19+ ```
Original file line number Diff line number Diff line change 22 import type { Hst } from ' @histoire/plugin-svelte' ;
33 import NavigationPiedDePage from ' $lib/NavigationPiedDePage.svelte' ;
44
5- export let Hst: Hst
5+ export let Hst: Hst ;
66
77 let conformiteAccessibilite = ' nonConforme' ;
88 const source = ` <NavigationPiedDePage {conformiteAccessibilite} /> ` ;
1515 <Hst .Select
1616 bind:value ={conformiteAccessibilite }
1717 title =" Conformité d'accessibilité"
18- options ={{conforme : ' Conforme' , nonConforme : ' Non conforme' }}
18+ options ={{ conforme : ' Conforme' , nonConforme : ' Non conforme' }}
1919 />
2020 </svelte:fragment >
2121</Hst .Story >
Original file line number Diff line number Diff line change 1- import './styles.histoire.css'
1+ import './styles.histoire.css' ;
You can’t perform that action at this time.
0 commit comments