This repository has been archived by the owner on Feb 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into 669-develope-rangeinput-range-selector-compo…
…nent
- Loading branch information
Showing
64 changed files
with
461 additions
and
332 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
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,14 @@ | ||
<script lang="ts"> | ||
import { El, type FieldsetProps } from '$lib/components' | ||
type $$Props = FieldsetProps | ||
/** | ||
* Set Css Prefix for the Fieldset | ||
*/ | ||
export let cssPrefix: $$Props['cssPrefix'] = 'fieldset' | ||
</script> | ||
|
||
<El {...$$restProps} {cssPrefix}> | ||
<slot /> | ||
</El> |
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,3 @@ | ||
import type { ElProps } from '$lib/components' | ||
|
||
export interface FieldsetProps extends Partial<ElProps> {} |
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,2 @@ | ||
export { default as Fieldset } from './Fieldset.svelte' | ||
export * from './Fieldset.types' |
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 |
---|---|---|
@@ -1,32 +1,14 @@ | ||
<script lang="ts"> | ||
import { get_current_component } from 'svelte/internal' | ||
import { Fieldset, FormField, type FormFieldsetProps } from '$lib/components' | ||
import { nanoid } from 'nanoid' | ||
import { Label } from '$lib/components' | ||
import { forwardEventsBuilder } from '$lib/directives' | ||
import { classname } from '$lib/utils' | ||
/** | ||
* Set id for HTML element | ||
*/ | ||
export let id: string = nanoid(10) | ||
/** | ||
* Set label for filedset | ||
*/ | ||
export let label: string | undefined = undefined | ||
const forwardEvents = forwardEventsBuilder(get_current_component()) | ||
$: classes = classname('form-fieldset', undefined, $$props.class) | ||
type $$Props = FormFieldsetProps | ||
export let cssPrefix: $$Props['cssPrefix'] = 'form-fieldset' | ||
</script> | ||
|
||
<div use:forwardEvents {...$$restProps} class={classes}> | ||
{#if label} | ||
<Label for={id}>{label}</Label> | ||
{/if} | ||
<fieldset> | ||
<FormField {...$$restProps} {cssPrefix}> | ||
<slot name="label" /> | ||
<Fieldset> | ||
<slot /> | ||
</fieldset> | ||
</div> | ||
</Fieldset> | ||
<slot name="hint" /> | ||
</FormField> |
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 was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<script lang="ts"> | ||
import { Alert, COLORS } from '@ubeac/svelte' | ||
import { Alert, El } from '@ubeac/svelte' | ||
</script> | ||
|
||
<Alert title="Wow! Everything worked!" color="success"> | ||
<div class="text-muted">Your account has been saved!</div> | ||
<El textMuted>Your account has been saved!</El> | ||
</Alert> | ||
<Alert title="Wow! Everything worked!" color="info"> | ||
<div class="text-muted">Here is something that you might like to know.</div> | ||
<El textMuted>Here is something that you might like to know.</El> | ||
</Alert> | ||
<Alert title="Wow! Everything worked!" color="warning"> | ||
<div class="text-muted">Sorry! There was a problem with your request.</div> | ||
<El textMuted>Sorry! There was a problem with your request.</El> | ||
</Alert> | ||
<Alert title="I'm so sorry…" color="danger"> | ||
<div class="text-muted">Your account has been deleted and can't be restored.</div> | ||
<El textMuted>Your account has been deleted and can't be restored.</El> | ||
</Alert> |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<script lang="ts"> | ||
import { Alert, COLORS } from '@ubeac/svelte' | ||
import { Alert, El } from '@ubeac/svelte' | ||
</script> | ||
|
||
<Alert dismissible title="Wow! Everything worked!" color="success"> | ||
<div class="text-muted">Your account has been saved!</div> | ||
<El textMuted>Your account has been saved!</El> | ||
</Alert> | ||
<Alert dismissible title="Wow! Everything worked!" color="info"> | ||
<div class="text-muted">Here is something that you might like to know.</div> | ||
<El textMuted>Here is something that you might like to know.</El> | ||
</Alert> | ||
<Alert dismissible title="Wow! Everything worked!" color="warning"> | ||
<div class="text-muted">Sorry! There was a problem with your request.</div> | ||
<El textMuted>Sorry! There was a problem with your request.</El> | ||
</Alert> | ||
<Alert dismissible title="I'm so sorry…" color="danger"> | ||
<div class="text-muted">Your account has been deleted and can't be restored.</div> | ||
<El textMuted>Your account has been deleted and can't be restored.</El> | ||
</Alert> |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<script lang="ts"> | ||
import { Alert } from '@ubeac/svelte' | ||
import { Alert, El } from '@ubeac/svelte' | ||
</script> | ||
|
||
<Alert title="Wow! Everything worked!" color="success" icon="check"> | ||
<div class="text-muted">Your account has been saved!</div> | ||
<El textMuted>Your account has been saved!</El> | ||
</Alert> | ||
<Alert title="Wow! Everything worked!" color="info" icon="info-circle"> | ||
<div class="text-muted">Here is something that you might like to know.</div> | ||
<El textMuted>Here is something that you might like to know.</El> | ||
</Alert> | ||
<Alert title="Wow! Everything worked!" color="warning" icon="alert-triangle"> | ||
<div class="text-muted">Sorry! There was a problem with your request.</div> | ||
<El textMuted>Sorry! There was a problem with your request.</El> | ||
</Alert> | ||
<Alert title="I'm so sorry…" color="danger" icon="alert-circle"> | ||
<div class="text-muted">Your account has been deleted and can't be restored.</div> | ||
<El textMuted>Your account has been deleted and can't be restored.</El> | ||
</Alert> |
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 |
---|---|---|
@@ -1,20 +1,22 @@ | ||
<script lang="ts"> | ||
import { Alert } from '@ubeac/svelte' | ||
import { Alert, El } from '@ubeac/svelte' | ||
</script> | ||
|
||
<Alert title="Wow! Everything worked!" color="success"> | ||
This is a info alert — <a class="alert-link" href="/"> check it out!</a> | ||
</Alert> | ||
<Alert title="Wow! Everything worked!" color="info"> | ||
<svelte:fragment slot="title" | ||
>This is a info alert — <a class="alert-link" href="/"> check it out!</a></svelte:fragment> | ||
<div class="text-muted">Here is something that you might like to know.</div> | ||
<svelte:fragment slot="title"> | ||
This is a info alert — <a class="alert-link" href="/"> check it out!</a> | ||
</svelte:fragment> | ||
<El textMuted>Here is something that you might like to know.</El> | ||
</Alert> | ||
<Alert title="Wow! Everything worked!" color="warning"> | ||
This is a info alert — <a class="alert-link" href="/"> check it out!</a> | ||
</Alert> | ||
<Alert title="I'm so sorry…" color="danger"> | ||
<svelte:fragment slot="title" | ||
>This is a info alert — <a class="alert-link" href="/"> check it out!</a></svelte:fragment> | ||
<div class="text-muted">Your account has been deleted and can't be restored.</div> | ||
<svelte:fragment slot="title"> | ||
This is a info alert — <a class="alert-link" href="/"> check it out!</a> | ||
</svelte:fragment> | ||
<El textMuted>Your account has been deleted and can't be restored.</El> | ||
</Alert> |
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,14 @@ | ||
<script> | ||
import { Doc, Preview } from '$lib/components' | ||
import FieldsetDefault from './FieldsetDefault.svelte' | ||
</script> | ||
|
||
<h1>Fieldset</h1> | ||
<p> | ||
Group parts of your form to make it well-structured and clearer for users, using the <code>fieldset</code> element. | ||
</p> | ||
|
||
<Doc title="Defaults" /> | ||
<Preview src="./FieldsetDefault.svelte"> | ||
<FieldsetDefault /> | ||
</Preview> |
Oops, something went wrong.