negodesign 0.0.61 → 0.0.62
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/core/grid/data/types.d.ts +1 -0
- package/dist/components/core/grid/ui/01/Grid01.svelte +3 -2
- package/dist/components/core/grid/ui/02/Grid02.svelte +3 -2
- package/dist/components/core/grid/ui/shared/IconRenderGrid.svelte +4 -2
- package/dist/components/core/grid/ui/shared/IconRenderGrid.svelte.d.ts +1 -0
- package/dist/globals.css +8 -0
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
icon,
|
|
10
10
|
title,
|
|
11
11
|
isLoading,
|
|
12
|
+
iconClass,
|
|
12
13
|
titleClass,
|
|
13
14
|
description,
|
|
14
15
|
descriptionClass,
|
|
@@ -20,9 +21,9 @@
|
|
|
20
21
|
onclick={() => {
|
|
21
22
|
if (id && onClick) onClick(id);
|
|
22
23
|
}}
|
|
23
|
-
class="flex flex-col justify-center items-center gap-2"
|
|
24
|
+
class="flex flex-col justify-center items-center gap-2 hover:bg-primary/30 rounded-xl"
|
|
24
25
|
>
|
|
25
|
-
<IconRenderGrid {icon} {isLoading} />
|
|
26
|
+
<IconRenderGrid {icon} {iconClass} {isLoading} />
|
|
26
27
|
<TitleGrid {titleClass} {title} {isLoading} />
|
|
27
28
|
<DescriptionGrid {descriptionClass} {description} {isLoading} />
|
|
28
29
|
</button>
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
title,
|
|
11
11
|
isLoading,
|
|
12
12
|
description,
|
|
13
|
+
iconClass,
|
|
13
14
|
titleClass,
|
|
14
15
|
descriptionClass,
|
|
15
16
|
onClick,
|
|
@@ -20,9 +21,9 @@
|
|
|
20
21
|
onclick={() => {
|
|
21
22
|
if (id && onClick) onClick(id);
|
|
22
23
|
}}
|
|
23
|
-
class="flex flex-col justify-center items-center gap-2 border rounded-lg p-2 cursor-pointer"
|
|
24
|
+
class="flex flex-col justify-center items-center gap-2 border rounded-lg p-2 cursor-pointer hover:bg-primary/30"
|
|
24
25
|
>
|
|
25
|
-
<IconRenderGrid {icon} {isLoading} />
|
|
26
|
+
<IconRenderGrid {icon} {iconClass} {isLoading} />
|
|
26
27
|
<TitleGrid {titleClass} {title} {isLoading} />
|
|
27
28
|
<DescriptionGrid {descriptionClass} {description} {isLoading} />
|
|
28
29
|
</button>
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
icon,
|
|
8
|
+
iconClass,
|
|
8
9
|
isLoading,
|
|
9
10
|
}: {
|
|
10
11
|
icon: string | IconSvgElement;
|
|
12
|
+
iconClass?: string;
|
|
11
13
|
isLoading?: boolean;
|
|
12
14
|
} = $props();
|
|
13
15
|
</script>
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
{#if isLoading}
|
|
16
18
|
<Skeleton class="min-w-17.5 md:min-w-25 h-2.5 bg-gray-400" />
|
|
17
19
|
{:else if typeof icon === "string"}
|
|
18
|
-
<i class="{icon} text-4xl md:text-6xl"></i>
|
|
20
|
+
<i class="{icon} text-4xl md:text-6xl {iconClass}"></i>
|
|
19
21
|
{:else}
|
|
20
|
-
<HugeiconsIcon {icon} class="size-8 md:size-10" />
|
|
22
|
+
<HugeiconsIcon {icon} class="size-8 md:size-10 {iconClass}" />
|
|
21
23
|
{/if}
|
package/dist/globals.css
CHANGED
|
@@ -3353,6 +3353,14 @@
|
|
|
3353
3353
|
.hover\:bg-neutral-800:hover {
|
|
3354
3354
|
background-color: var(--color-neutral-800);
|
|
3355
3355
|
}
|
|
3356
|
+
.hover\:bg-primary\/30:hover {
|
|
3357
|
+
background-color: var(--primary);
|
|
3358
|
+
}
|
|
3359
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3360
|
+
.hover\:bg-primary\/30:hover {
|
|
3361
|
+
background-color: color-mix(in oklab, var(--primary) 30%, transparent);
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3356
3364
|
.hover\:bg-primary\/80:hover {
|
|
3357
3365
|
background-color: var(--primary);
|
|
3358
3366
|
}
|