Skip to content

Commit

Permalink
fix: Self-closing HTML tags
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokada committed Jun 21, 2024
1 parent 74d6601 commit 79c3838
Show file tree
Hide file tree
Showing 64 changed files with 101 additions and 101 deletions.
10 changes: 5 additions & 5 deletions src/lib/Section.svelte
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<script lang="ts">
import { twMerge } from 'tailwind-merge';
export let sectionClass: string = 'relative py-6 sm:py-10';
export let name: 'advancedTable'|'blog' | 'comment' |'cta' | 'ctawithimg' | 'contact' | 'content' | 'contentwithimg' | 'crudcreatedrawer' | 'crudcreateform' | 'crudreadsection' | 'default' | 'faq' | 'feature' | 'forgotpassword' | 'headingwithctabutton' | 'heroDefault' | 'heroVisual' | 'login' | 'logos' | 'maintenance' | 'newsletter' | 'none' | 'page500' | 'page404' | 'portfolio' | 'pricing' | 'register' | 'reset' | 'schedule' | 'social' | 'tableheader' | 'team' | 'testimonial' = 'default';
export let name: 'advancedTable' | 'blog' | 'comment' | 'cta' | 'ctawithimg' | 'contact' | 'content' | 'contentwithimg' | 'crudcreatedrawer' | 'crudcreateform' | 'crudreadsection' | 'default' | 'faq' | 'feature' | 'forgotpassword' | 'headingwithctabutton' | 'heroDefault' | 'heroVisual' | 'login' | 'logos' | 'maintenance' | 'newsletter' | 'none' | 'page500' | 'page404' | 'portfolio' | 'pricing' | 'register' | 'reset' | 'schedule' | 'social' | 'tableheader' | 'team' | 'testimonial' = 'default';
const sectionClasses = {
advancedTable:{
advancedTable: {
div: 'mx-auto max-w-screen-xl px-4 lg:px-12'
},
blog: {
div: 'py-8 px-4 mx-auto max-w-screen-xl lg:py-16 lg:px-6'
},
blogTemplate: {
div:'flex justify-between px-4 mx-auto max-w-screen-xl'
},
div: 'flex justify-between px-4 mx-auto max-w-screen-xl'
},
comment: {
div: 'max-w-2xl mx-auto px-4'
},
Expand Down Expand Up @@ -111,7 +111,7 @@

<section class={twMerge(sectionClass, $$props.classSection)}>
<div class={twMerge(sectionClasses[name]['div'], $$props.classDiv)}>
<slot />
<slot></slot>
</div>
</section>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/acount-recovery/ForgotPassword.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</script>

<div class={twMerge(divClass, $$props.class)}>
<slot />
<slot></slot>
</div>

<!--
Expand Down
2 changes: 1 addition & 1 deletion src/lib/acount-recovery/ForgotPasswordHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<a {href} class={twMerge(aClass, $$props.class)}>
<img class={twMerge(imgClass, $$props.classImg)} {src} {alt} />
<slot />
<slot></slot>
</a>

<!--
Expand Down
2 changes: 1 addition & 1 deletion src/lib/banner/Banner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</script>

<div {id} tabindex="-1" class={twMerge(divClass, $$props.class)}>
<slot />
<slot></slot>
</div>

<!--
Expand Down
2 changes: 1 addition & 1 deletion src/lib/blog-template/BlogTemplate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<p class="lead">{blog.lead}</p>
{/if}
{@html blog.content}
<slot />
<slot></slot>
</article>

<!--
Expand Down
4 changes: 2 additions & 2 deletions src/lib/blog/ArticleAuthor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

<div class={twMerge(authorDiv, $$props.class)}>
<div class={twMerge(authorImgDiv, $$props.classAuthorImgDiv)}>
<slot name="author" />
<slot name="author"></slot>
</div>
<slot />
<slot></slot>
</div>

<!--
Expand Down
4 changes: 2 additions & 2 deletions src/lib/blog/ArticleBody.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
</script>

{#if $$slots.h2}
<h2 class={twMerge(h2Class, $$props.class)}><slot name="h2" /></h2>
<h2 class={twMerge(h2Class, $$props.class)}><slot name="h2"></slot></h2>
{/if}
{#if $$slots.paragraph}
<slot name="paragraph" />
<slot name="paragraph"></slot>
{/if}

<!--
Expand Down
2 changes: 1 addition & 1 deletion src/lib/blog/ArticleHead.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</script>

<div class={twMerge(divClass, $$props.class)}>
<slot />
<slot></slot>
</div>

<!--
Expand Down
2 changes: 1 addition & 1 deletion src/lib/blog/ArticleWrapper.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</script>

<article class={twMerge(articleClass, $$props.class)}>
<slot />
<slot></slot>
</article>

<!--
Expand Down
2 changes: 1 addition & 1 deletion src/lib/blog/BlogBodyWrapper.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</script>

<div class={twMerge(divClass, $$props.class)}>
<slot />
<slot></slot>
</div>

<!--
Expand Down
4 changes: 2 additions & 2 deletions src/lib/blog/BlogHead.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<div class={twMerge(divClass, $$props.class)}>
{#if $$slots.h2}
<h2 class={twMerge(h2Class, $$props.classH2)}><slot name="h2" /></h2>
<h2 class={twMerge(h2Class, $$props.classH2)}><slot name="h2"></slot></h2>
{/if}
{#if $$slots.paragraph}
<slot name="paragraph" />
<slot name="paragraph"></slot>
{/if}
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/comment/Comment.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<h2 class="{h2Cls}">{title}</h2>
</div>

<slot />
<slot></slot>

<!--
@component
Expand Down
6 changes: 3 additions & 3 deletions src/lib/contact/Contact.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

{#if $$slots.h2}
<h2 class={twMerge(h2Class, $$props.class)}>
<slot name="h2" />
<slot name="h2"></slot>
</h2>
{/if}
{#if $$slots.paragraph}
<p class={twMerge(pClass, $$props.classP)}>
<slot name="paragraph" />
<slot name="paragraph"></slot>
</p>
{/if}
<slot />
<slot></slot>

<!--
@component
Expand Down
4 changes: 2 additions & 2 deletions src/lib/content/Content.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

<div class={twMerge(divClass, $$props.class)}>
{#if $$slots.h2}
<h2 class={twMerge(h2Class, $$props.classH2)}><slot name="h2" /></h2>
<h2 class={twMerge(h2Class, $$props.classH2)}><slot name="h2"></slot></h2>
{/if}
<slot />
<slot></slot>
</div>

<!--
Expand Down
6 changes: 3 additions & 3 deletions src/lib/content/ContentWithImage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

<div class={twMerge(divClass, $$props.class)}>
{#if $$slots.h2}
<h2 class={twMerge(h2Class, $$props.classH2)}><slot name="h2" /></h2>
<h2 class={twMerge(h2Class, $$props.classH2)}><slot name="h2"></slot></h2>
{/if}
<slot />
<slot></slot>
</div>
{#if $$slots.image}
<div class={twMerge(imgDivClass, $$props.classImgDiv)}>
<slot name="image" />
<slot name="image"></slot>
</div>
{/if}

Expand Down
4 changes: 2 additions & 2 deletions src/lib/cta/Cta.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
{/if}
<div class={twMerge(ctaClasses[ctatype]['divClass'], $$props.class)}>
{#if $$slots.h2}
<h2 class={twMerge(ctaClasses[ctatype]['h2Class'], $$props.classH2)}><slot name="h2" /></h2>
<h2 class={twMerge(ctaClasses[ctatype]['h2Class'], $$props.classH2)}><slot name="h2"></slot></h2>
{/if}
<slot />
<slot></slot>
</div>

<!--
Expand Down
2 changes: 1 addition & 1 deletion src/lib/faq/Faq.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</script>

<div class={twMerge(divClass, $$props.class)}>
<slot />
<slot></slot>
</div>

<!--
Expand Down
2 changes: 1 addition & 1 deletion src/lib/faq/FaqItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<QuestionCircleSolid size="sm" class="mr-2" />
<slot name="h3" />
</h3>
<slot />
<slot></slot>
</div>

<!--
Expand Down
2 changes: 1 addition & 1 deletion src/lib/feature/FeatureDefault.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</script>

<div class={twMerge(divClass, $$props.class)}>
<slot />
<slot></slot>
</div>

<!--
Expand Down
2 changes: 1 addition & 1 deletion src/lib/header/Navigation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<header>
<nav {...$$restProps} class={twMerge(navClass, $$props.class)}>
<div class={twMerge(divClass, $$props.divClass)}>
<slot />
<slot></slot>
</div>
</nav>
</header>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/hero/HeroBody.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<span class="font-semibold text-gray-400 uppercase"><slot name="head" /></span>
{/if}

<slot />
<slot></slot>
</div>

<!--
Expand Down
4 changes: 2 additions & 2 deletions src/lib/hero/HeroHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
</h1>
{/if}
{#if $$slots.h2}
<h2 class={twMerge(h2Class, $$props.classH2)}><slot name="h2" /></h2>
<h2 class={twMerge(h2Class, $$props.classH2)}><slot name="h2"></slot></h2>
{/if}
{#if $$slots.paragraph}
<p class={twMerge(pClass, $$props.classP)}>
<slot name="paragraph" />
</p>
{/if}
<slot />
<slot></slot>
</div>

<!--
Expand Down
2 changes: 1 addition & 1 deletion src/lib/hero/News.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</script>

<a {href} {...$$restProps} class={twMerge('inline-flex justify-between items-center py-1 px-1 pr-4 mb-7 text-sm text-gray-700 bg-gray-100 rounded-full dark:bg-gray-800 dark:text-white hover:bg-gray-200 dark:hover:bg-gray-700', classA)}>
<slot />
<slot></slot>
<svelte:component this={ChevronRightOutline} size="xs" class={twMerge('ml-2', $$props.class)} />
</a>

Expand Down
4 changes: 2 additions & 2 deletions src/lib/newsletter/Newsletter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<div class={twMerge(divClass, $$props.class)}>
{#if $$slots.h2}
<h2 class={twMerge(h2Class, $$props.classH2)}>
<slot name="h2" />
<slot name="h2"></slot>
</h2>
{/if}
<slot />
<slot></slot>
</div>

<!--
Expand Down
4 changes: 2 additions & 2 deletions src/lib/page404/Page404.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<div class={twMerge(divClass, $$props.class)}>
{#if $$slots.h1}
<h1 class={twMerge(h1Class, $$props.classH1)}><slot name="h1" /></h1>
<h1 class={twMerge(h1Class, $$props.classH1)}><slot name="h1"></slot></h1>
{/if}
{#if $$slots.paragraph}
<slot name="paragraph" />
<slot name="paragraph"></slot>
{/if}
</div>

Expand Down
4 changes: 2 additions & 2 deletions src/lib/page500/Page500.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<div class={twMerge(divClass, $$props.class)}>
{#if $$slots.h1}
<h1 class={twMerge(h1Class, $$props.classH1)}><slot name="h1" /></h1>
<h1 class={twMerge(h1Class, $$props.classH1)}><slot name="h1"></slot></h1>
{/if}
{#if $$slots.paragraph}
<slot name="paragraph" />
<slot name="paragraph"></slot>
{/if}
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/popup/Popup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="info-popup" tabindex="-1" class={twMerge(outerDivClass, $$props.class)}>
<div class={innerDivClass}>
<div class={contentDivClass}>
<slot />
<slot></slot>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/portfolio/Portfolio.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</div>

<div class={bodyDivClasss}>
<slot />
<slot></slot>
</div>

<!--
Expand Down
2 changes: 1 addition & 1 deletion src/lib/portfolio/PortfolioItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<path fill-rule="evenodd" d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg>
</a>
<slot />
<slot></slot>
</div>

<!--
Expand Down
6 changes: 3 additions & 3 deletions src/lib/pricing/PricingBodyHead.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
</script>

{#if $$slots.h3}
<h3 class={twMerge(h3Class, $$props.class)}><slot name="h3" /></h3>
<h3 class={twMerge(h3Class, $$props.class)}><slot name="h3"></slot></h3>
{/if}
{#if $$slots.paragraph}
<p class={twMerge(pClass, $$props.classP)}>
<slot name="paragraph" />
<slot name="paragraph"></slot>
</p>
{/if}
{#if $$slots.price}
<div class={twMerge(priceClass, $$props.classPrice)}>
<slot name="price" />
<slot name="price"></slot>
</div>
{/if}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/pricing/PricingCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</script>

<div class={twMerge(divClass, $$props.class)}>
<slot />
<slot></slot>
</div>

<!--
Expand Down
4 changes: 2 additions & 2 deletions src/lib/pricing/PricingHead.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
<div class={twMerge(divClass, $$props.class)}>
{#if $$slots.h2}
<h2 class={twMerge(h2Class, $$props.classH2)}>
<slot name="h2" />
<slot name="h2"></slot>
</h2>
{/if}
{#if $$slots.paragraph}
<p class={twMerge(pClass, $$props.classP)}>
<slot name="paragraph" />
<slot name="paragraph"></slot>
</p>
{/if}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/pricing/PricingItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<li class={liClass}>
<svelte:component this={CheckCircleSolid} size="sm" class={twMerge('ml-2', $$props.class)} />
<slot />
<slot></slot>
</li>

<!--
Expand Down
Loading

0 comments on commit 79c3838

Please sign in to comment.