@reshape-biotech/design-system 1.2.1 → 1.2.2
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import { notifications } from '
|
|
2
|
+
import { notifications } from '../../notifications';
|
|
3
3
|
import Button from '../button/Button.svelte';
|
|
4
4
|
import Notifications from '../notifications/Notifications.svelte';
|
|
5
5
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
@@ -2,25 +2,7 @@
|
|
|
2
2
|
import { flip } from 'svelte/animate';
|
|
3
3
|
import { fly } from 'svelte/transition';
|
|
4
4
|
import { notifications } from '../../notifications';
|
|
5
|
-
import { type IconColor } from '../icons';
|
|
6
|
-
import { tokens } from '../../tokens';
|
|
7
5
|
import Toast from '../toast/Toast.svelte';
|
|
8
|
-
|
|
9
|
-
const color = {
|
|
10
|
-
danger: tokens.backgroundColor['danger-inverse'],
|
|
11
|
-
success: tokens.backgroundColor['success-inverse-hover'],
|
|
12
|
-
warning: tokens.backgroundColor['warning-inverse-hover'],
|
|
13
|
-
info: tokens.backgroundColor['blue-inverse'],
|
|
14
|
-
default: tokens.backgroundColor.surface
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const textColor: Record<string, IconColor | 'inherit'> = {
|
|
18
|
-
danger: 'primary-inverse',
|
|
19
|
-
success: 'primary-inverse',
|
|
20
|
-
warning: 'primary-inverse',
|
|
21
|
-
info: 'primary-inverse',
|
|
22
|
-
default: 'inherit'
|
|
23
|
-
};
|
|
24
6
|
</script>
|
|
25
7
|
|
|
26
8
|
<div class="fixed left-0 right-0 top-2 z-50 mx-auto flex w-fit flex-col items-center justify-start">
|