@lab-anssi/ui-kit 1.24.0 → 1.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -22
- package/dist/Alerte.svelte +3 -5
- package/dist/Alerte.svelte.d.ts +7 -19
- package/dist/CentreAide.svelte +10 -10
- package/dist/CentreAide.svelte.d.ts +24 -21
- package/dist/composants/AncresParcours.svelte +1050 -0
- package/dist/composants/AncresParcours.svelte.d.ts +11 -0
- package/dist/composants/FiltresCatalogue.svelte +1069 -0
- package/dist/composants/FiltresCatalogue.svelte.d.ts +14 -0
- package/dist/composants/Hero.svelte +1073 -0
- package/dist/composants/Hero.svelte.d.ts +13 -0
- package/dist/dsfr/DsfrAlert.svelte +50 -0
- package/dist/dsfr/DsfrAlert.svelte.d.ts +17 -0
- package/dist/dsfr/DsfrBadge.svelte +47 -0
- package/dist/dsfr/DsfrBadge.svelte.d.ts +16 -0
- package/dist/dsfr/DsfrButton.svelte +1270 -0
- package/dist/dsfr/DsfrButton.svelte.d.ts +20 -0
- package/dist/dsfr/DsfrContainer.svelte +15 -0
- package/dist/dsfr/DsfrContainer.svelte.d.ts +13 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/lab/Bouton.svelte +10 -8
- package/dist/lab/Bouton.svelte.d.ts +11 -23
- package/dist/lab/Icone.svelte +669 -2
- package/dist/lab/Icone.svelte.d.ts +6 -18
- package/dist/lab/Lien.svelte +13 -49
- package/dist/lab/Lien.svelte.d.ts +14 -26
- package/dist/lab/ResumePssi.svelte +1 -1
- package/dist/lab/ResumePssi.svelte.d.ts +5 -17
- package/dist/lab/Tag.svelte +10 -8
- package/dist/lab/Tag.svelte.d.ts +10 -22
- package/dist/lab/blog/BandeauTitre.svelte +5 -8
- package/dist/lab/blog/BandeauTitre.svelte.d.ts +9 -21
- package/dist/lab/blog/CarteArticle.svelte +2 -3
- package/dist/lab/blog/CarteArticle.svelte.d.ts +6 -18
- package/dist/lab/blog/IconeChevronBas.svelte.d.ts +22 -21
- package/dist/lab/blog/IconeMenuLateral.svelte.d.ts +22 -21
- package/dist/lab/blog/ListeArticles.svelte +5 -5
- package/dist/lab/blog/ListeArticles.svelte.d.ts +7 -19
- package/dist/lab/blog/ListeDeroulante.svelte +3 -4
- package/dist/lab/blog/ListeDeroulante.svelte.d.ts +9 -21
- package/dist/lab/blog/PageCrisp.svelte +10 -6
- package/dist/lab/blog/PageCrisp.svelte.d.ts +6 -18
- package/dist/lab/blog/SommaireBureau.svelte +3 -3
- package/dist/lab/blog/SommaireBureau.svelte.d.ts +21 -18
- package/dist/lab/blog/SommaireMobile.svelte +5 -5
- package/dist/lab/blog/SommaireMobile.svelte.d.ts +21 -18
- package/dist/lab/icones/Fleche.svelte +1 -1
- package/dist/lab/icones/Fleche.svelte.d.ts +5 -17
- package/dist/lab/icones/LienExterne.svelte +1 -1
- package/dist/lab/icones/LienExterne.svelte.d.ts +5 -17
- package/dist/lab/vitrines-produits/briques/Brique.svelte +7 -4
- package/dist/lab/vitrines-produits/briques/Brique.svelte.d.ts +8 -21
- package/dist/lab/vitrines-produits/briques/BriqueContenuADeuxColonnes.svelte +11 -9
- package/dist/lab/vitrines-produits/briques/BriqueContenuADeuxColonnes.svelte.d.ts +9 -21
- package/dist/lab/vitrines-produits/briques/BriqueHero.svelte +15 -11
- package/dist/lab/vitrines-produits/briques/BriqueHero.svelte.d.ts +11 -23
- package/dist/lab/vitrines-produits/briques/BriqueTitreMultimedia.svelte +2 -3
- package/dist/lab/vitrines-produits/briques/BriqueTitreMultimedia.svelte.d.ts +6 -18
- package/dist/lab/vitrines-produits/briques/CarrouselTuiles/CarrouselTuiles.svelte +5 -5
- package/dist/lab/vitrines-produits/briques/CarrouselTuiles/CarrouselTuiles.svelte.d.ts +6 -18
- package/dist/lab/vitrines-produits/briques/CarrouselTuiles/IconeFlecheDroite.svelte.d.ts +22 -21
- package/dist/lab/vitrines-produits/briques/CarrouselTuiles/IconeFlecheGauche.svelte.d.ts +22 -21
- package/dist/lab/vitrines-produits/briques/LecteurVideo.svelte +1 -4
- package/dist/lab/vitrines-produits/briques/LecteurVideo.svelte.d.ts +8 -20
- package/dist/lab/vitrines-produits/briques/PresentationANSSI.svelte +1 -1
- package/dist/lab/vitrines-produits/briques/PresentationANSSI.svelte.d.ts +16 -14
- package/dist/lab/vitrines-produits/briques/RejoindreLaCommunaute.svelte +2 -5
- package/dist/lab/vitrines-produits/briques/RejoindreLaCommunaute.svelte.d.ts +8 -20
- package/dist/lab/vitrines-produits/briques/Tuile.svelte +1 -4
- package/dist/lab/vitrines-produits/briques/Tuile.svelte.d.ts +9 -21
- package/dist/lab/vitrines-produits/briques/marelle/Etape.svelte +2 -3
- package/dist/lab/vitrines-produits/briques/marelle/Etape.svelte.d.ts +6 -18
- package/dist/lab/vitrines-produits/briques/marelle/Marelle.svelte +2 -4
- package/dist/lab/vitrines-produits/briques/marelle/Marelle.svelte.d.ts +7 -19
- package/dist/lab/vitrines-produits/briques/temoignages/IconeTemoignage.svelte.d.ts +22 -21
- package/dist/lab/vitrines-produits/briques/temoignages/Temoignages.svelte +12 -11
- package/dist/lab/vitrines-produits/briques/temoignages/Temoignages.svelte.d.ts +6 -18
- package/dist/mes-services-cyber/bandeau/Bandeau.svelte +5 -3
- package/dist/mes-services-cyber/bandeau/Bandeau.svelte.d.ts +3 -16
- package/dist/mes-services-cyber/lien/LienDiagnosticCyber.svelte +2 -3
- package/dist/mes-services-cyber/lien/LienDiagnosticCyber.svelte.d.ts +6 -18
- package/dist/pied-de-page/NavigationPiedDePage.svelte +1 -1
- package/dist/pied-de-page/NavigationPiedDePage.svelte.d.ts +5 -17
- package/dist/styles/mixins.scss +17 -0
- package/dist/suite-cyber/navigation/AccueilMSC.svelte +1 -1
- package/dist/suite-cyber/navigation/AccueilMSC.svelte.d.ts +16 -14
- package/dist/suite-cyber/navigation/BlocLiens.svelte +1 -2
- package/dist/suite-cyber/navigation/BlocLiens.svelte.d.ts +12 -23
- package/dist/suite-cyber/navigation/Navigation.svelte +5 -5
- package/dist/suite-cyber/navigation/Navigation.svelte.d.ts +5 -17
- package/dist/{types.d.ts → types/commun.d.ts} +5 -10
- package/dist/types/commun.js +1 -0
- package/dist/types/global.d.ts +22 -0
- package/dist/types/global.js +9 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +1 -0
- package/dist/utilitaires/index.d.ts +6 -0
- package/dist/utilitaires/index.js +12 -0
- package/dist/webcomponents/lab-anssi-ui-kit.iife.js +238 -41
- package/dist/webcomponents/lab-anssi-ui-kit.jsx.d.ts +27 -85
- package/package.json +39 -38
- package/dist/generateurImagesPlaceholders.d.ts +0 -1
- package/dist/generateurImagesPlaceholders.js +0 -3
- package/dist/types.js +0 -1
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/** @typedef {typeof __propDef.slots} IconeFlecheGaucheSlots */
|
|
4
|
-
export default class IconeFlecheGauche extends SvelteComponent<{
|
|
1
|
+
export default IconeFlecheGauche;
|
|
2
|
+
type IconeFlecheGauche = SvelteComponent<{
|
|
5
3
|
[x: string]: never;
|
|
6
4
|
}, {
|
|
7
5
|
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
|
|
10
|
-
export type IconeFlecheGaucheProps = typeof __propDef.props;
|
|
11
|
-
export type IconeFlecheGaucheEvents = typeof __propDef.events;
|
|
12
|
-
export type IconeFlecheGaucheSlots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponent } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
[x: string]: never;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
exports?: undefined;
|
|
23
|
-
bindings?: undefined;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
24
8
|
};
|
|
25
|
-
|
|
9
|
+
declare const IconeFlecheGauche: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export let sourceSousTitres;
|
|
3
|
-
export let imageDeCouverture = "";
|
|
4
|
-
export let classe = "";
|
|
1
|
+
<script lang="ts">let { source, sourceSousTitres, imageDeCouverture = "", classe = "" } = $props();
|
|
5
2
|
</script>
|
|
6
3
|
|
|
7
4
|
<video controls class={classe} src={source} poster={imageDeCouverture}>
|
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
imageDeCouverture?: string;
|
|
7
|
-
classe?: string;
|
|
8
|
-
};
|
|
9
|
-
events: {
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
};
|
|
12
|
-
slots: {};
|
|
13
|
-
exports?: {} | undefined;
|
|
14
|
-
bindings?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
export type LecteurVideoProps = typeof __propDef.props;
|
|
17
|
-
export type LecteurVideoEvents = typeof __propDef.events;
|
|
18
|
-
export type LecteurVideoSlots = typeof __propDef.slots;
|
|
19
|
-
export default class LecteurVideo extends SvelteComponent<LecteurVideoProps, LecteurVideoEvents, LecteurVideoSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
source: string;
|
|
3
|
+
sourceSousTitres: string;
|
|
4
|
+
imageDeCouverture?: string;
|
|
5
|
+
classe?: string;
|
|
20
6
|
}
|
|
21
|
-
|
|
7
|
+
declare const LecteurVideo: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type LecteurVideo = ReturnType<typeof LecteurVideo>;
|
|
9
|
+
export default LecteurVideo;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
6
11
|
};
|
|
7
|
-
|
|
8
|
-
exports?: {} | undefined;
|
|
9
|
-
bindings?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
export type PresentationAnssiProps = typeof __propDef.props;
|
|
12
|
-
export type PresentationAnssiEvents = typeof __propDef.events;
|
|
13
|
-
export type PresentationAnssiSlots = typeof __propDef.slots;
|
|
14
|
-
export default class PresentationAnssi extends SvelteComponent<PresentationAnssiProps, PresentationAnssiEvents, PresentationAnssiSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
15
13
|
}
|
|
16
|
-
|
|
14
|
+
declare const PresentationAnssi: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type PresentationAnssi = InstanceType<typeof PresentationAnssi>;
|
|
18
|
+
export default PresentationAnssi;
|
|
@@ -10,11 +10,8 @@
|
|
|
10
10
|
}}
|
|
11
11
|
/>
|
|
12
12
|
|
|
13
|
-
<script>import Brique from "./Brique.svelte";
|
|
14
|
-
|
|
15
|
-
export let raisons;
|
|
16
|
-
export let action = void 0;
|
|
17
|
-
export let illustration;
|
|
13
|
+
<script lang="ts">import Brique from "./Brique.svelte";
|
|
14
|
+
let { titre, raisons, action = void 0, illustration } = $props();
|
|
18
15
|
</script>
|
|
19
16
|
|
|
20
17
|
<Brique variation="primaire">
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { Action, Image } from "../../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
illustration: Image;
|
|
9
|
-
};
|
|
10
|
-
events: {
|
|
11
|
-
[evt: string]: CustomEvent<any>;
|
|
12
|
-
};
|
|
13
|
-
slots: {};
|
|
14
|
-
exports?: {} | undefined;
|
|
15
|
-
bindings?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
export type RejoindreLaCommunauteProps = typeof __propDef.props;
|
|
18
|
-
export type RejoindreLaCommunauteEvents = typeof __propDef.events;
|
|
19
|
-
export type RejoindreLaCommunauteSlots = typeof __propDef.slots;
|
|
20
|
-
export default class RejoindreLaCommunaute extends SvelteComponent<RejoindreLaCommunauteProps, RejoindreLaCommunauteEvents, RejoindreLaCommunauteSlots> {
|
|
2
|
+
interface Props {
|
|
3
|
+
titre: string;
|
|
4
|
+
raisons: string[];
|
|
5
|
+
action?: Action | undefined;
|
|
6
|
+
illustration: Image;
|
|
21
7
|
}
|
|
22
|
-
|
|
8
|
+
declare const RejoindreLaCommunaute: import("svelte").Component<Props, {}, "">;
|
|
9
|
+
type RejoindreLaCommunaute = ReturnType<typeof RejoindreLaCommunaute>;
|
|
10
|
+
export default RejoindreLaCommunaute;
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
contenu: string;
|
|
8
|
-
position?: "premiere" | "derniere" | null;
|
|
9
|
-
};
|
|
10
|
-
events: {
|
|
11
|
-
[evt: string]: CustomEvent<any>;
|
|
12
|
-
};
|
|
13
|
-
slots: {};
|
|
14
|
-
exports?: {} | undefined;
|
|
15
|
-
bindings?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
export type TuileProps = typeof __propDef.props;
|
|
18
|
-
export type TuileEvents = typeof __propDef.events;
|
|
19
|
-
export type TuileSlots = typeof __propDef.slots;
|
|
20
|
-
export default class Tuile extends SvelteComponent<TuileProps, TuileEvents, TuileSlots> {
|
|
1
|
+
import type { Image } from "../../../types";
|
|
2
|
+
interface Props {
|
|
3
|
+
titre: string;
|
|
4
|
+
illustration: Image;
|
|
5
|
+
contenu: string;
|
|
6
|
+
position?: "premiere" | "derniere" | null;
|
|
21
7
|
}
|
|
22
|
-
|
|
8
|
+
declare const Tuile: import("svelte").Component<Props, {}, "">;
|
|
9
|
+
type Tuile = ReturnType<typeof Tuile>;
|
|
10
|
+
export default Tuile;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
<script>import LienExterne from "../../../icones/LienExterne.svelte";
|
|
2
|
-
|
|
3
|
-
export let etapeMarelle;
|
|
1
|
+
<script lang="ts">import LienExterne from "../../../icones/LienExterne.svelte";
|
|
2
|
+
let { index, etapeMarelle } = $props();
|
|
4
3
|
</script>
|
|
5
4
|
|
|
6
5
|
<div class="marelle-etape">
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { EtapeMarelle } from "../../../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
etapeMarelle: EtapeMarelle;
|
|
7
|
-
};
|
|
8
|
-
events: {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
exports?: {} | undefined;
|
|
13
|
-
bindings?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
export type EtapeProps = typeof __propDef.props;
|
|
16
|
-
export type EtapeEvents = typeof __propDef.events;
|
|
17
|
-
export type EtapeSlots = typeof __propDef.slots;
|
|
18
|
-
export default class Etape extends SvelteComponent<EtapeProps, EtapeEvents, EtapeSlots> {
|
|
2
|
+
interface Props {
|
|
3
|
+
index: number;
|
|
4
|
+
etapeMarelle: EtapeMarelle;
|
|
19
5
|
}
|
|
20
|
-
|
|
6
|
+
declare const Etape: import("svelte").Component<Props, {}, "">;
|
|
7
|
+
type Etape = ReturnType<typeof Etape>;
|
|
8
|
+
export default Etape;
|
|
@@ -9,12 +9,10 @@
|
|
|
9
9
|
}}
|
|
10
10
|
/>
|
|
11
11
|
|
|
12
|
-
<script>import Brique from "../Brique.svelte";
|
|
12
|
+
<script lang="ts">import Brique from "../Brique.svelte";
|
|
13
13
|
import Etape from "./Etape.svelte";
|
|
14
14
|
import LienExterne from "../../../icones/LienExterne.svelte";
|
|
15
|
-
|
|
16
|
-
export let etapesmarelle = [];
|
|
17
|
-
export let action;
|
|
15
|
+
let { titre = "", etapesmarelle = [], action } = $props();
|
|
18
16
|
</script>
|
|
19
17
|
|
|
20
18
|
<Brique variation="secondaire">
|
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { Action, EtapeMarelle } from "../../../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
action: Action;
|
|
8
|
-
};
|
|
9
|
-
events: {
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
};
|
|
12
|
-
slots: {};
|
|
13
|
-
exports?: {} | undefined;
|
|
14
|
-
bindings?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
export type MarelleProps = typeof __propDef.props;
|
|
17
|
-
export type MarelleEvents = typeof __propDef.events;
|
|
18
|
-
export type MarelleSlots = typeof __propDef.slots;
|
|
19
|
-
export default class Marelle extends SvelteComponent<MarelleProps, MarelleEvents, MarelleSlots> {
|
|
2
|
+
interface Props {
|
|
3
|
+
titre?: string;
|
|
4
|
+
etapesmarelle?: EtapeMarelle[];
|
|
5
|
+
action: Action;
|
|
20
6
|
}
|
|
21
|
-
|
|
7
|
+
declare const Marelle: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type Marelle = ReturnType<typeof Marelle>;
|
|
9
|
+
export default Marelle;
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/** @typedef {typeof __propDef.slots} IconeTemoignageSlots */
|
|
4
|
-
export default class IconeTemoignage extends SvelteComponent<{
|
|
1
|
+
export default IconeTemoignage;
|
|
2
|
+
type IconeTemoignage = SvelteComponent<{
|
|
5
3
|
[x: string]: never;
|
|
6
4
|
}, {
|
|
7
5
|
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
|
|
10
|
-
export type IconeTemoignageProps = typeof __propDef.props;
|
|
11
|
-
export type IconeTemoignageEvents = typeof __propDef.events;
|
|
12
|
-
export type IconeTemoignageSlots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponent } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
[x: string]: never;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
exports?: undefined;
|
|
23
|
-
bindings?: undefined;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
24
8
|
};
|
|
25
|
-
|
|
9
|
+
declare const IconeTemoignage: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -8,13 +8,12 @@
|
|
|
8
8
|
}}
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
|
-
<script>import Brique from "../Brique.svelte";
|
|
11
|
+
<script lang="ts">import Brique from "../Brique.svelte";
|
|
12
12
|
import IconeTemoignage from "./IconeTemoignage.svelte";
|
|
13
13
|
import IconeFlecheGauche from "../CarrouselTuiles/IconeFlecheGauche.svelte";
|
|
14
14
|
import IconeFlecheDroite from "../CarrouselTuiles/IconeFlecheDroite.svelte";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
let elementCarrousel;
|
|
15
|
+
let { titre = "Les avis de nos utilisateurs", temoignages = [] } = $props();
|
|
16
|
+
let elementCarrousel = $state();
|
|
18
17
|
var Direction = /* @__PURE__ */ ((Direction2) => {
|
|
19
18
|
Direction2[Direction2["DROITE"] = 1] = "DROITE";
|
|
20
19
|
Direction2[Direction2["GAUCHE"] = -1] = "GAUCHE";
|
|
@@ -43,10 +42,10 @@ const scrollVers = (direction) => {
|
|
|
43
42
|
</div>
|
|
44
43
|
{#if temoignages.length > 1}
|
|
45
44
|
<div class="conteneur-actions" class:deux-ou-moins={temoignages.length <= 2}>
|
|
46
|
-
<button class="precedent" type="button"
|
|
45
|
+
<button class="precedent" type="button" onclick={() => scrollVers(Direction.GAUCHE)}>
|
|
47
46
|
<span class="icone"><IconeFlecheGauche /></span>Précédent
|
|
48
47
|
</button>
|
|
49
|
-
<button class="suivant" type="button"
|
|
48
|
+
<button class="suivant" type="button" onclick={() => scrollVers(Direction.DROITE)}
|
|
50
49
|
>Suivant
|
|
51
50
|
<span class="icone"><IconeFlecheDroite /></span>
|
|
52
51
|
</button>
|
|
@@ -92,11 +91,6 @@ const scrollVers = (direction) => {
|
|
|
92
91
|
width: 100%;
|
|
93
92
|
flex-shrink: 0;
|
|
94
93
|
scroll-snap-align: start;
|
|
95
|
-
color: #161616;
|
|
96
|
-
font-size: 1.25rem;
|
|
97
|
-
font-style: normal;
|
|
98
|
-
font-weight: 700;
|
|
99
|
-
line-height: 2rem;
|
|
100
94
|
}
|
|
101
95
|
.brique-temoignages .carrousel-temoignages .conteneur-carrousel .temoignage:after {
|
|
102
96
|
content: "";
|
|
@@ -124,6 +118,13 @@ const scrollVers = (direction) => {
|
|
|
124
118
|
border-left: 1px solid #dddddd;
|
|
125
119
|
}
|
|
126
120
|
}
|
|
121
|
+
.brique-temoignages .carrousel-temoignages .conteneur-carrousel .temoignage {
|
|
122
|
+
color: #161616;
|
|
123
|
+
font-size: 1.25rem;
|
|
124
|
+
font-style: normal;
|
|
125
|
+
font-weight: 700;
|
|
126
|
+
line-height: 2rem;
|
|
127
|
+
}
|
|
127
128
|
.brique-temoignages .carrousel-temoignages .conteneur-carrousel .temoignage h4 {
|
|
128
129
|
margin: 8px 0 0;
|
|
129
130
|
font-size: 1.25rem;
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { Temoignage } from "../../../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
temoignages?: Temoignage[];
|
|
7
|
-
};
|
|
8
|
-
events: {
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
exports?: {} | undefined;
|
|
13
|
-
bindings?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
export type TemoignagesProps = typeof __propDef.props;
|
|
16
|
-
export type TemoignagesEvents = typeof __propDef.events;
|
|
17
|
-
export type TemoignagesSlots = typeof __propDef.slots;
|
|
18
|
-
export default class Temoignages extends SvelteComponent<TemoignagesProps, TemoignagesEvents, TemoignagesSlots> {
|
|
2
|
+
interface Props {
|
|
3
|
+
titre?: string;
|
|
4
|
+
temoignages?: Temoignage[];
|
|
19
5
|
}
|
|
20
|
-
|
|
6
|
+
declare const Temoignages: import("svelte").Component<Props, {}, "">;
|
|
7
|
+
type Temoignages = ReturnType<typeof Temoignages>;
|
|
8
|
+
export default Temoignages;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<svelte:options customElement="lab-anssi-mes-services-cyber-bandeau" />
|
|
2
2
|
|
|
3
|
-
<script>import { srcAsset } from "../../assets/assets.js";
|
|
3
|
+
<script lang="ts">import { srcAsset } from "../../assets/assets.js";
|
|
4
4
|
const CLE_LOCAL_STORAGE = "lab-anssi-ui-kit-msc-bandeau-affichage";
|
|
5
|
-
let affichage =
|
|
5
|
+
let affichage = $state(
|
|
6
|
+
localStorage.getItem(CLE_LOCAL_STORAGE) || "visible"
|
|
7
|
+
);
|
|
6
8
|
const croix = srcAsset("/icones/croix-blanche.svg");
|
|
7
9
|
</script>
|
|
8
10
|
|
|
@@ -11,7 +13,7 @@ const croix = srcAsset("/icones/croix-blanche.svg");
|
|
|
11
13
|
<div class="contenu">
|
|
12
14
|
<button
|
|
13
15
|
class="fermer"
|
|
14
|
-
|
|
16
|
+
onclick={() => {
|
|
15
17
|
affichage = "invisible";
|
|
16
18
|
localStorage.setItem(CLE_LOCAL_STORAGE, "invisible");
|
|
17
19
|
}}
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
events: {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
};
|
|
7
|
-
slots: {};
|
|
8
|
-
exports?: {} | undefined;
|
|
9
|
-
bindings?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
export type BandeauProps = typeof __propDef.props;
|
|
12
|
-
export type BandeauEvents = typeof __propDef.events;
|
|
13
|
-
export type BandeauSlots = typeof __propDef.slots;
|
|
14
|
-
export default class Bandeau extends SvelteComponent<BandeauProps, BandeauEvents, BandeauSlots> {
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
1
|
+
declare const Bandeau: import("svelte").Component<Record<string, never>, {}, "">;
|
|
2
|
+
type Bandeau = ReturnType<typeof Bandeau>;
|
|
3
|
+
export default Bandeau;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<svelte:options customElement="lab-anssi-mes-services-cyber-lien-diagnostic-cyber" />
|
|
2
2
|
|
|
3
|
-
<script>import { srcAsset } from "../../assets/assets";
|
|
4
|
-
|
|
5
|
-
export let versExterne = false;
|
|
3
|
+
<script lang="ts">import { srcAsset } from "../../assets/assets";
|
|
4
|
+
let { lien, versExterne = false } = $props();
|
|
6
5
|
let target = versExterne ? "_blank" : "_self";
|
|
7
6
|
let rel = versExterne ? "noreferrer" : void 0;
|
|
8
7
|
let icone = versExterne ? "lien-externe" : "lien-interne";
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
lien: any;
|
|
5
|
-
versExterne?: boolean;
|
|
6
|
-
};
|
|
7
|
-
events: {
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {};
|
|
11
|
-
exports?: {} | undefined;
|
|
12
|
-
bindings?: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
export type LienDiagnosticCyberProps = typeof __propDef.props;
|
|
15
|
-
export type LienDiagnosticCyberEvents = typeof __propDef.events;
|
|
16
|
-
export type LienDiagnosticCyberSlots = typeof __propDef.slots;
|
|
17
|
-
export default class LienDiagnosticCyber extends SvelteComponent<LienDiagnosticCyberProps, LienDiagnosticCyberEvents, LienDiagnosticCyberSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
lien: any;
|
|
3
|
+
versExterne?: boolean;
|
|
18
4
|
}
|
|
19
|
-
|
|
5
|
+
declare const LienDiagnosticCyber: import("svelte").Component<Props, {}, "">;
|
|
6
|
+
type LienDiagnosticCyber = ReturnType<typeof LienDiagnosticCyber>;
|
|
7
|
+
export default LienDiagnosticCyber;
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
props: {
|
|
4
|
-
conforme?: boolean;
|
|
5
|
-
};
|
|
6
|
-
events: {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {};
|
|
10
|
-
exports?: {} | undefined;
|
|
11
|
-
bindings?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
export type NavigationPiedDePageProps = typeof __propDef.props;
|
|
14
|
-
export type NavigationPiedDePageEvents = typeof __propDef.events;
|
|
15
|
-
export type NavigationPiedDePageSlots = typeof __propDef.slots;
|
|
16
|
-
export default class NavigationPiedDePage extends SvelteComponent<NavigationPiedDePageProps, NavigationPiedDePageEvents, NavigationPiedDePageSlots> {
|
|
1
|
+
interface Props {
|
|
2
|
+
conforme?: boolean;
|
|
17
3
|
}
|
|
18
|
-
|
|
4
|
+
declare const NavigationPiedDePage: import("svelte").Component<Props, {}, "">;
|
|
5
|
+
type NavigationPiedDePage = ReturnType<typeof NavigationPiedDePage>;
|
|
6
|
+
export default NavigationPiedDePage;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// Ajoute un style d'outline personnalisé lors du focus clavier (`:focus-visible`).
|
|
2
|
+
@mixin set-focus() {
|
|
3
|
+
outline: {
|
|
4
|
+
color: #0a76f6;
|
|
5
|
+
offset: 2px;
|
|
6
|
+
style: solid;
|
|
7
|
+
width: 2px;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/// Réinitialise le style de base d'un bouton pour supprimer les styles par défaut du navigateur.
|
|
12
|
+
@mixin reset-bouton() {
|
|
13
|
+
background-color: transparent;
|
|
14
|
+
font-family: inherit;
|
|
15
|
+
appearance: none;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
6
11
|
};
|
|
7
|
-
|
|
8
|
-
exports?: {} | undefined;
|
|
9
|
-
bindings?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
export type AccueilMscProps = typeof __propDef.props;
|
|
12
|
-
export type AccueilMscEvents = typeof __propDef.events;
|
|
13
|
-
export type AccueilMscSlots = typeof __propDef.slots;
|
|
14
|
-
export default class AccueilMsc extends SvelteComponent<AccueilMscProps, AccueilMscEvents, AccueilMscSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
15
13
|
}
|
|
16
|
-
|
|
14
|
+
declare const AccueilMsc: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type AccueilMsc = InstanceType<typeof AccueilMsc>;
|
|
18
|
+
export default AccueilMsc;
|