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.
@@ -4,6 +4,7 @@ export interface ItemGridProps {
4
4
  title: string;
5
5
  isLoading?: boolean;
6
6
  description?: string;
7
+ iconClass?: string;
7
8
  titleClass?: string;
8
9
  descriptionClass?: string;
9
10
  icon: string | IconSvgElement;
@@ -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}
@@ -1,6 +1,7 @@
1
1
  import type { IconSvgElement } from "@hugeicons/svelte";
2
2
  type $$ComponentProps = {
3
3
  icon: string | IconSvgElement;
4
+ iconClass?: string;
4
5
  isLoading?: boolean;
5
6
  };
6
7
  declare const IconRenderGrid: import("svelte").Component<$$ComponentProps, {}, "">;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "negodesign",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "sideEffects": [