negodesign 0.0.62 → 0.0.63
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.
|
@@ -17,11 +17,21 @@
|
|
|
17
17
|
: 'grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 max-h-237.5 overflow-y-auto'}
|
|
18
18
|
{className}"
|
|
19
19
|
>
|
|
20
|
-
{#
|
|
21
|
-
{#
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
{#if isLoading}
|
|
21
|
+
{#each Array.from({ length: responsive.isMobile ? 3 : 10 }) as it, i (i)}
|
|
22
|
+
{#if variant == 2}
|
|
23
|
+
<Grid02 title={`${it}`} description="" icon="" {isLoading} />
|
|
24
|
+
{:else}
|
|
25
|
+
<Grid01 title={`${it}`} description="" icon="" {isLoading} />
|
|
26
|
+
{/if}
|
|
27
|
+
{/each}
|
|
28
|
+
{:else}
|
|
29
|
+
{#each items as item, i (i)}
|
|
30
|
+
{#if variant == 2}
|
|
31
|
+
<Grid02 {...item} {onClick} />
|
|
32
|
+
{:else}
|
|
33
|
+
<Grid01 {...item} {onClick} />
|
|
34
|
+
{/if}
|
|
35
|
+
{/each}
|
|
36
|
+
{/if}
|
|
27
37
|
</div>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import Grid02 from "./02/Grid02.svelte";
|
|
5
5
|
import Grid01 from "./01/Grid01.svelte";
|
|
6
6
|
|
|
7
|
-
let { variant, className, isLoading, items }: GridProps = $props();
|
|
7
|
+
let { variant, className, isLoading, onClick, items }: GridProps = $props();
|
|
8
8
|
|
|
9
9
|
const styleMobile = "flex justify-between overflow-x-auto no-scrollbar";
|
|
10
10
|
|
|
@@ -25,11 +25,21 @@
|
|
|
25
25
|
<div
|
|
26
26
|
class="{responsive.isMobile ? styleMobile : cols()} gap-4 my-2 {className}"
|
|
27
27
|
>
|
|
28
|
-
{#
|
|
29
|
-
{#
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
{#if isLoading}
|
|
29
|
+
{#each Array.from({ length: responsive.isMobile ? 3 : 10 }) as it, i (i)}
|
|
30
|
+
{#if variant == 2}
|
|
31
|
+
<Grid02 title={`${it}`} description="" icon="" {isLoading} />
|
|
32
|
+
{:else}
|
|
33
|
+
<Grid01 title={`${it}`} description="" icon="" {isLoading} />
|
|
34
|
+
{/if}
|
|
35
|
+
{/each}
|
|
36
|
+
{:else}
|
|
37
|
+
{#each items as item, i (i)}
|
|
38
|
+
{#if variant == 2}
|
|
39
|
+
<Grid02 {...item} {onClick} />
|
|
40
|
+
{:else}
|
|
41
|
+
<Grid01 {...item} {onClick} />
|
|
42
|
+
{/if}
|
|
43
|
+
{/each}
|
|
44
|
+
{/if}
|
|
35
45
|
</div>
|