negodesign 0.0.12 → 0.0.14
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/card/promotion/CardPromotion.svelte +44 -0
- package/dist/components/core/card/promotion/CardPromotion.svelte.d.ts +8 -0
- package/dist/components/core/card/promotion/data.d.ts +3 -0
- package/dist/components/core/card/promotion/data.js +31 -0
- package/dist/components/core/card/shared/CardFavorite.svelte +20 -20
- package/dist/components/core/card/shared/CardFavorite.svelte.d.ts +1 -1
- package/dist/components/core/card/types.d.ts +10 -0
- package/dist/components/core/carousel/hero/CarouselHero.svelte +140 -0
- package/dist/components/core/carousel/hero/CarouselHero.svelte.d.ts +10 -0
- package/dist/components/core/carousel/promotion/ui/CarouselPromotion.svelte +53 -0
- package/dist/components/core/carousel/promotion/ui/CarouselPromotion.svelte.d.ts +4 -0
- package/dist/components/core/carousel/shared/ui/SimpleBadgeCarousel.svelte +59 -0
- package/dist/components/core/carousel/shared/ui/SimpleBadgeCarousel.svelte.d.ts +4 -0
- package/dist/components/core/carousel/types.d.ts +22 -1
- package/dist/components/core/hero/SimpleHero.svelte +65 -0
- package/dist/components/core/hero/SimpleHero.svelte.d.ts +4 -0
- package/dist/components/core/hero/types.d.ts +18 -0
- package/dist/components/core/hero/types.js +1 -0
- package/dist/components/core/nav/data/nav-menu.d.ts +5 -1
- package/dist/components/core/nav/ui/nav-menu.svelte +94 -87
- package/dist/components/core/panel/CarouselSlot.svelte +38 -0
- package/dist/components/core/panel/CarouselSlot.svelte.d.ts +11 -0
- package/dist/globals.css +3756 -56
- package/dist/i18n/langs/en.d.ts +1 -0
- package/dist/i18n/langs/en.js +1 -0
- package/dist/i18n/langs/pt.d.ts +1 -0
- package/dist/i18n/langs/pt.js +1 -0
- package/dist/i18n/translations.d.ts +2 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/styles/animate.min.css +4385 -0
- package/dist/styles/globals.css +7 -2
- package/package.json +2 -2
- package/dist/components/core/carousel/ui/SimpleCarousel.svelte +0 -62
- package/dist/components/core/carousel/ui/SimpleCarousel.svelte.d.ts +0 -4
package/dist/styles/globals.css
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@import "tw-animate-css";
|
|
3
3
|
@import "shadcn-svelte/tailwind.css";
|
|
4
4
|
@import "@fontsource-variable/figtree";
|
|
5
|
+
@import "./animate.min.css";
|
|
5
6
|
|
|
6
7
|
@custom-variant dark (&:is(.dark *));
|
|
7
8
|
@plugin '@tailwindcss/forms';
|
|
@@ -16,7 +17,9 @@
|
|
|
16
17
|
@apply max-md:bg-linear-to-r max-md:from-[#0077b6] max-md:via-[#219ebc] max-md:to-[#219ebc] dark:max-md:from-[#06344d] dark:max-md:via-[#023845] dark:max-md:to-[#074656];
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
.container-fixed {
|
|
20
|
+
.container-fixed {
|
|
21
|
+
@apply w-11/12 lg:w-11/12;
|
|
22
|
+
}
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
:root {
|
|
@@ -134,10 +137,12 @@
|
|
|
134
137
|
* {
|
|
135
138
|
@apply border-border outline-ring/50;
|
|
136
139
|
}
|
|
140
|
+
|
|
137
141
|
body {
|
|
138
142
|
@apply bg-background text-foreground;
|
|
139
143
|
}
|
|
144
|
+
|
|
140
145
|
html {
|
|
141
146
|
@apply font-sans;
|
|
142
147
|
}
|
|
143
|
-
}
|
|
148
|
+
}
|
package/package.json
CHANGED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import * as Carousel from "../../../ui/carousel/index.js";
|
|
3
|
-
import type { SimpleCarouselProps } from "../types.js";
|
|
4
|
-
import { HugeiconsIcon } from "@hugeicons/svelte";
|
|
5
|
-
|
|
6
|
-
const {
|
|
7
|
-
items,
|
|
8
|
-
imageClass,
|
|
9
|
-
iconClass,
|
|
10
|
-
labelClass,
|
|
11
|
-
activeClass,
|
|
12
|
-
valueActive,
|
|
13
|
-
orientation = "horizontal",
|
|
14
|
-
isBorderItem = true,
|
|
15
|
-
isBorderBottom = true,
|
|
16
|
-
isButtonPreviousAndNext = true,
|
|
17
|
-
buttonPreviousAndNextClass = "",
|
|
18
|
-
}: SimpleCarouselProps = $props();
|
|
19
|
-
|
|
20
|
-
const DEFAULT_IMG_OR_ICON_CLASS = "size-5 rounded-lg";
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<nav class={`relative py-3 px-2 ${isBorderBottom ? "border-b" : ""}`}>
|
|
24
|
-
<Carousel.Root>
|
|
25
|
-
<Carousel.Content class="ml-10">
|
|
26
|
-
{#each items as item (item.value)}
|
|
27
|
-
<Carousel.Item
|
|
28
|
-
onclick={() => item.onClick?.(item.value)}
|
|
29
|
-
class={`
|
|
30
|
-
flex cursor-pointer items-center justify-center gap-1 basis-auto mx-3 pl-0
|
|
31
|
-
${isBorderItem ? "border border-solid border-gray-300 rounded-lg" : ""}
|
|
32
|
-
${item.value === valueActive ? activeClass : ""}`}
|
|
33
|
-
>
|
|
34
|
-
<div class={`
|
|
35
|
-
flex gap-1 mx-2 p-0.5 justify-center items-center
|
|
36
|
-
${orientation === "horizontal" ? "flex-row" : "flex-col"}
|
|
37
|
-
`}>
|
|
38
|
-
{#if item.image}
|
|
39
|
-
<img
|
|
40
|
-
src={item.image}
|
|
41
|
-
alt={item.label}
|
|
42
|
-
class={imageClass || DEFAULT_IMG_OR_ICON_CLASS}
|
|
43
|
-
/>
|
|
44
|
-
{:else if item.icon}
|
|
45
|
-
<HugeiconsIcon
|
|
46
|
-
icon={item.icon}
|
|
47
|
-
class={iconClass || DEFAULT_IMG_OR_ICON_CLASS}
|
|
48
|
-
/>
|
|
49
|
-
{/if}
|
|
50
|
-
<div class={`${labelClass}`}>{item.label}</div>
|
|
51
|
-
</div>
|
|
52
|
-
</Carousel.Item>
|
|
53
|
-
{/each}
|
|
54
|
-
</Carousel.Content>
|
|
55
|
-
{#if isButtonPreviousAndNext}
|
|
56
|
-
<Carousel.Previous
|
|
57
|
-
class={`absolute top-1/2 -translate-y-1/2 left-1 mt-0.5 ${buttonPreviousAndNextClass}`}
|
|
58
|
-
/>
|
|
59
|
-
<Carousel.Next class={`absolute top-1/2 -translate-y-1/2 right-1 mt-0.5 ${buttonPreviousAndNextClass}`} />
|
|
60
|
-
{/if}
|
|
61
|
-
</Carousel.Root>
|
|
62
|
-
</nav>
|