negodesign 0.0.74 → 0.0.75
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/pages/security/login/02/ui/LoginCard02.svelte +15 -4
- package/dist/components/pages/security/login/03/ui/LoginCard03.svelte +34 -16
- package/dist/components/ui/form/Form.svelte +171 -0
- package/dist/components/ui/form/Form.svelte.d.ts +4 -0
- package/dist/components/ui/form/types.d.ts +78 -0
- package/dist/components/ui/form/types.js +1 -0
- package/dist/components/ui/form/ui/input-badges.svelte +214 -0
- package/dist/components/ui/form/ui/input-badges.svelte.d.ts +14 -0
- package/dist/components/ui/form/ui/input-checkbox.svelte +86 -0
- package/dist/components/ui/form/ui/input-checkbox.svelte.d.ts +17 -0
- package/dist/components/ui/form/ui/input-radio.svelte +82 -0
- package/dist/components/ui/form/ui/input-radio.svelte.d.ts +17 -0
- package/dist/components/ui/form/ui/input-select.svelte +195 -0
- package/dist/components/ui/form/ui/input-select.svelte.d.ts +17 -0
- package/dist/components/ui/form/ui/input-textarea.svelte +61 -0
- package/dist/components/ui/form/ui/input-textarea.svelte.d.ts +13 -0
- package/dist/components/ui/form/ui/input-toggle.svelte +89 -0
- package/dist/components/ui/form/ui/input-toggle.svelte.d.ts +11 -0
- package/dist/components/ui/modal/badge/index.d.ts +3 -0
- package/dist/components/ui/modal/badge/index.js +2 -0
- package/dist/components/ui/modal/badge/types.d.ts +35 -0
- package/dist/components/ui/modal/badge/types.js +1 -0
- package/dist/components/ui/modal/badge/ui/ModalBadgeSelection.svelte +87 -0
- package/dist/components/ui/modal/badge/ui/ModalBadgeSelection.svelte.d.ts +4 -0
- package/dist/components/ui/modal/core/index.d.ts +3 -0
- package/dist/components/ui/modal/core/index.js +2 -0
- package/dist/components/ui/modal/core/types.d.ts +82 -0
- package/dist/components/ui/modal/core/types.js +1 -0
- package/dist/components/ui/modal/core/ui/ModalCore.svelte +129 -0
- package/dist/components/ui/modal/core/ui/ModalCore.svelte.d.ts +4 -0
- package/dist/components/ui/modal/feedback/index.d.ts +3 -0
- package/dist/components/ui/modal/feedback/index.js +2 -0
- package/dist/components/ui/modal/feedback/types.d.ts +32 -0
- package/dist/components/ui/modal/feedback/types.js +1 -0
- package/dist/components/ui/modal/feedback/ui/ModalFeedback.svelte +135 -0
- package/dist/components/ui/modal/feedback/ui/ModalFeedback.svelte.d.ts +4 -0
- package/dist/components/ui/modal/form/index.d.ts +3 -0
- package/dist/components/ui/modal/form/index.js +2 -0
- package/dist/components/ui/modal/form/types.d.ts +38 -0
- package/dist/components/ui/modal/form/types.js +1 -0
- package/dist/components/ui/modal/form/ui/ModalForm.svelte +67 -0
- package/dist/components/ui/modal/form/ui/ModalForm.svelte.d.ts +4 -0
- package/dist/components/ui/modal/grid/index.d.ts +5 -0
- package/dist/components/ui/modal/grid/index.js +4 -0
- package/dist/components/ui/modal/grid/types.d.ts +51 -0
- package/dist/components/ui/modal/grid/types.js +1 -0
- package/dist/components/ui/modal/grid/ui/01/ModalGridSelection01.svelte +83 -0
- package/dist/components/ui/modal/grid/ui/01/ModalGridSelection01.svelte.d.ts +4 -0
- package/dist/components/ui/modal/grid/ui/02/ModalGridSelection02.svelte +142 -0
- package/dist/components/ui/modal/grid/ui/02/ModalGridSelection02.svelte.d.ts +4 -0
- package/dist/components/ui/modal/grid/ui/ModalGridSelection.svelte +60 -0
- package/dist/components/ui/modal/grid/ui/ModalGridSelection.svelte.d.ts +4 -0
- package/dist/components/ui/modal/map/index.d.ts +3 -0
- package/dist/components/ui/modal/map/index.js +2 -0
- package/dist/components/ui/modal/map/types.d.ts +48 -0
- package/dist/components/ui/modal/map/types.js +1 -0
- package/dist/components/ui/modal/map/ui/ModalMap.svelte +187 -0
- package/dist/components/ui/modal/map/ui/ModalMap.svelte.d.ts +4 -0
- package/dist/components/ui/modal/notification/index.d.ts +3 -0
- package/dist/components/ui/modal/notification/index.js +2 -0
- package/dist/components/ui/modal/notification/types.d.ts +26 -0
- package/dist/components/ui/modal/notification/types.js +1 -0
- package/dist/components/ui/modal/notification/ui/ModalNotification.svelte +65 -0
- package/dist/components/ui/modal/notification/ui/ModalNotification.svelte.d.ts +4 -0
- package/dist/components/ui/modal/share/index.d.ts +3 -0
- package/dist/components/ui/modal/share/index.js +2 -0
- package/dist/components/ui/modal/share/types.d.ts +32 -0
- package/dist/components/ui/modal/share/types.js +1 -0
- package/dist/components/ui/modal/share/ui/ModalShareSelection.svelte +103 -0
- package/dist/components/ui/modal/share/ui/ModalShareSelection.svelte.d.ts +4 -0
- package/dist/components/ui/modal/upload/index.d.ts +3 -0
- package/dist/components/ui/modal/upload/index.js +2 -0
- package/dist/components/ui/modal/upload/types.d.ts +79 -0
- package/dist/components/ui/modal/upload/types.js +1 -0
- package/dist/components/ui/modal/upload/ui/ModalUpload.svelte +268 -0
- package/dist/components/ui/modal/upload/ui/ModalUpload.svelte.d.ts +4 -0
- package/dist/components/ui/section/Section01.svelte +90 -0
- package/dist/components/ui/section/Section01.svelte.d.ts +4 -0
- package/dist/components/ui/section/Section02.svelte +68 -0
- package/dist/components/ui/section/Section02.svelte.d.ts +4 -0
- package/dist/components/ui/section/Section03.svelte +52 -0
- package/dist/components/ui/section/Section03.svelte.d.ts +4 -0
- package/dist/components/ui/section/index.d.ts +4 -0
- package/dist/components/ui/section/index.js +3 -0
- package/dist/components/ui/section/types.d.ts +46 -0
- package/dist/components/ui/section/types.js +1 -0
- package/dist/docs/components.d.ts +1 -1
- package/dist/docs/components.js +882 -0
- package/dist/globals.css +443 -0
- package/dist/index.d.ts +169 -0
- package/dist/index.js +169 -0
- package/dist/types/index.d.ts +46 -0
- package/package.json +1 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { HugeiconsIcon } from "@hugeicons/svelte";
|
|
3
|
+
import { ArrowRight01Icon } from "@hugeicons/core-free-icons";
|
|
4
|
+
import type { Section02Props } from "./types";
|
|
5
|
+
|
|
6
|
+
let {
|
|
7
|
+
title,
|
|
8
|
+
description,
|
|
9
|
+
image,
|
|
10
|
+
imageAlt,
|
|
11
|
+
features = [],
|
|
12
|
+
titleClass,
|
|
13
|
+
descriptionClass,
|
|
14
|
+
className,
|
|
15
|
+
imageClass,
|
|
16
|
+
}: Section02Props = $props();
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<section class={className}>
|
|
20
|
+
<div class="px-6 py-12 md:px-12 md:py-20">
|
|
21
|
+
<div class="flex flex-col md:flex-row md:items-start gap-8 md:gap-16">
|
|
22
|
+
<div class="flex flex-col gap-8 md:w-1/2">
|
|
23
|
+
<h2
|
|
24
|
+
class="text-3xl md:text-5xl lg:text-6xl font-bold leading-tight {titleClass}"
|
|
25
|
+
>
|
|
26
|
+
{title}
|
|
27
|
+
</h2>
|
|
28
|
+
{#if image}
|
|
29
|
+
<div class="rounded-3xl overflow-hidden">
|
|
30
|
+
<img
|
|
31
|
+
src={image}
|
|
32
|
+
alt={imageAlt ?? title}
|
|
33
|
+
class="w-full h-auto object-cover {imageClass}"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
{/if}
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div class="flex flex-col gap-8 md:w-1/2">
|
|
40
|
+
{#if description}
|
|
41
|
+
<p class="text-sm md:text-base text-gray-600 {descriptionClass}">
|
|
42
|
+
{description}
|
|
43
|
+
</p>
|
|
44
|
+
{/if}
|
|
45
|
+
|
|
46
|
+
<div class="grid grid-cols-1 sm:grid-cols-2 gap-8">
|
|
47
|
+
{#each features as feature, i (i)}
|
|
48
|
+
<div class="flex flex-col gap-3">
|
|
49
|
+
<h3 class="text-lg font-bold">{feature.title}</h3>
|
|
50
|
+
{#if feature.description}
|
|
51
|
+
<p class="text-sm text-gray-500">{feature.description}</p>
|
|
52
|
+
{/if}
|
|
53
|
+
{#if feature.link}
|
|
54
|
+
<a
|
|
55
|
+
href={feature.link}
|
|
56
|
+
class="inline-flex items-center gap-2 text-sm font-semibold mt-2 hover:opacity-80 transition-opacity"
|
|
57
|
+
>
|
|
58
|
+
{feature.linkLabel ?? "Learn More"}
|
|
59
|
+
<HugeiconsIcon icon={ArrowRight01Icon} class="size-4" />
|
|
60
|
+
</a>
|
|
61
|
+
{/if}
|
|
62
|
+
</div>
|
|
63
|
+
{/each}
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</section>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { HugeiconsIcon } from "@hugeicons/svelte";
|
|
3
|
+
import type { Section03Props } from "./types";
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
title,
|
|
7
|
+
description,
|
|
8
|
+
items = [],
|
|
9
|
+
titleClass,
|
|
10
|
+
descriptionClass,
|
|
11
|
+
className,
|
|
12
|
+
}: Section03Props = $props();
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<section class={className}>
|
|
16
|
+
<div class="px-6 py-12 md:px-12 md:py-20">
|
|
17
|
+
<div
|
|
18
|
+
class="flex flex-col md:flex-row md:items-start md:justify-between gap-8 mb-16"
|
|
19
|
+
>
|
|
20
|
+
<h2
|
|
21
|
+
class="text-3xl md:text-5xl lg:text-6xl font-bold leading-tight md:max-w-3xl {titleClass}"
|
|
22
|
+
>
|
|
23
|
+
{title}
|
|
24
|
+
</h2>
|
|
25
|
+
{#if description}
|
|
26
|
+
<p
|
|
27
|
+
class="text-sm md:text-base text-gray-600 md:max-w-sm {descriptionClass}"
|
|
28
|
+
>
|
|
29
|
+
{description}
|
|
30
|
+
</p>
|
|
31
|
+
{/if}
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
|
|
35
|
+
{#each items as item, i (i)}
|
|
36
|
+
<div class="flex flex-col gap-4">
|
|
37
|
+
<div class="flex items-center justify-center w-12 h-12">
|
|
38
|
+
{#if typeof item.icon === "string"}
|
|
39
|
+
<i class="text-3xl {item.icon}"></i>
|
|
40
|
+
{:else}
|
|
41
|
+
<HugeiconsIcon icon={item.icon} class="size-8" />
|
|
42
|
+
{/if}
|
|
43
|
+
</div>
|
|
44
|
+
<h3 class="text-lg font-bold">{item.title}</h3>
|
|
45
|
+
{#if item.description}
|
|
46
|
+
<p class="text-sm">{item.description}</p>
|
|
47
|
+
{/if}
|
|
48
|
+
</div>
|
|
49
|
+
{/each}
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</section>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as Section01 } from "./Section01.svelte";
|
|
2
|
+
export { default as Section02 } from "./Section02.svelte";
|
|
3
|
+
export { default as Section03 } from "./Section03.svelte";
|
|
4
|
+
export type { Section01Props, Section02Props, Section03Props, SectionCardItem, SectionFeatureItem, } from "./types";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { IconSvgElement } from "@hugeicons/svelte";
|
|
2
|
+
export interface SectionCardItem {
|
|
3
|
+
id?: string | number;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
icon: string | IconSvgElement;
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface SectionFeatureItem {
|
|
10
|
+
id?: string | number;
|
|
11
|
+
title: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
link?: string;
|
|
14
|
+
linkLabel?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface Section01Props {
|
|
17
|
+
title?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
items?: SectionCardItem[];
|
|
20
|
+
selectedKey?: string | number;
|
|
21
|
+
titleClass?: string;
|
|
22
|
+
descriptionClass?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
onSelect?: (id: string | number) => void;
|
|
25
|
+
onPrev?: () => void;
|
|
26
|
+
onNext?: () => void;
|
|
27
|
+
}
|
|
28
|
+
export interface Section02Props {
|
|
29
|
+
title?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
image?: string;
|
|
32
|
+
imageAlt?: string;
|
|
33
|
+
features?: SectionFeatureItem[];
|
|
34
|
+
titleClass?: string;
|
|
35
|
+
descriptionClass?: string;
|
|
36
|
+
className?: string;
|
|
37
|
+
imageClass?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface Section03Props {
|
|
40
|
+
title?: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
items?: SectionCardItem[];
|
|
43
|
+
titleClass?: string;
|
|
44
|
+
descriptionClass?: string;
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -21,7 +21,7 @@ export interface DocComponent {
|
|
|
21
21
|
examples: DocExample[];
|
|
22
22
|
props: DocProp[];
|
|
23
23
|
}
|
|
24
|
-
export declare const categories: readonly ["Navigation", "Hero", "Banners", "Cards", "Carousels", "Item Grid", "Footer", "Admin Panel", "Login / Security", "Full Pages"];
|
|
24
|
+
export declare const categories: readonly ["Navigation", "Hero", "Sections", "Banners", "Cards", "Carousels", "Item Grid", "Tabs", "Form Inputs", "Forms", "Modals", "Empty States", "Footer", "Admin Panel", "Login / Security", "Full Pages"];
|
|
25
25
|
export declare const components: DocComponent[];
|
|
26
26
|
export declare function getComponent(slug: string): DocComponent | undefined;
|
|
27
27
|
export declare function getComponentsByCategory(category: string): DocComponent[];
|