Skip to content
Snippets Groups Projects
Commit a996d5fa authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Don't use 593348props.class because it is incompatible with 'npx sv migrate svelte-5'

parent 52060138
Branches
Tags
1 merge request!273Passage à Svelte 5
......@@ -2,6 +2,8 @@
import { afterUpdate } from "svelte"
export let as: string
let klass = ""
export { klass as class }
export let lines: number
export let text = "lire plus"
......@@ -30,7 +32,7 @@
this={as}
bind:this={element}
{...$$restProps}
class="relative {$$props.class ?? ''}"
class="relative {klass ?? ''}"
>
<slot />
{#if truncated}
......
......@@ -2,6 +2,8 @@
import { clickOutside } from "$lib/click_outside"
export let label: string
let klass = ""
export { klass as class }
export let open: boolean = false
export let options: { label: string; shortLabel: string; value: string }[]
export let value: string | undefined = undefined
......@@ -18,7 +20,7 @@
)
</script>
<div class="relative {$$props.class ?? ''}">
<div class="relative {klass ?? ''}">
<button
bind:this={chipButton}
class="relative flex items-center gap-1 overflow-hidden rounded-full bg-le-bleu-light px-3 py-1 transition after:absolute after:inset-0 after:rounded-full after:transition hover:after:bg-black/5 active:after:bg-black/10"
......
......@@ -10,6 +10,8 @@
export let allowFlip = true
export let arrowClass = ""
export let arrowBorderWidth = "1px"
let klass = ""
export { klass as class }
export let classes = ""
export let initialPlacement: Placement = "bottom"
export let role = "presentation"
......@@ -82,7 +84,7 @@
<slot />
</svelte:element>
<div
class="absolute z-50 {widthClass} {$$props.class ?? ''}"
class="absolute z-50 {widthClass} {klass ?? ''}"
id="toggletip-{uuid}"
bind:this={toggletipElement}
role="status"
......
......@@ -10,6 +10,8 @@
export let allowFlip = true
export let arrowClass = ""
export let arrowBorderWidth = "1px"
let klass = ""
export { klass as class }
export let classes = ""
export let hoverable = true
export let initialPlacement: Placement = "bottom"
......@@ -88,7 +90,7 @@
<slot />
</svelte:element>
<div
class="absolute z-50 {widthClass} {$$props.class ?? ''}"
class="absolute z-50 {widthClass} {klass ?? ''}"
id="tooltip-{uuid}"
bind:this={tooltipElement}
on:mouseenter={() => (mouseInTooltip = true)}
......
<script lang="ts">
import CopyClipboard from "$lib/components/CopyClipboard.svelte"
let klass = ""
export { klass as class }
export let id: string
export let tag = "h2"
......@@ -31,7 +33,7 @@
this={tag}
{...$$restProps}
{id}
class="group relative {$$props.class ?? ''}"
class="group relative {klass ?? ''}"
>
<button class="absolute -ml-8 mt-1 h-6" on:click={copyUrl}>
<iconify-icon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment