fluid-ui-svelte 0.0.1 → 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/README.md +2 -57
- 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 +6 -6
- 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
package/README.md
CHANGED
|
@@ -1,58 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Fluid UI for Svelte/SvelteKit
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Read more about creating a library [in the docs](https://kit.svelte.dev/docs/packaging).
|
|
6
|
-
|
|
7
|
-
## Creating a project
|
|
8
|
-
|
|
9
|
-
If you're seeing this, you've probably already done this step. Congrats!
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
# create a new project in the current directory
|
|
13
|
-
npm create svelte@latest
|
|
14
|
-
|
|
15
|
-
# create a new project in my-app
|
|
16
|
-
npm create svelte@latest my-app
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Developing
|
|
20
|
-
|
|
21
|
-
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npm run dev
|
|
25
|
-
|
|
26
|
-
# or start the server and open the app in a new browser tab
|
|
27
|
-
npm run dev -- --open
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Everything inside `src/lib` is part of your library, everything inside `src/routes` can be used as a showcase or preview app.
|
|
31
|
-
|
|
32
|
-
## Building
|
|
33
|
-
|
|
34
|
-
To build your library:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npm run package
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
To create a production version of your showcase app:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
npm run build
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
You can preview the production build with `npm run preview`.
|
|
47
|
-
|
|
48
|
-
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
|
|
49
|
-
|
|
50
|
-
## Publishing
|
|
51
|
-
|
|
52
|
-
Go into the `package.json` and give your package the desired name through the `"name"` option. Also consider adding a `"license"` field and point it to a `LICENSE` file which you can create from a template (one popular option is the [MIT license](https://opensource.org/license/mit/)).
|
|
53
|
-
|
|
54
|
-
To publish your library to [npm](https://www.npmjs.com):
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
npm publish
|
|
58
|
-
```
|
|
3
|
+
Under development
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>import Container from "../../primitives/Container/Container.svelte";
|
|
2
|
+
export let accordionContentClass = "m-2 p-2";
|
|
3
|
+
export let isVisible;
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<Container
|
|
7
|
+
containerType="div"
|
|
8
|
+
overrideClass={true}
|
|
9
|
+
containerClass={(isVisible ? 'visible ' : 'hidden ') + accordionContentClass}
|
|
10
|
+
>
|
|
11
|
+
<slot />
|
|
12
|
+
</Container>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
accordionContentClass?: string | undefined;
|
|
5
|
+
isVisible: boolean;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
default: {};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type AccordionContentProps = typeof __propDef.props;
|
|
15
|
+
export type AccordionContentEvents = typeof __propDef.events;
|
|
16
|
+
export type AccordionContentSlots = typeof __propDef.slots;
|
|
17
|
+
export default class AccordionContent extends SvelteComponent<AccordionContentProps, AccordionContentEvents, AccordionContentSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script>import Container from "../../primitives/Container/Container.svelte";
|
|
2
|
+
import Button from "../../primitives/Button/Button.svelte";
|
|
3
|
+
export let accordionHeaderClass = "flex justify-between bg-blue m-2 p-2";
|
|
4
|
+
export let accordionButtonClass = "w-full";
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<Button on:click buttonType="button" buttonClass={accordionButtonClass} overrideClass={true}>
|
|
8
|
+
<Container containerType="div" overrideClass={true} containerClass={accordionHeaderClass}>
|
|
9
|
+
<slot />
|
|
10
|
+
</Container>
|
|
11
|
+
</Button>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
accordionHeaderClass?: string | undefined;
|
|
5
|
+
accordionButtonClass?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
click: MouseEvent;
|
|
9
|
+
} & {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {
|
|
13
|
+
default: {};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type AccordionHeaderProps = typeof __propDef.props;
|
|
17
|
+
export type AccordionHeaderEvents = typeof __propDef.events;
|
|
18
|
+
export type AccordionHeaderSlots = typeof __propDef.slots;
|
|
19
|
+
export default class AccordionHeader extends SvelteComponent<AccordionHeaderProps, AccordionHeaderEvents, AccordionHeaderSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
accordionClass?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {
|
|
10
|
+
default: {};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type AccordionWrapperProps = typeof __propDef.props;
|
|
14
|
+
export type AccordionWrapperEvents = typeof __propDef.events;
|
|
15
|
+
export type AccordionWrapperSlots = typeof __propDef.slots;
|
|
16
|
+
export default class AccordionWrapper extends SvelteComponent<AccordionWrapperProps, AccordionWrapperEvents, AccordionWrapperSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>import Image from "../../primitives/Image/Image.svelte";
|
|
2
|
+
export let avatarClass = "rounded-full w-full h-full aspect-square";
|
|
3
|
+
export let defaultClass = "fluid-avatar";
|
|
4
|
+
export let overrideClass = false;
|
|
5
|
+
export let avatarUrl;
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<Image
|
|
9
|
+
imageSource={avatarUrl}
|
|
10
|
+
overrideClass={true}
|
|
11
|
+
imageClass={overrideClass ? avatarClass : defaultClass + ' ' + avatarClass}
|
|
12
|
+
/>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
avatarClass?: string | undefined;
|
|
5
|
+
defaultClass?: string | undefined;
|
|
6
|
+
overrideClass?: boolean | undefined;
|
|
7
|
+
avatarUrl: string;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {};
|
|
13
|
+
};
|
|
14
|
+
export type AvatarProps = typeof __propDef.props;
|
|
15
|
+
export type AvatarEvents = typeof __propDef.events;
|
|
16
|
+
export type AvatarSlots = typeof __propDef.slots;
|
|
17
|
+
export default class Avatar extends SvelteComponent<AvatarProps, AvatarEvents, AvatarSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} FileDropProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} FileDropEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} FileDropSlots */
|
|
4
|
+
export default class FileDrop extends SvelteComponent<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type FileDropProps = typeof __propDef.props;
|
|
11
|
+
export type FileDropEvents = typeof __propDef.events;
|
|
12
|
+
export type FileDropSlots = 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 {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>import Container from "../../primitives/Container/Container.svelte";
|
|
2
|
+
export let modalClass = "absolute w-screen h-screen left-0 bottom-0 bg-gray flex flex-col bg-opacity-50 justify-center items-center z-0";
|
|
3
|
+
export let isVisible = true;
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<Container
|
|
7
|
+
containerType="div"
|
|
8
|
+
overrideClass={true}
|
|
9
|
+
containerClass={(isVisible ? 'visible ' : 'hidden ') + modalClass}
|
|
10
|
+
>
|
|
11
|
+
<slot />
|
|
12
|
+
</Container>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
modalClass?: string | undefined;
|
|
5
|
+
isVisible?: boolean | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
default: {};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type ModalContainerProps = typeof __propDef.props;
|
|
15
|
+
export type ModalContainerEvents = typeof __propDef.events;
|
|
16
|
+
export type ModalContainerSlots = typeof __propDef.slots;
|
|
17
|
+
export default class ModalContainer extends SvelteComponent<ModalContainerProps, ModalContainerEvents, ModalContainerSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as Container } from "./
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
1
|
+
export { default as Audio } from "./primitives/Audio/Audio.svelte";
|
|
2
|
+
export { default as Button } from "./primitives/Button/Button.svelte";
|
|
3
|
+
export { default as Container } from "./primitives/Container/Container.svelte";
|
|
4
|
+
export { default as Form } from "./primitives/Form/Form.svelte";
|
|
5
|
+
export { default as Image } from "./primitives/Image/Image.svelte";
|
|
6
|
+
export { default as ColorInput } from "./primitives/Input/ColorInput.svelte";
|
|
7
|
+
export { default as DateTimeInput } from "./primitives/Input/DateTimeInput.svelte";
|
|
8
|
+
export { default as FileInput } from "./primitives/Input/FileInput.svelte";
|
|
9
|
+
export { default as TextInput } from "./primitives/Input/TextInput.svelte";
|
|
10
|
+
export { default as ToggleInput } from "./primitives/Input/ToggleInput.svelte";
|
|
11
|
+
export { default as Label } from "./primitives/Label/Label.svelte";
|
|
12
|
+
export { default as Link } from "./primitives/Link/Link.svelte";
|
|
13
|
+
export { default as Option } from "./primitives/Select/Option.svelte";
|
|
14
|
+
export { default as Select } from "./primitives/Select/Select.svelte";
|
|
15
|
+
export { default as Table } from "./primitives/Table/Table.svelte";
|
|
16
|
+
export { default as TableBody } from "./primitives/Table/TableBody.svelte";
|
|
17
|
+
export { default as TableDataCell } from "./primitives/Table/TableDataCell.svelte";
|
|
18
|
+
export { default as TableFoot } from "./primitives/Table/TableFoot.svelte";
|
|
19
|
+
export { default as TableHead } from "./primitives/Table/TableHead.svelte";
|
|
20
|
+
export { default as TableHeader } from "./primitives/Table/TableHeader.svelte";
|
|
21
|
+
export { default as TableRow } from "./primitives/Table/TableRow.svelte";
|
|
22
|
+
export { default as Text } from "./primitives/Text/Text.svelte";
|
|
23
|
+
export { default as Video } from "./primitives/Video/Video.svelte";
|
|
24
|
+
export { default as AccordionWrapper } from "./components/Accordion/AccordionWrapper.svelte";
|
|
25
|
+
export { default as AccordionContent } from "./components/Accordion/AccordionContent.svelte";
|
|
26
|
+
export { default as AccordionHeader } from "./components/Accordion/AccordionHeader.svelte";
|
|
27
|
+
export { default as Avatar } from "./components/Avatar/Avatar.svelte";
|
|
28
|
+
export { default as ModalContainer } from "./components/Modal/ModalContainer.svelte";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
1
|
+
//Primitives
|
|
2
|
+
export { default as Audio } from './primitives/Audio/Audio.svelte';
|
|
3
|
+
export { default as Button } from './primitives/Button/Button.svelte';
|
|
4
|
+
export { default as Container } from './primitives/Container/Container.svelte';
|
|
5
|
+
export { default as Form } from './primitives/Form/Form.svelte';
|
|
6
|
+
export { default as Image } from "./primitives/Image/Image.svelte";
|
|
7
|
+
export { default as ColorInput } from './primitives/Input/ColorInput.svelte';
|
|
8
|
+
export { default as DateTimeInput } from './primitives/Input/DateTimeInput.svelte';
|
|
9
|
+
export { default as FileInput } from './primitives/Input/FileInput.svelte';
|
|
10
|
+
export { default as TextInput } from './primitives/Input/TextInput.svelte';
|
|
11
|
+
export { default as ToggleInput } from './primitives/Input/ToggleInput.svelte';
|
|
12
|
+
export { default as Label } from './primitives/Label/Label.svelte';
|
|
13
|
+
export { default as Link } from "./primitives/Link/Link.svelte";
|
|
14
|
+
export { default as Option } from "./primitives/Select/Option.svelte";
|
|
15
|
+
export { default as Select } from "./primitives/Select/Select.svelte";
|
|
16
|
+
export { default as Table } from "./primitives/Table/Table.svelte";
|
|
17
|
+
export { default as TableBody } from "./primitives/Table/TableBody.svelte";
|
|
18
|
+
export { default as TableDataCell } from "./primitives/Table/TableDataCell.svelte";
|
|
19
|
+
export { default as TableFoot } from "./primitives/Table/TableFoot.svelte";
|
|
20
|
+
export { default as TableHead } from "./primitives/Table/TableHead.svelte";
|
|
21
|
+
export { default as TableHeader } from "./primitives/Table/TableHeader.svelte";
|
|
22
|
+
export { default as TableRow } from "./primitives/Table/TableRow.svelte";
|
|
23
|
+
export { default as Text } from "./primitives/Text/Text.svelte";
|
|
24
|
+
export { default as Video } from "./primitives/Video/Video.svelte";
|
|
25
|
+
|
|
26
|
+
//Components
|
|
27
|
+
export { default as AccordionWrapper } from './components/Accordion/AccordionWrapper.svelte';
|
|
28
|
+
export { default as AccordionContent } from './components/Accordion/AccordionContent.svelte';
|
|
29
|
+
export { default as AccordionHeader } from './components/Accordion/AccordionHeader.svelte';
|
|
30
|
+
export { default as Avatar } from './components/Avatar/Avatar.svelte';
|
|
31
|
+
export { default as ModalContainer } from './components/Modal/ModalContainer.svelte';
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script>export let audioClass = "";
|
|
2
|
+
export let defaultClass = "fluid-audio";
|
|
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
|
+
<audio
|
|
13
|
+
on:play
|
|
14
|
+
class={overrideClass ? audioClass : defaultClass + ' ' + audioClass}
|
|
15
|
+
{src}
|
|
16
|
+
autoplay={isAutoPlay}
|
|
17
|
+
controls={isControls}
|
|
18
|
+
loop={isLoop}
|
|
19
|
+
muted={isMuted}
|
|
20
|
+
{preload}
|
|
21
|
+
{...$$restProps}
|
|
22
|
+
/>
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
} & {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
};
|
|
20
|
+
slots: {};
|
|
21
|
+
};
|
|
22
|
+
export type AudioProps = typeof __propDef.props;
|
|
23
|
+
export type AudioEvents = typeof __propDef.events;
|
|
24
|
+
export type AudioSlots = typeof __propDef.slots;
|
|
25
|
+
export default class Audio extends SvelteComponent<AudioProps, AudioEvents, AudioSlots> {
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script>export let buttonClass = "";
|
|
2
|
+
export let defaultClass = "fluid-button";
|
|
3
|
+
export let overrideClass = false;
|
|
4
|
+
export let buttonType = "button";
|
|
5
|
+
export let isDisabled = false;
|
|
6
|
+
export let buttonName = "";
|
|
7
|
+
export let buttonValue = "";
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<button
|
|
11
|
+
on:click
|
|
12
|
+
type={buttonType}
|
|
13
|
+
class={overrideClass ? buttonClass : defaultClass + ' ' + buttonClass}
|
|
14
|
+
disabled={isDisabled}
|
|
15
|
+
name={buttonName}
|
|
16
|
+
value={buttonValue}
|
|
17
|
+
{...$$restProps}
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</button>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
buttonClass?: string | undefined;
|
|
6
|
+
defaultClass?: string | undefined;
|
|
7
|
+
overrideClass?: boolean | undefined;
|
|
8
|
+
buttonType?: "reset" | "submit" | "button" | undefined;
|
|
9
|
+
isDisabled?: boolean | undefined;
|
|
10
|
+
buttonName?: string | undefined;
|
|
11
|
+
buttonValue?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
events: {
|
|
14
|
+
click: MouseEvent;
|
|
15
|
+
} & {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
};
|
|
18
|
+
slots: {
|
|
19
|
+
default: {};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type ButtonProps = typeof __propDef.props;
|
|
23
|
+
export type ButtonEvents = typeof __propDef.events;
|
|
24
|
+
export type ButtonSlots = typeof __propDef.slots;
|
|
25
|
+
export default class Button extends SvelteComponent<ButtonProps, ButtonEvents, ButtonSlots> {
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script>export let containerClass = "";
|
|
2
|
+
export let defaultClass = "fluid-container";
|
|
3
|
+
export let overrideClass = false;
|
|
4
|
+
export let containerType = "div";
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
{#if containerType == 'div'}
|
|
8
|
+
<div
|
|
9
|
+
class={overrideClass ? containerClass : defaultClass + ' ' + containerClass}
|
|
10
|
+
{...$$restProps}
|
|
11
|
+
>
|
|
12
|
+
<slot />
|
|
13
|
+
</div>
|
|
14
|
+
{:else if containerType == 'section'}
|
|
15
|
+
<section
|
|
16
|
+
class={overrideClass ? containerClass : defaultClass + ' ' + containerClass}
|
|
17
|
+
{...$$restProps}
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</section>
|
|
21
|
+
{:else if containerType == 'nav'}
|
|
22
|
+
<nav
|
|
23
|
+
class={overrideClass ? containerClass : defaultClass + ' ' + containerClass}
|
|
24
|
+
{...$$restProps}
|
|
25
|
+
>
|
|
26
|
+
<slot />
|
|
27
|
+
</nav>
|
|
28
|
+
{:else if containerType == 'footer'}
|
|
29
|
+
<nav
|
|
30
|
+
class={overrideClass ? containerClass : defaultClass + ' ' + containerClass}
|
|
31
|
+
{...$$restProps}
|
|
32
|
+
>
|
|
33
|
+
<slot />
|
|
34
|
+
</nav>
|
|
35
|
+
{:else}
|
|
36
|
+
<p class="text-red">Container 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
|
+
containerClass?: string | undefined;
|
|
6
|
+
defaultClass?: string | undefined;
|
|
7
|
+
overrideClass?: boolean | undefined;
|
|
8
|
+
containerType?: "div" | "section" | "nav" | "footer" | undefined;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {
|
|
14
|
+
default: {};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type ContainerProps = typeof __propDef.props;
|
|
18
|
+
export type ContainerEvents = typeof __propDef.events;
|
|
19
|
+
export type ContainerSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Container extends SvelteComponent<ContainerProps, ContainerEvents, ContainerSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>export let formClass = "";
|
|
2
|
+
export let defaultClass = "fluid-form";
|
|
3
|
+
export let overrideClass = false;
|
|
4
|
+
export let formMethod = "get";
|
|
5
|
+
export let formAction = "";
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<form
|
|
9
|
+
action={formAction}
|
|
10
|
+
method={formMethod}
|
|
11
|
+
class={overrideClass ? formClass : defaultClass + ' ' + formClass}
|
|
12
|
+
{...$$restProps}
|
|
13
|
+
/>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
formClass?: string | undefined;
|
|
6
|
+
defaultClass?: string | undefined;
|
|
7
|
+
overrideClass?: boolean | undefined;
|
|
8
|
+
formMethod?: "post" | "get" | "dialog" | undefined;
|
|
9
|
+
formAction?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
events: {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
};
|
|
14
|
+
slots: {};
|
|
15
|
+
};
|
|
16
|
+
export type FormProps = typeof __propDef.props;
|
|
17
|
+
export type FormEvents = typeof __propDef.events;
|
|
18
|
+
export type FormSlots = typeof __propDef.slots;
|
|
19
|
+
export default class Form extends SvelteComponent<FormProps, FormEvents, FormSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>export let imageClass = "";
|
|
2
|
+
export let defaultClass = "fluid-image";
|
|
3
|
+
export let overrideClass = false;
|
|
4
|
+
export let imageSource = "";
|
|
5
|
+
export let altText = "";
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<img
|
|
9
|
+
src={imageSource}
|
|
10
|
+
alt={altText}
|
|
11
|
+
class={overrideClass ? imageClass : defaultClass + ' ' + imageClass}
|
|
12
|
+
{...$$restProps}
|
|
13
|
+
/>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
imageClass?: string | undefined;
|
|
6
|
+
defaultClass?: string | undefined;
|
|
7
|
+
overrideClass?: boolean | undefined;
|
|
8
|
+
imageSource?: string | undefined;
|
|
9
|
+
altText?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
events: {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
};
|
|
14
|
+
slots: {};
|
|
15
|
+
};
|
|
16
|
+
export type ImageProps = typeof __propDef.props;
|
|
17
|
+
export type ImageEvents = typeof __propDef.events;
|
|
18
|
+
export type ImageSlots = typeof __propDef.slots;
|
|
19
|
+
export default class Image extends SvelteComponent<ImageProps, ImageEvents, ImageSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
inputClass?: string | undefined;
|
|
6
|
+
defaultClass?: string | undefined;
|
|
7
|
+
overrideClass?: boolean | undefined;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {};
|
|
13
|
+
};
|
|
14
|
+
export type ColorInputProps = typeof __propDef.props;
|
|
15
|
+
export type ColorInputEvents = typeof __propDef.events;
|
|
16
|
+
export type ColorInputSlots = typeof __propDef.slots;
|
|
17
|
+
export default class ColorInput extends SvelteComponent<ColorInputProps, ColorInputEvents, ColorInputSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>export let inputType = "date";
|
|
2
|
+
export let inputClass = "";
|
|
3
|
+
export let defaultClass = "fluid-date-time-input";
|
|
4
|
+
export let overrideClass = false;
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<input
|
|
8
|
+
type={inputType}
|
|
9
|
+
class={overrideClass ? inputClass : defaultClass + ' ' + inputClass}
|
|
10
|
+
{...$$restProps}
|
|
11
|
+
/>
|
|
12
|
+
a
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
inputType?: "date" | "datetime-local" | "month" | "time" | "week" | 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 DateTimeInputProps = typeof __propDef.props;
|
|
16
|
+
export type DateTimeInputEvents = typeof __propDef.events;
|
|
17
|
+
export type DateTimeInputSlots = typeof __propDef.slots;
|
|
18
|
+
export default class DateTimeInput extends SvelteComponent<DateTimeInputProps, DateTimeInputEvents, DateTimeInputSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script>export let inputType = "file";
|
|
2
|
+
export let inputClass = "";
|
|
3
|
+
export let defaultClass = "fluid-file-input";
|
|
4
|
+
export let overrideClass = false;
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<input
|
|
8
|
+
type={inputType}
|
|
9
|
+
class={overrideClass ? inputClass : defaultClass + ' ' + inputClass}
|
|
10
|
+
{...$$restProps}
|
|
11
|
+
/>
|