@reshape-biotech/design-system 0.0.42 → 0.0.43
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 +32 -15
- 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 +32 -15
- package/dist/components/button/Button.svelte +81 -81
- package/dist/components/button/Button.svelte.d.ts +18 -14
- package/dist/components/datepicker/DatePicker.svelte +13 -12
- package/dist/components/datepicker/DatePicker.svelte.d.ts +3 -3
- package/dist/components/divider/Divider.stories.svelte.d.ts +44 -23
- package/dist/components/divider/Divider.svelte.d.ts +2 -2
- package/dist/components/drawer/Drawer.stories.svelte.d.ts +44 -23
- package/dist/components/drawer/Drawer.svelte.d.ts +7 -7
- package/dist/components/drawer/DrawerLabel.svelte +23 -25
- package/dist/components/drawer/DrawerLabel.svelte.d.ts +4 -4
- package/dist/components/dropdown/Dropdown.stories.svelte.d.ts +44 -23
- package/dist/components/dropdown/Dropdown.svelte.d.ts +23 -17
- 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 +23 -25
- package/dist/components/dropdown/components/OutlinedButton.svelte.d.ts +3 -3
- package/dist/components/icon-button/IconButton.stories.svelte.d.ts +32 -15
- 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 +44 -23
- package/dist/components/input/Input.svelte +26 -32
- package/dist/components/input/Input.svelte.d.ts +22 -18
- package/dist/components/list/List.stories.svelte.d.ts +32 -15
- package/dist/components/list/List.svelte +28 -33
- package/dist/components/list/List.svelte.d.ts +24 -15
- package/dist/components/logo/Logo.stories.svelte.d.ts +44 -23
- package/dist/components/logo/Logo.svelte.d.ts +2 -2
- package/dist/components/markdown/Markdown.stories.svelte.d.ts +44 -23
- package/dist/components/markdown/Markdown.svelte.d.ts +2 -2
- package/dist/components/modal/Modal.stories.svelte.d.ts +32 -15
- package/dist/components/modal/Modal.svelte +19 -3
- package/dist/components/modal/Modal.svelte.d.ts +16 -12
- package/dist/components/notification-popup/NotificationPopup.stories.svelte.d.ts +44 -23
- 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 +6 -10
- 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 +32 -15
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.svelte.d.ts +10 -6
- package/dist/components/select/Select.stories.svelte.d.ts +32 -15
- package/dist/components/select/Select.svelte +5 -5
- package/dist/components/select/Select.svelte.d.ts +81 -56
- package/dist/components/select/index.d.ts +4 -4
- package/dist/components/skeleton-loader/SkeletonLoader.stories.svelte.d.ts +44 -23
- package/dist/components/skeleton-loader/SkeletonLoader.svelte.d.ts +11 -7
- package/dist/components/skeleton-loader/StatcardSkeleton.svelte.d.ts +32 -15
- package/dist/components/skeleton-loader/components/Skeleton.svelte.d.ts +3 -3
- package/dist/components/skeleton-loader/components/SkeletonImage.svelte.d.ts +44 -23
- package/dist/components/slider/Slider.stories.svelte.d.ts +44 -23
- package/dist/components/slider/Slider.svelte +15 -13
- package/dist/components/slider/Slider.svelte.d.ts +43 -26
- package/dist/components/spinner/Spinner.svelte.d.ts +2 -2
- package/dist/components/stat-card/StatCard.stories.svelte.d.ts +44 -23
- package/dist/components/stat-card/StatCard.svelte.d.ts +6 -6
- package/dist/components/status-badge/StatusBadge.stories.svelte.d.ts +32 -15
- 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 +35 -18
- package/dist/components/table/Table.svelte +5 -5
- package/dist/components/table/Table.svelte.d.ts +13 -11
- 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 +44 -23
- package/dist/components/tabs/Tabs.svelte.d.ts +10 -6
- 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 +32 -15
- package/dist/components/tag/Tag.svelte +14 -16
- package/dist/components/tag/Tag.svelte.d.ts +12 -8
- package/dist/components/toggle/Toggle.stories.svelte.d.ts +44 -23
- package/dist/components/toggle/Toggle.svelte +6 -6
- package/dist/components/toggle/Toggle.svelte.d.ts +9 -5
- package/dist/components/tooltip/Tooltip.stories.svelte.d.ts +44 -23
- package/dist/components/tooltip/Tooltip.svelte +12 -10
- 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 +14 -1
- package/dist/tailwind.preset.d.ts +330 -327
- 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,19 +1,36 @@
|
|
|
1
1
|
import List from './List.svelte';
|
|
2
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<
|
|
3
|
+
Props extends Record<string, any> = any,
|
|
4
|
+
Events extends Record<string, any> = any,
|
|
5
|
+
Slots extends Record<string, any> = any,
|
|
6
|
+
Exports = {},
|
|
7
|
+
Bindings = string
|
|
8
|
+
> {
|
|
9
|
+
new (
|
|
10
|
+
options: import('svelte').ComponentConstructorOptions<Props>
|
|
11
|
+
): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
12
|
+
$$bindings?: Bindings;
|
|
13
|
+
} & Exports;
|
|
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;
|
|
14
25
|
}
|
|
15
|
-
declare const List: $$__sveltets_2_IsomorphicComponent<
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
declare const List: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
+
Record<string, never>,
|
|
28
|
+
{
|
|
29
|
+
[evt: string]: CustomEvent<any>;
|
|
30
|
+
},
|
|
31
|
+
{},
|
|
32
|
+
{},
|
|
33
|
+
string
|
|
34
|
+
>;
|
|
18
35
|
type List = InstanceType<typeof List>;
|
|
19
36
|
export default List;
|
|
@@ -21,55 +21,50 @@
|
|
|
21
21
|
|
|
22
22
|
<style>
|
|
23
23
|
.listStyles {
|
|
24
|
+
display: flex;
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
height: 100%;
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
flex-direction: column;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
align-items: flex-start;
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
align-self: stretch;
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
border-radius: 0.25rem;
|
|
35
|
+
}
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
.listStyles.default {
|
|
38
|
+
gap: 0.5rem;
|
|
39
|
+
}
|
|
37
40
|
|
|
38
|
-
|
|
41
|
+
.listStyles.compact {
|
|
42
|
+
gap: 0px;
|
|
39
43
|
|
|
40
|
-
|
|
41
|
-
}
|
|
44
|
+
--tw-bg-opacity: 1;
|
|
42
45
|
|
|
43
|
-
|
|
46
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
44
47
|
|
|
45
|
-
|
|
48
|
+
padding-bottom: 0.5rem;
|
|
46
49
|
|
|
47
|
-
|
|
50
|
+
padding-left: 1.5rem;
|
|
48
51
|
|
|
49
|
-
|
|
52
|
+
padding-right: 1.5rem;
|
|
50
53
|
|
|
51
|
-
|
|
54
|
+
padding-top: 0.5rem;
|
|
55
|
+
}
|
|
52
56
|
|
|
53
|
-
|
|
57
|
+
.listStyles.compact :global(> .item:not(:last-child)) {
|
|
58
|
+
border-bottom-width: 1px;
|
|
54
59
|
|
|
55
|
-
|
|
60
|
+
border-style: solid;
|
|
56
61
|
|
|
57
|
-
|
|
58
|
-
}
|
|
62
|
+
--tw-border-opacity: 1;
|
|
59
63
|
|
|
60
|
-
|
|
64
|
+
border-color: var(--fallback-n, oklch(var(--n) / var(--tw-border-opacity, 1)));
|
|
65
|
+
}
|
|
61
66
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
}
|
|
67
|
+
.listStyles :global(.item) {
|
|
68
|
+
align-self: stretch;
|
|
69
|
+
}
|
|
75
70
|
</style>
|
|
@@ -1,23 +1,32 @@
|
|
|
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
|
-
|
|
16
|
+
new <T>(
|
|
17
|
+
options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T>['props']>>
|
|
18
|
+
): import('svelte').SvelteComponent<
|
|
19
|
+
ReturnType<__sveltets_Render<T>['props']>,
|
|
20
|
+
ReturnType<__sveltets_Render<T>['events']>,
|
|
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']>;
|
|
21
30
|
}
|
|
22
31
|
declare const List: $$IsomorphicComponent;
|
|
23
32
|
type List<T> = InstanceType<typeof List<T>>;
|
|
@@ -1,27 +1,48 @@
|
|
|
1
1
|
export default Logo;
|
|
2
|
-
type Logo = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
type Logo = SvelteComponent<
|
|
3
|
+
{
|
|
4
|
+
[x: string]: never;
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
},
|
|
9
|
+
{}
|
|
10
|
+
> & {
|
|
11
|
+
$$bindings?: string | undefined;
|
|
8
12
|
};
|
|
9
|
-
declare const Logo: $$__sveltets_2_IsomorphicComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
declare const Logo: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
+
{
|
|
15
|
+
[x: string]: never;
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string
|
|
23
|
+
>;
|
|
14
24
|
import Logo from './Logo.svelte';
|
|
15
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
interface $$__sveltets_2_IsomorphicComponent<
|
|
26
|
+
Props extends Record<string, any> = any,
|
|
27
|
+
Events extends Record<string, any> = any,
|
|
28
|
+
Slots extends Record<string, any> = any,
|
|
29
|
+
Exports = {},
|
|
30
|
+
Bindings = string
|
|
31
|
+
> {
|
|
32
|
+
new (
|
|
33
|
+
options: import('svelte').ComponentConstructorOptions<Props>
|
|
34
|
+
): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
35
|
+
$$bindings?: Bindings;
|
|
36
|
+
} & Exports;
|
|
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;
|
|
27
48
|
}
|
|
@@ -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,27 +1,48 @@
|
|
|
1
1
|
export default Markdown;
|
|
2
|
-
type Markdown = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
type Markdown = SvelteComponent<
|
|
3
|
+
{
|
|
4
|
+
[x: string]: never;
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
},
|
|
9
|
+
{}
|
|
10
|
+
> & {
|
|
11
|
+
$$bindings?: string | undefined;
|
|
8
12
|
};
|
|
9
|
-
declare const Markdown: $$__sveltets_2_IsomorphicComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
declare const Markdown: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
+
{
|
|
15
|
+
[x: string]: never;
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string
|
|
23
|
+
>;
|
|
14
24
|
import Markdown from './Markdown.svelte';
|
|
15
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
interface $$__sveltets_2_IsomorphicComponent<
|
|
26
|
+
Props extends Record<string, any> = any,
|
|
27
|
+
Events extends Record<string, any> = any,
|
|
28
|
+
Slots extends Record<string, any> = any,
|
|
29
|
+
Exports = {},
|
|
30
|
+
Bindings = string
|
|
31
|
+
> {
|
|
32
|
+
new (
|
|
33
|
+
options: import('svelte').ComponentConstructorOptions<Props>
|
|
34
|
+
): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
35
|
+
$$bindings?: Bindings;
|
|
36
|
+
} & Exports;
|
|
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;
|
|
27
48
|
}
|
|
@@ -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,19 +1,36 @@
|
|
|
1
1
|
import Modal from '../modal/Modal.svelte';
|
|
2
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<
|
|
3
|
+
Props extends Record<string, any> = any,
|
|
4
|
+
Events extends Record<string, any> = any,
|
|
5
|
+
Slots extends Record<string, any> = any,
|
|
6
|
+
Exports = {},
|
|
7
|
+
Bindings = string
|
|
8
|
+
> {
|
|
9
|
+
new (
|
|
10
|
+
options: import('svelte').ComponentConstructorOptions<Props>
|
|
11
|
+
): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
12
|
+
$$bindings?: Bindings;
|
|
13
|
+
} & Exports;
|
|
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;
|
|
14
25
|
}
|
|
15
|
-
declare const Modal: $$__sveltets_2_IsomorphicComponent<
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
declare const Modal: $$__sveltets_2_IsomorphicComponent<
|
|
27
|
+
Record<string, never>,
|
|
28
|
+
{
|
|
29
|
+
[evt: string]: CustomEvent<any>;
|
|
30
|
+
},
|
|
31
|
+
{},
|
|
32
|
+
{},
|
|
33
|
+
string
|
|
34
|
+
>;
|
|
18
35
|
type Modal = InstanceType<typeof Modal>;
|
|
19
36
|
export default Modal;
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
{#if Trigger}
|
|
42
42
|
{@render Trigger({ openModal, closeModal })}
|
|
43
43
|
{/if}
|
|
44
|
-
<dialog {id} class="modal
|
|
45
|
-
<div class="modal-box
|
|
44
|
+
<dialog {id} class="modal w-full max-w-full" class:modal-open={modalOpen}>
|
|
45
|
+
<div class="modal-box {modalClass}">
|
|
46
46
|
{#if withClose}
|
|
47
|
-
<div class="
|
|
47
|
+
<div class="close-button">
|
|
48
48
|
<IconButton onclick={closeModal} size="md" color="secondary">
|
|
49
49
|
<X />
|
|
50
50
|
</IconButton>
|
|
@@ -58,3 +58,19 @@
|
|
|
58
58
|
</form>
|
|
59
59
|
{/if}
|
|
60
60
|
</dialog>
|
|
61
|
+
|
|
62
|
+
<style>
|
|
63
|
+
.modal-box {
|
|
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
|
+
.close-button {
|
|
71
|
+
position: absolute;
|
|
72
|
+
right: 0px;
|
|
73
|
+
top: 0px;
|
|
74
|
+
padding: 1.5rem;
|
|
75
|
+
}
|
|
76
|
+
</style>
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
type ModalProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
Trigger?: Snippet<
|
|
4
|
+
[
|
|
5
|
+
{
|
|
6
|
+
openModal: () => void;
|
|
7
|
+
closeModal: () => void;
|
|
8
|
+
}
|
|
9
|
+
]
|
|
10
|
+
>;
|
|
11
|
+
Content: Snippet;
|
|
12
|
+
onclose?: () => void;
|
|
13
|
+
defaultOpen?: boolean;
|
|
14
|
+
id?: string;
|
|
15
|
+
withClose?: boolean;
|
|
16
|
+
closeOnClickOutside?: boolean;
|
|
17
|
+
class?: string;
|
|
14
18
|
};
|
|
15
|
-
declare const Modal: import(
|
|
19
|
+
declare const Modal: import('svelte').Component<ModalProps, {}, ''>;
|
|
16
20
|
type Modal = ReturnType<typeof Modal>;
|
|
17
21
|
export default Modal;
|
|
@@ -1,27 +1,48 @@
|
|
|
1
1
|
export default NotificationPopup;
|
|
2
|
-
type NotificationPopup = SvelteComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
type NotificationPopup = SvelteComponent<
|
|
3
|
+
{
|
|
4
|
+
[x: string]: never;
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
},
|
|
9
|
+
{}
|
|
10
|
+
> & {
|
|
11
|
+
$$bindings?: string | undefined;
|
|
8
12
|
};
|
|
9
|
-
declare const NotificationPopup: $$__sveltets_2_IsomorphicComponent<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
declare const NotificationPopup: $$__sveltets_2_IsomorphicComponent<
|
|
14
|
+
{
|
|
15
|
+
[x: string]: never;
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
},
|
|
20
|
+
{},
|
|
21
|
+
{},
|
|
22
|
+
string
|
|
23
|
+
>;
|
|
14
24
|
import NotificationPopup from './NotificationPopup.svelte';
|
|
15
|
-
interface $$__sveltets_2_IsomorphicComponent<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
interface $$__sveltets_2_IsomorphicComponent<
|
|
26
|
+
Props extends Record<string, any> = any,
|
|
27
|
+
Events extends Record<string, any> = any,
|
|
28
|
+
Slots extends Record<string, any> = any,
|
|
29
|
+
Exports = {},
|
|
30
|
+
Bindings = string
|
|
31
|
+
> {
|
|
32
|
+
new (
|
|
33
|
+
options: import('svelte').ComponentConstructorOptions<Props>
|
|
34
|
+
): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
35
|
+
$$bindings?: Bindings;
|
|
36
|
+
} & Exports;
|
|
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;
|
|
27
48
|
}
|
|
@@ -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;
|
|
@@ -43,35 +43,31 @@
|
|
|
43
43
|
|
|
44
44
|
<style>
|
|
45
45
|
.progress-wrapper {
|
|
46
|
-
|
|
47
46
|
position: relative;
|
|
48
47
|
|
|
49
48
|
display: inline-block;
|
|
50
49
|
|
|
51
50
|
aspect-ratio: 1;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
}
|
|
52
|
+
.progress-wrapper.md {
|
|
55
53
|
width: 1.25rem;
|
|
56
54
|
|
|
57
55
|
height: 1.25rem;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
}
|
|
57
|
+
.progress-wrapper.sm {
|
|
61
58
|
width: 1rem;
|
|
62
59
|
|
|
63
60
|
height: 1rem;
|
|
64
|
-
}
|
|
61
|
+
}
|
|
65
62
|
|
|
66
63
|
svg {
|
|
67
|
-
|
|
68
64
|
position: absolute;
|
|
69
65
|
|
|
70
66
|
inset: 0px;
|
|
71
67
|
width: 100%;
|
|
72
68
|
height: 100%;
|
|
73
69
|
display: block;
|
|
74
|
-
}
|
|
70
|
+
}
|
|
75
71
|
|
|
76
72
|
path {
|
|
77
73
|
--pathLength: 1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type Props = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
progress: number;
|
|
3
|
+
size?: 'md' | 'sm';
|
|
4
4
|
};
|
|
5
|
-
declare const ProgressCircle: import(
|
|
5
|
+
declare const ProgressCircle: import('svelte').Component<Props, {}, 'progress'>;
|
|
6
6
|
type ProgressCircle = ReturnType<typeof ProgressCircle>;
|
|
7
7
|
export default ProgressCircle;
|