@jis3r/icons 1.25.0 → 1.25.1
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/package.json +17 -12
- package/dist/components/github.svelte +0 -13
- package/dist/components/github.svelte.d.ts +0 -26
- package/dist/components/navbar.svelte +0 -78
- package/dist/components/navbar.svelte.d.ts +0 -6
- package/dist/components/ui/badge/badge.svelte +0 -43
- package/dist/components/ui/badge/badge.svelte.d.ts +0 -41
- package/dist/components/ui/badge/index.d.ts +0 -1
- package/dist/components/ui/badge/index.js +0 -2
- package/dist/components/ui/button/button.svelte +0 -57
- package/dist/components/ui/button/button.svelte.d.ts +0 -69
- package/dist/components/ui/button/index.d.ts +0 -3
- package/dist/components/ui/button/index.js +0 -9
- package/dist/components/ui/card/card-content.svelte +0 -9
- package/dist/components/ui/card/card-content.svelte.d.ts +0 -15
- package/dist/components/ui/card/card-description.svelte +0 -9
- package/dist/components/ui/card/card-description.svelte.d.ts +0 -15
- package/dist/components/ui/card/card-footer.svelte +0 -9
- package/dist/components/ui/card/card-footer.svelte.d.ts +0 -15
- package/dist/components/ui/card/card-header.svelte +0 -9
- package/dist/components/ui/card/card-header.svelte.d.ts +0 -15
- package/dist/components/ui/card/card-title.svelte +0 -15
- package/dist/components/ui/card/card-title.svelte.d.ts +0 -17
- package/dist/components/ui/card/card.svelte +0 -13
- package/dist/components/ui/card/card.svelte.d.ts +0 -15
- package/dist/components/ui/card/index.d.ts +0 -7
- package/dist/components/ui/card/index.js +0 -22
- package/dist/components/ui/input/index.d.ts +0 -2
- package/dist/components/ui/input/index.js +0 -7
- package/dist/components/ui/input/input.svelte +0 -37
- package/dist/components/ui/input/input.svelte.d.ts +0 -19
- package/dist/components/ui/tooltip/index.d.ts +0 -6
- package/dist/components/ui/tooltip/index.js +0 -18
- package/dist/components/ui/tooltip/tooltip-content.svelte +0 -16
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +0 -15
- package/dist/icons/index.d.ts +0 -13
- package/dist/icons/index.js +0 -5834
- package/dist/utils/debounce.d.ts +0 -8
- package/dist/utils/debounce.js +0 -15
- package/dist/utils/icons.d.ts +0 -3
- package/dist/utils/icons.js +0 -70
- package/dist/utils.d.ts +0 -1
- package/dist/utils.js +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jis3r/icons",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.1",
|
|
4
4
|
"description": "beautifully crafted, moving icons. for svelte.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svelte",
|
|
@@ -12,9 +12,13 @@
|
|
|
12
12
|
],
|
|
13
13
|
"author": "jis3r",
|
|
14
14
|
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/jis3r/icons.git"
|
|
18
|
+
},
|
|
15
19
|
"scripts": {
|
|
16
20
|
"dev": "vite dev",
|
|
17
|
-
"build": "vite build
|
|
21
|
+
"build": "vite build",
|
|
18
22
|
"preview": "vite preview",
|
|
19
23
|
"package": "svelte-kit sync && svelte-package && publint",
|
|
20
24
|
"prepublishOnly": "npm run package",
|
|
@@ -44,8 +48,12 @@
|
|
|
44
48
|
"svelte": "./dist/index.js"
|
|
45
49
|
}
|
|
46
50
|
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"svelte": "^5.0.0"
|
|
53
|
+
},
|
|
47
54
|
"devDependencies": {
|
|
48
55
|
"@lucide/svelte": "^0.552.0",
|
|
56
|
+
"@number-flow/svelte": "^0.3.6",
|
|
49
57
|
"@sveltejs/adapter-auto": "^6.0.1",
|
|
50
58
|
"@sveltejs/kit": "^2.26.1",
|
|
51
59
|
"@sveltejs/package": "^2.0.0",
|
|
@@ -59,10 +67,17 @@
|
|
|
59
67
|
"eslint-config-prettier": "^10.1.1",
|
|
60
68
|
"eslint-plugin-svelte": "^3.5.1",
|
|
61
69
|
"globals": "^16.0.0",
|
|
70
|
+
"iflog": "^0.3.0",
|
|
71
|
+
"mode-watcher": "^0.5.1",
|
|
72
|
+
"motion": "^12.23.24",
|
|
73
|
+
"posthog-js": "^1.246.0",
|
|
62
74
|
"prettier": "^3.3.2",
|
|
63
75
|
"prettier-plugin-svelte": "^3.2.6",
|
|
64
76
|
"prettier-plugin-tailwindcss": "^0.7.1",
|
|
65
77
|
"publint": "^0.3.10",
|
|
78
|
+
"shadcn-svelte": "^1.0.6",
|
|
79
|
+
"svelte": "^5.0.0",
|
|
80
|
+
"svelte-fast-marquee": "^1.0.2",
|
|
66
81
|
"tailwind-merge": "^3.3.1",
|
|
67
82
|
"tailwind-variants": "^3.1.1",
|
|
68
83
|
"tailwindcss": "^4.1.16",
|
|
@@ -73,16 +88,6 @@
|
|
|
73
88
|
"vite-plugin-raw": "^1.0.3",
|
|
74
89
|
"vitest": "^3.1.1"
|
|
75
90
|
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"@number-flow/svelte": "^0.3.6",
|
|
78
|
-
"iflog": "^0.3.0",
|
|
79
|
-
"mode-watcher": "^0.5.1",
|
|
80
|
-
"motion": "^12.23.24",
|
|
81
|
-
"posthog-js": "^1.246.0",
|
|
82
|
-
"shadcn-svelte": "^1.0.6",
|
|
83
|
-
"svelte": "^5.0.0",
|
|
84
|
-
"svelte-fast-marquee": "^1.0.2"
|
|
85
|
-
},
|
|
86
91
|
"overrides": {
|
|
87
92
|
"cookie": "0.7.0"
|
|
88
93
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
fill="currentColor"
|
|
3
|
-
role="img"
|
|
4
|
-
height="19.2"
|
|
5
|
-
width="19.2"
|
|
6
|
-
viewBox="0 0 24 24"
|
|
7
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
-
>
|
|
9
|
-
<title>GitHub</title>
|
|
10
|
-
<path
|
|
11
|
-
d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
|
|
12
|
-
/>
|
|
13
|
-
</svg>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default Github;
|
|
2
|
-
type Github = SvelteComponent<{
|
|
3
|
-
[x: string]: never;
|
|
4
|
-
}, {
|
|
5
|
-
[evt: string]: CustomEvent<any>;
|
|
6
|
-
}, {}> & {
|
|
7
|
-
$$bindings?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const Github: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
-
[x: string]: never;
|
|
11
|
-
}, {
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {}, {}, string>;
|
|
14
|
-
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
-
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
-
$$bindings?: Bindings;
|
|
17
|
-
} & Exports;
|
|
18
|
-
(internal: unknown, props: {
|
|
19
|
-
$$events?: Events;
|
|
20
|
-
$$slots?: Slots;
|
|
21
|
-
}): Exports & {
|
|
22
|
-
$set?: any;
|
|
23
|
-
$on?: any;
|
|
24
|
-
};
|
|
25
|
-
z_$$bindings?: Bindings;
|
|
26
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { Button } from './ui/button';
|
|
3
|
-
import { Sun, Moon } from '@lucide/svelte';
|
|
4
|
-
import { toggleMode } from 'mode-watcher';
|
|
5
|
-
import { onMount, onDestroy } from 'svelte';
|
|
6
|
-
import Github from './github.svelte';
|
|
7
|
-
import NumberFlow from '@number-flow/svelte';
|
|
8
|
-
import iflog from 'iflog';
|
|
9
|
-
|
|
10
|
-
let stars = $state(0);
|
|
11
|
-
let interval;
|
|
12
|
-
|
|
13
|
-
onMount(async () => {
|
|
14
|
-
try {
|
|
15
|
-
const res = await fetch('https://api.github.com/repos/jis3r/icons');
|
|
16
|
-
if (!res.ok) {
|
|
17
|
-
throw new Error(`GitHub API error: ${res.status}`);
|
|
18
|
-
}
|
|
19
|
-
const data = await res.json();
|
|
20
|
-
|
|
21
|
-
const targetStars = data.stargazers_count || 0;
|
|
22
|
-
if (targetStars === 0) return;
|
|
23
|
-
|
|
24
|
-
const maxIncrement = Math.max(5, Math.ceil(targetStars / 30));
|
|
25
|
-
const delay = 10;
|
|
26
|
-
|
|
27
|
-
interval = setInterval(() => {
|
|
28
|
-
if (stars < targetStars) {
|
|
29
|
-
const remaining = targetStars - stars;
|
|
30
|
-
const progress = remaining / targetStars;
|
|
31
|
-
const easeOutFactor = progress * progress;
|
|
32
|
-
const currentIncrement = Math.max(1, Math.ceil(maxIncrement * easeOutFactor));
|
|
33
|
-
|
|
34
|
-
stars = Math.min(stars + currentIncrement, targetStars);
|
|
35
|
-
} else {
|
|
36
|
-
clearInterval(interval);
|
|
37
|
-
}
|
|
38
|
-
}, delay);
|
|
39
|
-
} catch (err) {
|
|
40
|
-
iflog.error('Failed to fetch GitHub stars:', err);
|
|
41
|
-
stars = 312;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
onDestroy(() => {
|
|
46
|
-
if (interval) {
|
|
47
|
-
clearInterval(interval);
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<header
|
|
53
|
-
class="bg-background bg-opacity-40 fixed top-0 z-50 h-[72px] w-full border-b backdrop-blur-xl"
|
|
54
|
-
>
|
|
55
|
-
<nav class="container mx-auto flex max-w-7xl items-center justify-between py-4">
|
|
56
|
-
<a href="/" class="cursor-pointer text-base"> moving icons </a>
|
|
57
|
-
<div class="flex gap-1">
|
|
58
|
-
<Button
|
|
59
|
-
variant="outline"
|
|
60
|
-
class="flex w-[85px] justify-between gap-2"
|
|
61
|
-
href="https://github.com/jis3r/icons"
|
|
62
|
-
>
|
|
63
|
-
<Github size="20" />
|
|
64
|
-
<NumberFlow value={stars} />
|
|
65
|
-
</Button>
|
|
66
|
-
|
|
67
|
-
<Button onclick={toggleMode} variant="outline" size="icon">
|
|
68
|
-
<Sun
|
|
69
|
-
class="h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"
|
|
70
|
-
/>
|
|
71
|
-
<Moon
|
|
72
|
-
class="absolute h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"
|
|
73
|
-
/>
|
|
74
|
-
<span class="sr-only">Toggle theme</span>
|
|
75
|
-
</Button>
|
|
76
|
-
</div>
|
|
77
|
-
</nav>
|
|
78
|
-
</header>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { tv } from 'tailwind-variants';
|
|
3
|
-
|
|
4
|
-
export const badgeVariants = tv({
|
|
5
|
-
base: 'focus:ring-ring inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2',
|
|
6
|
-
variants: {
|
|
7
|
-
variant: {
|
|
8
|
-
default: 'bg-primary text-primary-foreground hover:bg-primary/80 border-transparent',
|
|
9
|
-
secondary:
|
|
10
|
-
'bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent',
|
|
11
|
-
destructive:
|
|
12
|
-
'bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent',
|
|
13
|
-
outline: 'text-foreground'
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
defaultVariants: {
|
|
17
|
-
variant: 'default'
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
import { cn } from '../../../utils.js';
|
|
24
|
-
|
|
25
|
-
let {
|
|
26
|
-
ref = $bindable(null),
|
|
27
|
-
href,
|
|
28
|
-
class: className,
|
|
29
|
-
variant = 'default',
|
|
30
|
-
children,
|
|
31
|
-
...restProps
|
|
32
|
-
} = $props();
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<svelte:element
|
|
36
|
-
this={href ? 'a' : 'span'}
|
|
37
|
-
bind:this={ref}
|
|
38
|
-
{href}
|
|
39
|
-
class={cn(badgeVariants({ variant }), className)}
|
|
40
|
-
{...restProps}
|
|
41
|
-
>
|
|
42
|
-
{@render children?.()}
|
|
43
|
-
</svelte:element>
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export const badgeVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
-
variant: {
|
|
3
|
-
default: string;
|
|
4
|
-
secondary: string;
|
|
5
|
-
destructive: string;
|
|
6
|
-
outline: string;
|
|
7
|
-
};
|
|
8
|
-
}, undefined, "focus:ring-ring inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2", {
|
|
9
|
-
variant: {
|
|
10
|
-
default: string;
|
|
11
|
-
secondary: string;
|
|
12
|
-
destructive: string;
|
|
13
|
-
outline: string;
|
|
14
|
-
};
|
|
15
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
16
|
-
variant: {
|
|
17
|
-
default: string;
|
|
18
|
-
secondary: string;
|
|
19
|
-
destructive: string;
|
|
20
|
-
outline: string;
|
|
21
|
-
};
|
|
22
|
-
}, undefined, "focus:ring-ring inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2", unknown, unknown, undefined>>;
|
|
23
|
-
export default Badge;
|
|
24
|
-
type Badge = {
|
|
25
|
-
$on?(type: string, callback: (e: any) => void): () => void;
|
|
26
|
-
$set?(props: Partial<$$ComponentProps>): void;
|
|
27
|
-
};
|
|
28
|
-
declare const Badge: import("svelte").Component<{
|
|
29
|
-
ref?: any;
|
|
30
|
-
href: any;
|
|
31
|
-
class: any;
|
|
32
|
-
variant?: string;
|
|
33
|
-
children: any;
|
|
34
|
-
} & Record<string, any>, {}, "ref">;
|
|
35
|
-
type $$ComponentProps = {
|
|
36
|
-
ref?: any;
|
|
37
|
-
href: any;
|
|
38
|
-
class: any;
|
|
39
|
-
variant?: string;
|
|
40
|
-
children: any;
|
|
41
|
-
} & Record<string, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Badge, badgeVariants } from "./badge.svelte";
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<script module>
|
|
2
|
-
import { tv } from 'tailwind-variants';
|
|
3
|
-
|
|
4
|
-
export const buttonVariants = tv({
|
|
5
|
-
base: 'ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
|
|
6
|
-
variants: {
|
|
7
|
-
variant: {
|
|
8
|
-
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
|
|
9
|
-
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
|
|
10
|
-
outline: 'border-input bg-background hover:bg-accent hover:text-accent-foreground border',
|
|
11
|
-
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
12
|
-
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
|
13
|
-
link: 'text-primary underline-offset-4 hover:underline'
|
|
14
|
-
},
|
|
15
|
-
size: {
|
|
16
|
-
default: 'h-10 px-4 py-2',
|
|
17
|
-
sm: 'h-9 rounded-md px-3',
|
|
18
|
-
lg: 'h-11 rounded-md px-8',
|
|
19
|
-
icon: 'h-10 w-10'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
defaultVariants: {
|
|
23
|
-
variant: 'default',
|
|
24
|
-
size: 'default'
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
</script>
|
|
28
|
-
|
|
29
|
-
<script>
|
|
30
|
-
import { cn } from '../../../utils.js';
|
|
31
|
-
|
|
32
|
-
let {
|
|
33
|
-
class: className,
|
|
34
|
-
variant = 'default',
|
|
35
|
-
size = 'default',
|
|
36
|
-
ref = $bindable(null),
|
|
37
|
-
href = undefined,
|
|
38
|
-
type = 'button',
|
|
39
|
-
children,
|
|
40
|
-
...restProps
|
|
41
|
-
} = $props();
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
{#if href}
|
|
45
|
-
<a bind:this={ref} class={cn(buttonVariants({ variant, size }), className)} {href} {...restProps}>
|
|
46
|
-
{@render children?.()}
|
|
47
|
-
</a>
|
|
48
|
-
{:else}
|
|
49
|
-
<button
|
|
50
|
-
bind:this={ref}
|
|
51
|
-
class={cn(buttonVariants({ variant, size }), className)}
|
|
52
|
-
{type}
|
|
53
|
-
{...restProps}
|
|
54
|
-
>
|
|
55
|
-
{@render children?.()}
|
|
56
|
-
</button>
|
|
57
|
-
{/if}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
-
variant: {
|
|
3
|
-
default: string;
|
|
4
|
-
destructive: string;
|
|
5
|
-
outline: string;
|
|
6
|
-
secondary: string;
|
|
7
|
-
ghost: string;
|
|
8
|
-
link: string;
|
|
9
|
-
};
|
|
10
|
-
size: {
|
|
11
|
-
default: string;
|
|
12
|
-
sm: string;
|
|
13
|
-
lg: string;
|
|
14
|
-
icon: string;
|
|
15
|
-
};
|
|
16
|
-
}, undefined, "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
17
|
-
variant: {
|
|
18
|
-
default: string;
|
|
19
|
-
destructive: string;
|
|
20
|
-
outline: string;
|
|
21
|
-
secondary: string;
|
|
22
|
-
ghost: string;
|
|
23
|
-
link: string;
|
|
24
|
-
};
|
|
25
|
-
size: {
|
|
26
|
-
default: string;
|
|
27
|
-
sm: string;
|
|
28
|
-
lg: string;
|
|
29
|
-
icon: string;
|
|
30
|
-
};
|
|
31
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
32
|
-
variant: {
|
|
33
|
-
default: string;
|
|
34
|
-
destructive: string;
|
|
35
|
-
outline: string;
|
|
36
|
-
secondary: string;
|
|
37
|
-
ghost: string;
|
|
38
|
-
link: string;
|
|
39
|
-
};
|
|
40
|
-
size: {
|
|
41
|
-
default: string;
|
|
42
|
-
sm: string;
|
|
43
|
-
lg: string;
|
|
44
|
-
icon: string;
|
|
45
|
-
};
|
|
46
|
-
}, undefined, "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", unknown, unknown, undefined>>;
|
|
47
|
-
export default Button;
|
|
48
|
-
type Button = {
|
|
49
|
-
$on?(type: string, callback: (e: any) => void): () => void;
|
|
50
|
-
$set?(props: Partial<$$ComponentProps>): void;
|
|
51
|
-
};
|
|
52
|
-
declare const Button: import("svelte").Component<{
|
|
53
|
-
class: any;
|
|
54
|
-
variant?: string;
|
|
55
|
-
size?: string;
|
|
56
|
-
ref?: any;
|
|
57
|
-
href?: any;
|
|
58
|
-
type?: string;
|
|
59
|
-
children: any;
|
|
60
|
-
} & Record<string, any>, {}, "ref">;
|
|
61
|
-
type $$ComponentProps = {
|
|
62
|
-
class: any;
|
|
63
|
-
variant?: string;
|
|
64
|
-
size?: string;
|
|
65
|
-
ref?: any;
|
|
66
|
-
href?: any;
|
|
67
|
-
type?: string;
|
|
68
|
-
children: any;
|
|
69
|
-
} & Record<string, any>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export default CardContent;
|
|
2
|
-
type CardContent = {
|
|
3
|
-
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
-
$set?(props: Partial<$$ComponentProps>): void;
|
|
5
|
-
};
|
|
6
|
-
declare const CardContent: import("svelte").Component<{
|
|
7
|
-
ref?: any;
|
|
8
|
-
class: any;
|
|
9
|
-
children: any;
|
|
10
|
-
} & Record<string, any>, {}, "ref">;
|
|
11
|
-
type $$ComponentProps = {
|
|
12
|
-
ref?: any;
|
|
13
|
-
class: any;
|
|
14
|
-
children: any;
|
|
15
|
-
} & Record<string, any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { cn } from '../../../utils.js';
|
|
3
|
-
|
|
4
|
-
let { ref = $bindable(null), class: className, children, ...restProps } = $props();
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<p bind:this={ref} class={cn('text-muted-foreground text-sm', className)} {...restProps}>
|
|
8
|
-
{@render children?.()}
|
|
9
|
-
</p>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export default CardDescription;
|
|
2
|
-
type CardDescription = {
|
|
3
|
-
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
-
$set?(props: Partial<$$ComponentProps>): void;
|
|
5
|
-
};
|
|
6
|
-
declare const CardDescription: import("svelte").Component<{
|
|
7
|
-
ref?: any;
|
|
8
|
-
class: any;
|
|
9
|
-
children: any;
|
|
10
|
-
} & Record<string, any>, {}, "ref">;
|
|
11
|
-
type $$ComponentProps = {
|
|
12
|
-
ref?: any;
|
|
13
|
-
class: any;
|
|
14
|
-
children: any;
|
|
15
|
-
} & Record<string, any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { cn } from '../../../utils.js';
|
|
3
|
-
|
|
4
|
-
let { ref = $bindable(null), class: className, children, ...restProps } = $props();
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<div bind:this={ref} class={cn('flex items-center p-6 pt-0', className)} {...restProps}>
|
|
8
|
-
{@render children?.()}
|
|
9
|
-
</div>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export default CardFooter;
|
|
2
|
-
type CardFooter = {
|
|
3
|
-
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
-
$set?(props: Partial<$$ComponentProps>): void;
|
|
5
|
-
};
|
|
6
|
-
declare const CardFooter: import("svelte").Component<{
|
|
7
|
-
ref?: any;
|
|
8
|
-
class: any;
|
|
9
|
-
children: any;
|
|
10
|
-
} & Record<string, any>, {}, "ref">;
|
|
11
|
-
type $$ComponentProps = {
|
|
12
|
-
ref?: any;
|
|
13
|
-
class: any;
|
|
14
|
-
children: any;
|
|
15
|
-
} & Record<string, any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { cn } from '../../../utils.js';
|
|
3
|
-
|
|
4
|
-
let { ref = $bindable(null), class: className, children, ...restProps } = $props();
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<div bind:this={ref} class={cn('flex flex-col space-y-1.5 p-6 pb-0', className)} {...restProps}>
|
|
8
|
-
{@render children?.()}
|
|
9
|
-
</div>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export default CardHeader;
|
|
2
|
-
type CardHeader = {
|
|
3
|
-
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
-
$set?(props: Partial<$$ComponentProps>): void;
|
|
5
|
-
};
|
|
6
|
-
declare const CardHeader: import("svelte").Component<{
|
|
7
|
-
ref?: any;
|
|
8
|
-
class: any;
|
|
9
|
-
children: any;
|
|
10
|
-
} & Record<string, any>, {}, "ref">;
|
|
11
|
-
type $$ComponentProps = {
|
|
12
|
-
ref?: any;
|
|
13
|
-
class: any;
|
|
14
|
-
children: any;
|
|
15
|
-
} & Record<string, any>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { cn } from '../../../utils.js';
|
|
3
|
-
|
|
4
|
-
let { ref = $bindable(null), class: className, level = 3, children, ...restProps } = $props();
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<div
|
|
8
|
-
role="heading"
|
|
9
|
-
aria-level={level}
|
|
10
|
-
bind:this={ref}
|
|
11
|
-
class={cn('text-2xl leading-none font-semibold tracking-tight', className)}
|
|
12
|
-
{...restProps}
|
|
13
|
-
>
|
|
14
|
-
{@render children?.()}
|
|
15
|
-
</div>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export default CardTitle;
|
|
2
|
-
type CardTitle = {
|
|
3
|
-
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
-
$set?(props: Partial<$$ComponentProps>): void;
|
|
5
|
-
};
|
|
6
|
-
declare const CardTitle: import("svelte").Component<{
|
|
7
|
-
ref?: any;
|
|
8
|
-
class: any;
|
|
9
|
-
level?: number;
|
|
10
|
-
children: any;
|
|
11
|
-
} & Record<string, any>, {}, "ref">;
|
|
12
|
-
type $$ComponentProps = {
|
|
13
|
-
ref?: any;
|
|
14
|
-
class: any;
|
|
15
|
-
level?: number;
|
|
16
|
-
children: any;
|
|
17
|
-
} & Record<string, any>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { cn } from '../../../utils.js';
|
|
3
|
-
|
|
4
|
-
let { ref = $bindable(null), class: className, children, ...restProps } = $props();
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<div
|
|
8
|
-
bind:this={ref}
|
|
9
|
-
class={cn('bg-card text-card-foreground rounded-lg border shadow-sm', className)}
|
|
10
|
-
{...restProps}
|
|
11
|
-
>
|
|
12
|
-
{@render children?.()}
|
|
13
|
-
</div>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export default Card;
|
|
2
|
-
type Card = {
|
|
3
|
-
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
-
$set?(props: Partial<$$ComponentProps>): void;
|
|
5
|
-
};
|
|
6
|
-
declare const Card: import("svelte").Component<{
|
|
7
|
-
ref?: any;
|
|
8
|
-
class: any;
|
|
9
|
-
children: any;
|
|
10
|
-
} & Record<string, any>, {}, "ref">;
|
|
11
|
-
type $$ComponentProps = {
|
|
12
|
-
ref?: any;
|
|
13
|
-
class: any;
|
|
14
|
-
children: any;
|
|
15
|
-
} & Record<string, any>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import Root from './card.svelte';
|
|
2
|
-
import Content from './card-content.svelte';
|
|
3
|
-
import Description from './card-description.svelte';
|
|
4
|
-
import Footer from './card-footer.svelte';
|
|
5
|
-
import Header from './card-header.svelte';
|
|
6
|
-
import Title from './card-title.svelte';
|
|
7
|
-
export { Root, Content, Description, Footer, Header, Title, Root as Card, Content as CardContent, Description as CardDescription, Footer as CardFooter, Header as CardHeader, Title as CardTitle };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import Root from './card.svelte';
|
|
2
|
-
import Content from './card-content.svelte';
|
|
3
|
-
import Description from './card-description.svelte';
|
|
4
|
-
import Footer from './card-footer.svelte';
|
|
5
|
-
import Header from './card-header.svelte';
|
|
6
|
-
import Title from './card-title.svelte';
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
Root,
|
|
10
|
-
Content,
|
|
11
|
-
Description,
|
|
12
|
-
Footer,
|
|
13
|
-
Header,
|
|
14
|
-
Title,
|
|
15
|
-
//
|
|
16
|
-
Root as Card,
|
|
17
|
-
Content as CardContent,
|
|
18
|
-
Description as CardDescription,
|
|
19
|
-
Footer as CardFooter,
|
|
20
|
-
Header as CardHeader,
|
|
21
|
-
Title as CardTitle
|
|
22
|
-
};
|