@skeletonlabs/skeleton 0.99.5 → 0.124.2
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 +0 -1
- package/actions/Filters/filter.js +6 -9
- package/components/Accordion/Accordion.svelte +30 -0
- package/components/Accordion/Accordion.svelte.d.ts +37 -0
- package/components/Accordion/AccordionItem.svelte +75 -39
- package/components/Accordion/AccordionItem.svelte.d.ts +20 -6
- package/components/AppBar/AppBar.svelte +36 -21
- package/components/AppBar/AppBar.svelte.d.ts +20 -1
- package/components/AppRail/AppRail.svelte +3 -2
- package/components/AppRail/AppRail.svelte.d.ts +13 -1
- package/components/AppRail/AppRailTile.svelte +10 -7
- package/components/AppRail/AppRailTile.svelte.d.ts +10 -4
- package/components/AppShell/AppShell.svelte +3 -2
- package/components/AppShell/AppShell.svelte.d.ts +11 -0
- package/components/Avatar/Avatar.svelte +9 -9
- package/components/Avatar/Avatar.svelte.d.ts +16 -5
- package/components/ConicGradient/ConicGradient.svelte +18 -8
- package/components/ConicGradient/ConicGradient.svelte.d.ts +11 -0
- package/components/ConicGradient/settings.d.ts +2 -4
- package/components/ConicGradient/settings.js +2 -2
- package/components/FileButton/FileButton.svelte +8 -6
- package/components/FileButton/FileButton.svelte.d.ts +3 -1
- package/components/FileDropzone/FileDropzone.svelte +43 -63
- package/components/FileDropzone/FileDropzone.svelte.d.ts +24 -8
- package/components/InputChip/InputChip.svelte +97 -52
- package/components/InputChip/InputChip.svelte.d.ts +28 -4
- package/components/ListBox/ListBox.svelte +13 -29
- package/components/ListBox/ListBox.svelte.d.ts +11 -10
- package/components/ListBox/ListBoxItem.svelte +60 -50
- package/components/ListBox/ListBoxItem.svelte.d.ts +11 -7
- package/components/Paginator/Paginator.svelte +5 -5
- package/components/Paginator/Paginator.svelte.d.ts +13 -2
- package/components/ProgressBar/ProgressBar.svelte +17 -24
- package/components/ProgressBar/ProgressBar.svelte.d.ts +9 -1
- package/components/ProgressRadial/ProgressRadial.svelte +6 -8
- package/components/ProgressRadial/ProgressRadial.svelte.d.ts +9 -2
- package/components/Radio/RadioGroup.svelte +13 -16
- package/components/Radio/RadioGroup.svelte.d.ts +15 -7
- package/components/Radio/RadioItem.svelte +24 -20
- package/components/Radio/RadioItem.svelte.d.ts +10 -6
- package/components/RangeSlider/RangeSlider.svelte +9 -17
- package/components/RangeSlider/RangeSlider.svelte.d.ts +11 -2
- package/components/SlideToggle/SlideToggle.svelte +10 -9
- package/components/SlideToggle/SlideToggle.svelte.d.ts +11 -3
- package/components/Stepper/Step.svelte +64 -107
- package/components/Stepper/Step.svelte.d.ts +17 -18
- package/components/Stepper/Stepper.svelte +58 -37
- package/components/Stepper/Stepper.svelte.d.ts +28 -14
- package/components/Tab/Tab.svelte +40 -38
- package/components/Tab/Tab.svelte.d.ts +19 -14
- package/components/Tab/TabGroup.svelte +28 -41
- package/components/Tab/TabGroup.svelte.d.ts +25 -9
- package/components/Table/Table.svelte.d.ts +9 -0
- package/components/TableOfContents/TableOfContents.svelte +3 -2
- package/components/TableOfContents/TableOfContents.svelte.d.ts +12 -0
- package/index.d.ts +2 -1
- package/index.js +1 -1
- package/package.json +15 -6
- package/styles/all.css +0 -3
- package/styles/elements/breadcrumbs.css +3 -4
- package/styles/elements/buttons.css +2 -4
- package/styles/elements/forms.css +269 -0
- package/styles/elements/lists.css +1 -1
- package/styles/elements.css +1 -0
- package/styles/typography.css +2 -2
- package/styles/variants.css +7 -7
- package/tailwind/generated/intellisense-classes.cjs +1 -1
- package/tailwind/generated/intellisense-classes.d.cts +270 -213
- package/utilities/CodeBlock/CodeBlock.svelte +2 -0
- package/utilities/CodeBlock/CodeBlock.svelte.d.ts +8 -0
- package/utilities/Drawer/Drawer.svelte.d.ts +13 -0
- package/utilities/LightSwitch/LightSwitch.svelte.d.ts +2 -0
- package/utilities/Modal/Modal.svelte +1 -1
- package/utilities/Modal/Modal.svelte.d.ts +18 -0
- package/utilities/Modal/examples/ModalExampleForm.svelte +6 -6
- package/utilities/Modal/examples/ModalExampleList.svelte +8 -9
- package/utilities/Toast/Toast.svelte +1 -1
- package/utilities/Toast/Toast.svelte.d.ts +12 -0
- package/components/Accordion/AccordionGroup.svelte +0 -33
- package/components/Accordion/AccordionGroup.svelte.d.ts +0 -24
- package/components/SvgIcon/SvgIcon.svelte +0 -33
- package/components/SvgIcon/SvgIcon.svelte.d.ts +0 -26
- package/components/SvgIcon/icons.d.ts +0 -1
- package/components/SvgIcon/icons.js +0 -25
- package/styles/forms.css +0 -195
|
@@ -2,15 +2,23 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
+
/** Sets a language alias for Highlight.js syntax highlighting.*/
|
|
5
6
|
language?: string | undefined;
|
|
7
|
+
/** Provide the code to render. Be mindful to escape as needed!*/
|
|
6
8
|
code?: string | undefined;
|
|
9
|
+
/** Provided classes to set the background color.*/
|
|
7
10
|
background?: string | undefined;
|
|
11
|
+
/** Provided classes to set the text size.*/
|
|
8
12
|
text?: string | undefined;
|
|
13
|
+
/** Provided classes to set the text color.*/
|
|
9
14
|
color?: string | undefined;
|
|
15
|
+
/** Provided classes to set the border radius.*/
|
|
10
16
|
rounded?: string | undefined;
|
|
17
|
+
/** Provided classes to set the button styles.*/
|
|
11
18
|
buttonCopy?: string | undefined;
|
|
12
19
|
};
|
|
13
20
|
events: {
|
|
21
|
+
/** {{}} copy - Fires when the Copy button is pressed.*/
|
|
14
22
|
copy: CustomEvent<any>;
|
|
15
23
|
} & {
|
|
16
24
|
[evt: string]: CustomEvent<any>;
|
|
@@ -2,21 +2,34 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
+
/** Set the anchor position.*/
|
|
5
6
|
position?: "left" | "top" | "right" | "bottom" | undefined;
|
|
7
|
+
/** Define the Svelte transition animation duration.*/
|
|
6
8
|
duration?: number | undefined;
|
|
9
|
+
/** Backdrop - Provide classes to set the backdrop background color*/
|
|
7
10
|
bgBackdrop?: string | undefined;
|
|
11
|
+
/** Backdrop - Provide classes to set the blur style.*/
|
|
8
12
|
blur?: string | undefined;
|
|
13
|
+
/** Drawer - Provide classes to set the drawer background color.*/
|
|
9
14
|
bgDrawer?: string | undefined;
|
|
15
|
+
/** Drawer - Provide classes to set border color.*/
|
|
10
16
|
border?: string | undefined;
|
|
17
|
+
/** Drawer - Provide classes to set border radius.*/
|
|
11
18
|
rounded?: string | undefined;
|
|
19
|
+
/** Drawer - Provide classes to override the width.*/
|
|
12
20
|
width?: string | undefined;
|
|
21
|
+
/** Drawer - Provide classes to override the height.*/
|
|
13
22
|
height?: string | undefined;
|
|
23
|
+
/** Drawer - Provide classes to set margins.*/
|
|
14
24
|
margin?: string | undefined;
|
|
25
|
+
/** Provide an ID of the element labeling the drawer.*/
|
|
15
26
|
labelledby?: string | undefined;
|
|
27
|
+
/** Provide an ID of the element describing the drawer.*/
|
|
16
28
|
describedby?: string | undefined;
|
|
17
29
|
};
|
|
18
30
|
events: {
|
|
19
31
|
keypress: KeyboardEvent;
|
|
32
|
+
/** {{ event }} backdrop - Fires on backdrop interaction.*/
|
|
20
33
|
backdrop: CustomEvent<any>;
|
|
21
34
|
} & {
|
|
22
35
|
[evt: string]: CustomEvent<any>;
|
|
@@ -6,7 +6,9 @@ declare const __propDef: {
|
|
|
6
6
|
events: {
|
|
7
7
|
keyup: KeyboardEvent;
|
|
8
8
|
keypress: KeyboardEvent;
|
|
9
|
+
/** {{ event }} click - Fires when the component is clicked.*/
|
|
9
10
|
click: CustomEvent<any>;
|
|
11
|
+
/** {{ event }} keydown - Fires when the component has keydown event.*/
|
|
10
12
|
keydown: CustomEvent<any>;
|
|
11
13
|
} & {
|
|
12
14
|
[evt: string]: CustomEvent<any>;
|
|
@@ -141,7 +141,7 @@ $:
|
|
|
141
141
|
</footer>
|
|
142
142
|
{:else if $modalStore[0].type === 'prompt'}
|
|
143
143
|
<!-- Template: Prompt -->
|
|
144
|
-
<input class="modal-prompt-input" type="text" bind:value={promptValue} />
|
|
144
|
+
<input class="modal-prompt-input input" type="text" bind:value={promptValue} />
|
|
145
145
|
<!-- prettier-ignore -->
|
|
146
146
|
<footer class="modal-footer {regionFooter}">
|
|
147
147
|
<button class="btn {buttonNeutral}" on:click={onClose}>{buttonTextCancel}</button>
|
|
@@ -2,25 +2,43 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
+
/** The open/close animation duration. Set '0' (zero) to disable.*/
|
|
5
6
|
duration?: number | undefined;
|
|
7
|
+
/** Provide classes to style the modal background.*/
|
|
6
8
|
background?: string | undefined;
|
|
9
|
+
/** Provide classes to style the modal width.*/
|
|
7
10
|
width?: string | undefined;
|
|
11
|
+
/** Provide classes to style the modal.*/
|
|
8
12
|
height?: string | undefined;
|
|
13
|
+
/** Provide classes to style the modal padding.*/
|
|
9
14
|
padding?: string | undefined;
|
|
15
|
+
/** Provide classes to style the modal spacing.*/
|
|
10
16
|
spacing?: string | undefined;
|
|
17
|
+
/** Provide classes to style the modal border radius.*/
|
|
11
18
|
rounded?: string | undefined;
|
|
19
|
+
/** Provide classes to style modal box shadow.*/
|
|
12
20
|
shadow?: string | undefined;
|
|
21
|
+
/** Provide classes for neutral buttons, such as Cancel.*/
|
|
13
22
|
buttonNeutral?: string | undefined;
|
|
23
|
+
/** Provide classes for positive actions, such as Confirm or Submit.*/
|
|
14
24
|
buttonPositive?: string | undefined;
|
|
25
|
+
/** Override the text for the Cancel button.*/
|
|
15
26
|
buttonTextCancel?: string | undefined;
|
|
27
|
+
/** Override the text for the Confirm button.*/
|
|
16
28
|
buttonTextConfirm?: string | undefined;
|
|
29
|
+
/** Override the text for the Submit button.*/
|
|
17
30
|
buttonTextSubmit?: string | undefined;
|
|
31
|
+
/** Provide classes to style the backdrop.*/
|
|
18
32
|
regionBackdrop?: string | undefined;
|
|
33
|
+
/** Provide arbitrary classes to modal header region.*/
|
|
19
34
|
regionHeader?: string | undefined;
|
|
35
|
+
/** Provide arbitrary classes to modal body region.*/
|
|
20
36
|
regionBody?: string | undefined;
|
|
37
|
+
/** Provide arbitrary classes to modal footer region.*/
|
|
21
38
|
regionFooter?: string | undefined;
|
|
22
39
|
};
|
|
23
40
|
events: {
|
|
41
|
+
/** {{ event }} backdrop - Fires on backdrop interaction.*/
|
|
24
42
|
backdrop: CustomEvent<any>;
|
|
25
43
|
} & {
|
|
26
44
|
[evt: string]: CustomEvent<any>;
|
|
@@ -20,17 +20,17 @@ const cForm = "border border-surface-500 p-4 space-y-4 rounded-container-token";
|
|
|
20
20
|
<!-- Enable for debugging: -->
|
|
21
21
|
<!-- <pre>{JSON.stringify(formData, null, 2)}</pre> -->
|
|
22
22
|
<form class="modal-form {cForm}">
|
|
23
|
-
<label class="
|
|
23
|
+
<label class="label">
|
|
24
24
|
<span>Name</span>
|
|
25
|
-
<input type="text" bind:value={formData.name} placeholder="Enter name..." />
|
|
25
|
+
<input class="input" type="text" bind:value={formData.name} placeholder="Enter name..." />
|
|
26
26
|
</label>
|
|
27
|
-
<label class="
|
|
27
|
+
<label class="label">
|
|
28
28
|
<span>Phone Number</span>
|
|
29
|
-
<input type="tel" bind:value={formData.tel} placeholder="Enter phone..." />
|
|
29
|
+
<input class="input" type="tel" bind:value={formData.tel} placeholder="Enter phone..." />
|
|
30
30
|
</label>
|
|
31
|
-
<label class="
|
|
31
|
+
<label class="label">
|
|
32
32
|
<span>Email</span>
|
|
33
|
-
<input type="email" bind:value={formData.email} placeholder="Enter email address..." />
|
|
33
|
+
<input class="input" type="email" bind:value={formData.email} placeholder="Enter email address..." />
|
|
34
34
|
</label>
|
|
35
35
|
</form>
|
|
36
36
|
<!-- prettier-ignore -->
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
import { ListBox, ListBoxItem, modalStore } from "../../../index.ts";
|
|
1
|
+
<script>import { ListBox, ListBoxItem, modalStore } from "../../../index.ts";
|
|
3
2
|
export let parent;
|
|
4
|
-
|
|
3
|
+
let flavor = "chocolate";
|
|
5
4
|
function onFormSubmit() {
|
|
6
5
|
if ($modalStore[0].response)
|
|
7
|
-
$modalStore[0].response(
|
|
6
|
+
$modalStore[0].response(flavor);
|
|
8
7
|
modalStore.close();
|
|
9
8
|
}
|
|
10
9
|
const cBase = "space-y-4";
|
|
@@ -13,11 +12,11 @@ const cBase = "space-y-4";
|
|
|
13
12
|
<!-- @component This example creates a simple form modal. -->
|
|
14
13
|
|
|
15
14
|
<div class="modal-example-form {cBase}">
|
|
16
|
-
<ListBox
|
|
17
|
-
<ListBoxItem value="chocolate">Chocolate</ListBoxItem>
|
|
18
|
-
<ListBoxItem value="vanilla">Vanilla</ListBoxItem>
|
|
19
|
-
<ListBoxItem value="strawberry">Strawberry</ListBoxItem>
|
|
20
|
-
<ListBoxItem value="peach">Peach</ListBoxItem>
|
|
15
|
+
<ListBox class="border border-surface-500 p-4 rounded-container-token">
|
|
16
|
+
<ListBoxItem bind:group={flavor} name="chocolate" value="chocolate">Chocolate</ListBoxItem>
|
|
17
|
+
<ListBoxItem bind:group={flavor} name="vanilla" value="vanilla">Vanilla</ListBoxItem>
|
|
18
|
+
<ListBoxItem bind:group={flavor} name="strawberry" value="strawberry">Strawberry</ListBoxItem>
|
|
19
|
+
<ListBoxItem bind:group={flavor} name="peach" value="peach">Peach</ListBoxItem>
|
|
21
20
|
</ListBox>
|
|
22
21
|
<!-- prettier-ignore -->
|
|
23
22
|
<footer class="modal-footer {parent.regionFooter}">
|
|
@@ -78,7 +78,7 @@ $:
|
|
|
78
78
|
<!-- List -->
|
|
79
79
|
<div class="snackbar {classesSnackbar}" transition:fly={{ x: animAxis.x, y: animAxis.y, duration }}>
|
|
80
80
|
{#each $toastStore as t, i}
|
|
81
|
-
{#if i < max
|
|
81
|
+
{#if i < max}
|
|
82
82
|
<!-- Toast -->
|
|
83
83
|
<div class="toast {classesBase} {t.classes}" role="alert" aria-live="polite" data-testid="toast">
|
|
84
84
|
<div class="text-base">{@html t.message}</div>
|
|
@@ -2,17 +2,29 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
+
/** Set the toast position.*/
|
|
5
6
|
position?: string | undefined;
|
|
7
|
+
/** Maximum toasts that can show at once.*/
|
|
6
8
|
max?: number | undefined;
|
|
9
|
+
/** The duration of the fly in/out animation.*/
|
|
7
10
|
duration?: number | undefined;
|
|
11
|
+
/** Provide classes to set the background color.*/
|
|
8
12
|
background?: string | undefined;
|
|
13
|
+
/** Provide classes to set width styles.*/
|
|
9
14
|
width?: string | undefined;
|
|
15
|
+
/** Provide classes to set the text color.*/
|
|
10
16
|
color?: string | undefined;
|
|
17
|
+
/** Provide classes to set the padding.*/
|
|
11
18
|
padding?: string | undefined;
|
|
19
|
+
/** Provide classes to set the horizontal spacing.*/
|
|
12
20
|
spacing?: string | undefined;
|
|
21
|
+
/** Provide classes to set the border radius styles.*/
|
|
13
22
|
rounded?: string | undefined;
|
|
23
|
+
/** Provide classes to set the border box shadow.*/
|
|
14
24
|
shadow?: string | undefined;
|
|
25
|
+
/** Provide action button styles.*/
|
|
15
26
|
buttonAction?: string | undefined;
|
|
27
|
+
/** Provide dismiss button styles.*/
|
|
16
28
|
buttonDismiss?: string | undefined;
|
|
17
29
|
};
|
|
18
30
|
events: {
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<script>import { onMount, setContext } from "svelte";
|
|
2
|
-
export let collapse = true;
|
|
3
|
-
export let hover = "bg-primary-hover-token";
|
|
4
|
-
export let spacing = "space-y-4";
|
|
5
|
-
export let padding = "px-4 py-2";
|
|
6
|
-
export let rounded = "rounded-token";
|
|
7
|
-
setContext("hover", hover);
|
|
8
|
-
setContext("spacing", spacing);
|
|
9
|
-
setContext("padding", padding);
|
|
10
|
-
setContext("rounded", rounded);
|
|
11
|
-
const cBase = "rounded-container-token";
|
|
12
|
-
let elemAccordian;
|
|
13
|
-
onMount(() => {
|
|
14
|
-
if (collapse) {
|
|
15
|
-
const details = Array.from(elemAccordian.querySelectorAll("details"));
|
|
16
|
-
details.forEach((detail) => {
|
|
17
|
-
detail.addEventListener("click", (e) => {
|
|
18
|
-
const active = details.find((d) => d.open);
|
|
19
|
-
if (!e.currentTarget.open && active)
|
|
20
|
-
active.open = false;
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
$:
|
|
26
|
-
classesBase = `${cBase} ${spacing} ${$$props.class ?? ""}`;
|
|
27
|
-
</script>
|
|
28
|
-
|
|
29
|
-
<!-- @component The Accordion parent element. -->
|
|
30
|
-
|
|
31
|
-
<div bind:this={elemAccordian} class="accordion-group {classesBase}" data-testid="accordion-group">
|
|
32
|
-
<slot />
|
|
33
|
-
</div>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
collapse?: boolean | undefined;
|
|
6
|
-
hover?: string | undefined;
|
|
7
|
-
spacing?: string | undefined;
|
|
8
|
-
padding?: string | undefined;
|
|
9
|
-
rounded?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
events: {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
};
|
|
14
|
-
slots: {
|
|
15
|
-
default: {};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export type AccordionGroupProps = typeof __propDef.props;
|
|
19
|
-
export type AccordionGroupEvents = typeof __propDef.events;
|
|
20
|
-
export type AccordionGroupSlots = typeof __propDef.slots;
|
|
21
|
-
/** The Accordion parent element. */
|
|
22
|
-
export default class AccordionGroup extends SvelteComponentTyped<AccordionGroupProps, AccordionGroupEvents, AccordionGroupSlots> {
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<script context="module">
|
|
2
|
-
import { icons } from './icons';
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<script>export let name = "placeholder";
|
|
6
|
-
export let x = "0px";
|
|
7
|
-
export let y = "0px";
|
|
8
|
-
export let viewBox = icons[name].viewBox || "0 0 512 512";
|
|
9
|
-
export let fill = "fill-current";
|
|
10
|
-
export let width = "w-5";
|
|
11
|
-
export let height = "h-5";
|
|
12
|
-
export let title = "";
|
|
13
|
-
const cBase = "inline-block outline-none";
|
|
14
|
-
$:
|
|
15
|
-
classesBase = `${cBase} ${fill} ${width} ${height}`;
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<!-- prettier-ignore -->
|
|
19
|
-
<svg
|
|
20
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
21
|
-
{x} {y}
|
|
22
|
-
{viewBox}
|
|
23
|
-
class="svg-icon {classesBase} {$$props.class ?? ''}"
|
|
24
|
-
focusable="false"
|
|
25
|
-
data-testid="svg-icon"
|
|
26
|
-
>
|
|
27
|
-
{#if title}<title>{title}</title>{/if}
|
|
28
|
-
{#if $$slots.default}
|
|
29
|
-
<slot />
|
|
30
|
-
{:else}
|
|
31
|
-
<path d={icons[name].path} />
|
|
32
|
-
{/if}
|
|
33
|
-
</svg>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
name?: string | undefined;
|
|
6
|
-
x?: string | undefined;
|
|
7
|
-
y?: string | undefined;
|
|
8
|
-
viewBox?: string | undefined;
|
|
9
|
-
fill?: string | undefined;
|
|
10
|
-
width?: string | undefined;
|
|
11
|
-
height?: string | undefined;
|
|
12
|
-
title?: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
events: {
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
};
|
|
17
|
-
slots: {
|
|
18
|
-
default: {};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export type SvgIconProps = typeof __propDef.props;
|
|
22
|
-
export type SvgIconEvents = typeof __propDef.events;
|
|
23
|
-
export type SvgIconSlots = typeof __propDef.slots;
|
|
24
|
-
export default class SvgIcon extends SvelteComponentTyped<SvgIconProps, SvgIconEvents, SvgIconSlots> {
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const icons: any;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Font Awesome @fontawesome - https://fontawesome.com
|
|
3
|
-
License - https://fontawesome.com/license (Commercial License)
|
|
4
|
-
Copyright 2022 Fonticons, Inc
|
|
5
|
-
*/
|
|
6
|
-
export const icons = {
|
|
7
|
-
// Default Placeholder
|
|
8
|
-
// Source: https://fontawesome.com/icons/image?s=solid
|
|
9
|
-
placeholder: {
|
|
10
|
-
path: 'M0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z'
|
|
11
|
-
},
|
|
12
|
-
// ----------- Brand Logos -----------
|
|
13
|
-
// Svelte
|
|
14
|
-
// Source: https://iconape.com/svelte-logo-by-gengns-logo-icon-svg-png.html
|
|
15
|
-
svelte: {
|
|
16
|
-
viewBox: `0 0 513.978 597.129`,
|
|
17
|
-
path: 'M179.547 545.729c-63.418-10.114-114.409-57.647-126.738-118.147-6.814-33.436-1.056-69.7 15.357-96.718l3.628-5.972-4.271-9.908c-24.281-56.32-9.106-121.877 36.892-159.376 10.666-8.695 132.771-86.226 145.148-92.162 21.395-10.261 41.161-14.203 66.834-13.328 18.527.631 27.235 2.147 43.648 7.597 51.619 17.139 90.63 60.248 101.124 111.747 6.814 33.436 1.056 69.7-15.357 96.719l-3.628 5.972 4.272 9.907c24.28 56.32 9.105 121.877-36.893 159.376-10.665 8.696-132.77 86.227-145.148 92.163-12.055 5.781-25.266 9.867-39.22 12.13-11.505 1.867-33.943 1.866-45.648 0zm40.107-56.452c8.462-1.864 18.23-5.676 24.437-9.538 35.719-22.223 123.574-78.887 127.592-82.293 12.127-10.28 21.731-25.243 26.045-40.577 3.4-12.09 3.396-31.504-.01-43.495-13.838-48.709-63.665-77.61-112.356-65.171-10.868 2.776-18.714 6.93-45.78 24.232-13.075 8.359-25.352 15.857-27.283 16.664-4.16 1.738-13.889 1.925-18.096.347-17.67-6.628-23.849-28.21-11.645-40.68 5.378-5.494 122.039-79.894 127.75-81.47 9.037-2.496 20.352 1.013 26.744 8.293 4.882 5.56 6.727 10.52 6.695 17.99l-.029 6.446 4.904 1.306c12.307 3.278 34.058 14.246 45.35 22.869 2.72 2.076 5.285 3.775 5.7 3.775 1.288 0 5.255-14.95 6.4-24.12 3.407-27.296-9.063-57.132-31.933-76.408-26.294-22.162-62.304-28-94.067-15.252-6.577 2.64-.2-1.29-74.004 45.59-55.791 35.438-59.99 38.319-68.987 47.332-10.858 10.879-16.752 20.816-20.829 35.118-3.414 11.98-3.41 31.399.01 43.435 13.837 48.71 63.663 77.611 112.355 65.171 10.824-2.765 18.631-6.896 45.876-24.271 13.128-8.373 25.406-15.869 27.283-16.657 4.071-1.71 13.823-1.88 18-.314 17.67 6.628 23.848 28.21 11.644 40.679-5.378 5.494-122.038 79.894-127.749 81.47-9.037 2.496-20.352-1.013-26.744-8.293-4.883-5.56-6.728-10.52-6.695-17.99l.028-6.446-4.904-1.306c-12.306-3.278-34.057-14.246-45.35-22.868-2.72-2.077-5.284-3.776-5.699-3.776-1.288 0-5.255 14.95-6.4 24.121-4.265 34.178 16.128 70.808 48.833 87.712 20.186 10.434 40.992 13.203 62.915 8.375z'
|
|
18
|
-
},
|
|
19
|
-
// Tailwind
|
|
20
|
-
// Source: https://worldvectorlogo.com/logo/tailwind-css-2
|
|
21
|
-
tailwind: {
|
|
22
|
-
viewBox: `0.15 0.13 799.7 479.69`,
|
|
23
|
-
path: 'M400 .13c-106.63 0-173.27 53.3-199.93 159.89 39.99-53.3 86.64-73.28 139.95-59.96 30.42 7.6 52.16 29.67 76.23 54.09 39.2 39.78 84.57 85.82 183.68 85.82 106.62 0 173.27-53.3 199.92-159.9-39.98 53.3-86.63 73.29-139.95 59.97-30.41-7.6-52.15-29.67-76.22-54.09C544.48 46.17 499.1.13 400 .13zM200.07 239.97c-106.62 0-173.27 53.3-199.92 159.9 39.98-53.3 86.63-73.29 139.95-59.96 30.41 7.61 52.15 29.67 76.22 54.08 39.2 39.78 84.58 85.83 183.68 85.83 106.63 0 173.27-53.3 199.93-159.9-39.99 53.3-86.64 73.29-139.95 59.96-30.42-7.59-52.16-29.67-76.23-54.08-39.2-39.78-84.57-85.83-183.68-85.83z'
|
|
24
|
-
}
|
|
25
|
-
};
|
package/styles/forms.css
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
/* Stylesheet: forms.css */
|
|
2
|
-
|
|
3
|
-
@layer base {
|
|
4
|
-
fieldset {
|
|
5
|
-
@apply block;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/* === Labels === */
|
|
9
|
-
|
|
10
|
-
legend {
|
|
11
|
-
@apply font-heading-token text-xl md:text-2xl;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
label {
|
|
15
|
-
@apply block overflow-visible;
|
|
16
|
-
}
|
|
17
|
-
.input-label {
|
|
18
|
-
@apply space-y-2;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/* === Inputs === */
|
|
22
|
-
|
|
23
|
-
.input-cell {
|
|
24
|
-
@apply w-full rounded-token;
|
|
25
|
-
/* Background */
|
|
26
|
-
@apply bg-surface-200-700-token focus:brightness-105 hover:brightness-105;
|
|
27
|
-
/* Border */
|
|
28
|
-
@apply ring-0 border-token border-surface-400-500-token focus:border-primary-500;
|
|
29
|
-
/* Transition */
|
|
30
|
-
@apply transition;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* Input Groups */
|
|
34
|
-
.input-group {
|
|
35
|
-
@apply input-cell;
|
|
36
|
-
@apply overflow-hidden grid focus-within:border-primary-500;
|
|
37
|
-
}
|
|
38
|
-
.input-group input,
|
|
39
|
-
.input-group select {
|
|
40
|
-
@apply bg-transparent border-0 !ring-0;
|
|
41
|
-
}
|
|
42
|
-
.input-group div,
|
|
43
|
-
.input-group button,
|
|
44
|
-
.input-group a {
|
|
45
|
-
@apply p-4 py-2 place-self-center;
|
|
46
|
-
}
|
|
47
|
-
.input-group-divider * + * {
|
|
48
|
-
@apply !border-l border-surface-400-500-token focus:border-surface-400-500-token;
|
|
49
|
-
}
|
|
50
|
-
.input-group-shim {
|
|
51
|
-
@apply bg-surface-400/10 text-surface-600-300-token;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/* Apply the input styles by default, but exclude if wrapped in `.input-group` */
|
|
55
|
-
input:not([type='checkbox']):not([type='radio']):not([type='color']):not(.unstyled):is(:not(.input-group *)),
|
|
56
|
-
select[multiple]:not(.unstyled):is(:not(.input-group *)),
|
|
57
|
-
textarea:not(.unstyled):is(:not(.input-group *)),
|
|
58
|
-
select:not(.unstyled):is(:not(.input-group *)) {
|
|
59
|
-
@apply input-cell;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* Container Inputs */
|
|
63
|
-
select[multiple]:not(.unstyled):is(:not(.input-group *)),
|
|
64
|
-
textarea:not(.unstyled):is(:not(.input-group *)) {
|
|
65
|
-
@apply rounded-container-token;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* Select (multipe) */
|
|
69
|
-
/* https://stackoverflow.com/questions/50618602/change-color-of-selected-option-in-select-multiple */
|
|
70
|
-
select[multiple]:not(.unstyled):is(:not(.input-group *)) {
|
|
71
|
-
@apply p-2 space-y-1;
|
|
72
|
-
}
|
|
73
|
-
select[multiple]:not(.unstyled):is(:not(.input-group *)) option {
|
|
74
|
-
@apply p-2 rounded-token;
|
|
75
|
-
}
|
|
76
|
-
select[multiple]:not(.unstyled):is(:not(.input-group *)) option:checked {
|
|
77
|
-
background: rgb(var(--color-primary-500)) linear-gradient(0deg, rgb(var(--color-primary-500)) 0%, rgb(var(--color-primary-500)) 100%);
|
|
78
|
-
@apply text-on-primary-token;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/* File Input */
|
|
82
|
-
[type='file']:not(.unstyled):is(:not(.input-group *)) {
|
|
83
|
-
@apply p-1;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/* Checkbox & Radio */
|
|
87
|
-
[type='checkbox']:not(.unstyled):is(:not(.input-group *)),
|
|
88
|
-
[type='radio']:not(.unstyled):is(:not(.input-group *)) {
|
|
89
|
-
@apply rounded text-secondary-600 focus:ring-secondary-500 w-5 h-5 cursor-pointer;
|
|
90
|
-
}
|
|
91
|
-
[type='radio']:not(.unstyled):is(:not(.input-group *)) {
|
|
92
|
-
@apply rounded-token;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/* Color Picker */
|
|
96
|
-
/* https://stackoverflow.com/questions/11167281/webkit-css-to-control-the-box-around-the-color-in-an-inputtype-color */
|
|
97
|
-
input[type='color']:not(.unstyled):is(:not(.input-group *)) {
|
|
98
|
-
@apply border-none w-10 h-10 overflow-hidden rounded-token cursor-pointer;
|
|
99
|
-
/* WebKit Only */
|
|
100
|
-
-webkit-appearance: none;
|
|
101
|
-
}
|
|
102
|
-
input[type='color']:not(.unstyled):is(:not(.input-group *))::-webkit-color-swatch-wrapper {
|
|
103
|
-
@apply p-0;
|
|
104
|
-
}
|
|
105
|
-
input[type='color']:not(.unstyled):is(:not(.input-group *))::-webkit-color-swatch {
|
|
106
|
-
@apply border-none hover:brightness-110;
|
|
107
|
-
}
|
|
108
|
-
input[type='color']:not(.unstyled):is(:not(.input-group *))::-moz-color-swatch {
|
|
109
|
-
@apply border-none;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/* === Placeholder === */
|
|
113
|
-
|
|
114
|
-
::-moz-placeholder {
|
|
115
|
-
@apply text-surface-500-400-token;
|
|
116
|
-
}
|
|
117
|
-
:-ms-input-placeholder {
|
|
118
|
-
@apply text-surface-500-400-token;
|
|
119
|
-
}
|
|
120
|
-
::placeholder {
|
|
121
|
-
@apply text-surface-500-400-token;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/* === Accent Color === */
|
|
125
|
-
/* https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */
|
|
126
|
-
|
|
127
|
-
[type='range']:not(.range-input) {
|
|
128
|
-
@apply w-full accent-secondary-500;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* === States === */
|
|
132
|
-
|
|
133
|
-
input:disabled,
|
|
134
|
-
textarea:disabled,
|
|
135
|
-
select:disabled {
|
|
136
|
-
@apply !opacity-50 !cursor-not-allowed hover:!brightness-100;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
input[readonly],
|
|
140
|
-
textarea[readonly],
|
|
141
|
-
select[readonly] {
|
|
142
|
-
@apply !border-0 !cursor-not-allowed hover:!brightness-100;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/* === Vendor-Specific === */
|
|
146
|
-
|
|
147
|
-
/* Date Calendar Picker (Webkit) */
|
|
148
|
-
::-webkit-calendar-picker-indicator {
|
|
149
|
-
@apply dark:invert;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/* === Utility Classes === */
|
|
153
|
-
|
|
154
|
-
/* success */
|
|
155
|
-
.input-success {
|
|
156
|
-
@apply !bg-success-200 !border-success-500 !text-success-700;
|
|
157
|
-
}
|
|
158
|
-
.input-success::-moz-placeholder {
|
|
159
|
-
@apply text-success-700;
|
|
160
|
-
}
|
|
161
|
-
.input-success:-ms-input-placeholder {
|
|
162
|
-
@apply text-success-700;
|
|
163
|
-
}
|
|
164
|
-
.input-success::placeholder {
|
|
165
|
-
@apply text-success-700;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/* warning */
|
|
169
|
-
.input-warning {
|
|
170
|
-
@apply !bg-warning-200 !border-warning-500 !text-warning-700;
|
|
171
|
-
}
|
|
172
|
-
.input-warning::-moz-placeholder {
|
|
173
|
-
@apply text-warning-700;
|
|
174
|
-
}
|
|
175
|
-
.input-warning:-ms-input-placeholder {
|
|
176
|
-
@apply text-warning-700;
|
|
177
|
-
}
|
|
178
|
-
.input-warning::placeholder {
|
|
179
|
-
@apply text-warning-700;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/* error */
|
|
183
|
-
.input-error {
|
|
184
|
-
@apply !bg-error-200 !border-error-500 !text-error-500;
|
|
185
|
-
}
|
|
186
|
-
.input-error::-moz-placeholder {
|
|
187
|
-
@apply text-error-500;
|
|
188
|
-
}
|
|
189
|
-
.input-error:-ms-input-placeholder {
|
|
190
|
-
@apply text-error-500;
|
|
191
|
-
}
|
|
192
|
-
.input-error::placeholder {
|
|
193
|
-
@apply text-error-500;
|
|
194
|
-
}
|
|
195
|
-
}
|