negodesign 0.0.22 → 0.0.24

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.
@@ -88,8 +88,10 @@
88
88
  >
89
89
  {#each layers as bg, i (i)}
90
90
  <div
91
- class="absolute inset-0 will-change-[opacity]"
92
91
  style="
92
+ position: absolute;
93
+ inset: 0;
94
+ will-change: opacity;
93
95
  background-image: {bg ? `url(${bg})` : 'none'};
94
96
  background-size: cover;
95
97
  background-position: center;
@@ -100,7 +102,9 @@
100
102
  ></div>
101
103
  {/each}
102
104
 
103
- <div class="h-full absolute inset-0 bg-black/40"></div>
105
+ <div
106
+ style="position: absolute; inset: 0; height: 100%; background-color: rgba(0,0,0,0.4);"
107
+ ></div>
104
108
 
105
109
  <div class="relative z-10 w-full flex flex-col items-center flex-1">
106
110
  <NavMenu {...navMenu} />
@@ -136,7 +140,9 @@
136
140
  </div>
137
141
 
138
142
  {#if items && items.length > 1}
139
- <div class="absolute bottom-3 z-10 flex gap-2">
143
+ <div
144
+ style="position: absolute; bottom: 0.75rem; z-index: 10; display: flex; gap: 0.5rem;"
145
+ >
140
146
  {#each items as item, i (i)}
141
147
  <button
142
148
  aria-label={`Ir para o slide ${i + 1}: ${item.title}`}
@@ -36,7 +36,7 @@
36
36
  {#if isLanguageSwitcher}
37
37
  <LanguageSwitcher />
38
38
  {/if}
39
- {#each actions as item (item.label)}
39
+ {#each (actions ?? []) as item (item.label)}
40
40
  <Button
41
41
  variant={item.type === "LINK" ? "ghost" : "outline"}
42
42
  class={item.className}
package/dist/globals.css CHANGED
@@ -345,9 +345,6 @@
345
345
  .bottom-2 {
346
346
  bottom: calc(var(--spacing) * 2);
347
347
  }
348
- .bottom-3 {
349
- bottom: calc(var(--spacing) * 3);
350
- }
351
348
  .left-0 {
352
349
  left: 0px;
353
350
  }
@@ -1356,12 +1353,6 @@
1356
1353
  background-color: color-mix(in oklab, var(--color-black) 10%, transparent);
1357
1354
  }
1358
1355
  }
1359
- .bg-black\/40 {
1360
- background-color: color-mix(in srgb, #000 40%, transparent);
1361
- @supports (color: color-mix(in lab, red, red)) {
1362
- background-color: color-mix(in oklab, var(--color-black) 40%, transparent);
1363
- }
1364
- }
1365
1356
  .bg-black\/50 {
1366
1357
  background-color: color-mix(in srgb, #000 50%, transparent);
1367
1358
  @supports (color: color-mix(in lab, red, red)) {
@@ -2092,9 +2083,6 @@
2092
2083
  --tw-ease: linear;
2093
2084
  transition-timing-function: linear;
2094
2085
  }
2095
- .will-change-\[opacity\] {
2096
- will-change: opacity;
2097
- }
2098
2086
  .outline-none {
2099
2087
  --tw-outline-style: none;
2100
2088
  outline-style: none;
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
- import baseTranslations from "./translations.js";
2
+ import baseTranslations from "./translations";
3
3
  let userTranslations = {};
4
4
  function deepMerge(target, source) {
5
5
  const result = { ...target };
@@ -1,5 +1,5 @@
1
1
  import { derived, writable } from "svelte/store";
2
- import { getMergedTranslations } from "./config.js";
2
+ import { getMergedTranslations } from "./config";
3
3
  /** Locale atual do sistema de internacionalização. Pode ser alterado diretamente. */
4
4
  export const locale = writable("en");
5
5
  function translate(currentLocale, key, vars) {
@@ -1,5 +1,5 @@
1
- import en from "./langs/en.js";
2
- import pt from "./langs/pt.js";
1
+ import en from "./langs/en";
2
+ import pt from "./langs/pt";
3
3
  export default {
4
4
  en,
5
5
  pt
package/dist/index.d.ts CHANGED
@@ -23,15 +23,15 @@ import SearchInput from "./components/core/search/SearchInput.svelte";
23
23
  import NavMenu from "./components/core/nav/ui/nav-menu.svelte";
24
24
  import NegoDesign from "./components/NegoDesign.svelte";
25
25
  /** Store reativa do idioma atual. Altere com `$locale = "pt"`. */
26
- export { locale } from "./i18n/index.js";
26
+ export { locale } from "./i18n";
27
27
  /** Lista de idiomas disponíveis. Atualizado automaticamente. */
28
- export { locales } from "./i18n/index.js";
28
+ export { locales } from "./i18n";
29
29
  /** Função de tradução reativa. Use `$t("chave")` nos templates. */
30
- export { t } from "./i18n/index.js";
30
+ export { t } from "./i18n";
31
31
  /** Retorna as traduções mescladas (base + customizadas). */
32
- export { getMergedTranslations } from "./i18n/config.js";
32
+ export { getMergedTranslations } from "./i18n/config";
33
33
  /** Retorna a lista de idiomas disponíveis. */
34
- export { getLocales } from "./i18n/config.js";
34
+ export { getLocales } from "./i18n/config";
35
35
  export {
36
36
  /** Componente raiz do Negodesign. Configura o tema, idioma e traduções. @property {Record<string, Record<string, string>>} translations - Traduções customizadas @property {Snippet} children - Conteúdo da aplicação */
37
37
  NegoDesign, NavMenu, SearchInput, SimpleBadgeCarousel, CarouselHero,
package/dist/index.js CHANGED
@@ -23,15 +23,15 @@ import SearchInput from "./components/core/search/SearchInput.svelte";
23
23
  import NavMenu from "./components/core/nav/ui/nav-menu.svelte";
24
24
  import NegoDesign from "./components/NegoDesign.svelte";
25
25
  /** Store reativa do idioma atual. Altere com `$locale = "pt"`. */
26
- export { locale } from "./i18n/index.js";
26
+ export { locale } from "./i18n";
27
27
  /** Lista de idiomas disponíveis. Atualizado automaticamente. */
28
- export { locales } from "./i18n/index.js";
28
+ export { locales } from "./i18n";
29
29
  /** Função de tradução reativa. Use `$t("chave")` nos templates. */
30
- export { t } from "./i18n/index.js";
30
+ export { t } from "./i18n";
31
31
  /** Retorna as traduções mescladas (base + customizadas). */
32
- export { getMergedTranslations } from "./i18n/config.js";
32
+ export { getMergedTranslations } from "./i18n/config";
33
33
  /** Retorna a lista de idiomas disponíveis. */
34
- export { getLocales } from "./i18n/config.js";
34
+ export { getLocales } from "./i18n/config";
35
35
  export {
36
36
  /** Componente raiz do Negodesign. Configura o tema, idioma e traduções. @property {Record<string, Record<string, string>>} translations - Traduções customizadas @property {Snippet} children - Conteúdo da aplicação */
37
37
  NegoDesign, NavMenu, SearchInput, SimpleBadgeCarousel, CarouselHero,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "negodesign",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "sideEffects": [