fluid-ui-svelte 0.2.4 → 0.3.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/LICENSE +22 -0
- package/README.md +16 -5
- package/dist/app.css +284 -0
- package/dist/base/Button.svelte +35 -0
- package/dist/base/Button.svelte.d.ts +14 -0
- package/dist/base/Container.svelte +34 -0
- package/dist/base/Container.svelte.d.ts +14 -0
- package/dist/base/Image.svelte +21 -0
- package/dist/base/Image.svelte.d.ts +8 -0
- package/dist/base/InputField.svelte +33 -0
- package/dist/base/InputField.svelte.d.ts +10 -0
- package/dist/base/Link.svelte +23 -0
- package/dist/base/Link.svelte.d.ts +10 -0
- package/dist/base/List.svelte +39 -0
- package/dist/base/List.svelte.d.ts +33 -0
- package/dist/base/Table.svelte +80 -0
- package/dist/base/Table.svelte.d.ts +42 -0
- package/dist/base/Text.svelte +45 -0
- package/dist/base/Text.svelte.d.ts +11 -0
- package/dist/base/index.d.ts +8 -0
- package/dist/base/index.js +8 -0
- package/dist/components/Accordion.svelte +44 -1
- package/dist/components/Accordion.svelte.d.ts +14 -25
- package/dist/components/Calendar.svelte +62 -0
- package/dist/components/Calendar.svelte.d.ts +12 -25
- package/dist/components/Carousel.svelte +114 -0
- package/dist/components/Carousel.svelte.d.ts +37 -0
- package/dist/components/CodeBlock.svelte +33 -0
- package/dist/components/CodeBlock.svelte.d.ts +9 -0
- package/dist/components/Drawer.svelte +77 -22
- package/dist/components/Drawer.svelte.d.ts +21 -6
- package/dist/components/{Badge.svelte.d.ts → ImageCrop.svelte.d.ts} +3 -3
- package/dist/components/Page.svelte +26 -0
- package/dist/components/Page.svelte.d.ts +11 -0
- package/dist/components/Switch.svelte +22 -20
- package/dist/components/Switch.svelte.d.ts +9 -4
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.js +8 -0
- package/dist/index.d.ts +2 -33
- package/dist/index.js +2 -36
- package/dist/{community/components/index.js → utilities/accesibility.js} +1 -0
- package/dist/utilities/applyCharacterFilter.d.ts +1 -0
- package/dist/utilities/applyCharacterFilter.js +6 -0
- package/dist/utilities/calendar.d.ts +10 -0
- package/dist/utilities/calendar.js +112 -0
- package/dist/utilities/carousel.d.ts +2 -0
- package/dist/utilities/carousel.js +27 -0
- package/dist/utilities/codeBlockContents.d.ts +15 -0
- package/dist/utilities/codeBlockContents.js +298 -0
- package/dist/utilities/imageCrop.d.ts +33 -0
- package/dist/utilities/imageCrop.js +217 -0
- package/dist/utilities/mergeClasses.d.ts +1 -0
- package/dist/utilities/mergeClasses.js +3 -0
- package/package.json +50 -33
- package/dist/community/prebuilt/index.d.ts +0 -1
- package/dist/community/prebuilt/index.js +0 -1
- package/dist/components/Breadcrumb.svelte +0 -1
- package/dist/components/Breadcrumb.svelte.d.ts +0 -26
- package/dist/components/Dropdown.svelte +0 -59
- package/dist/components/Dropdown.svelte.d.ts +0 -20
- package/dist/components/Dropzone.svelte +0 -1
- package/dist/components/Dropzone.svelte.d.ts +0 -26
- package/dist/components/InteractiveScrollArea.svelte +0 -1
- package/dist/components/InteractiveScrollArea.svelte.d.ts +0 -26
- package/dist/components/Pagination.svelte +0 -1
- package/dist/components/Pagination.svelte.d.ts +0 -26
- package/dist/components/Progress.svelte +0 -1
- package/dist/components/Progress.svelte.d.ts +0 -26
- package/dist/components/Tabs.svelte +0 -1
- package/dist/components/Tabs.svelte.d.ts +0 -26
- package/dist/components/Tooltip.svelte +0 -1
- package/dist/components/Tooltip.svelte.d.ts +0 -26
- package/dist/components/charts/BatteryChart.svelte +0 -0
- package/dist/components/charts/BatteryChart.svelte.d.ts +0 -26
- package/dist/components/charts/LineChart.svelte +0 -0
- package/dist/components/charts/LineChart.svelte.d.ts +0 -26
- package/dist/components/charts/PieChart.svelte +0 -0
- package/dist/components/charts/PieChart.svelte.d.ts +0 -26
- package/dist/components/notification/NotificationArea.svelte +0 -21
- package/dist/components/notification/NotificationArea.svelte.d.ts +0 -7
- package/dist/prebuilt/FormBuilder.svelte +0 -1
- package/dist/prebuilt/FormBuilder.svelte.d.ts +0 -26
- package/dist/prebuilt/document/Document.svelte +0 -1
- package/dist/prebuilt/document/Document.svelte.d.ts +0 -26
- package/dist/prebuilt/document/DocumentBlock.svelte +0 -1
- package/dist/prebuilt/document/DocumentBlock.svelte.d.ts +0 -26
- package/dist/prebuilt/document/DocumentPage.svelte +0 -1
- package/dist/prebuilt/document/DocumentPage.svelte.d.ts +0 -26
- package/dist/prebuilt/timeline/Timeline.svelte +0 -0
- package/dist/prebuilt/timeline/Timeline.svelte.d.ts +0 -26
- package/dist/prebuilt/timeline/TimelineItem.svelte +0 -0
- package/dist/prebuilt/timeline/TimelineItem.svelte.d.ts +0 -26
- package/dist/primitives/Button.svelte +0 -53
- package/dist/primitives/Button.svelte.d.ts +0 -13
- package/dist/primitives/Container.svelte +0 -51
- package/dist/primitives/Container.svelte.d.ts +0 -10
- package/dist/primitives/Dialog.svelte +0 -39
- package/dist/primitives/Dialog.svelte.d.ts +0 -10
- package/dist/primitives/Divider.svelte +0 -14
- package/dist/primitives/Divider.svelte.d.ts +0 -6
- package/dist/primitives/Form.svelte +0 -18
- package/dist/primitives/Form.svelte.d.ts +0 -8
- package/dist/primitives/Image.svelte +0 -57
- package/dist/primitives/Image.svelte.d.ts +0 -12
- package/dist/primitives/Input.svelte +0 -23
- package/dist/primitives/Input.svelte.d.ts +0 -9
- package/dist/primitives/Label.svelte +0 -18
- package/dist/primitives/Label.svelte.d.ts +0 -8
- package/dist/primitives/Link.svelte +0 -18
- package/dist/primitives/Link.svelte.d.ts +0 -8
- package/dist/primitives/Table.svelte +0 -18
- package/dist/primitives/Table.svelte.d.ts +0 -8
- package/dist/primitives/TableBody.svelte +0 -17
- package/dist/primitives/TableBody.svelte.d.ts +0 -7
- package/dist/primitives/TableData.svelte +0 -18
- package/dist/primitives/TableData.svelte.d.ts +0 -8
- package/dist/primitives/TableFooter.svelte +0 -17
- package/dist/primitives/TableFooter.svelte.d.ts +0 -7
- package/dist/primitives/TableHead.svelte +0 -18
- package/dist/primitives/TableHead.svelte.d.ts +0 -8
- package/dist/primitives/TableHeader.svelte +0 -17
- package/dist/primitives/TableHeader.svelte.d.ts +0 -7
- package/dist/primitives/TableRow.svelte +0 -18
- package/dist/primitives/TableRow.svelte.d.ts +0 -8
- package/dist/primitives/Text.svelte +0 -46
- package/dist/primitives/Text.svelte.d.ts +0 -8
- package/dist/primitives/TextArea.svelte +0 -15
- package/dist/primitives/TextArea.svelte.d.ts +0 -7
- package/dist/types.d.ts +0 -4
- package/dist/types.js +0 -1
- /package/dist/components/{Badge.svelte → ImageCrop.svelte} +0 -0
- /package/dist/{community/components/index.d.ts → utilities/accesibility.d.ts} +0 -0
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
containerType = "div",
|
|
7
|
-
class: className = "",
|
|
8
|
-
overrideDefaultStyling = false,
|
|
9
|
-
children,
|
|
10
|
-
rawElement = $bindable(),
|
|
11
|
-
...restProps
|
|
12
|
-
}: {
|
|
13
|
-
containerType?: "div" | "section" | "aside" | "nav" | "footer";
|
|
14
|
-
class?: string;
|
|
15
|
-
overrideDefaultStyling?: boolean;
|
|
16
|
-
children?: Snippet;
|
|
17
|
-
rawElement?: HTMLElement;
|
|
18
|
-
} & HTMLAttributes<HTMLElement> = $props();
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
{#if containerType == "div"}
|
|
22
|
-
<div bind:this={rawElement} {...restProps} class={(overrideDefaultStyling ? "" : "fluid-container") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
23
|
-
{#if children}
|
|
24
|
-
{@render children()}
|
|
25
|
-
{/if}
|
|
26
|
-
</div>
|
|
27
|
-
{:else if containerType == "section"}
|
|
28
|
-
<section bind:this={rawElement} {...restProps} class={(overrideDefaultStyling ? "" : "fluid-container") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
29
|
-
{#if children}
|
|
30
|
-
{@render children()}
|
|
31
|
-
{/if}
|
|
32
|
-
</section>
|
|
33
|
-
{:else if containerType == "aside"}
|
|
34
|
-
<aside bind:this={rawElement} {...restProps} class={(overrideDefaultStyling ? "" : "fluid-container") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
35
|
-
{#if children}
|
|
36
|
-
{@render children()}
|
|
37
|
-
{/if}
|
|
38
|
-
</aside>
|
|
39
|
-
{:else if containerType == "nav"}
|
|
40
|
-
<nav bind:this={rawElement} {...restProps} class={(overrideDefaultStyling ? "" : "fluid-container") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
41
|
-
{#if children}
|
|
42
|
-
{@render children()}
|
|
43
|
-
{/if}
|
|
44
|
-
</nav>
|
|
45
|
-
{:else if containerType == "footer"}
|
|
46
|
-
<footer bind:this={rawElement} {...restProps} class={(overrideDefaultStyling ? "" : "fluid-container") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
47
|
-
{#if children}
|
|
48
|
-
{@render children()}
|
|
49
|
-
{/if}
|
|
50
|
-
</footer>
|
|
51
|
-
{/if}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from "svelte";
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
declare const Container: import("svelte").Component<{
|
|
4
|
-
containerType?: "div" | "section" | "aside" | "nav" | "footer";
|
|
5
|
-
class?: string;
|
|
6
|
-
overrideDefaultStyling?: boolean;
|
|
7
|
-
children?: Snippet;
|
|
8
|
-
rawElement?: HTMLElement;
|
|
9
|
-
} & HTMLAttributes<HTMLElement>, {}, "rawElement">;
|
|
10
|
-
export default Container;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
import type { HTMLDialogAttributes } from "svelte/elements";
|
|
4
|
-
let {
|
|
5
|
-
class: className,
|
|
6
|
-
isOpen = $bindable(false),
|
|
7
|
-
dialogType = "modal",
|
|
8
|
-
children,
|
|
9
|
-
overrideDefaultStyling = false,
|
|
10
|
-
...restProps
|
|
11
|
-
}: {
|
|
12
|
-
class?: string;
|
|
13
|
-
isOpen?: boolean;
|
|
14
|
-
dialogType?: "modal" | "normal";
|
|
15
|
-
overrideDefaultStyling?: boolean;
|
|
16
|
-
children: Snippet;
|
|
17
|
-
} & HTMLDialogAttributes = $props();
|
|
18
|
-
|
|
19
|
-
let dialogElement: HTMLDialogElement;
|
|
20
|
-
|
|
21
|
-
$effect(() => {
|
|
22
|
-
if (isOpen) {
|
|
23
|
-
dialogType === "modal" ? dialogElement.showModal() : dialogElement.show();
|
|
24
|
-
} else {
|
|
25
|
-
dialogElement.close();
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
</script>
|
|
29
|
-
|
|
30
|
-
<dialog
|
|
31
|
-
bind:this={dialogElement}
|
|
32
|
-
onclose={(e: Event) => {
|
|
33
|
-
isOpen = false;
|
|
34
|
-
}}
|
|
35
|
-
class={(overrideDefaultStyling ? "" : "fluid-dialog") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}
|
|
36
|
-
{...restProps}
|
|
37
|
-
>
|
|
38
|
-
{@render children()}
|
|
39
|
-
</dialog>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from "svelte";
|
|
2
|
-
import type { HTMLDialogAttributes } from "svelte/elements";
|
|
3
|
-
declare const Dialog: import("svelte").Component<{
|
|
4
|
-
class?: string;
|
|
5
|
-
isOpen?: boolean;
|
|
6
|
-
dialogType?: "modal" | "normal";
|
|
7
|
-
overrideDefaultStyling?: boolean;
|
|
8
|
-
children: Snippet;
|
|
9
|
-
} & HTMLDialogAttributes, {}, "isOpen">;
|
|
10
|
-
export default Dialog;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
const {
|
|
4
|
-
class: className,
|
|
5
|
-
children,
|
|
6
|
-
overrideDefaultStyling = false,
|
|
7
|
-
...restProps
|
|
8
|
-
}: {
|
|
9
|
-
class?: string;
|
|
10
|
-
overrideDefaultStyling?: boolean;
|
|
11
|
-
} & HTMLAttributes<HTMLHRElement> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<hr {...restProps} class={(overrideDefaultStyling ? "" : "fluid-divider") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")} />
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
import type { HTMLFormAttributes } from "svelte/elements";
|
|
4
|
-
const {
|
|
5
|
-
class: className,
|
|
6
|
-
children,
|
|
7
|
-
overrideDefaultStyling = false,
|
|
8
|
-
...restProps
|
|
9
|
-
}: {
|
|
10
|
-
class?: string;
|
|
11
|
-
overrideDefaultStyling?: boolean;
|
|
12
|
-
children: Snippet;
|
|
13
|
-
} & HTMLFormAttributes = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<form {...restProps} class={(overrideDefaultStyling ? "" : "fluid-form") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
17
|
-
{@render children()}
|
|
18
|
-
</form>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from "svelte";
|
|
2
|
-
import type { HTMLFormAttributes } from "svelte/elements";
|
|
3
|
-
declare const Form: import("svelte").Component<{
|
|
4
|
-
class?: string;
|
|
5
|
-
overrideDefaultStyling?: boolean;
|
|
6
|
-
children: Snippet;
|
|
7
|
-
} & HTMLFormAttributes, {}, "">;
|
|
8
|
-
export default Form;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
import type { HTMLImgAttributes } from "svelte/elements";
|
|
4
|
-
let {
|
|
5
|
-
class: className,
|
|
6
|
-
loadingSnippet,
|
|
7
|
-
placeholderSnippet,
|
|
8
|
-
overrideDefaultStyling = false,
|
|
9
|
-
rawElement = $bindable(),
|
|
10
|
-
|
|
11
|
-
...restProps
|
|
12
|
-
}: {
|
|
13
|
-
class?: string;
|
|
14
|
-
loadingSnippet?: Snippet;
|
|
15
|
-
placeholderSnippet?: Snippet;
|
|
16
|
-
noPlaceholders?: boolean;
|
|
17
|
-
src: string;
|
|
18
|
-
overrideDefaultStyling?: boolean;
|
|
19
|
-
rawElement?: HTMLElement;
|
|
20
|
-
} & Omit<HTMLImgAttributes, "onerror" | "onload"> = $props();
|
|
21
|
-
|
|
22
|
-
let status: "loading" | "done" | "failed" = $state("loading");
|
|
23
|
-
$effect(() => {
|
|
24
|
-
restProps.src ? (status = "loading") : "";
|
|
25
|
-
});
|
|
26
|
-
</script>
|
|
27
|
-
|
|
28
|
-
{#if status == "failed" || !restProps.src}
|
|
29
|
-
{#if placeholderSnippet}
|
|
30
|
-
<div class="fluid-image-error">
|
|
31
|
-
{@render placeholderSnippet()}
|
|
32
|
-
</div>
|
|
33
|
-
{:else}
|
|
34
|
-
<p>Image not loaded, provide placeholder.</p>
|
|
35
|
-
{/if}
|
|
36
|
-
{:else}
|
|
37
|
-
{#if status == "loading"}
|
|
38
|
-
<div class={"fluid-image-loading" + (status !== "loading" ? " hidden" : "")}>
|
|
39
|
-
{#if loadingSnippet}
|
|
40
|
-
{@render loadingSnippet()}
|
|
41
|
-
{:else}
|
|
42
|
-
<p>Image loading, provide placeholder.</p>
|
|
43
|
-
{/if}
|
|
44
|
-
</div>
|
|
45
|
-
{/if}
|
|
46
|
-
<img
|
|
47
|
-
bind:this={rawElement}
|
|
48
|
-
{...restProps}
|
|
49
|
-
onerror={() => {
|
|
50
|
-
status = "failed";
|
|
51
|
-
}}
|
|
52
|
-
onload={() => {
|
|
53
|
-
status = "done";
|
|
54
|
-
}}
|
|
55
|
-
class={(overrideDefaultStyling ? "" : "fluid-image") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "") + (status == "done" ? "" : " hidden")}
|
|
56
|
-
/>
|
|
57
|
-
{/if}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from "svelte";
|
|
2
|
-
import type { HTMLImgAttributes } from "svelte/elements";
|
|
3
|
-
declare const Image: import("svelte").Component<{
|
|
4
|
-
class?: string;
|
|
5
|
-
loadingSnippet?: Snippet;
|
|
6
|
-
placeholderSnippet?: Snippet;
|
|
7
|
-
noPlaceholders?: boolean;
|
|
8
|
-
src: string;
|
|
9
|
-
overrideDefaultStyling?: boolean;
|
|
10
|
-
rawElement?: HTMLElement;
|
|
11
|
-
} & Omit<HTMLImgAttributes, "onload" | "onerror">, {}, "rawElement">;
|
|
12
|
-
export default Image;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLInputAttributes } from "svelte/elements";
|
|
3
|
-
let {
|
|
4
|
-
class: className,
|
|
5
|
-
value = $bindable(),
|
|
6
|
-
checked = $bindable(false),
|
|
7
|
-
type,
|
|
8
|
-
overrideDefaultStyling = false,
|
|
9
|
-
...restProps
|
|
10
|
-
}: {
|
|
11
|
-
class?: string;
|
|
12
|
-
overrideDefaultStyling?: boolean;
|
|
13
|
-
value?: any;
|
|
14
|
-
checked?: boolean;
|
|
15
|
-
type: string;
|
|
16
|
-
} & Omit<HTMLInputAttributes, "value" | "type"> = $props();
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
{#if type === "checkbox"}
|
|
20
|
-
<input {...restProps} bind:checked type="checkbox" class={(overrideDefaultStyling ? "" : "fluid-checkbox") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")} />
|
|
21
|
-
{:else}
|
|
22
|
-
<input {...restProps} bind:value {type} class={(overrideDefaultStyling ? "" : "fluid-input") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")} />
|
|
23
|
-
{/if}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { HTMLInputAttributes } from "svelte/elements";
|
|
2
|
-
declare const Input: import("svelte").Component<{
|
|
3
|
-
class?: string;
|
|
4
|
-
overrideDefaultStyling?: boolean;
|
|
5
|
-
value?: any;
|
|
6
|
-
checked?: boolean;
|
|
7
|
-
type: string;
|
|
8
|
-
} & Omit<HTMLInputAttributes, "type" | "value">, {}, "value" | "checked">;
|
|
9
|
-
export default Input;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
import type { HTMLLabelAttributes } from "svelte/elements";
|
|
4
|
-
const {
|
|
5
|
-
class: className,
|
|
6
|
-
children,
|
|
7
|
-
overrideDefaultStyling = false,
|
|
8
|
-
...restProps
|
|
9
|
-
}: {
|
|
10
|
-
class?: string;
|
|
11
|
-
overrideDefaultStyling?: boolean;
|
|
12
|
-
children: Snippet;
|
|
13
|
-
} & HTMLLabelAttributes = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<label {...restProps} class={(overrideDefaultStyling ? "" : "fluid-label") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
17
|
-
{@render children()}
|
|
18
|
-
</label>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from "svelte";
|
|
2
|
-
import type { HTMLLabelAttributes } from "svelte/elements";
|
|
3
|
-
declare const Label: import("svelte").Component<{
|
|
4
|
-
class?: string;
|
|
5
|
-
overrideDefaultStyling?: boolean;
|
|
6
|
-
children: Snippet;
|
|
7
|
-
} & HTMLLabelAttributes, {}, "">;
|
|
8
|
-
export default Label;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
import type { HTMLAnchorAttributes } from "svelte/elements";
|
|
4
|
-
const {
|
|
5
|
-
class: className,
|
|
6
|
-
children,
|
|
7
|
-
overrideDefaultStyling = false,
|
|
8
|
-
...restProps
|
|
9
|
-
}: {
|
|
10
|
-
class?: string;
|
|
11
|
-
overrideDefaultStyling?: boolean;
|
|
12
|
-
children: Snippet;
|
|
13
|
-
} & HTMLAnchorAttributes = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<a {...restProps} class={(overrideDefaultStyling ? "" : "fluid-anchor") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
17
|
-
{@render children()}
|
|
18
|
-
</a>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from "svelte";
|
|
2
|
-
import type { HTMLAnchorAttributes } from "svelte/elements";
|
|
3
|
-
declare const Link: import("svelte").Component<{
|
|
4
|
-
class?: string;
|
|
5
|
-
overrideDefaultStyling?: boolean;
|
|
6
|
-
children: Snippet;
|
|
7
|
-
} & HTMLAnchorAttributes, {}, "">;
|
|
8
|
-
export default Link;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
import type { HTMLTableAttributes } from "svelte/elements";
|
|
4
|
-
const {
|
|
5
|
-
class: className,
|
|
6
|
-
children,
|
|
7
|
-
overrideDefaultStyling = false,
|
|
8
|
-
...restProps
|
|
9
|
-
}: {
|
|
10
|
-
class?: string;
|
|
11
|
-
overrideDefaultStyling?: boolean;
|
|
12
|
-
children: Snippet;
|
|
13
|
-
} & HTMLTableAttributes = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<table {...restProps} class={(overrideDefaultStyling ? "" : "fluid-table") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
17
|
-
{@render children()}
|
|
18
|
-
</table>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from "svelte";
|
|
2
|
-
import type { HTMLTableAttributes } from "svelte/elements";
|
|
3
|
-
declare const Table: import("svelte").Component<{
|
|
4
|
-
class?: string;
|
|
5
|
-
overrideDefaultStyling?: boolean;
|
|
6
|
-
children: Snippet;
|
|
7
|
-
} & HTMLTableAttributes, {}, "">;
|
|
8
|
-
export default Table;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
const {
|
|
4
|
-
class: className,
|
|
5
|
-
overrideDefaultStyling = false,
|
|
6
|
-
children,
|
|
7
|
-
...restProps
|
|
8
|
-
}: {
|
|
9
|
-
class?: string;
|
|
10
|
-
overrideDefaultStyling?: boolean;
|
|
11
|
-
children: Snippet;
|
|
12
|
-
} = $props();
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<tbody {...restProps} class={(overrideDefaultStyling ? "" : "fluid-table-body") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
16
|
-
{@render children()}
|
|
17
|
-
</tbody>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
import type { HTMLTdAttributes } from "svelte/elements";
|
|
4
|
-
const {
|
|
5
|
-
class: className,
|
|
6
|
-
overrideDefaultStyling = false,
|
|
7
|
-
children,
|
|
8
|
-
...restProps
|
|
9
|
-
}: {
|
|
10
|
-
class?: string;
|
|
11
|
-
overrideDefaultStyling?: boolean;
|
|
12
|
-
children: Snippet;
|
|
13
|
-
} & HTMLTdAttributes = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<td {...restProps} class={(overrideDefaultStyling ? "" : "fluid-table-data") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
17
|
-
{@render children()}
|
|
18
|
-
</td>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from "svelte";
|
|
2
|
-
import type { HTMLTdAttributes } from "svelte/elements";
|
|
3
|
-
declare const TableData: import("svelte").Component<{
|
|
4
|
-
class?: string;
|
|
5
|
-
overrideDefaultStyling?: boolean;
|
|
6
|
-
children: Snippet;
|
|
7
|
-
} & HTMLTdAttributes, {}, "">;
|
|
8
|
-
export default TableData;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
const {
|
|
4
|
-
class: className,
|
|
5
|
-
overrideDefaultStyling = false,
|
|
6
|
-
children,
|
|
7
|
-
...restProps
|
|
8
|
-
}: {
|
|
9
|
-
class?: string;
|
|
10
|
-
overrideDefaultStyling?: boolean;
|
|
11
|
-
children: Snippet;
|
|
12
|
-
} = $props();
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<tfoot {...restProps} class={(overrideDefaultStyling ? "" : "fluid-table-footer") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
16
|
-
{@render children()}
|
|
17
|
-
</tfoot>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
import type { HTMLThAttributes } from "svelte/elements";
|
|
4
|
-
const {
|
|
5
|
-
class: className,
|
|
6
|
-
overrideDefaultStyling = false,
|
|
7
|
-
children,
|
|
8
|
-
...restProps
|
|
9
|
-
}: {
|
|
10
|
-
class?: string;
|
|
11
|
-
overrideDefaultStyling?: boolean;
|
|
12
|
-
children: Snippet;
|
|
13
|
-
} & HTMLThAttributes = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<th {...restProps} class={(overrideDefaultStyling ? "" : "fluid-table-head") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
17
|
-
{@render children()}
|
|
18
|
-
</th>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from "svelte";
|
|
2
|
-
import type { HTMLThAttributes } from "svelte/elements";
|
|
3
|
-
declare const TableHead: import("svelte").Component<{
|
|
4
|
-
class?: string;
|
|
5
|
-
overrideDefaultStyling?: boolean;
|
|
6
|
-
children: Snippet;
|
|
7
|
-
} & HTMLThAttributes, {}, "">;
|
|
8
|
-
export default TableHead;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
const {
|
|
4
|
-
class: className,
|
|
5
|
-
overrideDefaultStyling = false,
|
|
6
|
-
children,
|
|
7
|
-
...restProps
|
|
8
|
-
}: {
|
|
9
|
-
class?: string;
|
|
10
|
-
overrideDefaultStyling?: boolean;
|
|
11
|
-
children: Snippet;
|
|
12
|
-
} = $props();
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<thead {...restProps} class={(overrideDefaultStyling ? "" : "fluid-table-header") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
16
|
-
{@render children()}
|
|
17
|
-
</thead>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
const {
|
|
5
|
-
class: className,
|
|
6
|
-
overrideDefaultStyling = false,
|
|
7
|
-
children,
|
|
8
|
-
...restProps
|
|
9
|
-
}: {
|
|
10
|
-
class?: string;
|
|
11
|
-
overrideDefaultStyling?: boolean;
|
|
12
|
-
children: Snippet;
|
|
13
|
-
} & HTMLAttributes<HTMLTableRowElement> = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<tr {...restProps} class={(overrideDefaultStyling ? "" : "fluid-table-row") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
17
|
-
{@render children()}
|
|
18
|
-
</tr>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from "svelte";
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
declare const TableRow: import("svelte").Component<{
|
|
4
|
-
class?: string;
|
|
5
|
-
overrideDefaultStyling?: boolean;
|
|
6
|
-
children: Snippet;
|
|
7
|
-
} & HTMLAttributes<HTMLTableRowElement>, {}, "">;
|
|
8
|
-
export default TableRow;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
|
|
4
|
-
const {
|
|
5
|
-
textType = "p",
|
|
6
|
-
class: className = "",
|
|
7
|
-
overrideDefaultStyling = false,
|
|
8
|
-
textValue,
|
|
9
|
-
...restProps
|
|
10
|
-
}: {
|
|
11
|
-
textType?: "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
12
|
-
textValue: string;
|
|
13
|
-
overrideDefaultStyling?: boolean;
|
|
14
|
-
class?: string;
|
|
15
|
-
} & HTMLAttributes<HTMLElement> = $props();
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
{#if textType == "p"}
|
|
19
|
-
<p {...restProps} class={(overrideDefaultStyling ? "" : "fluid-text fluid-p") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
20
|
-
{textValue}
|
|
21
|
-
</p>
|
|
22
|
-
{:else if textType == "h1"}
|
|
23
|
-
<h1 {...restProps} class={(overrideDefaultStyling ? "" : "fluid-text fluid-h1") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
24
|
-
{textValue}
|
|
25
|
-
</h1>
|
|
26
|
-
{:else if textType == "h2"}
|
|
27
|
-
<h2 {...restProps} class={(overrideDefaultStyling ? "" : "fluid-text fluid-h2") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
28
|
-
{textValue}
|
|
29
|
-
</h2>
|
|
30
|
-
{:else if textType == "h3"}
|
|
31
|
-
<h3 {...restProps} class={(overrideDefaultStyling ? "" : "fluid-text fluid-h3") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
32
|
-
{textValue}
|
|
33
|
-
</h3>
|
|
34
|
-
{:else if textType == "h4"}
|
|
35
|
-
<h4 {...restProps} class={(overrideDefaultStyling ? "" : "fluid-text fluid-h4") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
36
|
-
{textValue}
|
|
37
|
-
</h4>
|
|
38
|
-
{:else if textType == "h5"}
|
|
39
|
-
<h5 {...restProps} class={(overrideDefaultStyling ? "" : "fluid-text fluid-h5") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
40
|
-
{textValue}
|
|
41
|
-
</h5>
|
|
42
|
-
{:else if textType == "h6"}
|
|
43
|
-
<h6 {...restProps} class={(overrideDefaultStyling ? "" : "fluid-text fluid-h6") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}>
|
|
44
|
-
{textValue}
|
|
45
|
-
</h6>
|
|
46
|
-
{/if}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
2
|
-
declare const Text: import("svelte").Component<{
|
|
3
|
-
textType?: "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
4
|
-
textValue: string;
|
|
5
|
-
overrideDefaultStyling?: boolean;
|
|
6
|
-
class?: string;
|
|
7
|
-
} & HTMLAttributes<HTMLElement>, {}, "">;
|
|
8
|
-
export default Text;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLTextareaAttributes } from "svelte/elements";
|
|
3
|
-
let {
|
|
4
|
-
class: className,
|
|
5
|
-
value = $bindable(),
|
|
6
|
-
overrideDefaultStyling = false,
|
|
7
|
-
...restProps
|
|
8
|
-
}: {
|
|
9
|
-
class?: string;
|
|
10
|
-
overrideDefaultStyling?: boolean;
|
|
11
|
-
value: any;
|
|
12
|
-
} & Omit<HTMLTextareaAttributes, "value"> = $props();
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<textarea {...restProps} bind:value class={(overrideDefaultStyling ? "" : "fluid-text-area") + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}></textarea>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { HTMLTextareaAttributes } from "svelte/elements";
|
|
2
|
-
declare const TextArea: import("svelte").Component<{
|
|
3
|
-
class?: string;
|
|
4
|
-
overrideDefaultStyling?: boolean;
|
|
5
|
-
value: any;
|
|
6
|
-
} & Omit<HTMLTextareaAttributes, "value">, {}, "value">;
|
|
7
|
-
export default TextArea;
|
package/dist/types.d.ts
DELETED
package/dist/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|