fluid-ui-svelte 0.0.2 → 0.0.3
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/dist/components/Accordion/AccordionContent.svelte +12 -0
- package/dist/components/Accordion/AccordionContent.svelte.d.ts +19 -0
- package/dist/components/Accordion/AccordionHeader.svelte +11 -0
- package/dist/components/Accordion/AccordionHeader.svelte.d.ts +21 -0
- package/dist/components/Accordion/AccordionWrapper.svelte +7 -0
- package/dist/components/Accordion/AccordionWrapper.svelte.d.ts +18 -0
- package/dist/components/Avatar/Avatar.svelte +12 -0
- package/dist/components/Avatar/Avatar.svelte.d.ts +19 -0
- package/dist/components/FileDropzone/FileDrop.svelte.d.ts +23 -0
- package/dist/components/Modal/ModalContainer.svelte +12 -0
- package/dist/components/Modal/ModalContainer.svelte.d.ts +19 -0
- package/dist/index.d.ts +28 -5
- package/dist/index.js +33 -5
- package/dist/primitives/Audio/Audio.svelte +22 -0
- package/dist/primitives/Audio/Audio.svelte.d.ts +27 -0
- package/dist/primitives/Button/Button.svelte +20 -0
- package/dist/primitives/Button/Button.svelte.d.ts +27 -0
- package/dist/primitives/Container/Container.svelte +37 -0
- package/dist/primitives/Container/Container.svelte.d.ts +22 -0
- package/dist/primitives/Form/Form.svelte +13 -0
- package/dist/primitives/Form/Form.svelte.d.ts +21 -0
- package/dist/primitives/Image/Image.svelte +13 -0
- package/dist/primitives/Image/Image.svelte.d.ts +21 -0
- package/dist/primitives/Input/ColorInput.svelte +10 -0
- package/dist/primitives/Input/ColorInput.svelte.d.ts +19 -0
- package/dist/primitives/Input/DateTimeInput.svelte +12 -0
- package/dist/primitives/Input/DateTimeInput.svelte.d.ts +20 -0
- package/dist/primitives/Input/FileInput.svelte +11 -0
- package/dist/primitives/Input/FileInput.svelte.d.ts +20 -0
- package/dist/primitives/Input/TextInput.svelte +11 -0
- package/dist/primitives/Input/TextInput.svelte.d.ts +20 -0
- package/dist/primitives/Input/ToggleInput.svelte +11 -0
- package/dist/primitives/Input/ToggleInput.svelte.d.ts +20 -0
- package/dist/primitives/Label/Label.svelte +10 -0
- package/dist/primitives/Label/Label.svelte.d.ts +20 -0
- package/dist/primitives/Link/Link.svelte +16 -0
- package/dist/primitives/Link/Link.svelte.d.ts +23 -0
- package/dist/primitives/Select/Option.svelte +9 -0
- package/dist/primitives/Select/Option.svelte.d.ts +21 -0
- package/dist/primitives/Select/Select.svelte +14 -0
- package/dist/primitives/Select/Select.svelte.d.ts +22 -0
- package/dist/primitives/Table/Table.svelte +8 -0
- package/dist/primitives/Table/Table.svelte.d.ts +20 -0
- package/dist/primitives/Table/TableBody.svelte +8 -0
- package/dist/primitives/Table/TableBody.svelte.d.ts +20 -0
- package/dist/primitives/Table/TableDataCell.svelte +8 -0
- package/dist/primitives/Table/TableDataCell.svelte.d.ts +20 -0
- package/dist/primitives/Table/TableFoot.svelte +8 -0
- package/dist/primitives/Table/TableFoot.svelte.d.ts +20 -0
- package/dist/primitives/Table/TableHead.svelte +8 -0
- package/dist/primitives/Table/TableHead.svelte.d.ts +20 -0
- package/dist/primitives/Table/TableHeader.svelte +8 -0
- package/dist/primitives/Table/TableHeader.svelte.d.ts +20 -0
- package/dist/primitives/Table/TableRow.svelte +8 -0
- package/dist/primitives/Table/TableRow.svelte.d.ts +20 -0
- package/dist/primitives/Text/Text.svelte +37 -0
- package/dist/primitives/Text/Text.svelte.d.ts +22 -0
- package/dist/primitives/Video/Video.svelte +25 -0
- package/dist/primitives/Video/Video.svelte.d.ts +30 -0
- package/package.json +5 -5
- package/dist/components/Accordion/Accordion.svelte.d.ts +0 -23
- package/dist/components/Button/Button.svelte +0 -6
- package/dist/components/Button/Button.svelte.d.ts +0 -19
- package/dist/components/Button/buttonTypes.d.ts +0 -9
- package/dist/components/Button/buttonTypes.js +0 -5
- package/dist/components/Container/Container.svelte +0 -0
- package/dist/components/Container/Container.svelte.d.ts +0 -23
- package/dist/components/Input/Input.svelte +0 -0
- package/dist/components/Input/Input.svelte.d.ts +0 -23
- package/dist/components/Text/Text.svelte +0 -1
- package/dist/components/Text/Text.svelte.d.ts +0 -23
- /package/dist/components/{Accordion/Accordion.svelte → FileDropzone/FileDrop.svelte} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
inputType?: "checkbox" | "radio" | undefined;
|
|
6
|
+
inputClass?: string | undefined;
|
|
7
|
+
defaultClass?: string | undefined;
|
|
8
|
+
overrideClass?: boolean | undefined;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {};
|
|
14
|
+
};
|
|
15
|
+
export type ToggleInputProps = typeof __propDef.props;
|
|
16
|
+
export type ToggleInputEvents = typeof __propDef.events;
|
|
17
|
+
export type ToggleInputSlots = typeof __propDef.slots;
|
|
18
|
+
export default class ToggleInput extends SvelteComponent<ToggleInputProps, ToggleInputEvents, ToggleInputSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script>export let labelClass = "";
|
|
2
|
+
export let defaultClass = "fluid-label";
|
|
3
|
+
export let overrideClass = false;
|
|
4
|
+
export let targetInput = "";
|
|
5
|
+
export let text = "";
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<label class={overrideClass ? labelClass : defaultClass + ' ' + labelClass} for={targetInput}>
|
|
9
|
+
{text}
|
|
10
|
+
</label>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
labelClass?: string | undefined;
|
|
5
|
+
defaultClass?: string | undefined;
|
|
6
|
+
overrideClass?: boolean | undefined;
|
|
7
|
+
targetInput?: string | undefined;
|
|
8
|
+
text?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {};
|
|
14
|
+
};
|
|
15
|
+
export type LabelProps = typeof __propDef.props;
|
|
16
|
+
export type LabelEvents = typeof __propDef.events;
|
|
17
|
+
export type LabelSlots = typeof __propDef.slots;
|
|
18
|
+
export default class Label extends SvelteComponent<LabelProps, LabelEvents, LabelSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script>export let linkClass = "";
|
|
2
|
+
export let defaultClass = "fluid-link";
|
|
3
|
+
export let overrideClass = false;
|
|
4
|
+
export let url = "";
|
|
5
|
+
export let target = "_blank";
|
|
6
|
+
export let isDownload = false;
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<a
|
|
10
|
+
href={url}
|
|
11
|
+
download={isDownload}
|
|
12
|
+
class={overrideClass ? linkClass : defaultClass + ' ' + linkClass}
|
|
13
|
+
{target}
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</a>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
linkClass?: string | undefined;
|
|
5
|
+
defaultClass?: string | undefined;
|
|
6
|
+
overrideClass?: boolean | undefined;
|
|
7
|
+
url?: string | undefined;
|
|
8
|
+
target?: "_self" | "_blank" | "_parent" | "_top" | undefined;
|
|
9
|
+
isDownload?: boolean | undefined;
|
|
10
|
+
};
|
|
11
|
+
events: {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
};
|
|
14
|
+
slots: {
|
|
15
|
+
default: {};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type LinkProps = typeof __propDef.props;
|
|
19
|
+
export type LinkEvents = typeof __propDef.events;
|
|
20
|
+
export type LinkSlots = typeof __propDef.slots;
|
|
21
|
+
export default class Link extends SvelteComponent<LinkProps, LinkEvents, LinkSlots> {
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<script>export let optionClass = "";
|
|
2
|
+
export let defaultClass = "fluid-option";
|
|
3
|
+
export let overrideClass = false;
|
|
4
|
+
export let value = "a";
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<option class={overrideClass ? optionClass : defaultClass + ' ' + optionClass} {value}>
|
|
8
|
+
<slot />
|
|
9
|
+
</option>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
optionClass?: string | undefined;
|
|
5
|
+
defaultClass?: string | undefined;
|
|
6
|
+
overrideClass?: boolean | undefined;
|
|
7
|
+
value?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {
|
|
13
|
+
default: {};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type OptionProps = typeof __propDef.props;
|
|
17
|
+
export type OptionEvents = typeof __propDef.events;
|
|
18
|
+
export type OptionSlots = typeof __propDef.slots;
|
|
19
|
+
export default class Option extends SvelteComponent<OptionProps, OptionEvents, OptionSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script>export let selectClass = "";
|
|
2
|
+
export let defaultClass = "fluid-select";
|
|
3
|
+
export let overrideClass = false;
|
|
4
|
+
export let isDisabled = false;
|
|
5
|
+
export let isMultiple = false;
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<select
|
|
9
|
+
class={overrideClass ? selectClass : defaultClass + ' ' + selectClass}
|
|
10
|
+
disabled={isDisabled}
|
|
11
|
+
multiple={isMultiple}
|
|
12
|
+
>
|
|
13
|
+
<slot />
|
|
14
|
+
</select>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
selectClass?: string | undefined;
|
|
5
|
+
defaultClass?: string | undefined;
|
|
6
|
+
overrideClass?: boolean | undefined;
|
|
7
|
+
isDisabled?: boolean | undefined;
|
|
8
|
+
isMultiple?: boolean | undefined;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {
|
|
14
|
+
default: {};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type SelectProps = typeof __propDef.props;
|
|
18
|
+
export type SelectEvents = typeof __propDef.events;
|
|
19
|
+
export type SelectSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Select extends SvelteComponent<SelectProps, SelectEvents, SelectSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
tableClass?: string | undefined;
|
|
5
|
+
defaultClass?: string | undefined;
|
|
6
|
+
overrideClass?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type TableProps = typeof __propDef.props;
|
|
16
|
+
export type TableEvents = typeof __propDef.events;
|
|
17
|
+
export type TableSlots = typeof __propDef.slots;
|
|
18
|
+
export default class Table extends SvelteComponent<TableProps, TableEvents, TableSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
tableBodyClass?: string | undefined;
|
|
5
|
+
defaultClass?: string | undefined;
|
|
6
|
+
overrideClass?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type TableBodyProps = typeof __propDef.props;
|
|
16
|
+
export type TableBodyEvents = typeof __propDef.events;
|
|
17
|
+
export type TableBodySlots = typeof __propDef.slots;
|
|
18
|
+
export default class TableBody extends SvelteComponent<TableBodyProps, TableBodyEvents, TableBodySlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
tableDataCellClass?: string | undefined;
|
|
5
|
+
defaultClass?: string | undefined;
|
|
6
|
+
overrideClass?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type TableDataCellProps = typeof __propDef.props;
|
|
16
|
+
export type TableDataCellEvents = typeof __propDef.events;
|
|
17
|
+
export type TableDataCellSlots = typeof __propDef.slots;
|
|
18
|
+
export default class TableDataCell extends SvelteComponent<TableDataCellProps, TableDataCellEvents, TableDataCellSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
tableFootClass?: string | undefined;
|
|
5
|
+
defaultClass?: string | undefined;
|
|
6
|
+
overrideClass?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type TableFootProps = typeof __propDef.props;
|
|
16
|
+
export type TableFootEvents = typeof __propDef.events;
|
|
17
|
+
export type TableFootSlots = typeof __propDef.slots;
|
|
18
|
+
export default class TableFoot extends SvelteComponent<TableFootProps, TableFootEvents, TableFootSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
tableHeadClass?: string | undefined;
|
|
5
|
+
defaultClass?: string | undefined;
|
|
6
|
+
overrideClass?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type TableHeadProps = typeof __propDef.props;
|
|
16
|
+
export type TableHeadEvents = typeof __propDef.events;
|
|
17
|
+
export type TableHeadSlots = typeof __propDef.slots;
|
|
18
|
+
export default class TableHead extends SvelteComponent<TableHeadProps, TableHeadEvents, TableHeadSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
tableHeaderClass?: string | undefined;
|
|
5
|
+
defaultClass?: string | undefined;
|
|
6
|
+
overrideClass?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type TableHeaderProps = typeof __propDef.props;
|
|
16
|
+
export type TableHeaderEvents = typeof __propDef.events;
|
|
17
|
+
export type TableHeaderSlots = typeof __propDef.slots;
|
|
18
|
+
export default class TableHeader extends SvelteComponent<TableHeaderProps, TableHeaderEvents, TableHeaderSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
tableRowClass?: string | undefined;
|
|
5
|
+
defaultClass?: string | undefined;
|
|
6
|
+
overrideClass?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type TableRowProps = typeof __propDef.props;
|
|
16
|
+
export type TableRowEvents = typeof __propDef.events;
|
|
17
|
+
export type TableRowSlots = typeof __propDef.slots;
|
|
18
|
+
export default class TableRow extends SvelteComponent<TableRowProps, TableRowEvents, TableRowSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script>export let textType = "p";
|
|
2
|
+
export let defaultClass = "text";
|
|
3
|
+
export let textClass = "";
|
|
4
|
+
export let overrideClass = false;
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
{#if textType == 'h1'}
|
|
8
|
+
<h1 class={overrideClass ? textClass : defaultClass + ' ' + textClass} {...$$restProps}>
|
|
9
|
+
<slot />
|
|
10
|
+
</h1>
|
|
11
|
+
{:else if textType == 'h2'}
|
|
12
|
+
<h2 class={overrideClass ? textClass : defaultClass + ' ' + textClass} {...$$restProps}>
|
|
13
|
+
<slot />
|
|
14
|
+
</h2>
|
|
15
|
+
{:else if textType == 'h3'}
|
|
16
|
+
<h3 class={overrideClass ? textClass : defaultClass + ' ' + textClass} {...$$restProps}>
|
|
17
|
+
<slot />
|
|
18
|
+
</h3>
|
|
19
|
+
{:else if textType == 'h4'}
|
|
20
|
+
<h4 class={overrideClass ? textClass : defaultClass + ' ' + textClass} {...$$restProps}>
|
|
21
|
+
<slot />
|
|
22
|
+
</h4>
|
|
23
|
+
{:else if textType == 'h5'}
|
|
24
|
+
<h5 class={overrideClass ? textClass : defaultClass + ' ' + textClass} {...$$restProps}>
|
|
25
|
+
<slot />
|
|
26
|
+
</h5>
|
|
27
|
+
{:else if textType == 'h6'}
|
|
28
|
+
<h6 class={overrideClass ? textClass : defaultClass + ' ' + textClass} {...$$restProps}>
|
|
29
|
+
<slot />
|
|
30
|
+
</h6>
|
|
31
|
+
{:else if textType == 'p'}
|
|
32
|
+
<p class={overrideClass ? textClass : defaultClass + ' ' + textClass} {...$$restProps}>
|
|
33
|
+
<slot />
|
|
34
|
+
</p>
|
|
35
|
+
{:else}
|
|
36
|
+
<p class="font-bold">Text format error.</p>
|
|
37
|
+
{/if}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
textType?: "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
6
|
+
defaultClass?: string | undefined;
|
|
7
|
+
textClass?: string | undefined;
|
|
8
|
+
overrideClass?: boolean | undefined;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {
|
|
14
|
+
default: {};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type TextProps = typeof __propDef.props;
|
|
18
|
+
export type TextEvents = typeof __propDef.events;
|
|
19
|
+
export type TextSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Text extends SvelteComponent<TextProps, TextEvents, TextSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script>export let audioClass = "";
|
|
2
|
+
export let defaultClass = "fluid-video";
|
|
3
|
+
export let overrideClass = false;
|
|
4
|
+
export let src = "";
|
|
5
|
+
export let isAutoPlay = false;
|
|
6
|
+
export let isControls = false;
|
|
7
|
+
export let isLoop = false;
|
|
8
|
+
export let isMuted = false;
|
|
9
|
+
export let preload = "auto";
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<video
|
|
13
|
+
on:play
|
|
14
|
+
on:pause
|
|
15
|
+
on:canplay
|
|
16
|
+
on:progress
|
|
17
|
+
class={overrideClass ? audioClass : defaultClass + ' ' + audioClass}
|
|
18
|
+
{src}
|
|
19
|
+
autoplay={isAutoPlay}
|
|
20
|
+
controls={isControls}
|
|
21
|
+
loop={isLoop}
|
|
22
|
+
muted={isMuted}
|
|
23
|
+
{preload}
|
|
24
|
+
{...$$restProps}
|
|
25
|
+
/>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
audioClass?: string | undefined;
|
|
6
|
+
defaultClass?: string | undefined;
|
|
7
|
+
overrideClass?: boolean | undefined;
|
|
8
|
+
src?: string | undefined;
|
|
9
|
+
isAutoPlay?: boolean | undefined;
|
|
10
|
+
isControls?: boolean | undefined;
|
|
11
|
+
isLoop?: boolean | undefined;
|
|
12
|
+
isMuted?: boolean | undefined;
|
|
13
|
+
preload?: "auto" | "metadata" | "none" | undefined;
|
|
14
|
+
};
|
|
15
|
+
events: {
|
|
16
|
+
play: Event;
|
|
17
|
+
pause: Event;
|
|
18
|
+
canplay: Event;
|
|
19
|
+
progress: ProgressEvent<EventTarget>;
|
|
20
|
+
} & {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {};
|
|
24
|
+
};
|
|
25
|
+
export type VideoProps = typeof __propDef.props;
|
|
26
|
+
export type VideoEvents = typeof __propDef.events;
|
|
27
|
+
export type VideoSlots = typeof __propDef.slots;
|
|
28
|
+
export default class Video extends SvelteComponent<VideoProps, VideoEvents, VideoSlots> {
|
|
29
|
+
}
|
|
30
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fluid-ui-svelte",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Unopinionated UI library for Svelte.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
@@ -37,14 +37,17 @@
|
|
|
37
37
|
"@sveltejs/package": "^2.0.0",
|
|
38
38
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
39
39
|
"@typescript-eslint/parser": "^6.0.0",
|
|
40
|
+
"autoprefixer": "^10.4.16",
|
|
40
41
|
"eslint": "^8.28.0",
|
|
41
42
|
"eslint-config-prettier": "^8.5.0",
|
|
42
43
|
"eslint-plugin-svelte": "^2.30.0",
|
|
44
|
+
"postcss": "^8.4.31",
|
|
43
45
|
"prettier": "^2.8.0",
|
|
44
46
|
"prettier-plugin-svelte": "^2.10.1",
|
|
45
47
|
"publint": "^0.1.9",
|
|
46
48
|
"svelte": "^4.0.5",
|
|
47
49
|
"svelte-check": "^3.4.3",
|
|
50
|
+
"tailwindcss": "^3.3.5",
|
|
48
51
|
"tslib": "^2.4.1",
|
|
49
52
|
"typescript": "^5.0.0",
|
|
50
53
|
"vite": "^4.4.2",
|
|
@@ -52,8 +55,5 @@
|
|
|
52
55
|
},
|
|
53
56
|
"svelte": "./dist/index.js",
|
|
54
57
|
"types": "./dist/index.d.ts",
|
|
55
|
-
"type": "module"
|
|
56
|
-
"dependencies": {
|
|
57
|
-
"zod": "^3.22.4"
|
|
58
|
-
}
|
|
58
|
+
"type": "module"
|
|
59
59
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} AccordionProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} AccordionEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} AccordionSlots */
|
|
4
|
-
export default class Accordion extends SvelteComponent<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type AccordionProps = typeof __propDef.props;
|
|
11
|
-
export type AccordionEvents = typeof __propDef.events;
|
|
12
|
-
export type AccordionSlots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponent } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
[x: string]: never;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
|
-
import type { ButtonProps } from './buttonTypes.js';
|
|
3
|
-
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
buttonProps: ButtonProps;
|
|
6
|
-
};
|
|
7
|
-
events: {
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {
|
|
11
|
-
default: {};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
type ButtonProps_ = typeof __propDef.props;
|
|
15
|
-
export { ButtonProps_ as ButtonProps };
|
|
16
|
-
export type ButtonEvents = typeof __propDef.events;
|
|
17
|
-
export type ButtonSlots = typeof __propDef.slots;
|
|
18
|
-
export default class Button extends SvelteComponent<ButtonProps, ButtonEvents, ButtonSlots> {
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ButtonProps: z.ZodObject<{
|
|
3
|
-
buttonType: z.ZodEnum<["button", "submit", "reset"]>;
|
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
|
5
|
-
buttonType: "button" | "submit" | "reset";
|
|
6
|
-
}, {
|
|
7
|
-
buttonType: "button" | "submit" | "reset";
|
|
8
|
-
}>;
|
|
9
|
-
export type ButtonProps = z.infer<typeof ButtonProps>;
|
|
File without changes
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} ContainerProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} ContainerEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} ContainerSlots */
|
|
4
|
-
export default class Container extends SvelteComponent<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type ContainerProps = typeof __propDef.props;
|
|
11
|
-
export type ContainerEvents = typeof __propDef.events;
|
|
12
|
-
export type ContainerSlots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponent } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
[x: string]: never;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
File without changes
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} InputProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} InputEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} InputSlots */
|
|
4
|
-
export default class Input extends SvelteComponent<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type InputProps = typeof __propDef.props;
|
|
11
|
-
export type InputEvents = typeof __propDef.events;
|
|
12
|
-
export type InputSlots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponent } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
[x: string]: never;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export {};
|