@invopop/popui 0.0.92 → 0.0.93
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/BaseButton.svelte +1 -1
- package/dist/Notification.svelte +10 -4
- package/package.json +1 -1
package/dist/BaseButton.svelte
CHANGED
|
@@ -47,7 +47,7 @@ $:
|
|
|
47
47
|
{ "py-1.5": big && $$slots.default },
|
|
48
48
|
{ "py-1": !big && $$slots.default },
|
|
49
49
|
{ "text-white": ["primary", "danger", "dark", "warning"].includes(variant) },
|
|
50
|
-
{ "text-neutral-800": ["default", "secondary"].includes(variant) },
|
|
50
|
+
{ "text-neutral-800": ["default", "secondary", "outline"].includes(variant) },
|
|
51
51
|
{ "border border-white-10 hover:border-white-20 active:border-white-40": variant === "dark" },
|
|
52
52
|
{
|
|
53
53
|
"border border-neutral-200 hover:bg-neutral-100 active:border-neutral-300 active:bg-neutral-200": variant === "default"
|
package/dist/Notification.svelte
CHANGED
|
@@ -7,9 +7,15 @@ $:
|
|
|
7
7
|
icon = getIcon(type);
|
|
8
8
|
$:
|
|
9
9
|
styles = clsx(
|
|
10
|
-
{ "
|
|
11
|
-
{ "
|
|
12
|
-
{ "
|
|
10
|
+
{ "bg-positive-50": type === "success" },
|
|
11
|
+
{ "bg-danger-50": type === "error" },
|
|
12
|
+
{ "bg-yellow-50": type === "warning" }
|
|
13
|
+
);
|
|
14
|
+
$:
|
|
15
|
+
textStyles = clsx(
|
|
16
|
+
{ "text-positive-500": type === "success" },
|
|
17
|
+
{ "text-danger-500": type === "error" },
|
|
18
|
+
{ "text-yellow-500": type === "warning" }
|
|
13
19
|
);
|
|
14
20
|
function getIcon(type2) {
|
|
15
21
|
switch (type2) {
|
|
@@ -29,6 +35,6 @@ function getIcon(type2) {
|
|
|
29
35
|
{#if icon}
|
|
30
36
|
<Icon src={icon} class="h-4 w-4" />
|
|
31
37
|
{/if}
|
|
32
|
-
<span class="flex-1">{message}</span>
|
|
38
|
+
<span class="{textStyles} flex-1">{message}</span>
|
|
33
39
|
<slot />
|
|
34
40
|
</div>
|