fluid-ui-svelte 0.0.6 → 0.0.8
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 +35 -82
- package/dist/community/components/index.d.ts +1 -0
- package/dist/community/components/index.js +1 -0
- package/dist/community/prebuilt/index.d.ts +1 -0
- package/dist/community/prebuilt/index.js +1 -0
- package/dist/components/Accordion.svelte +1 -0
- package/dist/components/Accordion.svelte.d.ts +26 -0
- package/dist/components/Breadcrumb.svelte +1 -0
- package/dist/components/Breadcrumb.svelte.d.ts +26 -0
- package/dist/components/Drawer.svelte +35 -0
- package/dist/components/Drawer.svelte.d.ts +9 -0
- package/dist/components/Dropdown.svelte +34 -0
- package/dist/components/Dropdown.svelte.d.ts +9 -0
- package/dist/components/NotificationArea.svelte +1 -0
- package/dist/components/NotificationArea.svelte.d.ts +26 -0
- package/dist/components/Pagination.svelte +1 -0
- package/dist/components/Pagination.svelte.d.ts +26 -0
- package/dist/components/Progress.svelte +1 -0
- package/dist/components/Progress.svelte.d.ts +26 -0
- package/dist/components/Switch.svelte +32 -0
- package/dist/components/Switch.svelte.d.ts +6 -0
- package/dist/components/Tabs.svelte +1 -0
- package/dist/components/Tabs.svelte.d.ts +26 -0
- package/dist/components/Tooltip.svelte +1 -0
- package/dist/components/Tooltip.svelte.d.ts +26 -0
- package/dist/components/UploadZone.svelte +1 -0
- package/dist/components/UploadZone.svelte.d.ts +26 -0
- package/dist/index.d.ts +32 -29
- package/dist/index.js +35 -34
- package/dist/prebuilt/FormBuilder.svelte +1 -0
- package/dist/prebuilt/FormBuilder.svelte.d.ts +26 -0
- package/dist/prebuilt/InteractiveScrollArea.svelte +1 -0
- package/dist/prebuilt/InteractiveScrollArea.svelte.d.ts +26 -0
- package/dist/prebuilt/document/Document.svelte +1 -0
- package/dist/prebuilt/document/Document.svelte.d.ts +26 -0
- package/dist/prebuilt/document/DocumentBlock.svelte +1 -0
- package/dist/prebuilt/document/DocumentBlock.svelte.d.ts +26 -0
- package/dist/prebuilt/document/DocumentPage.svelte +1 -0
- package/dist/prebuilt/document/DocumentPage.svelte.d.ts +26 -0
- package/dist/primitives/Anchor.svelte +18 -0
- package/dist/primitives/Anchor.svelte.d.ts +8 -0
- package/dist/primitives/Button.svelte +42 -0
- package/dist/primitives/Button.svelte.d.ts +11 -0
- package/dist/primitives/Container.svelte +49 -0
- package/dist/primitives/Container.svelte.d.ts +9 -0
- package/dist/primitives/Dialog.svelte +39 -0
- package/dist/primitives/Dialog.svelte.d.ts +10 -0
- package/dist/primitives/Form.svelte +18 -0
- package/dist/primitives/Form.svelte.d.ts +8 -0
- package/dist/primitives/Image.svelte +64 -0
- package/dist/primitives/Image.svelte.d.ts +10 -0
- package/dist/primitives/Input.svelte +23 -0
- package/dist/primitives/Input.svelte.d.ts +9 -0
- package/dist/primitives/Label.svelte +18 -0
- package/dist/primitives/Label.svelte.d.ts +8 -0
- package/dist/primitives/Table.svelte +18 -0
- package/dist/primitives/Table.svelte.d.ts +8 -0
- package/dist/primitives/TableBody.svelte +17 -0
- package/dist/primitives/TableBody.svelte.d.ts +7 -0
- package/dist/primitives/TableData.svelte +18 -0
- package/dist/primitives/TableData.svelte.d.ts +8 -0
- package/dist/primitives/TableFooter.svelte +17 -0
- package/dist/primitives/TableFooter.svelte.d.ts +7 -0
- package/dist/primitives/TableHead.svelte +18 -0
- package/dist/primitives/TableHead.svelte.d.ts +8 -0
- package/dist/primitives/TableHeader.svelte +17 -0
- package/dist/primitives/TableHeader.svelte.d.ts +7 -0
- package/dist/primitives/TableRow.svelte +18 -0
- package/dist/primitives/TableRow.svelte.d.ts +8 -0
- package/dist/primitives/Text.svelte +46 -0
- package/dist/primitives/Text.svelte.d.ts +8 -0
- package/dist/primitives/TextArea.svelte +15 -0
- package/dist/primitives/TextArea.svelte.d.ts +7 -0
- package/package.json +40 -39
- package/dist/components/Accordion/AccordionContent.svelte +0 -12
- package/dist/components/Accordion/AccordionContent.svelte.d.ts +0 -19
- package/dist/components/Accordion/AccordionHeader.svelte +0 -11
- package/dist/components/Accordion/AccordionHeader.svelte.d.ts +0 -21
- package/dist/components/Accordion/AccordionWrapper.svelte +0 -7
- package/dist/components/Accordion/AccordionWrapper.svelte.d.ts +0 -18
- package/dist/components/Avatar/Avatar.svelte +0 -12
- package/dist/components/Avatar/Avatar.svelte.d.ts +0 -19
- package/dist/components/FileDropzone/FileDrop.svelte +0 -0
- package/dist/components/FileDropzone/FileDrop.svelte.d.ts +0 -23
- package/dist/components/Modal/ModalContainer.svelte +0 -25
- package/dist/components/Modal/ModalContainer.svelte.d.ts +0 -19
- package/dist/primitives/Audio/Audio.svelte +0 -22
- package/dist/primitives/Audio/Audio.svelte.d.ts +0 -27
- package/dist/primitives/Button/Button.svelte +0 -33
- package/dist/primitives/Button/Button.svelte.d.ts +0 -29
- package/dist/primitives/Container/Container.svelte +0 -53
- package/dist/primitives/Container/Container.svelte.d.ts +0 -24
- package/dist/primitives/Form/Form.svelte +0 -13
- package/dist/primitives/Form/Form.svelte.d.ts +0 -21
- package/dist/primitives/Image/Image.svelte +0 -13
- package/dist/primitives/Image/Image.svelte.d.ts +0 -21
- package/dist/primitives/Input/ColorInput.svelte +0 -12
- package/dist/primitives/Input/ColorInput.svelte.d.ts +0 -20
- package/dist/primitives/Input/DateTimeInput.svelte +0 -12
- package/dist/primitives/Input/DateTimeInput.svelte.d.ts +0 -19
- package/dist/primitives/Input/FileInput.svelte +0 -6
- package/dist/primitives/Input/FileInput.svelte.d.ts +0 -18
- package/dist/primitives/Input/PasswordInput.svelte +0 -11
- package/dist/primitives/Input/PasswordInput.svelte.d.ts +0 -19
- package/dist/primitives/Input/TextInput.svelte +0 -11
- package/dist/primitives/Input/TextInput.svelte.d.ts +0 -19
- package/dist/primitives/Input/ToggleInput.svelte +0 -12
- package/dist/primitives/Input/ToggleInput.svelte.d.ts +0 -17
- package/dist/primitives/Label/Label.svelte +0 -10
- package/dist/primitives/Label/Label.svelte.d.ts +0 -20
- package/dist/primitives/Link/Link.svelte +0 -16
- package/dist/primitives/Link/Link.svelte.d.ts +0 -23
- package/dist/primitives/Select/Option.svelte +0 -9
- package/dist/primitives/Select/Option.svelte.d.ts +0 -21
- package/dist/primitives/Select/Select.svelte +0 -14
- package/dist/primitives/Select/Select.svelte.d.ts +0 -22
- package/dist/primitives/Table/Table.svelte +0 -8
- package/dist/primitives/Table/Table.svelte.d.ts +0 -20
- package/dist/primitives/Table/TableBody.svelte +0 -8
- package/dist/primitives/Table/TableBody.svelte.d.ts +0 -20
- package/dist/primitives/Table/TableDataCell.svelte +0 -8
- package/dist/primitives/Table/TableDataCell.svelte.d.ts +0 -20
- package/dist/primitives/Table/TableFoot.svelte +0 -8
- package/dist/primitives/Table/TableFoot.svelte.d.ts +0 -20
- package/dist/primitives/Table/TableHead.svelte +0 -8
- package/dist/primitives/Table/TableHead.svelte.d.ts +0 -20
- package/dist/primitives/Table/TableHeader.svelte +0 -8
- package/dist/primitives/Table/TableHeader.svelte.d.ts +0 -20
- package/dist/primitives/Table/TableRow.svelte +0 -8
- package/dist/primitives/Table/TableRow.svelte.d.ts +0 -20
- package/dist/primitives/Text/Text.svelte +0 -37
- package/dist/primitives/Text/Text.svelte.d.ts +0 -22
- package/dist/primitives/Video/Video.svelte +0 -25
- package/dist/primitives/Video/Video.svelte.d.ts +0 -30
package/README.md
CHANGED
|
@@ -1,105 +1,58 @@
|
|
|
1
|
-
#
|
|
1
|
+
# create-svelte
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Everything you need to build a Svelte library, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Read more about creating a library [in the docs](https://svelte.dev/docs/kit/packaging).
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
npm i fluid-ui-svelte
|
|
10
|
-
```
|
|
7
|
+
## Creating a project
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
<script lang="ts">
|
|
15
|
-
import '../app.css';
|
|
16
|
-
import {Button} from '$lib/index.js';
|
|
17
|
-
</script>
|
|
9
|
+
If you're seeing this, you've probably already done this step. Congrats!
|
|
18
10
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
```bash
|
|
12
|
+
# create a new project in the current directory
|
|
13
|
+
npx sv create
|
|
22
14
|
|
|
23
|
-
#
|
|
15
|
+
# create a new project in my-app
|
|
16
|
+
npx sv create my-app
|
|
24
17
|
```
|
|
25
|
-
@tailwind base;
|
|
26
|
-
@tailwind components;
|
|
27
|
-
@tailwind utilities;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
.fluid-audio {
|
|
31
|
-
@apply m-2 p-2
|
|
32
|
-
}
|
|
33
18
|
|
|
34
|
-
|
|
35
|
-
@apply m-2 p-2 disabled:bg-opacity-25
|
|
36
|
-
}
|
|
19
|
+
## Developing
|
|
37
20
|
|
|
38
|
-
|
|
39
|
-
@apply m-2 p-2
|
|
40
|
-
}
|
|
21
|
+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
|
41
22
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
23
|
+
```bash
|
|
24
|
+
npm run dev
|
|
45
25
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
.fluid-color-input {
|
|
51
|
-
@apply m-2 p-2
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.fluid-date-time-input {
|
|
55
|
-
@apply m-2 p-2
|
|
56
|
-
}
|
|
26
|
+
# or start the server and open the app in a new browser tab
|
|
27
|
+
npm run dev -- --open
|
|
28
|
+
```
|
|
57
29
|
|
|
58
|
-
.
|
|
59
|
-
@apply m-2 p-2
|
|
60
|
-
}
|
|
30
|
+
Everything inside `src/lib` is part of your library, everything inside `src/routes` can be used as a showcase or preview app.
|
|
61
31
|
|
|
62
|
-
|
|
63
|
-
@apply m-2 p-2
|
|
64
|
-
}
|
|
32
|
+
## Building
|
|
65
33
|
|
|
66
|
-
|
|
67
|
-
@apply m-2 p-2
|
|
68
|
-
}
|
|
34
|
+
To build your library:
|
|
69
35
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
36
|
+
```bash
|
|
37
|
+
npm run package
|
|
38
|
+
```
|
|
73
39
|
|
|
74
|
-
|
|
75
|
-
@apply m-2 p-2
|
|
76
|
-
}
|
|
40
|
+
To create a production version of your showcase app:
|
|
77
41
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
42
|
+
```bash
|
|
43
|
+
npm run build
|
|
44
|
+
```
|
|
81
45
|
|
|
82
|
-
|
|
83
|
-
@apply m-2 p-2
|
|
84
|
-
}
|
|
46
|
+
You can preview the production build with `npm run preview`.
|
|
85
47
|
|
|
86
|
-
.
|
|
87
|
-
@apply m-2 p-2
|
|
88
|
-
}
|
|
48
|
+
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
|
|
89
49
|
|
|
90
|
-
|
|
91
|
-
@apply m-2 p-2
|
|
92
|
-
}
|
|
50
|
+
## Publishing
|
|
93
51
|
|
|
94
|
-
.
|
|
95
|
-
@apply m-2 p-2
|
|
96
|
-
}
|
|
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/)).
|
|
97
53
|
|
|
98
|
-
.
|
|
99
|
-
@apply m-2 p-2 rounded-full w-full h-full aspect-square
|
|
100
|
-
}
|
|
54
|
+
To publish your library to [npm](https://www.npmjs.com):
|
|
101
55
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
```
|
|
56
|
+
```bash
|
|
57
|
+
npm publish
|
|
58
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- TODO -->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default Accordion;
|
|
2
|
+
type Accordion = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Accordion: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- TODO -->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default Breadcrumb;
|
|
2
|
+
type Breadcrumb = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Breadcrumb: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onMount, type Snippet } from "svelte";
|
|
3
|
+
import Container from "../primitives/Container.svelte";
|
|
4
|
+
import { fade, slide } from "svelte/transition";
|
|
5
|
+
import { cubicInOut } from "svelte/easing";
|
|
6
|
+
import Button from "../primitives/Button.svelte";
|
|
7
|
+
let {
|
|
8
|
+
class: className,
|
|
9
|
+
isOpen = $bindable(false),
|
|
10
|
+
alignment = "right",
|
|
11
|
+
children,
|
|
12
|
+
overrideDefaultStyling = false,
|
|
13
|
+
}: {
|
|
14
|
+
class?: string;
|
|
15
|
+
isOpen?: boolean;
|
|
16
|
+
alignment: "left" | "right" | "top" | "bottom";
|
|
17
|
+
overrideDefaultStyling?: boolean;
|
|
18
|
+
children: Snippet;
|
|
19
|
+
} = $props();
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<Container overrideDefaultStyling={true} class={(overrideDefaultStyling ? "" : "fluid-drawer") + (isOpen ? "" : " hidden")}>
|
|
23
|
+
<Container
|
|
24
|
+
class={"fluid-drawer-body" + (alignment == "left" || alignment == "right" ? ` ${alignment}-0 h-full` : "") + (alignment == "top" || alignment == "bottom" ? ` ${alignment}-0 w-full` : "")}
|
|
25
|
+
>
|
|
26
|
+
{@render children()}
|
|
27
|
+
</Container>
|
|
28
|
+
<Container
|
|
29
|
+
class="fluid-drawer-backdrop"
|
|
30
|
+
onclick={(e: MouseEvent) => {
|
|
31
|
+
console.log(isOpen);
|
|
32
|
+
isOpen = false;
|
|
33
|
+
}}
|
|
34
|
+
></Container>
|
|
35
|
+
</Container>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Snippet } from "svelte";
|
|
2
|
+
declare const Drawer: import("svelte").Component<{
|
|
3
|
+
class?: string;
|
|
4
|
+
isOpen?: boolean;
|
|
5
|
+
alignment: "left" | "right" | "top" | "bottom";
|
|
6
|
+
overrideDefaultStyling?: boolean;
|
|
7
|
+
children: Snippet;
|
|
8
|
+
}, {}, "isOpen">;
|
|
9
|
+
export default Drawer;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Container from "../primitives/Container.svelte";
|
|
3
|
+
import Button from "../primitives/Button.svelte";
|
|
4
|
+
import { type Snippet } from "svelte";
|
|
5
|
+
const {
|
|
6
|
+
class: className,
|
|
7
|
+
overrideDefaultStyling = false,
|
|
8
|
+
matchContentWidthToTrigger = false,
|
|
9
|
+
trigger,
|
|
10
|
+
children,
|
|
11
|
+
...restProps
|
|
12
|
+
}: {
|
|
13
|
+
class?: string;
|
|
14
|
+
overrideDefaultStyling?: boolean;
|
|
15
|
+
matchContentWidthToTrigger?: boolean;
|
|
16
|
+
trigger: Snippet<[isOpen: boolean]>;
|
|
17
|
+
children: Snippet;
|
|
18
|
+
} = $props();
|
|
19
|
+
|
|
20
|
+
let isOpen = $state(false);
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<Container class={(overrideDefaultStyling ? "" : "fluid-dropdown") + (className ? ` ${className}` : "")} overrideDefaultStyling={true}>
|
|
24
|
+
<Button
|
|
25
|
+
onclick={(e: Event) => {
|
|
26
|
+
isOpen = !isOpen;
|
|
27
|
+
}}
|
|
28
|
+
>
|
|
29
|
+
{@render trigger(isOpen)}
|
|
30
|
+
</Button>
|
|
31
|
+
<Container class={"fluid-dropdown-content" + (isOpen ? "" : " hidden") + (matchContentWidthToTrigger ? " w-full" : "")}>
|
|
32
|
+
{@render children()}
|
|
33
|
+
</Container>
|
|
34
|
+
</Container>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Snippet } from "svelte";
|
|
2
|
+
declare const Dropdown: import("svelte").Component<{
|
|
3
|
+
class?: string;
|
|
4
|
+
overrideDefaultStyling?: boolean;
|
|
5
|
+
matchContentWidthToTrigger?: boolean;
|
|
6
|
+
trigger: Snippet<[isOpen: boolean]>;
|
|
7
|
+
children: Snippet;
|
|
8
|
+
}, {}, "">;
|
|
9
|
+
export default Dropdown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- TODO -->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default NotificationArea;
|
|
2
|
+
type NotificationArea = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const NotificationArea: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- TODO -->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default Pagination;
|
|
2
|
+
type Pagination = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Pagination: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- TODO -->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default Progress;
|
|
2
|
+
type Progress = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Progress: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Label from "../primitives/Label.svelte";
|
|
3
|
+
import Input from "../primitives/Input.svelte";
|
|
4
|
+
import Button from "../primitives/Button.svelte";
|
|
5
|
+
import Container from "../primitives/Container.svelte";
|
|
6
|
+
|
|
7
|
+
let {
|
|
8
|
+
class: className,
|
|
9
|
+
checked = $bindable(false),
|
|
10
|
+
overrideDefaultStyling = false,
|
|
11
|
+
}: {
|
|
12
|
+
class?: string;
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
overrideDefaultStyling?: boolean;
|
|
15
|
+
} = $props();
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<Button
|
|
19
|
+
onclick={() => {
|
|
20
|
+
checked = !checked;
|
|
21
|
+
}}
|
|
22
|
+
overrideDefaultStyling={true}
|
|
23
|
+
class="w-full h-full cursor-pointer"
|
|
24
|
+
>
|
|
25
|
+
<Container
|
|
26
|
+
overrideDefaultStyling={true}
|
|
27
|
+
class={(overrideDefaultStyling ? "" : "fluid-switch" + (checked ? " fluid-switch-checked" : "")) + (className ? (overrideDefaultStyling ? `${className}` : ` ${className}`) : "")}
|
|
28
|
+
>
|
|
29
|
+
<Input bind:checked type="checkbox" class="sr-only peer"></Input>
|
|
30
|
+
<div class="fluid-switch-slider"></div>
|
|
31
|
+
</Container>
|
|
32
|
+
</Button>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- TODO -->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default Tabs;
|
|
2
|
+
type Tabs = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Tabs: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- TODO -->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default Tooltip;
|
|
2
|
+
type Tooltip = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Tooltip: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- TODO -->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default UploadZone;
|
|
2
|
+
type UploadZone = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const UploadZone: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as Button } from "./primitives/Button
|
|
3
|
-
export { default as Container } from "./primitives/Container
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
21
|
-
export { default as
|
|
22
|
-
export { default as
|
|
23
|
-
export { default as
|
|
24
|
-
export { default as
|
|
25
|
-
export { default as
|
|
26
|
-
export { default as
|
|
27
|
-
export { default as
|
|
28
|
-
export { default as
|
|
29
|
-
export { default as
|
|
1
|
+
export { default as Anchor } from "./primitives/Anchor.svelte";
|
|
2
|
+
export { default as Button } from "./primitives/Button.svelte";
|
|
3
|
+
export { default as Container } from "./primitives/Container.svelte";
|
|
4
|
+
export { default as Dialog } from "./primitives/Dialog.svelte";
|
|
5
|
+
export { default as Form } from "./primitives/Form.svelte";
|
|
6
|
+
export { default as Image } from "./primitives/Image.svelte";
|
|
7
|
+
export { default as Input } from "./primitives/Input.svelte";
|
|
8
|
+
export { default as Label } from "./primitives/Label.svelte";
|
|
9
|
+
export { default as Table } from "./primitives/Table.svelte";
|
|
10
|
+
export { default as TableBody } from "./primitives/TableBody.svelte";
|
|
11
|
+
export { default as TableData } from "./primitives/TableData.svelte";
|
|
12
|
+
export { default as TableFooter } from "./primitives/TableFooter.svelte";
|
|
13
|
+
export { default as TableHead } from "./primitives/TableHead.svelte";
|
|
14
|
+
export { default as TableHeader } from "./primitives/TableHeader.svelte";
|
|
15
|
+
export { default as TableRow } from "./primitives/TableRow.svelte";
|
|
16
|
+
export { default as Text } from "./primitives/Text.svelte";
|
|
17
|
+
export { default as TextArea } from "./primitives/TextArea.svelte";
|
|
18
|
+
export { default as Accordion } from "./components/Accordion.svelte";
|
|
19
|
+
export { default as Breadcrumb } from "./components/Breadcrumb.svelte";
|
|
20
|
+
export { default as Drawer } from "./components/Drawer.svelte";
|
|
21
|
+
export { default as Dropdown } from "./components/Dropdown.svelte";
|
|
22
|
+
export { default as NotificationArea } from "./components/NotificationArea.svelte";
|
|
23
|
+
export { default as Pagination } from "./components/Pagination.svelte";
|
|
24
|
+
export { default as Progress } from "./components/Progress.svelte";
|
|
25
|
+
export { default as Switch } from "./components/Switch.svelte";
|
|
26
|
+
export { default as Tabs } from "./components/Tabs.svelte";
|
|
27
|
+
export { default as UploadZone } from "./components/UploadZone.svelte";
|
|
28
|
+
export { default as FormBuilder } from "./prebuilt/FormBuilder.svelte";
|
|
29
|
+
export { default as InteractiveScrollArea } from "./prebuilt/InteractiveScrollArea.svelte";
|
|
30
|
+
export { default as Document } from "./prebuilt/document/Document.svelte";
|
|
31
|
+
export { default as DocumentBlock } from "./prebuilt/document/DocumentBlock.svelte";
|
|
32
|
+
export { default as DocumentPage } from "./prebuilt/document/DocumentPage.svelte";
|