sveltacular 0.0.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/README.md +11 -0
- package/dist/forms/button/button.stories.svelte +33 -0
- package/dist/forms/button/button.stories.svelte.d.ts +14 -0
- package/dist/forms/button/button.svelte +129 -0
- package/dist/forms/button/button.svelte.d.ts +26 -0
- package/dist/forms/check-box/check-box.stories.svelte +13 -0
- package/dist/forms/check-box/check-box.stories.svelte.d.ts +14 -0
- package/dist/forms/check-box/check-box.svelte +26 -0
- package/dist/forms/check-box/check-box.svelte.d.ts +21 -0
- package/dist/forms/check-box/check-input.svelte +32 -0
- package/dist/forms/check-box/check-input.svelte.d.ts +20 -0
- package/dist/forms/date-box/date-box.stories.svelte +17 -0
- package/dist/forms/date-box/date-box.stories.svelte.d.ts +14 -0
- package/dist/forms/date-box/date-box.svelte +68 -0
- package/dist/forms/date-box/date-box.svelte.d.ts +23 -0
- package/dist/forms/dropdown-box/dropdown-box.stories.svelte +15 -0
- package/dist/forms/dropdown-box/dropdown-box.stories.svelte.d.ts +14 -0
- package/dist/forms/dropdown-box/dropdown-box.svelte +36 -0
- package/dist/forms/dropdown-box/dropdown-box.svelte.d.ts +25 -0
- package/dist/forms/form-field.svelte +22 -0
- package/dist/forms/form-field.svelte.d.ts +19 -0
- package/dist/forms/form-label.svelte +14 -0
- package/dist/forms/form-label.svelte.d.ts +19 -0
- package/dist/forms/form.svelte +12 -0
- package/dist/forms/form.svelte.d.ts +20 -0
- package/dist/forms/number-box/number-box.stories.svelte +21 -0
- package/dist/forms/number-box/number-box.stories.svelte.d.ts +14 -0
- package/dist/forms/number-box/number-box.svelte +83 -0
- package/dist/forms/number-box/number-box.svelte.d.ts +28 -0
- package/dist/forms/switch/switch.stories.svelte +13 -0
- package/dist/forms/switch/switch.stories.svelte.d.ts +14 -0
- package/dist/forms/switch/switch.svelte +73 -0
- package/dist/forms/switch/switch.svelte.d.ts +20 -0
- package/dist/forms/text-area/text-area.stories.svelte +13 -0
- package/dist/forms/text-area/text-area.stories.svelte.d.ts +14 -0
- package/dist/forms/text-area/text-area.svelte +34 -0
- package/dist/forms/text-area/text-area.svelte.d.ts +25 -0
- package/dist/forms/text-box/text-box.stories.svelte +17 -0
- package/dist/forms/text-box/text-box.stories.svelte.d.ts +14 -0
- package/dist/forms/text-box/text-box.svelte +83 -0
- package/dist/forms/text-box/text-box.svelte.d.ts +30 -0
- package/dist/forms/upload-dropzone/upload-dropzone.stories.svelte +11 -0
- package/dist/forms/upload-dropzone/upload-dropzone.stories.svelte.d.ts +14 -0
- package/dist/forms/upload-dropzone/upload-dropzone.svelte +82 -0
- package/dist/forms/upload-dropzone/upload-dropzone.svelte.d.ts +18 -0
- package/dist/generic/card/card.stories.svelte +9 -0
- package/dist/generic/card/card.stories.svelte.d.ts +14 -0
- package/dist/generic/card/card.svelte +39 -0
- package/dist/generic/card/card.svelte.d.ts +19 -0
- package/dist/generic/divider/divider.stories.svelte +9 -0
- package/dist/generic/divider/divider.stories.svelte.d.ts +14 -0
- package/dist/generic/divider/divider.svelte +10 -0
- package/dist/generic/divider/divider.svelte.d.ts +23 -0
- package/dist/generic/link/link.stories.svelte +21 -0
- package/dist/generic/link/link.stories.svelte.d.ts +14 -0
- package/dist/generic/link/link.svelte +41 -0
- package/dist/generic/link/link.svelte.d.ts +22 -0
- package/dist/generic/overlay.svelte +24 -0
- package/dist/generic/overlay.svelte.d.ts +27 -0
- package/dist/generic/pill/pill.stories.svelte +29 -0
- package/dist/generic/pill/pill.stories.svelte.d.ts +14 -0
- package/dist/generic/pill/pill.svelte +35 -0
- package/dist/generic/pill/pill.svelte.d.ts +20 -0
- package/dist/generic/scorecard/scorecard.stories.svelte +9 -0
- package/dist/generic/scorecard/scorecard.stories.svelte.d.ts +14 -0
- package/dist/generic/scorecard/scorecard.svelte +28 -0
- package/dist/generic/scorecard/scorecard.svelte.d.ts +18 -0
- package/dist/icons/angle-right-icon.svelte +12 -0
- package/dist/icons/angle-right-icon.svelte.d.ts +14 -0
- package/dist/icons/angle-up-icon.svelte +9 -0
- package/dist/icons/angle-up-icon.svelte.d.ts +23 -0
- package/dist/icons/home-icon.svelte +8 -0
- package/dist/icons/home-icon.svelte.d.ts +14 -0
- package/dist/icons/svg-icon.svelte +16 -0
- package/dist/icons/svg-icon.svelte.d.ts +24 -0
- package/dist/icons/upload-icon.svelte +9 -0
- package/dist/icons/upload-icon.svelte.d.ts +23 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +2 -0
- package/dist/layout/flex-col.svelte +14 -0
- package/dist/layout/flex-col.svelte.d.ts +20 -0
- package/dist/layout/flex-item.svelte +7 -0
- package/dist/layout/flex-item.svelte.d.ts +27 -0
- package/dist/layout/flex-row.svelte +33 -0
- package/dist/layout/flex-row.svelte.d.ts +20 -0
- package/dist/modals/alert.stories.svelte +19 -0
- package/dist/modals/alert.stories.svelte.d.ts +14 -0
- package/dist/modals/alert.svelte +44 -0
- package/dist/modals/alert.svelte.d.ts +23 -0
- package/dist/modals/confirm.stories.svelte +9 -0
- package/dist/modals/confirm.stories.svelte.d.ts +14 -0
- package/dist/modals/confirm.svelte +57 -0
- package/dist/modals/confirm.svelte.d.ts +27 -0
- package/dist/modals/dialog-body.svelte +9 -0
- package/dist/modals/dialog-body.svelte.d.ts +27 -0
- package/dist/modals/dialog-footer.svelte +19 -0
- package/dist/modals/dialog-footer.svelte.d.ts +27 -0
- package/dist/modals/dialog-header.svelte +38 -0
- package/dist/modals/dialog-header.svelte.d.ts +20 -0
- package/dist/modals/dialog-window.svelte +33 -0
- package/dist/modals/dialog-window.svelte.d.ts +19 -0
- package/dist/modals/prompt.stories.svelte +9 -0
- package/dist/modals/prompt.stories.svelte.d.ts +14 -0
- package/dist/modals/prompt.svelte +66 -0
- package/dist/modals/prompt.svelte.d.ts +30 -0
- package/dist/navigation/accordian/accordian.stories.svelte +18 -0
- package/dist/navigation/accordian/accordian.stories.svelte.d.ts +14 -0
- package/dist/navigation/accordian/accordian.svelte +62 -0
- package/dist/navigation/accordian/accordian.svelte.d.ts +19 -0
- package/dist/navigation/app-bar/app-bar.stories.svelte +21 -0
- package/dist/navigation/app-bar/app-bar.stories.svelte.d.ts +14 -0
- package/dist/navigation/app-bar/app-bar.svelte +53 -0
- package/dist/navigation/app-bar/app-bar.svelte.d.ts +22 -0
- package/dist/navigation/breadcrumbs/breadcrumbs.stories.svelte +16 -0
- package/dist/navigation/breadcrumbs/breadcrumbs.stories.svelte.d.ts +14 -0
- package/dist/navigation/breadcrumbs/breadcrumbs.svelte +56 -0
- package/dist/navigation/breadcrumbs/breadcrumbs.svelte.d.ts +20 -0
- package/dist/navigation/side-bar/side-bar.stories.svelte +19 -0
- package/dist/navigation/side-bar/side-bar.stories.svelte.d.ts +14 -0
- package/dist/navigation/side-bar/side-bar.svelte +33 -0
- package/dist/navigation/side-bar/side-bar.svelte.d.ts +18 -0
- package/dist/navigation/tabs/tab-group.svelte +20 -0
- package/dist/navigation/tabs/tab-group.svelte.d.ts +21 -0
- package/dist/navigation/tabs/tab.svelte +87 -0
- package/dist/navigation/tabs/tab.svelte.d.ts +21 -0
- package/dist/navigation/tabs/tabs.stories.svelte +20 -0
- package/dist/navigation/tabs/tabs.stories.svelte.d.ts +14 -0
- package/dist/tables/data-grid.stories.svelte +40 -0
- package/dist/tables/data-grid.stories.svelte.d.ts +14 -0
- package/dist/tables/data-grid.svelte +43 -0
- package/dist/tables/data-grid.svelte.d.ts +18 -0
- package/dist/tables/table-body.svelte +3 -0
- package/dist/tables/table-body.svelte.d.ts +27 -0
- package/dist/tables/table-cell.svelte +13 -0
- package/dist/tables/table-cell.svelte.d.ts +18 -0
- package/dist/tables/table-footer-cell.svelte +12 -0
- package/dist/tables/table-footer-cell.svelte.d.ts +18 -0
- package/dist/tables/table-footer-row.svelte +3 -0
- package/dist/tables/table-footer-row.svelte.d.ts +27 -0
- package/dist/tables/table-footer.svelte +11 -0
- package/dist/tables/table-footer.svelte.d.ts +27 -0
- package/dist/tables/table-header-cell.svelte +18 -0
- package/dist/tables/table-header-cell.svelte.d.ts +18 -0
- package/dist/tables/table-header-row.svelte +4 -0
- package/dist/tables/table-header-row.svelte.d.ts +27 -0
- package/dist/tables/table-header.svelte +14 -0
- package/dist/tables/table-header.svelte.d.ts +27 -0
- package/dist/tables/table-row.svelte +15 -0
- package/dist/tables/table-row.svelte.d.ts +27 -0
- package/dist/tables/table.svelte +10 -0
- package/dist/tables/table.svelte.d.ts +27 -0
- package/package.json +73 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script>import TableBody from "./table-body.svelte";
|
|
2
|
+
import TableCell from "./table-cell.svelte";
|
|
3
|
+
import TableFooterCell from "./table-footer-cell.svelte";
|
|
4
|
+
import TableFooterRow from "./table-footer-row.svelte";
|
|
5
|
+
import TableFooter from "./table-footer.svelte";
|
|
6
|
+
import TableHeaderCell from "./table-header-cell.svelte";
|
|
7
|
+
import TableHeaderRow from "./table-header-row.svelte";
|
|
8
|
+
import TableHeader from "./table-header.svelte";
|
|
9
|
+
import TableRow from "./table-row.svelte";
|
|
10
|
+
import Table from "./table.svelte";
|
|
11
|
+
export let data;
|
|
12
|
+
export let cols;
|
|
13
|
+
$:
|
|
14
|
+
colCount = Math.max(1, cols.filter((col) => !col.hide).length);
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<Table>
|
|
18
|
+
<TableHeader>
|
|
19
|
+
<TableHeaderRow>
|
|
20
|
+
{#each cols as col}
|
|
21
|
+
{#if !col.hide}
|
|
22
|
+
<TableHeaderCell>{col.label}</TableHeaderCell>
|
|
23
|
+
{/if}
|
|
24
|
+
{/each}
|
|
25
|
+
</TableHeaderRow>
|
|
26
|
+
</TableHeader>
|
|
27
|
+
<TableBody>
|
|
28
|
+
{#each data as row}
|
|
29
|
+
<TableRow>
|
|
30
|
+
{#each cols as col}
|
|
31
|
+
{#if !col.hide}
|
|
32
|
+
<TableCell>{row[col.key]}</TableCell>
|
|
33
|
+
{/if}
|
|
34
|
+
{/each}
|
|
35
|
+
</TableRow>
|
|
36
|
+
{/each}
|
|
37
|
+
</TableBody>
|
|
38
|
+
<TableFooter>
|
|
39
|
+
<TableFooterRow>
|
|
40
|
+
<TableFooterCell colspan={colCount}>Page 1 of 50</TableFooterCell>
|
|
41
|
+
</TableFooterRow>
|
|
42
|
+
</TableFooter>
|
|
43
|
+
</Table>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { DataCol, DataRow } from '../../types/data.js';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
data: DataRow[];
|
|
6
|
+
cols: DataCol[];
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {};
|
|
12
|
+
};
|
|
13
|
+
export type DataGridProps = typeof __propDef.props;
|
|
14
|
+
export type DataGridEvents = typeof __propDef.events;
|
|
15
|
+
export type DataGridSlots = typeof __propDef.slots;
|
|
16
|
+
export default class DataGrid extends SvelteComponent<DataGridProps, DataGridEvents, DataGridSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} TableBodyProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TableBodyEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TableBodySlots */
|
|
4
|
+
export default class TableBody extends SvelteComponent<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type TableBodyProps = typeof __propDef.props;
|
|
13
|
+
export type TableBodyEvents = typeof __propDef.events;
|
|
14
|
+
export type TableBodySlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponent } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
colspan?: number | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {
|
|
10
|
+
default: {};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type TableCellProps = typeof __propDef.props;
|
|
14
|
+
export type TableCellEvents = typeof __propDef.events;
|
|
15
|
+
export type TableCellSlots = typeof __propDef.slots;
|
|
16
|
+
export default class TableCell extends SvelteComponent<TableCellProps, TableCellEvents, TableCellSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
colspan?: number | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {
|
|
10
|
+
default: {};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type TableFooterCellProps = typeof __propDef.props;
|
|
14
|
+
export type TableFooterCellEvents = typeof __propDef.events;
|
|
15
|
+
export type TableFooterCellSlots = typeof __propDef.slots;
|
|
16
|
+
export default class TableFooterCell extends SvelteComponent<TableFooterCellProps, TableFooterCellEvents, TableFooterCellSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} TableFooterRowProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TableFooterRowEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TableFooterRowSlots */
|
|
4
|
+
export default class TableFooterRow extends SvelteComponent<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type TableFooterRowProps = typeof __propDef.props;
|
|
13
|
+
export type TableFooterRowEvents = typeof __propDef.events;
|
|
14
|
+
export type TableFooterRowSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponent } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} TableFooterProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TableFooterEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TableFooterSlots */
|
|
4
|
+
export default class TableFooter extends SvelteComponent<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type TableFooterProps = typeof __propDef.props;
|
|
13
|
+
export type TableFooterEvents = typeof __propDef.events;
|
|
14
|
+
export type TableFooterSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponent } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script>export let colspan = 1;
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<th {colspan}>
|
|
5
|
+
<slot />
|
|
6
|
+
</th>
|
|
7
|
+
|
|
8
|
+
<style>
|
|
9
|
+
th {
|
|
10
|
+
text-align: left;
|
|
11
|
+
padding: 0.5rem 0.75rem;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
font-size: 0.875rem;
|
|
14
|
+
line-height: 1.25rem;
|
|
15
|
+
letter-spacing: 0.015em;
|
|
16
|
+
text-transform: uppercase;
|
|
17
|
+
}
|
|
18
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
colspan?: number | undefined;
|
|
5
|
+
};
|
|
6
|
+
events: {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
};
|
|
9
|
+
slots: {
|
|
10
|
+
default: {};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type TableHeaderCellProps = typeof __propDef.props;
|
|
14
|
+
export type TableHeaderCellEvents = typeof __propDef.events;
|
|
15
|
+
export type TableHeaderCellSlots = typeof __propDef.slots;
|
|
16
|
+
export default class TableHeaderCell extends SvelteComponent<TableHeaderCellProps, TableHeaderCellEvents, TableHeaderCellSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} TableHeaderRowProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TableHeaderRowEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TableHeaderRowSlots */
|
|
4
|
+
export default class TableHeaderRow extends SvelteComponent<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type TableHeaderRowProps = typeof __propDef.props;
|
|
13
|
+
export type TableHeaderRowEvents = typeof __propDef.events;
|
|
14
|
+
export type TableHeaderRowSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponent } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} TableHeaderProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TableHeaderEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TableHeaderSlots */
|
|
4
|
+
export default class TableHeader extends SvelteComponent<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type TableHeaderProps = typeof __propDef.props;
|
|
13
|
+
export type TableHeaderEvents = typeof __propDef.events;
|
|
14
|
+
export type TableHeaderSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponent } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} TableRowProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TableRowEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TableRowSlots */
|
|
4
|
+
export default class TableRow extends SvelteComponent<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type TableRowProps = typeof __propDef.props;
|
|
13
|
+
export type TableRowEvents = typeof __propDef.events;
|
|
14
|
+
export type TableRowSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponent } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} TableProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TableEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TableSlots */
|
|
4
|
+
export default class Table extends SvelteComponent<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type TableProps = typeof __propDef.props;
|
|
13
|
+
export type TableEvents = typeof __propDef.events;
|
|
14
|
+
export type TableSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponent } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sveltacular",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"watch": "npm run dev -- --open",
|
|
6
|
+
"dev": "vite dev",
|
|
7
|
+
"build": "vite build && npm run package",
|
|
8
|
+
"preview": "vite preview",
|
|
9
|
+
"package": "svelte-kit sync && svelte-package && publint",
|
|
10
|
+
"prepublishOnly": "npm run package",
|
|
11
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
12
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
13
|
+
"test": "vitest",
|
|
14
|
+
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
|
15
|
+
"format": "prettier --plugin-search-dir . --write .",
|
|
16
|
+
"storybook": "storybook dev -p 6006",
|
|
17
|
+
"build-storybook": "storybook build"
|
|
18
|
+
},
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"svelte": "./dist/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"!dist/**/*.test.*",
|
|
28
|
+
"!dist/**/*.spec.*"
|
|
29
|
+
],
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"svelte": "^4.0.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@storybook/addon-essentials": "^7.2.3",
|
|
35
|
+
"@storybook/addon-interactions": "^7.2.3",
|
|
36
|
+
"@storybook/addon-links": "^7.2.3",
|
|
37
|
+
"@storybook/addon-svelte-csf": "^3.0.7",
|
|
38
|
+
"@storybook/blocks": "^7.2.3",
|
|
39
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
40
|
+
"@storybook/svelte": "^7.2.3",
|
|
41
|
+
"@storybook/sveltekit": "^7.2.3",
|
|
42
|
+
"@storybook/testing-library": "^0.2.0",
|
|
43
|
+
"@sveltejs/adapter-auto": "^2.0.0",
|
|
44
|
+
"@sveltejs/kit": "^1.20.4",
|
|
45
|
+
"@sveltejs/package": "^2.0.0",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
47
|
+
"@typescript-eslint/parser": "^5.45.0",
|
|
48
|
+
"css-loader": "^6.8.1",
|
|
49
|
+
"eslint": "^8.28.0",
|
|
50
|
+
"eslint-config-prettier": "^8.5.0",
|
|
51
|
+
"eslint-plugin-storybook": "^0.6.13",
|
|
52
|
+
"eslint-plugin-svelte": "^2.30.0",
|
|
53
|
+
"prettier": "^2.8.0",
|
|
54
|
+
"prettier-plugin-svelte": "^2.10.1",
|
|
55
|
+
"publint": "^0.1.9",
|
|
56
|
+
"react": "^18.2.0",
|
|
57
|
+
"react-dom": "^18.2.0",
|
|
58
|
+
"sass": "^1.65.1",
|
|
59
|
+
"sass-loader": "^13.3.2",
|
|
60
|
+
"storybook": "^7.2.3",
|
|
61
|
+
"storybook-dark-mode": "^3.0.1",
|
|
62
|
+
"style-loader": "^3.3.3",
|
|
63
|
+
"svelte": "^4.0.5",
|
|
64
|
+
"svelte-check": "^3.4.3",
|
|
65
|
+
"tslib": "^2.4.1",
|
|
66
|
+
"typescript": "^5.0.0",
|
|
67
|
+
"vite": "^4.4.2",
|
|
68
|
+
"vitest": "^0.34.0"
|
|
69
|
+
},
|
|
70
|
+
"svelte": "./dist/index.js",
|
|
71
|
+
"types": "./dist/index.d.ts",
|
|
72
|
+
"type": "module"
|
|
73
|
+
}
|