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.
Files changed (35) hide show
  1. package/dist/components/core/card/promotion/CardPromotion.svelte +44 -0
  2. package/dist/components/core/card/promotion/CardPromotion.svelte.d.ts +8 -0
  3. package/dist/components/core/card/promotion/data.d.ts +3 -0
  4. package/dist/components/core/card/promotion/data.js +31 -0
  5. package/dist/components/core/card/shared/CardFavorite.svelte +20 -20
  6. package/dist/components/core/card/shared/CardFavorite.svelte.d.ts +1 -1
  7. package/dist/components/core/card/types.d.ts +10 -0
  8. package/dist/components/core/carousel/hero/CarouselHero.svelte +140 -0
  9. package/dist/components/core/carousel/hero/CarouselHero.svelte.d.ts +10 -0
  10. package/dist/components/core/carousel/promotion/ui/CarouselPromotion.svelte +53 -0
  11. package/dist/components/core/carousel/promotion/ui/CarouselPromotion.svelte.d.ts +4 -0
  12. package/dist/components/core/carousel/shared/ui/SimpleBadgeCarousel.svelte +59 -0
  13. package/dist/components/core/carousel/shared/ui/SimpleBadgeCarousel.svelte.d.ts +4 -0
  14. package/dist/components/core/carousel/types.d.ts +22 -1
  15. package/dist/components/core/hero/SimpleHero.svelte +65 -0
  16. package/dist/components/core/hero/SimpleHero.svelte.d.ts +4 -0
  17. package/dist/components/core/hero/types.d.ts +18 -0
  18. package/dist/components/core/hero/types.js +1 -0
  19. package/dist/components/core/nav/data/nav-menu.d.ts +5 -1
  20. package/dist/components/core/nav/ui/nav-menu.svelte +94 -87
  21. package/dist/components/core/panel/CarouselSlot.svelte +38 -0
  22. package/dist/components/core/panel/CarouselSlot.svelte.d.ts +11 -0
  23. package/dist/globals.css +3756 -56
  24. package/dist/i18n/langs/en.d.ts +1 -0
  25. package/dist/i18n/langs/en.js +1 -0
  26. package/dist/i18n/langs/pt.d.ts +1 -0
  27. package/dist/i18n/langs/pt.js +1 -0
  28. package/dist/i18n/translations.d.ts +2 -0
  29. package/dist/index.d.ts +3 -1
  30. package/dist/index.js +3 -1
  31. package/dist/styles/animate.min.css +4385 -0
  32. package/dist/styles/globals.css +7 -2
  33. package/package.json +2 -2
  34. package/dist/components/core/carousel/ui/SimpleCarousel.svelte +0 -62
  35. package/dist/components/core/carousel/ui/SimpleCarousel.svelte.d.ts +0 -4
@@ -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 { @apply w-11/12 lg:w-300; }
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,6 +1,6 @@
1
1
  {
2
2
  "name": "negodesign",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
@@ -110,4 +110,4 @@
110
110
  "vitest": "^4.1.8",
111
111
  "vitest-browser-svelte": "^2.1.1"
112
112
  }
113
- }
113
+ }
@@ -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>
@@ -1,4 +0,0 @@
1
- import type { SimpleCarouselProps } from "../types.js";
2
- declare const SimpleCarousel: import("svelte").Component<SimpleCarouselProps, {}, "">;
3
- type SimpleCarousel = ReturnType<typeof SimpleCarousel>;
4
- export default SimpleCarousel;