@reshape-biotech/design-system 0.0.43 → 0.0.44
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/avatar/Avatar.svelte.d.ts +4 -4
- package/dist/components/banner/Banner.stories.svelte.d.ts +15 -32
- package/dist/components/banner/Banner.svelte +6 -6
- package/dist/components/banner/Banner.svelte.d.ts +6 -6
- package/dist/components/button/Button.stories.svelte.d.ts +15 -32
- package/dist/components/button/Button.svelte +81 -81
- package/dist/components/button/Button.svelte.d.ts +14 -18
- package/dist/components/datepicker/DatePicker.svelte +12 -13
- package/dist/components/datepicker/DatePicker.svelte.d.ts +3 -3
- package/dist/components/divider/Divider.stories.svelte.d.ts +23 -44
- package/dist/components/divider/Divider.svelte.d.ts +2 -2
- package/dist/components/drawer/Drawer.stories.svelte.d.ts +23 -44
- package/dist/components/drawer/Drawer.svelte.d.ts +7 -7
- package/dist/components/drawer/DrawerLabel.svelte +25 -23
- package/dist/components/drawer/DrawerLabel.svelte.d.ts +4 -4
- package/dist/components/dropdown/Dropdown.stories.svelte.d.ts +23 -44
- package/dist/components/dropdown/Dropdown.svelte.d.ts +17 -23
- package/dist/components/dropdown/components/DropdownContent.svelte.d.ts +4 -4
- package/dist/components/dropdown/components/DropdownMenu.svelte +2 -2
- package/dist/components/dropdown/components/DropdownMenu.svelte.d.ts +3 -3
- package/dist/components/dropdown/components/DropdownTrigger.svelte.d.ts +6 -6
- package/dist/components/dropdown/components/OutlinedButton.svelte +29 -27
- package/dist/components/dropdown/components/OutlinedButton.svelte.d.ts +3 -3
- package/dist/components/icon-button/IconButton.stories.svelte.d.ts +15 -32
- package/dist/components/icon-button/IconButton.svelte.d.ts +9 -9
- package/dist/components/image/Image.svelte +3 -3
- package/dist/components/image/Image.svelte.d.ts +3 -3
- package/dist/components/input/Input.stories.svelte.d.ts +23 -44
- package/dist/components/input/Input.svelte +32 -26
- package/dist/components/input/Input.svelte.d.ts +18 -22
- package/dist/components/list/List.stories.svelte.d.ts +15 -32
- package/dist/components/list/List.svelte +33 -28
- package/dist/components/list/List.svelte.d.ts +15 -24
- package/dist/components/logo/Logo.stories.svelte.d.ts +23 -44
- package/dist/components/logo/Logo.svelte.d.ts +2 -2
- package/dist/components/markdown/Markdown.stories.svelte.d.ts +23 -44
- package/dist/components/markdown/Markdown.svelte.d.ts +2 -2
- package/dist/components/modal/Modal.stories.svelte.d.ts +15 -32
- package/dist/components/modal/Modal.svelte +11 -11
- package/dist/components/modal/Modal.svelte.d.ts +12 -16
- package/dist/components/notification-popup/NotificationPopup.stories.svelte.d.ts +23 -44
- package/dist/components/notification-popup/NotificationPopup.svelte.d.ts +6 -6
- package/dist/components/pill/Pill.svelte +3 -3
- package/dist/components/pill/Pill.svelte.d.ts +6 -6
- package/dist/components/progress-circle/ProgressCircle.svelte +10 -6
- package/dist/components/progress-circle/ProgressCircle.svelte.d.ts +3 -3
- package/dist/components/segmented-control-buttons/ControlButton.svelte +10 -10
- package/dist/components/segmented-control-buttons/ControlButton.svelte.d.ts +8 -8
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte.d.ts +15 -32
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.svelte.d.ts +6 -10
- package/dist/components/select/Select.stories.svelte.d.ts +15 -32
- package/dist/components/select/Select.svelte +5 -5
- package/dist/components/select/Select.svelte.d.ts +56 -81
- package/dist/components/select/index.d.ts +4 -4
- package/dist/components/skeleton-loader/SkeletonLoader.stories.svelte.d.ts +23 -44
- package/dist/components/skeleton-loader/SkeletonLoader.svelte.d.ts +7 -11
- package/dist/components/skeleton-loader/StatcardSkeleton.svelte.d.ts +15 -32
- package/dist/components/skeleton-loader/components/Skeleton.svelte.d.ts +3 -3
- package/dist/components/skeleton-loader/components/SkeletonImage.svelte.d.ts +23 -44
- package/dist/components/slider/Slider.stories.svelte.d.ts +23 -44
- package/dist/components/slider/Slider.svelte +13 -15
- package/dist/components/slider/Slider.svelte.d.ts +26 -43
- package/dist/components/spinner/Spinner.svelte.d.ts +2 -2
- package/dist/components/stat-card/StatCard.stories.svelte.d.ts +23 -44
- package/dist/components/stat-card/StatCard.svelte.d.ts +6 -6
- package/dist/components/status-badge/StatusBadge.stories.svelte.d.ts +15 -32
- package/dist/components/status-badge/StatusBadge.svelte +73 -73
- package/dist/components/status-badge/StatusBadge.svelte.d.ts +7 -7
- package/dist/components/table/Table.stories.svelte.d.ts +18 -35
- package/dist/components/table/Table.svelte +5 -5
- package/dist/components/table/Table.svelte.d.ts +11 -13
- package/dist/components/table/components/TBody.svelte.d.ts +3 -3
- package/dist/components/table/components/THead.svelte.d.ts +3 -3
- package/dist/components/table/components/Td.svelte.d.ts +3 -3
- package/dist/components/table/components/Th.svelte.d.ts +3 -3
- package/dist/components/table/components/Tr.svelte +11 -11
- package/dist/components/table/components/Tr.svelte.d.ts +3 -3
- package/dist/components/tabs/Tabs.stories.svelte.d.ts +23 -44
- package/dist/components/tabs/Tabs.svelte.d.ts +6 -10
- package/dist/components/tabs/components/Content.svelte.d.ts +4 -4
- package/dist/components/tabs/components/Tab.svelte.d.ts +5 -5
- package/dist/components/tabs/components/Tabs.svelte.d.ts +3 -3
- package/dist/components/tag/Tag.stories.svelte.d.ts +15 -32
- package/dist/components/tag/Tag.svelte +16 -14
- package/dist/components/tag/Tag.svelte.d.ts +8 -12
- package/dist/components/toggle/Toggle.stories.svelte.d.ts +23 -44
- package/dist/components/toggle/Toggle.svelte +6 -6
- package/dist/components/toggle/Toggle.svelte.d.ts +5 -9
- package/dist/components/tooltip/Tooltip.stories.svelte.d.ts +23 -44
- package/dist/components/tooltip/Tooltip.svelte +10 -12
- package/dist/components/tooltip/Tooltip.svelte.d.ts +7 -7
- package/dist/fonts/index.d.ts +4 -4
- package/dist/fonts/index.js +4 -4
- package/dist/tailwind.d.ts +1 -14
- package/dist/tailwind.preset.d.ts +327 -330
- package/dist/tailwind.preset.js +47 -47
- package/dist/tokens.d.ts +558 -558
- package/dist/tokens.js +237 -237
- package/package.json +1 -1
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
-
declare const Input: import(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
{},
|
|
22
|
-
'input' | 'value'
|
|
23
|
-
>;
|
|
2
|
+
declare const Input: import("svelte").Component<{
|
|
3
|
+
label?: string | null;
|
|
4
|
+
value: string | number;
|
|
5
|
+
type?: "text" | "password" | "textarea" | "number";
|
|
6
|
+
required?: boolean;
|
|
7
|
+
autofocus?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
validator?: (a: string | number) => boolean;
|
|
11
|
+
onBlur?: (e: Event) => void;
|
|
12
|
+
onkeydown?: (e: KeyboardEvent) => void;
|
|
13
|
+
prefix?: Snippet<[any]>;
|
|
14
|
+
suffix?: Snippet;
|
|
15
|
+
error?: Snippet;
|
|
16
|
+
input?: HTMLInputElement | HTMLTextAreaElement;
|
|
17
|
+
maxlength?: number | null;
|
|
18
|
+
size?: "xs" | "sm" | "md";
|
|
19
|
+
}, {}, "input" | "value">;
|
|
24
20
|
type Input = ReturnType<typeof Input>;
|
|
25
21
|
export default Input;
|
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
import List from './List.svelte';
|
|
2
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
(
|
|
15
|
-
internal: unknown,
|
|
16
|
-
props: {
|
|
17
|
-
$$events?: Events;
|
|
18
|
-
$$slots?: Slots;
|
|
19
|
-
}
|
|
20
|
-
): Exports & {
|
|
21
|
-
$set?: any;
|
|
22
|
-
$on?: any;
|
|
23
|
-
};
|
|
24
|
-
z_$$bindings?: Bindings;
|
|
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;
|
|
25
14
|
}
|
|
26
|
-
declare const List: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
},
|
|
31
|
-
{},
|
|
32
|
-
{},
|
|
33
|
-
string
|
|
34
|
-
>;
|
|
15
|
+
declare const List: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
35
18
|
type List = InstanceType<typeof List>;
|
|
36
19
|
export default List;
|
|
@@ -21,50 +21,55 @@
|
|
|
21
21
|
|
|
22
22
|
<style>
|
|
23
23
|
.listStyles {
|
|
24
|
-
display: flex;
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
display: flex;
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
height: 100%;
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
flex-direction: column;
|
|
31
30
|
|
|
32
|
-
|
|
31
|
+
align-items: flex-start;
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
}
|
|
33
|
+
align-self: stretch;
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
35
|
+
border-radius: 0.25rem
|
|
36
|
+
}
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
gap: 0px;
|
|
38
|
+
.listStyles.default {
|
|
43
39
|
|
|
44
|
-
|
|
40
|
+
gap: 0.5rem
|
|
41
|
+
}
|
|
45
42
|
|
|
46
|
-
|
|
43
|
+
.listStyles.compact {
|
|
47
44
|
|
|
48
|
-
|
|
45
|
+
gap: 0px;
|
|
49
46
|
|
|
50
|
-
|
|
47
|
+
--tw-bg-opacity: 1;
|
|
51
48
|
|
|
52
|
-
|
|
49
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
53
50
|
|
|
54
|
-
|
|
55
|
-
}
|
|
51
|
+
padding-bottom: 0.5rem;
|
|
56
52
|
|
|
57
|
-
|
|
58
|
-
border-bottom-width: 1px;
|
|
53
|
+
padding-left: 1.5rem;
|
|
59
54
|
|
|
60
|
-
|
|
55
|
+
padding-right: 1.5rem;
|
|
61
56
|
|
|
62
|
-
|
|
57
|
+
padding-top: 0.5rem
|
|
58
|
+
}
|
|
63
59
|
|
|
64
|
-
|
|
65
|
-
}
|
|
60
|
+
.listStyles.compact :global(> .item:not(:last-child)) {
|
|
66
61
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
border-bottom-width: 1px;
|
|
63
|
+
|
|
64
|
+
border-style: solid;
|
|
65
|
+
|
|
66
|
+
--tw-border-opacity: 1;
|
|
67
|
+
|
|
68
|
+
border-color: var(--fallback-n,oklch(var(--n)/var(--tw-border-opacity, 1)))
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.listStyles :global(.item) {
|
|
72
|
+
|
|
73
|
+
align-self: stretch
|
|
74
|
+
}
|
|
70
75
|
</style>
|
|
@@ -1,32 +1,23 @@
|
|
|
1
1
|
import type { Overflow } from '../../tailwind';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
3
|
declare class __sveltets_Render<T> {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
props(): {
|
|
5
|
+
items: T[];
|
|
6
|
+
item: Snippet<[T]>;
|
|
7
|
+
overflow?: Overflow;
|
|
8
|
+
variant?: "compact" | "default";
|
|
9
|
+
};
|
|
10
|
+
events(): {};
|
|
11
|
+
slots(): {};
|
|
12
|
+
bindings(): "";
|
|
13
|
+
exports(): {};
|
|
14
14
|
}
|
|
15
15
|
interface $$IsomorphicComponent {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
ReturnType<__sveltets_Render<T>['slots']>
|
|
22
|
-
> & {
|
|
23
|
-
$$bindings?: ReturnType<__sveltets_Render<T>['bindings']>;
|
|
24
|
-
} & ReturnType<__sveltets_Render<T>['exports']>;
|
|
25
|
-
<T>(
|
|
26
|
-
internal: unknown,
|
|
27
|
-
props: ReturnType<__sveltets_Render<T>['props']> & {}
|
|
28
|
-
): ReturnType<__sveltets_Render<T>['exports']>;
|
|
29
|
-
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
16
|
+
new <T>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<T>['props']>, ReturnType<__sveltets_Render<T>['events']>, ReturnType<__sveltets_Render<T>['slots']>> & {
|
|
17
|
+
$$bindings?: ReturnType<__sveltets_Render<T>['bindings']>;
|
|
18
|
+
} & ReturnType<__sveltets_Render<T>['exports']>;
|
|
19
|
+
<T>(internal: unknown, props: ReturnType<__sveltets_Render<T>['props']> & {}): ReturnType<__sveltets_Render<T>['exports']>;
|
|
20
|
+
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
30
21
|
}
|
|
31
22
|
declare const List: $$IsomorphicComponent;
|
|
32
23
|
type List<T> = InstanceType<typeof List<T>>;
|
|
@@ -1,48 +1,27 @@
|
|
|
1
1
|
export default Logo;
|
|
2
|
-
type Logo = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
{}
|
|
10
|
-
> & {
|
|
11
|
-
$$bindings?: string | undefined;
|
|
2
|
+
type Logo = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
12
8
|
};
|
|
13
|
-
declare const Logo: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
},
|
|
20
|
-
{},
|
|
21
|
-
{},
|
|
22
|
-
string
|
|
23
|
-
>;
|
|
9
|
+
declare const Logo: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
24
14
|
import Logo from './Logo.svelte';
|
|
25
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
(
|
|
38
|
-
internal: unknown,
|
|
39
|
-
props: {
|
|
40
|
-
$$events?: Events;
|
|
41
|
-
$$slots?: Slots;
|
|
42
|
-
}
|
|
43
|
-
): Exports & {
|
|
44
|
-
$set?: any;
|
|
45
|
-
$on?: any;
|
|
46
|
-
};
|
|
47
|
-
z_$$bindings?: Bindings;
|
|
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;
|
|
48
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type Props = {
|
|
2
|
-
|
|
2
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
3
|
};
|
|
4
|
-
declare const Logo: import(
|
|
4
|
+
declare const Logo: import("svelte").Component<Props, {}, "">;
|
|
5
5
|
type Logo = ReturnType<typeof Logo>;
|
|
6
6
|
export default Logo;
|
|
@@ -1,48 +1,27 @@
|
|
|
1
1
|
export default Markdown;
|
|
2
|
-
type Markdown = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
{}
|
|
10
|
-
> & {
|
|
11
|
-
$$bindings?: string | undefined;
|
|
2
|
+
type Markdown = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
12
8
|
};
|
|
13
|
-
declare const Markdown: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
},
|
|
20
|
-
{},
|
|
21
|
-
{},
|
|
22
|
-
string
|
|
23
|
-
>;
|
|
9
|
+
declare const Markdown: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
24
14
|
import Markdown from './Markdown.svelte';
|
|
25
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
(
|
|
38
|
-
internal: unknown,
|
|
39
|
-
props: {
|
|
40
|
-
$$events?: Events;
|
|
41
|
-
$$slots?: Slots;
|
|
42
|
-
}
|
|
43
|
-
): Exports & {
|
|
44
|
-
$set?: any;
|
|
45
|
-
$on?: any;
|
|
46
|
-
};
|
|
47
|
-
z_$$bindings?: Bindings;
|
|
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;
|
|
48
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
-
|
|
2
|
+
markdown: string;
|
|
3
3
|
}
|
|
4
|
-
declare const Markdown: import(
|
|
4
|
+
declare const Markdown: import("svelte").Component<Props, {}, "">;
|
|
5
5
|
type Markdown = ReturnType<typeof Markdown>;
|
|
6
6
|
export default Markdown;
|
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
import Modal from '../modal/Modal.svelte';
|
|
2
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
(
|
|
15
|
-
internal: unknown,
|
|
16
|
-
props: {
|
|
17
|
-
$$events?: Events;
|
|
18
|
-
$$slots?: Slots;
|
|
19
|
-
}
|
|
20
|
-
): Exports & {
|
|
21
|
-
$set?: any;
|
|
22
|
-
$on?: any;
|
|
23
|
-
};
|
|
24
|
-
z_$$bindings?: Bindings;
|
|
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;
|
|
25
14
|
}
|
|
26
|
-
declare const Modal: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
},
|
|
31
|
-
{},
|
|
32
|
-
{},
|
|
33
|
-
string
|
|
34
|
-
>;
|
|
15
|
+
declare const Modal: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
35
18
|
type Modal = InstanceType<typeof Modal>;
|
|
36
19
|
export default Modal;
|
|
@@ -61,16 +61,16 @@
|
|
|
61
61
|
|
|
62
62
|
<style>
|
|
63
63
|
.modal-box {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
position: relative;
|
|
65
|
+
max-width: 100%;
|
|
66
|
+
border-radius: 0.75rem;
|
|
67
|
+
--tw-bg-opacity: 1;
|
|
68
|
+
background-color: rgb(243 250 252 / var(--tw-bg-opacity, 1))
|
|
69
|
+
}
|
|
70
70
|
.close-button {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
position: absolute;
|
|
72
|
+
right: 0px;
|
|
73
|
+
top: 0px;
|
|
74
|
+
padding: 1.5rem
|
|
75
|
+
}
|
|
76
76
|
</style>
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
type ModalProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
id?: string;
|
|
15
|
-
withClose?: boolean;
|
|
16
|
-
closeOnClickOutside?: boolean;
|
|
17
|
-
class?: string;
|
|
3
|
+
Trigger?: Snippet<[{
|
|
4
|
+
openModal: () => void;
|
|
5
|
+
closeModal: () => void;
|
|
6
|
+
}]>;
|
|
7
|
+
Content: Snippet;
|
|
8
|
+
onclose?: () => void;
|
|
9
|
+
defaultOpen?: boolean;
|
|
10
|
+
id?: string;
|
|
11
|
+
withClose?: boolean;
|
|
12
|
+
closeOnClickOutside?: boolean;
|
|
13
|
+
class?: string;
|
|
18
14
|
};
|
|
19
|
-
declare const Modal: import(
|
|
15
|
+
declare const Modal: import("svelte").Component<ModalProps, {}, "">;
|
|
20
16
|
type Modal = ReturnType<typeof Modal>;
|
|
21
17
|
export default Modal;
|
|
@@ -1,48 +1,27 @@
|
|
|
1
1
|
export default NotificationPopup;
|
|
2
|
-
type NotificationPopup = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
{}
|
|
10
|
-
> & {
|
|
11
|
-
$$bindings?: string | undefined;
|
|
2
|
+
type NotificationPopup = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
12
8
|
};
|
|
13
|
-
declare const NotificationPopup: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[evt: string]: CustomEvent<any>;
|
|
19
|
-
},
|
|
20
|
-
{},
|
|
21
|
-
{},
|
|
22
|
-
string
|
|
23
|
-
>;
|
|
9
|
+
declare const NotificationPopup: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
24
14
|
import NotificationPopup from './NotificationPopup.svelte';
|
|
25
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
(
|
|
38
|
-
internal: unknown,
|
|
39
|
-
props: {
|
|
40
|
-
$$events?: Events;
|
|
41
|
-
$$slots?: Slots;
|
|
42
|
-
}
|
|
43
|
-
): Exports & {
|
|
44
|
-
$set?: any;
|
|
45
|
-
$on?: any;
|
|
46
|
-
};
|
|
47
|
-
z_$$bindings?: Bindings;
|
|
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;
|
|
48
27
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
title: string;
|
|
5
|
+
visible: boolean;
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
children?: Snippet;
|
|
8
8
|
}
|
|
9
|
-
declare const NotificationPopup: import(
|
|
9
|
+
declare const NotificationPopup: import("svelte").Component<Props, {}, "">;
|
|
10
10
|
type NotificationPopup = ReturnType<typeof NotificationPopup>;
|
|
11
11
|
export default NotificationPopup;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
button {
|
|
22
22
|
gap: 0.5rem;
|
|
23
23
|
border-radius: 9999px;
|
|
24
|
-
background-color: #
|
|
24
|
+
background-color: #5750ee1A;
|
|
25
25
|
padding-left: 1rem;
|
|
26
26
|
padding-right: 1rem;
|
|
27
27
|
padding-top: 0px;
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
white-space: nowrap;
|
|
35
35
|
height: 32px;
|
|
36
36
|
|
|
37
|
-
align-items: center
|
|
38
|
-
|
|
37
|
+
align-items: center
|
|
38
|
+
}
|
|
39
39
|
</style>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
class?: string;
|
|
3
|
+
text: string;
|
|
4
|
+
type?: 'button' | 'submit';
|
|
5
|
+
testID?: string;
|
|
6
|
+
onclick?: () => void;
|
|
7
7
|
}
|
|
8
|
-
declare const Pill: import(
|
|
8
|
+
declare const Pill: import("svelte").Component<Props, {}, "">;
|
|
9
9
|
type Pill = ReturnType<typeof Pill>;
|
|
10
10
|
export default Pill;
|