@reshape-biotech/design-system 0.0.32 → 0.0.34
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/banner/Banner.stories.svelte +1 -1
- package/dist/components/banner/Banner.stories.svelte.d.ts +19 -0
- package/dist/components/button/Button.stories.svelte.d.ts +19 -0
- package/dist/components/divider/Divider.stories.svelte.d.ts +27 -0
- package/dist/components/drawer/Drawer.stories.svelte +6 -11
- package/dist/components/drawer/Drawer.stories.svelte.d.ts +27 -0
- package/dist/components/drawer/Drawer.svelte +3 -4
- package/dist/components/drawer/Drawer.svelte.d.ts +7 -2
- package/dist/components/dropdown/Dropdown.stories.svelte.d.ts +27 -0
- package/dist/components/dropdown/Dropdown.svelte +4 -2
- package/dist/components/dropdown/Dropdown.svelte.d.ts +14 -2
- package/dist/components/icon-button/IconButton.stories.svelte +1 -1
- package/dist/components/icon-button/IconButton.stories.svelte.d.ts +19 -0
- package/dist/components/input/Input.stories.svelte.d.ts +27 -0
- package/dist/components/list/List.stories.svelte +1 -1
- package/dist/components/list/List.stories.svelte.d.ts +19 -0
- package/dist/components/markdown/Markdown.stories.svelte.d.ts +27 -0
- package/dist/components/modal/Modal.stories.svelte +2 -2
- package/dist/components/modal/Modal.stories.svelte.d.ts +19 -0
- package/dist/components/notification-popup/NotificationPopup.stories.svelte.d.ts +27 -0
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte +3 -3
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte.d.ts +19 -0
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.svelte +2 -2
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.svelte.d.ts +3 -1
- package/dist/components/select/Select.stories.svelte.d.ts +19 -0
- package/dist/components/skeleton-loader/SkeletonLoader.stories.svelte.d.ts +27 -0
- package/dist/components/skeleton-loader/SkeletonLoader.svelte +1 -1
- package/dist/components/skeleton-loader/SkeletonLoader.svelte.d.ts +6 -1
- package/dist/components/slider/Slider.stories.svelte.d.ts +27 -0
- package/dist/components/stat-card/StatCard.stories.svelte.d.ts +27 -0
- package/dist/components/status-badge/StatusBadge.stories.svelte.d.ts +19 -0
- package/dist/components/table/Table.stories.svelte +1 -1
- package/dist/components/table/Table.stories.svelte.d.ts +24 -0
- package/dist/components/table/Table.svelte +1 -1
- package/dist/components/table/Table.svelte.d.ts +10 -1
- package/dist/components/tabs/Tabs.stories.svelte.d.ts +27 -0
- package/dist/components/tag/Tag.stories.svelte.d.ts +19 -0
- package/dist/components/tooltip/Tooltip.stories.svelte.d.ts +27 -0
- package/dist/tailwind.d.ts +11 -0
- package/dist/tailwind.js +1 -0
- package/package.json +4 -6
- package/dist/components/toast/Toast.svelte +0 -66
- package/dist/components/toast/Toast.svelte.d.ts +0 -5
- package/dist/components/toast/index.d.ts +0 -1
- package/dist/components/toast/index.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
2
|
import { Info, Warning as WarningIcon } from 'phosphor-svelte';
|
|
3
3
|
import Banner from './Banner.svelte';
|
|
4
|
+
import Button from '../button/Button.svelte';
|
|
4
5
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
5
|
-
import Button from 'design-system/components/button/Button.svelte';
|
|
6
6
|
|
|
7
7
|
const { Story } = defineMeta({
|
|
8
8
|
component: Banner,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Banner from './Banner.svelte';
|
|
2
|
+
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> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const Banner: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type Banner = InstanceType<typeof Banner>;
|
|
19
|
+
export default Banner;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Button from './Button.svelte';
|
|
2
|
+
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> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const Button: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type Button = InstanceType<typeof Button>;
|
|
19
|
+
export default Button;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default Divider;
|
|
2
|
+
type Divider = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Divider: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
import Divider from './Divider.svelte';
|
|
15
|
+
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> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
27
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script module>
|
|
2
2
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import Button from 'design-system/components/button/Button.svelte';
|
|
4
3
|
import Drawer from './Drawer.svelte';
|
|
5
4
|
|
|
6
5
|
const { Story } = defineMeta({
|
|
@@ -37,11 +36,9 @@
|
|
|
37
36
|
<div class="py-12">
|
|
38
37
|
<Drawer id="my-drawer" open controlled>
|
|
39
38
|
{#snippet trigger({ C })}
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</C.DrawerLabel>
|
|
44
|
-
</div>
|
|
39
|
+
<C.DrawerLabel id="my-drawer" classes="btn btn-primary rounded-full "
|
|
40
|
+
>Open Drawer
|
|
41
|
+
</C.DrawerLabel>
|
|
45
42
|
{/snippet}
|
|
46
43
|
{#snippet content()}
|
|
47
44
|
<div>
|
|
@@ -58,11 +55,9 @@
|
|
|
58
55
|
<div class="py-12">
|
|
59
56
|
<Drawer id="my-drawer" side="left">
|
|
60
57
|
{#snippet trigger({ C })}
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</C.DrawerLabel>
|
|
65
|
-
</div>
|
|
58
|
+
<C.DrawerLabel id="my-drawer" classes="btn btn-primary rounded-full "
|
|
59
|
+
>Open Drawer
|
|
60
|
+
</C.DrawerLabel>
|
|
66
61
|
{/snippet}
|
|
67
62
|
{#snippet content()}
|
|
68
63
|
<div>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default Drawer;
|
|
2
|
+
type Drawer = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Drawer: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
import Drawer from './Drawer.svelte';
|
|
15
|
+
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> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
27
|
+
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
// Open only works when controlled is true
|
|
9
9
|
open?: boolean;
|
|
10
10
|
side?: 'left' | 'right';
|
|
11
|
-
trigger?: Snippet<[
|
|
12
|
-
content
|
|
11
|
+
trigger?: Snippet<[{ C: { DrawerLabel: typeof DrawerLabel } }]>;
|
|
12
|
+
content: Snippet;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
let {
|
|
@@ -33,13 +33,12 @@
|
|
|
33
33
|
{/if}
|
|
34
34
|
|
|
35
35
|
<div class="drawer-content">
|
|
36
|
-
<!-- Page content here -->
|
|
37
36
|
{@render trigger?.({ C })}
|
|
38
37
|
</div>
|
|
39
38
|
<div class="drawer-side" inert={controlled ? !open : false}>
|
|
40
39
|
<label for={id} aria-label="close sidebar" class="drawer-overlay"></label>
|
|
41
40
|
<div class="h-screen bg-base sm:w-[460px]">
|
|
42
|
-
{@render content
|
|
41
|
+
{@render content()}
|
|
43
42
|
</div>
|
|
44
43
|
</div>
|
|
45
44
|
</div>
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
+
import DrawerLabel from './DrawerLabel.svelte';
|
|
2
3
|
interface Props {
|
|
3
4
|
id: string;
|
|
4
5
|
controlled?: boolean;
|
|
5
6
|
open?: boolean;
|
|
6
7
|
side?: 'left' | 'right';
|
|
7
|
-
trigger?: Snippet<[
|
|
8
|
-
|
|
8
|
+
trigger?: Snippet<[{
|
|
9
|
+
C: {
|
|
10
|
+
DrawerLabel: typeof DrawerLabel;
|
|
11
|
+
};
|
|
12
|
+
}]>;
|
|
13
|
+
content: Snippet;
|
|
9
14
|
}
|
|
10
15
|
declare const Drawer: import("svelte").Component<Props, {}, "open">;
|
|
11
16
|
type Drawer = ReturnType<typeof Drawer>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default Dropdown;
|
|
2
|
+
type Dropdown = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Dropdown: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
import Dropdown from './Dropdown.svelte';
|
|
15
|
+
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> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
27
|
+
}
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
openOnHover?: boolean;
|
|
12
12
|
closeOnItemClick?: boolean;
|
|
13
13
|
class?: string;
|
|
14
|
-
trigger?: Snippet<[
|
|
15
|
-
content?: Snippet<
|
|
14
|
+
trigger?: Snippet<[{ Trigger: typeof DropdownTrigger }]>;
|
|
15
|
+
content?: Snippet<
|
|
16
|
+
[{ C: { DropdownContent: typeof DropdownContent; DropdownMenu: typeof DropdownMenu } }]
|
|
17
|
+
>;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
let {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
+
import DropdownContent from './components/DropdownContent.svelte';
|
|
3
|
+
import DropdownMenu from './components/DropdownMenu.svelte';
|
|
4
|
+
import DropdownTrigger from './components/DropdownTrigger.svelte';
|
|
2
5
|
interface Props {
|
|
3
6
|
side?: 'dropdown-top' | 'dropdown-bottom' | 'dropdown-left' | 'dropdown-right';
|
|
4
7
|
open?: boolean;
|
|
@@ -6,8 +9,17 @@ interface Props {
|
|
|
6
9
|
openOnHover?: boolean;
|
|
7
10
|
closeOnItemClick?: boolean;
|
|
8
11
|
class?: string;
|
|
9
|
-
trigger?: Snippet<[
|
|
10
|
-
|
|
12
|
+
trigger?: Snippet<[{
|
|
13
|
+
Trigger: typeof DropdownTrigger;
|
|
14
|
+
}]>;
|
|
15
|
+
content?: Snippet<[
|
|
16
|
+
{
|
|
17
|
+
C: {
|
|
18
|
+
DropdownContent: typeof DropdownContent;
|
|
19
|
+
DropdownMenu: typeof DropdownMenu;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
]>;
|
|
11
23
|
}
|
|
12
24
|
declare const Dropdown: import("svelte").Component<Props, {}, "open">;
|
|
13
25
|
type Dropdown = ReturnType<typeof Dropdown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
2
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
-
import IconButton from '
|
|
3
|
+
import IconButton from '../icon-button/IconButton.svelte';
|
|
4
4
|
import { Plus } from 'phosphor-svelte';
|
|
5
5
|
|
|
6
6
|
const { Story } = defineMeta({
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import IconButton from '../icon-button/IconButton.svelte';
|
|
2
|
+
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> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const IconButton: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type IconButton = InstanceType<typeof IconButton>;
|
|
19
|
+
export default IconButton;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default Input;
|
|
2
|
+
type Input = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Input: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
import Input from './Input.svelte';
|
|
15
|
+
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> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
27
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
2
|
import List from './List.svelte';
|
|
3
|
-
import Tag from '
|
|
3
|
+
import Tag from '../tag/Tag.svelte';
|
|
4
4
|
import { ArrowUpRight } from 'phosphor-svelte';
|
|
5
5
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
6
6
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import List from './List.svelte';
|
|
2
|
+
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> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const List: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type List = InstanceType<typeof List>;
|
|
19
|
+
export default List;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default Markdown;
|
|
2
|
+
type Markdown = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Markdown: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
import Markdown from './Markdown.svelte';
|
|
15
|
+
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> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
27
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import Button from '
|
|
3
|
-
import Modal from '
|
|
2
|
+
import Button from '../button/Button.svelte';
|
|
3
|
+
import Modal from '../modal/Modal.svelte';
|
|
4
4
|
import ContactSupportModal from './ContactSupportModal.svelte';
|
|
5
5
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
6
6
|
const { Story } = defineMeta({
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Modal from '../modal/Modal.svelte';
|
|
2
|
+
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> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const Modal: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type Modal = InstanceType<typeof Modal>;
|
|
19
|
+
export default Modal;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default NotificationPopup;
|
|
2
|
+
type NotificationPopup = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const NotificationPopup: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
import NotificationPopup from './NotificationPopup.svelte';
|
|
15
|
+
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> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
27
|
+
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
<Story name="Primary">
|
|
14
14
|
<SegmentedControlButtons class="w-[350px]">
|
|
15
|
-
{#snippet children(ControlButton)}
|
|
15
|
+
{#snippet children({ ControlButton })}
|
|
16
16
|
<ControlButton active><Star /> Low</ControlButton>
|
|
17
17
|
<ControlButton><Star /> Medium</ControlButton>
|
|
18
18
|
<ControlButton disabled><Star /> High</ControlButton>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
</Story>
|
|
22
22
|
<Story name="Large">
|
|
23
23
|
<SegmentedControlButtons size="lg" class="w-[350px]">
|
|
24
|
-
{#snippet children(ControlButton)}
|
|
24
|
+
{#snippet children({ ControlButton })}
|
|
25
25
|
<ControlButton active><Star /> Low</ControlButton>
|
|
26
26
|
<ControlButton><Star /> Medium</ControlButton>
|
|
27
27
|
<ControlButton disabled><Star /> High</ControlButton>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
</Story>
|
|
31
31
|
<Story name="Secondary">
|
|
32
32
|
<SegmentedControlButtons class="w-[350px]">
|
|
33
|
-
{#snippet children(ControlButton)}
|
|
33
|
+
{#snippet children({ ControlButton })}
|
|
34
34
|
<ControlButton active color="secondary">
|
|
35
35
|
<Star /> Low
|
|
36
36
|
</ControlButton>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import SegmentedControlButtons from './SegmentedControlButtons.svelte';
|
|
2
|
+
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> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const SegmentedControlButtons: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type SegmentedControlButtons = InstanceType<typeof SegmentedControlButtons>;
|
|
19
|
+
export default SegmentedControlButtons;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
interface Props {
|
|
6
6
|
class?: string;
|
|
7
7
|
size?: 'md' | 'lg';
|
|
8
|
-
children?: Snippet<[typeof ControlButton]>;
|
|
8
|
+
children?: Snippet<[{ ControlButton: typeof ControlButton }]>;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
let { class: className = '', size = 'md', children }: Props = $props();
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<div class={`join flex gap-1 rounded-lg bg-neutral p-1 ${sizes[size]} ${size} ${className}`}>
|
|
20
|
-
{@render children?.(ControlButton)}
|
|
20
|
+
{@render children?.({ ControlButton })}
|
|
21
21
|
</div>
|
|
@@ -3,7 +3,9 @@ import ControlButton from './ControlButton.svelte';
|
|
|
3
3
|
interface Props {
|
|
4
4
|
class?: string;
|
|
5
5
|
size?: 'md' | 'lg';
|
|
6
|
-
children?: Snippet<[
|
|
6
|
+
children?: Snippet<[{
|
|
7
|
+
ControlButton: typeof ControlButton;
|
|
8
|
+
}]>;
|
|
7
9
|
}
|
|
8
10
|
declare const SegmentedControlButtons: import("svelte").Component<Props, {}, "">;
|
|
9
11
|
type SegmentedControlButtons = ReturnType<typeof SegmentedControlButtons>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Select from './Select.svelte';
|
|
2
|
+
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> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const Select: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type Select = InstanceType<typeof Select>;
|
|
19
|
+
export default Select;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default SkeletonLoader;
|
|
2
|
+
type SkeletonLoader = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const SkeletonLoader: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
import SkeletonLoader from './SkeletonLoader.svelte';
|
|
15
|
+
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> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
27
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
interface Props {
|
|
7
7
|
class?: string;
|
|
8
8
|
dataTestId?: string;
|
|
9
|
-
children?: Snippet<[
|
|
9
|
+
children?: Snippet<[{ Skeleton: typeof Skeleton; SkeletonImage: typeof SkeletonImage }]>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
let { class: className = '', dataTestId = '', children }: Props = $props();
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
+
import Skeleton from './components/Skeleton.svelte';
|
|
3
|
+
import SkeletonImage from './components/SkeletonImage.svelte';
|
|
2
4
|
interface Props {
|
|
3
5
|
class?: string;
|
|
4
6
|
dataTestId?: string;
|
|
5
|
-
children?: Snippet<[
|
|
7
|
+
children?: Snippet<[{
|
|
8
|
+
Skeleton: typeof Skeleton;
|
|
9
|
+
SkeletonImage: typeof SkeletonImage;
|
|
10
|
+
}]>;
|
|
6
11
|
}
|
|
7
12
|
declare const SkeletonLoader: import("svelte").Component<Props, {}, "">;
|
|
8
13
|
type SkeletonLoader = ReturnType<typeof SkeletonLoader>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default Slider;
|
|
2
|
+
type Slider = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const Slider: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
import Slider from './Slider.svelte';
|
|
15
|
+
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> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default StatCard;
|
|
2
|
+
type StatCard = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const StatCard: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
import StatCard from './StatCard.svelte';
|
|
15
|
+
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> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import StatusBadge from '../status-badge/StatusBadge.svelte';
|
|
2
|
+
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> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const StatusBadge: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type StatusBadge = InstanceType<typeof StatusBadge>;
|
|
19
|
+
export default StatusBadge;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
title: 'Design System/Table',
|
|
8
8
|
tags: ['autodocs']
|
|
9
9
|
});
|
|
10
|
-
import IconButton from '
|
|
10
|
+
import IconButton from '../icon-button/IconButton.svelte';
|
|
11
11
|
import { Phone } from 'phosphor-svelte';
|
|
12
12
|
|
|
13
13
|
export const users = [
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Table from './Table.svelte';
|
|
2
|
+
export declare const users: {
|
|
3
|
+
name: string;
|
|
4
|
+
age: number;
|
|
5
|
+
role: string;
|
|
6
|
+
}[];
|
|
7
|
+
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> {
|
|
8
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
9
|
+
$$bindings?: Bindings;
|
|
10
|
+
} & Exports;
|
|
11
|
+
(internal: unknown, props: {
|
|
12
|
+
$$events?: Events;
|
|
13
|
+
$$slots?: Slots;
|
|
14
|
+
}): Exports & {
|
|
15
|
+
$set?: any;
|
|
16
|
+
$on?: any;
|
|
17
|
+
};
|
|
18
|
+
z_$$bindings?: Bindings;
|
|
19
|
+
}
|
|
20
|
+
declare const Table: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
}, {}, {}, string>;
|
|
23
|
+
type Table = InstanceType<typeof Table>;
|
|
24
|
+
export default Table;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
+
import Td from './components/Td.svelte';
|
|
3
|
+
import Th from './components/Th.svelte';
|
|
4
|
+
import Tr from './components/Tr.svelte';
|
|
2
5
|
interface Props {
|
|
3
6
|
tableLayout?: 'fixed' | 'auto';
|
|
4
|
-
children?: Snippet<[
|
|
7
|
+
children?: Snippet<[{
|
|
8
|
+
C: {
|
|
9
|
+
Tr: typeof Tr;
|
|
10
|
+
Th: typeof Th;
|
|
11
|
+
Td: typeof Td;
|
|
12
|
+
};
|
|
13
|
+
}]>;
|
|
5
14
|
}
|
|
6
15
|
declare const Table: import("svelte").Component<Props, {}, "">;
|
|
7
16
|
type Table = ReturnType<typeof Table>;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
import Tabs from './Tabs.svelte';
|
|
15
|
+
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> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
27
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Tag from './Tag.svelte';
|
|
2
|
+
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> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const Tag: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type Tag = InstanceType<typeof Tag>;
|
|
19
|
+
export default Tag;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
import Tooltip from './Tooltip.svelte';
|
|
15
|
+
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> {
|
|
16
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
+
$$bindings?: Bindings;
|
|
18
|
+
} & Exports;
|
|
19
|
+
(internal: unknown, props: {
|
|
20
|
+
$$events?: Events;
|
|
21
|
+
$$slots?: Slots;
|
|
22
|
+
}): Exports & {
|
|
23
|
+
$set?: any;
|
|
24
|
+
$on?: any;
|
|
25
|
+
};
|
|
26
|
+
z_$$bindings?: Bindings;
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Tailwindest } from 'tailwindest';
|
|
2
|
+
export type Overflow = Tailwindest['overflow'];
|
|
3
|
+
export type Width = Tailwindest['width'];
|
|
4
|
+
export type MinWidth = Tailwindest['minWidth'];
|
|
5
|
+
export type Height = Tailwindest['height'];
|
|
6
|
+
export type MaxHeight = Tailwindest['maxHeight'];
|
|
7
|
+
export type Margin = Tailwindest['margin'];
|
|
8
|
+
export type Padding = Tailwindest['padding'];
|
|
9
|
+
export type JustifyContent = Tailwindest['justifyContent'];
|
|
10
|
+
export type Rounding = Tailwindest['borderRadius'];
|
|
11
|
+
export type ButtonVariant = 'btn-neutral' | 'btn-primary' | 'btn-secondary' | 'btn-accent' | 'btn-info' | 'btn-success' | 'btn-warning' | 'btn-error' | 'btn-ghost' | 'btn-link' | 'btn-outline' | 'btn-active' | 'btn-disabled';
|
package/dist/tailwind.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reshape-biotech/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
|
-
"build": "vite build
|
|
6
|
+
"build": "vite build",
|
|
7
7
|
"package": "svelte-package --input ./src/lib --output ./dist",
|
|
8
8
|
"check": "svelte-check",
|
|
9
9
|
"test": "vitest run",
|
|
@@ -40,8 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@eslint/compat": "^1.2.3",
|
|
43
|
-
"@storybook/addon-svelte-csf": "^5.0.0-next.11",
|
|
44
|
-
"@storybook/svelte": "^8.4.7",
|
|
45
43
|
"@sveltejs/adapter-vercel": "^5.5.0",
|
|
46
44
|
"@sveltejs/kit": "^2.9.0",
|
|
47
45
|
"@sveltejs/package": "^2.0.0",
|
|
@@ -65,13 +63,13 @@
|
|
|
65
63
|
"publint": "^0.2.0",
|
|
66
64
|
"svelte": "^5.0.0",
|
|
67
65
|
"svelte-check": "^4.0.0",
|
|
66
|
+
"svelte-select": "^5.8.1",
|
|
68
67
|
"tailwindcss": "^3.4.9",
|
|
69
68
|
"typescript": "^5.0.0",
|
|
70
69
|
"typescript-eslint": "^8.0.0",
|
|
71
70
|
"vite": "^5.4.4",
|
|
72
71
|
"vitest": "^2.1.4",
|
|
73
|
-
"marked": "^15.0.0"
|
|
74
|
-
"svelte-select": "^5.8.1"
|
|
72
|
+
"marked": "^15.0.0"
|
|
75
73
|
},
|
|
76
74
|
"dependencies": {}
|
|
77
75
|
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { flip } from 'svelte/animate';
|
|
3
|
-
import { fly } from 'svelte/transition';
|
|
4
|
-
import { notifications } from '../../notifications';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @typedef {Object} Props
|
|
8
|
-
* @property {any} [themes]
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/** @type {Props} */
|
|
12
|
-
let {
|
|
13
|
-
themes = {
|
|
14
|
-
danger: '#E26D69',
|
|
15
|
-
success: '#84C991',
|
|
16
|
-
warning: '#f0ad4e',
|
|
17
|
-
info: '#5bc0de',
|
|
18
|
-
default: '#aaaaaa'
|
|
19
|
-
}
|
|
20
|
-
} = $props();
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<div class="notifications">
|
|
24
|
-
{#each $notifications as notification (notification.id)}
|
|
25
|
-
<div
|
|
26
|
-
animate:flip
|
|
27
|
-
class="toast-custom"
|
|
28
|
-
style="background: {themes[notification.type]};"
|
|
29
|
-
transition:fly={{ y: 30 }}
|
|
30
|
-
>
|
|
31
|
-
<div class="content">{notification.message}</div>
|
|
32
|
-
{#if notification.icon}<i class={notification.icon}></i>{/if}
|
|
33
|
-
</div>
|
|
34
|
-
{/each}
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
<style>
|
|
38
|
-
.notifications {
|
|
39
|
-
position: fixed;
|
|
40
|
-
top: 10px;
|
|
41
|
-
left: 0;
|
|
42
|
-
right: 0;
|
|
43
|
-
margin: 0 auto;
|
|
44
|
-
padding: 0;
|
|
45
|
-
z-index: 9999;
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
justify-content: flex-start;
|
|
49
|
-
align-items: center;
|
|
50
|
-
pointer-events: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.toast-custom {
|
|
54
|
-
flex: 0 0 auto;
|
|
55
|
-
padding: 0 16px;
|
|
56
|
-
margin-bottom: 10px;
|
|
57
|
-
border-radius: 100px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.content {
|
|
61
|
-
padding: 10px;
|
|
62
|
-
display: block;
|
|
63
|
-
color: white;
|
|
64
|
-
font-weight: 500;
|
|
65
|
-
}
|
|
66
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Toast } from './Toast.svelte';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Toast } from './Toast.svelte';
|