negodesign 0.0.31 → 0.0.32

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.
@@ -1,17 +1,9 @@
1
1
  <script lang="ts">
2
2
  import { ModeWatcher } from "mode-watcher";
3
3
  import { setUserTranslations } from "../i18n/config";
4
+ import type { NegoDesignProps } from "../types";
4
5
 
5
- type Translations = Record<string, Record<string, string>>;
6
-
7
- let {
8
- translations,
9
- children,
10
- }: {
11
- /** Custom translations per language. Merged with the library's base translations. */
12
- translations?: Translations;
13
- children: any;
14
- } = $props();
6
+ let { translations, children }: NegoDesignProps = $props();
15
7
 
16
8
  $effect(() => {
17
9
  if (translations) {
@@ -1,9 +1,4 @@
1
- type Translations = Record<string, Record<string, string>>;
2
- type $$ComponentProps = {
3
- /** Custom translations per language. Merged with the library's base translations. */
4
- translations?: Translations;
5
- children: any;
6
- };
7
- declare const NegoDesign: import("svelte").Component<$$ComponentProps, {}, "">;
1
+ import type { NegoDesignProps } from "../types";
2
+ declare const NegoDesign: import("svelte").Component<NegoDesignProps, {}, "">;
8
3
  type NegoDesign = ReturnType<typeof NegoDesign>;
9
4
  export default NegoDesign;
@@ -5,7 +5,7 @@ import type { CarouselHeaderProps } from "../../types";
5
5
  * Props do CarouselGridMedia — layout em grid de cards de mídia
6
6
  * (imagens/vídeos). Em telas mobile o grid vira carousel com swipe.
7
7
  */
8
- export interface CarouselMediaProps {
8
+ export interface CarouselGridMediaProps {
9
9
  /** Props do cabeçalho do carousel (título, descrição, etc.) */
10
10
  headerProps?: CarouselHeaderProps;
11
11
  /** Props do slot/container do carousel (botões navegação, plugins) */
@@ -1,10 +1,10 @@
1
1
  <script lang="ts">
2
2
  import CarouselGridSlot from "../../shared/ui/CarouselGridSlot.svelte";
3
3
  import * as Carousel from "../../../../../ui/carousel/index.js";
4
- import type { CarouselMediaProps } from "../types";
5
4
  import CarouselHeader from "../../../shared/ui/CarouselHeader.svelte";
6
5
  import { useDevice } from "../../../../../../hooks/responsive.svelte";
7
6
  import CardMedia from "../../../../card/media/CardMedia.svelte";
7
+ import type { CarouselGridMediaProps } from "../../../../../../types";
8
8
 
9
9
  const {
10
10
  headerProps,
@@ -13,7 +13,7 @@
13
13
  items,
14
14
  variant,
15
15
  isLoading = false,
16
- }: CarouselMediaProps = $props();
16
+ }: CarouselGridMediaProps = $props();
17
17
 
18
18
  const responsive = useDevice();
19
19
  </script>
@@ -1,4 +1,4 @@
1
- import type { CarouselMediaProps } from "../types";
2
- declare const CarouselGridMedia: import("svelte").Component<CarouselMediaProps, {}, "">;
1
+ import type { CarouselGridMediaProps } from "../../../../../../types";
2
+ declare const CarouselGridMedia: import("svelte").Component<CarouselGridMediaProps, {}, "">;
3
3
  type CarouselGridMedia = ReturnType<typeof CarouselGridMedia>;
4
4
  export default CarouselGridMedia;
@@ -5,7 +5,7 @@ import type { CarouselHeaderProps } from "../../types";
5
5
  * Props do CarouselGridProfile — layout em grid de cards de perfil
6
6
  * (guias, intérpretes, organizações). Em mobile vira carousel com swipe.
7
7
  */
8
- export interface CarouselProfileProps {
8
+ export interface CarouselGridProfileProps {
9
9
  /** Props do cabeçalho do carousel (título, descrição, etc.) */
10
10
  headerProps?: CarouselHeaderProps;
11
11
  /** Props do slot/container do carousel (botões navegação, plugins) */
@@ -3,8 +3,8 @@
3
3
  import * as Carousel from "../../../../../ui/carousel/index.js";
4
4
  import CarouselHeader from "../../../shared/ui/CarouselHeader.svelte";
5
5
  import { useDevice } from "../../../../../../hooks/responsive.svelte";
6
- import type { CarouselProfileProps } from "../types";
7
6
  import CardProfile from "../../../../card/profile/CardProfile.svelte";
7
+ import type { CarouselGridProfileProps } from "../../../../../../types";
8
8
 
9
9
  const {
10
10
  headerProps,
@@ -13,7 +13,7 @@
13
13
  items,
14
14
  variant,
15
15
  isLoading = false,
16
- }: CarouselProfileProps = $props();
16
+ }: CarouselGridProfileProps = $props();
17
17
 
18
18
  const responsive = useDevice();
19
19
  </script>
@@ -1,4 +1,4 @@
1
- import type { CarouselProfileProps } from "../types";
2
- declare const CarouselGridProfile: import("svelte").Component<CarouselProfileProps, {}, "">;
1
+ import type { CarouselGridProfileProps } from "../../../../../../types";
2
+ declare const CarouselGridProfile: import("svelte").Component<CarouselGridProfileProps, {}, "">;
3
3
  type CarouselGridProfile = ReturnType<typeof CarouselGridProfile>;
4
4
  export default CarouselGridProfile;
@@ -0,0 +1,6 @@
1
+ export type NegoDesignProps = {
2
+ /** Custom translations per language. Merged with the library's base translations. */
3
+ translations?: Record<string, Record<string, string>>;
4
+ /** Conteúdo da aplicação */
5
+ children?: any;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -6,8 +6,8 @@ import type { NavMenuLinksProps, NavMenuLogoProps, NavMenuActionsProps, NavMenuP
6
6
  import type { NavMenuSidebarProps, NavMenuAndSubmenuSidebarProps, GroupMenuSidebarProps, SubMenuSidebarProps, NavMenuItem } from "../components/core/nav/data/nav-menu-sidebar";
7
7
  import type { NavUserSidebarProps } from "../components/core/nav/data/nav-user-sidebar";
8
8
  import type { CardMediaProps, CardProfileProps, CardPromotionProps, CardHighlightProps, CardTagsProps } from "../components/core/card/types";
9
- import type { CarouselMediaProps } from "../components/core/carousel/grid/media/types";
10
- import type { CarouselProfileProps } from "../components/core/carousel/grid/profile/types";
9
+ import type { CarouselGridMediaProps } from "../components/core/carousel/grid/media/types";
10
+ import type { CarouselGridProfileProps } from "../components/core/carousel/grid/profile/types";
11
11
  import type { CarouselHighlightsProps } from "../components/core/carousel/highlights/types";
12
12
  import type { CarouselPromotionProps } from "../components/core/carousel/promotion/types";
13
13
  import type { ItemCarousel, CarouselHeaderProps, CarouselBadgeProps, CarouselHeroItem, CarouselHeroProps } from "../components/core/carousel/types";
@@ -24,26 +24,7 @@ import type { ProfileUserProps, ProfileUserData, ProfileUserVariant, ProfileUser
24
24
  import type { ProductDetailsProps, ProductDetailsData, ProductDetailsBreadcrumbItem, ProductDetailsTag, ProductDetailsImage, ProductDetailsLocation, ProductDetailsReview, ProductDetailsTab } from "../components/pages/product-details/types";
25
25
  import type { PrivacyPolicyOrTermsOfUseProps, DocPageData, DocSection, ContentBlock, BreadcrumbItem, TocItem } from "../components/pages/privacy-policy-or-terms-of-use/types";
26
26
  import type { InputLabelProps } from "../components/core/form/data/InputLabel.svelte";
27
- export interface NegoDesignProps {
28
- /** Custom translations per language. Merged with the library's base translations. */
29
- translations?: Record<string, Record<string, string>>;
30
- /** Conteúdo da aplicação */
31
- children?: any;
32
- }
33
- export type InputEmailProps = InputLabelProps;
34
- export type InputPhoneProps = InputLabelProps;
35
- export type InputEmailOrPhoneProps = InputLabelProps;
36
- export interface InputCodeOtpProps extends InputLabelProps {
37
- /** Number of OTP code boxes. Default: 6 */
38
- length?: number;
39
- /** Show separator between groups. Default: true */
40
- separator?: boolean;
41
- }
42
- export type InputPasswordProps = InputLabelProps;
43
- export type InputUsernameProps = InputLabelProps;
44
- export type InputPasswordConfirmProps = InputLabelProps;
45
- export type CarouselGridMediaProps = CarouselMediaProps;
46
- export type CarouselGridProfileProps = CarouselProfileProps;
27
+ import type { NegoDesignProps } from "../components/types";
47
28
  export type {
48
29
  /** Props de um link individual no menu de navegação. @see NavMenuLinksProps */
49
30
  NavMenuLinksProps,
@@ -87,10 +68,10 @@ CarouselBadgeProps,
87
68
  CarouselHeroItem,
88
69
  /** Props do CarouselHero — carousel hero principal com menu sobreposto. @see CarouselHeroProps */
89
70
  CarouselHeroProps,
90
- /** Props do CarouselGridMedia — layout em grid de cards de mídia (img/vídeo). @see CarouselMediaProps */
91
- CarouselMediaProps,
92
- /** Props do CarouselGridProfile — grid de cards de perfil (guias, organizações). @see CarouselProfileProps */
93
- CarouselProfileProps,
71
+ /** Props do CarouselGridMedia — layout em grid de cards de mídia (img/vídeo). @see CarouselGridMediaProps */
72
+ CarouselGridMediaProps,
73
+ /** Props do CarouselGridProfile — grid de cards de perfil (guias, organizações). @see CarouselGridProfileProps */
74
+ CarouselGridProfileProps,
94
75
  /** Props do CarouselHighlights — carousel de cards de destaque/organizações. @see CarouselHighlightsProps */
95
76
  CarouselHighlightsProps,
96
77
  /** Props do CarouselPromotion — carousel de cards de promoção com preços. @see CarouselPromotionProps */
@@ -171,20 +152,6 @@ ProfileUserData,
171
152
  ProfileUserProps,
172
153
  /** Props do NegoDesign — componente raiz do Negodesign. */
173
154
  NegoDesignProps,
174
- /** Props do input de email. @see InputLabelProps */
175
- InputEmailProps,
176
- /** Props do input de telefone. @see InputLabelProps */
177
- InputPhoneProps,
178
- /** Props do input híbrido email ou telefone. @see InputLabelProps */
179
- InputEmailOrPhoneProps,
180
- /** Props do input de código OTP. */
181
- InputCodeOtpProps,
182
- /** Props do input de password. @see InputLabelProps */
183
- InputPasswordProps,
184
- /** Props do input de nome de utilizador. @see InputLabelProps */
185
- InputUsernameProps,
186
- /** Props do input de confirmação de password. @see InputLabelProps */
187
- InputPasswordConfirmProps,
188
155
  /** Props base para inputs de formulário com label. */
189
156
  InputLabelProps,
190
157
  /** Item individual do breadcrumb do ProductDetails. @see ProductDetailsBreadcrumbItem */
@@ -214,8 +181,4 @@ DocPageData,
214
181
  /** Item da tabela de conteúdos (TOC). @see TocItem */
215
182
  TocItem,
216
183
  /** Props do componente PrivacyPolicyOrTermsOfUse. @see PrivacyPolicyOrTermsOfUseProps */
217
- PrivacyPolicyOrTermsOfUseProps,
218
- /** Alias para CarouselMediaProps — props do componente CarouselGridMedia. @see CarouselMediaProps */
219
- CarouselGridMediaProps,
220
- /** Alias para CarouselProfileProps — props do componente CarouselGridProfile. @see CarouselProfileProps */
221
- CarouselGridProfileProps };
184
+ PrivacyPolicyOrTermsOfUseProps, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "negodesign",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "sideEffects": [