negodesign 0.0.30 → 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.
Files changed (102) hide show
  1. package/dist/components/NegoDesign.svelte +2 -10
  2. package/dist/components/NegoDesign.svelte.d.ts +2 -7
  3. package/dist/components/core/banner/CtaCardBanner.svelte +1 -1
  4. package/dist/components/core/banner/types.d.ts +16 -6
  5. package/dist/components/core/card/types.d.ts +94 -0
  6. package/dist/components/core/carousel/grid/media/types.d.ts +11 -1
  7. package/dist/components/core/carousel/grid/media/ui/CarouselGridMedia.svelte +2 -2
  8. package/dist/components/core/carousel/grid/media/ui/CarouselGridMedia.svelte.d.ts +2 -2
  9. package/dist/components/core/carousel/grid/profile/types.d.ts +11 -1
  10. package/dist/components/core/carousel/grid/profile/ui/CarouselGridProfile.svelte +2 -2
  11. package/dist/components/core/carousel/grid/profile/ui/CarouselGridProfile.svelte.d.ts +2 -2
  12. package/dist/components/core/carousel/highlights/types.d.ts +11 -0
  13. package/dist/components/core/carousel/promotion/types.d.ts +10 -0
  14. package/dist/components/core/carousel/types.d.ts +56 -0
  15. package/dist/components/core/datatable/data/data-table.d.ts +25 -0
  16. package/dist/components/core/footer/types.d.ts +28 -0
  17. package/dist/components/core/nav/data/nav-menu-sidebar.d.ts +29 -0
  18. package/dist/components/core/nav/data/nav-menu.d.ts +43 -0
  19. package/dist/components/core/nav/data/nav-user-sidebar.d.ts +14 -0
  20. package/dist/components/core/nav/ui/menu-links.svelte +1 -1
  21. package/dist/components/core/panel/CarouselSlot.svelte +1 -1
  22. package/dist/components/core/panel/type.d.ts +11 -0
  23. package/dist/components/core/search/types.d.ts +17 -5
  24. package/dist/components/core/sidebar/types.d.ts +19 -0
  25. package/dist/components/core/sidebar/types.js +1 -0
  26. package/dist/components/core/tabs/data/TabModel.d.ts +11 -0
  27. package/dist/components/core/tabs/types.d.ts +11 -0
  28. package/dist/components/core/tabs/types.js +1 -0
  29. package/dist/components/pages/admin/01/ui/types.d.ts +21 -0
  30. package/dist/components/pages/admin/01/ui/types.js +1 -0
  31. package/dist/components/pages/product-details/01/ProductDetails01.svelte +71 -0
  32. package/dist/components/pages/product-details/01/ProductDetails01.svelte.d.ts +11 -0
  33. package/dist/components/pages/product-details/02/ProductDetails02.svelte +88 -0
  34. package/dist/components/pages/product-details/02/ProductDetails02.svelte.d.ts +11 -0
  35. package/dist/components/pages/product-details/03/ProductDetails03.svelte +77 -0
  36. package/dist/components/pages/product-details/03/ProductDetails03.svelte.d.ts +11 -0
  37. package/dist/components/pages/product-details/04/ProductDetails04.svelte +65 -0
  38. package/dist/components/pages/product-details/04/ProductDetails04.svelte.d.ts +11 -0
  39. package/dist/components/pages/product-details/ProductDetails.svelte +38 -0
  40. package/dist/components/pages/product-details/ProductDetails.svelte.d.ts +4 -0
  41. package/dist/components/pages/product-details/shared/ProductDetailActions.svelte +82 -0
  42. package/dist/components/pages/product-details/shared/ProductDetailActions.svelte.d.ts +13 -0
  43. package/dist/components/pages/product-details/shared/ProductDetailBreadcrumb.svelte +46 -0
  44. package/dist/components/pages/product-details/shared/ProductDetailBreadcrumb.svelte.d.ts +8 -0
  45. package/dist/components/pages/product-details/shared/ProductDetailDescription.svelte +38 -0
  46. package/dist/components/pages/product-details/shared/ProductDetailDescription.svelte.d.ts +8 -0
  47. package/dist/components/pages/product-details/shared/ProductDetailFeatures.svelte +40 -0
  48. package/dist/components/pages/product-details/shared/ProductDetailFeatures.svelte.d.ts +7 -0
  49. package/dist/components/pages/product-details/shared/ProductDetailFilesVertical.svelte +72 -0
  50. package/dist/components/pages/product-details/shared/ProductDetailFilesVertical.svelte.d.ts +9 -0
  51. package/dist/components/pages/product-details/shared/ProductDetailHeader.svelte +41 -0
  52. package/dist/components/pages/product-details/shared/ProductDetailHeader.svelte.d.ts +9 -0
  53. package/dist/components/pages/product-details/shared/ProductDetailImage.svelte +70 -0
  54. package/dist/components/pages/product-details/shared/ProductDetailImage.svelte.d.ts +9 -0
  55. package/dist/components/pages/product-details/shared/ProductDetailMap.svelte +57 -0
  56. package/dist/components/pages/product-details/shared/ProductDetailMap.svelte.d.ts +9 -0
  57. package/dist/components/pages/product-details/shared/ProductDetailPrice.svelte +44 -0
  58. package/dist/components/pages/product-details/shared/ProductDetailPrice.svelte.d.ts +9 -0
  59. package/dist/components/pages/product-details/shared/ProductDetailRating.svelte +42 -0
  60. package/dist/components/pages/product-details/shared/ProductDetailRating.svelte.d.ts +8 -0
  61. package/dist/components/pages/product-details/shared/ProductDetailReviews.svelte +70 -0
  62. package/dist/components/pages/product-details/shared/ProductDetailReviews.svelte.d.ts +8 -0
  63. package/dist/components/pages/product-details/shared/ProductDetailTabs.svelte +96 -0
  64. package/dist/components/pages/product-details/shared/ProductDetailTabs.svelte.d.ts +12 -0
  65. package/dist/components/pages/product-details/shared/ProductDetailTags.svelte +35 -0
  66. package/dist/components/pages/product-details/shared/ProductDetailTags.svelte.d.ts +8 -0
  67. package/dist/components/pages/product-details/shared/ProductPurchasePanel.svelte +58 -0
  68. package/dist/components/pages/product-details/shared/ProductPurchasePanel.svelte.d.ts +11 -0
  69. package/dist/components/pages/product-details/types.d.ts +170 -0
  70. package/dist/components/pages/product-details/types.js +1 -0
  71. package/dist/components/pages/profile-user/01/ProfileUser01.svelte +113 -0
  72. package/dist/components/pages/profile-user/01/ProfileUser01.svelte.d.ts +27 -0
  73. package/dist/components/pages/profile-user/02/ProfileUser02.svelte +83 -0
  74. package/dist/components/pages/profile-user/02/ProfileUser02.svelte.d.ts +20 -0
  75. package/dist/components/pages/profile-user/03/ProfileUser03.svelte +85 -0
  76. package/dist/components/pages/profile-user/03/ProfileUser03.svelte.d.ts +20 -0
  77. package/dist/components/pages/profile-user/ProfileUser.svelte +53 -0
  78. package/dist/components/pages/profile-user/ProfileUser.svelte.d.ts +4 -0
  79. package/dist/components/pages/profile-user/shared/ProfileUserAddress.svelte +84 -0
  80. package/dist/components/pages/profile-user/shared/ProfileUserAddress.svelte.d.ts +8 -0
  81. package/dist/components/pages/profile-user/shared/ProfileUserHeader.svelte +104 -0
  82. package/dist/components/pages/profile-user/shared/ProfileUserHeader.svelte.d.ts +9 -0
  83. package/dist/components/pages/profile-user/shared/ProfileUserResetPassword.svelte +116 -0
  84. package/dist/components/pages/profile-user/shared/ProfileUserResetPassword.svelte.d.ts +7 -0
  85. package/dist/components/pages/profile-user/shared/ProfileUserSetting.svelte +176 -0
  86. package/dist/components/pages/profile-user/shared/ProfileUserSetting.svelte.d.ts +14 -0
  87. package/dist/components/pages/profile-user/shared/ProfileUserTabs.svelte +78 -0
  88. package/dist/components/pages/profile-user/shared/ProfileUserTabs.svelte.d.ts +22 -0
  89. package/dist/components/pages/profile-user/types.d.ts +144 -0
  90. package/dist/components/pages/profile-user/types.js +1 -0
  91. package/dist/components/types.d.ts +6 -0
  92. package/dist/components/types.js +1 -0
  93. package/dist/globals.css +210 -3
  94. package/dist/i18n/langs/en.d.ts +83 -0
  95. package/dist/i18n/langs/en.js +83 -0
  96. package/dist/i18n/langs/pt.d.ts +83 -0
  97. package/dist/i18n/langs/pt.js +83 -0
  98. package/dist/i18n/translations.d.ts +166 -0
  99. package/dist/index.d.ts +190 -25
  100. package/dist/index.js +190 -25
  101. package/dist/types/index.d.ts +159 -5
  102. package/package.json +1 -1
@@ -0,0 +1,176 @@
1
+ <script lang="ts" module>
2
+ /**
3
+ * Preferências de notificações e marketing.
4
+ * Inclui secções "Email/Notification preferences" e "Enable notification",
5
+ * além das preferências de marketing.
6
+ * @component
7
+ */
8
+ </script>
9
+
10
+ <script lang="ts">
11
+ import Checkbox from "../../../ui/checkbox/checkbox.svelte";
12
+ import Label from "../../../ui/label/label.svelte";
13
+ import Skeleton from "../../../ui/skeleton/skeleton.svelte";
14
+ import { cn } from "../../../../utils.js";
15
+ import { t } from "../../../../i18n";
16
+ import type {
17
+ ProfileUserMarketingPref,
18
+ ProfileUserNotificationPref,
19
+ ProfileUserSettingProps,
20
+ } from "../types";
21
+
22
+ let {
23
+ notificationPref,
24
+ enableNotification,
25
+ marketingPrefs,
26
+ isLoading = false,
27
+ className,
28
+ notificationTitle = $t("profile-user.setting.notification.title"),
29
+ notificationEmailLabel = $t("profile-user.setting.notification.email.label"),
30
+ notificationEmailDesc = $t("profile-user.setting.notification.email.desc"),
31
+ notificationWebLabel = $t("profile-user.setting.notification.web.label"),
32
+ notificationWebDesc = $t("profile-user.setting.notification.web.desc"),
33
+ notificationAppLabel = $t("profile-user.setting.notification.app.label"),
34
+ notificationAppDesc = $t("profile-user.setting.notification.app.desc"),
35
+ enableTitle = $t("profile-user.setting.enable.title"),
36
+ enableEmailLabel = $t("profile-user.setting.enable.email"),
37
+ enableWebLabel = $t("profile-user.setting.enable.web"),
38
+ enableAppLabel = $t("profile-user.setting.enable.app"),
39
+ marketingTitle = $t("profile-user.setting.marketing.title"),
40
+ marketingTypeLabel = $t("profile-user.setting.marketing.type"),
41
+ marketingEmailLabel = $t("profile-user.setting.marketing.email"),
42
+ marketingPushLabel = $t("profile-user.setting.marketing.push"),
43
+ }: ProfileUserSettingProps & {
44
+ notificationPref?: ProfileUserNotificationPref;
45
+ enableNotification?: { email?: boolean; web?: boolean; app?: boolean };
46
+ marketingPrefs?: ProfileUserMarketingPref[];
47
+ isLoading?: boolean;
48
+ } = $props();
49
+
50
+ let emailEnabled = $state(false);
51
+ let webEnabled = $state(false);
52
+ let appEnabled = $state(false);
53
+
54
+ let enableEmailChecked = $state(false);
55
+ let enableWebChecked = $state(false);
56
+ let enableAppChecked = $state(false);
57
+
58
+ $effect(() => {
59
+ emailEnabled = notificationPref?.emailEnabled ?? false;
60
+ webEnabled = notificationPref?.webEnabled ?? false;
61
+ appEnabled = notificationPref?.appEnabled ?? false;
62
+ });
63
+
64
+ $effect(() => {
65
+ enableEmailChecked = enableNotification?.email ?? false;
66
+ enableWebChecked = enableNotification?.web ?? false;
67
+ enableAppChecked = enableNotification?.app ?? false;
68
+ });
69
+
70
+ const marketingState = $state<Record<string, { email: boolean; push: boolean }>>({});
71
+ $effect(() => {
72
+ marketingPrefs?.forEach((pref) => {
73
+ if (!marketingState[pref.id]) {
74
+ marketingState[pref.id] = {
75
+ email: pref.email ?? false,
76
+ push: pref.push ?? false,
77
+ };
78
+ }
79
+ });
80
+ });
81
+ </script>
82
+
83
+ <div class={cn("flex flex-col gap-6", className)} data-slot="profile-user-setting">
84
+ <section class="rounded-lg border bg-card p-6">
85
+ <h3 class="mb-6 text-lg font-semibold">{notificationTitle}</h3>
86
+ {#if isLoading}
87
+ <div class="flex flex-col gap-4">
88
+ {#each Array.from({ length: 3 }) as _, i (i)}
89
+ <Skeleton class="h-6 w-full rounded-md" />
90
+ {/each}
91
+ </div>
92
+ {:else}
93
+ <div class="flex flex-col gap-4">
94
+ <div class="flex items-center justify-between">
95
+ <div>
96
+ <Label class="cursor-pointer">{notificationEmailLabel}</Label>
97
+ <p class="text-sm text-muted-foreground">{notificationEmailDesc}</p>
98
+ </div>
99
+ <Checkbox bind:checked={emailEnabled} />
100
+ </div>
101
+ <div class="flex items-center justify-between">
102
+ <div>
103
+ <Label class="cursor-pointer">{notificationWebLabel}</Label>
104
+ <p class="text-sm text-muted-foreground">{notificationWebDesc}</p>
105
+ </div>
106
+ <Checkbox bind:checked={webEnabled} />
107
+ </div>
108
+ <div class="flex items-center justify-between">
109
+ <div>
110
+ <Label class="cursor-pointer">{notificationAppLabel}</Label>
111
+ <p class="text-sm text-muted-foreground">{notificationAppDesc}</p>
112
+ </div>
113
+ <Checkbox bind:checked={appEnabled} />
114
+ </div>
115
+ </div>
116
+ {/if}
117
+ </section>
118
+
119
+ <section class="rounded-lg border bg-card p-6">
120
+ <h3 class="mb-6 text-lg font-semibold">{enableTitle}</h3>
121
+ {#if isLoading}
122
+ <div class="flex flex-col gap-4">
123
+ {#each Array.from({ length: 3 }) as _, i (i)}
124
+ <Skeleton class="h-6 w-full rounded-md" />
125
+ {/each}
126
+ </div>
127
+ {:else}
128
+ <div class="grid gap-4 sm:grid-cols-3">
129
+ <div class="flex flex-col items-center gap-2 rounded-md border p-4 text-center">
130
+ <Label class="cursor-pointer text-base font-medium">{enableEmailLabel}</Label>
131
+ <Checkbox bind:checked={enableEmailChecked} />
132
+ </div>
133
+ <div class="flex flex-col items-center gap-2 rounded-md border p-4 text-center">
134
+ <Label class="cursor-pointer text-base font-medium">{enableWebLabel}</Label>
135
+ <Checkbox bind:checked={enableWebChecked} />
136
+ </div>
137
+ <div class="flex flex-col items-center gap-2 rounded-md border p-4 text-center">
138
+ <Label class="cursor-pointer text-base font-medium">{enableAppLabel}</Label>
139
+ <Checkbox bind:checked={enableAppChecked} />
140
+ </div>
141
+ </div>
142
+ {/if}
143
+ </section>
144
+
145
+ {#if marketingPrefs && marketingPrefs.length > 0}
146
+ <section class="rounded-lg border bg-card p-6">
147
+ <h3 class="mb-6 text-lg font-semibold">{marketingTitle}</h3>
148
+ {#if isLoading}
149
+ <div class="flex flex-col gap-4">
150
+ {#each marketingPrefs as _, i (i)}
151
+ <Skeleton class="h-12 w-full rounded-md" />
152
+ {/each}
153
+ </div>
154
+ {:else}
155
+ <div class="overflow-hidden rounded-md border">
156
+ <div class="grid grid-cols-[1fr_auto_auto] gap-4 border-b bg-muted/50 px-4 py-3 text-sm font-medium">
157
+ <span>{marketingTypeLabel}</span>
158
+ <span class="text-center">{marketingEmailLabel}</span>
159
+ <span class="text-center">{marketingPushLabel}</span>
160
+ </div>
161
+ {#each marketingPrefs as pref (pref.id)}
162
+ <div class="grid grid-cols-[1fr_auto_auto] items-center gap-4 border-b px-4 py-3 last:border-b-0">
163
+ <span class="font-medium">{pref.label}</span>
164
+ <div class="flex justify-center">
165
+ <Checkbox bind:checked={marketingState[pref.id].email} />
166
+ </div>
167
+ <div class="flex justify-center">
168
+ <Checkbox bind:checked={marketingState[pref.id].push} />
169
+ </div>
170
+ </div>
171
+ {/each}
172
+ </div>
173
+ {/if}
174
+ </section>
175
+ {/if}
176
+ </div>
@@ -0,0 +1,14 @@
1
+ import type { ProfileUserMarketingPref, ProfileUserNotificationPref, ProfileUserSettingProps } from "../types";
2
+ type $$ComponentProps = ProfileUserSettingProps & {
3
+ notificationPref?: ProfileUserNotificationPref;
4
+ enableNotification?: {
5
+ email?: boolean;
6
+ web?: boolean;
7
+ app?: boolean;
8
+ };
9
+ marketingPrefs?: ProfileUserMarketingPref[];
10
+ isLoading?: boolean;
11
+ };
12
+ declare const ProfileUserSetting: import("svelte").Component<$$ComponentProps, {}, "">;
13
+ type ProfileUserSetting = ReturnType<typeof ProfileUserSetting>;
14
+ export default ProfileUserSetting;
@@ -0,0 +1,78 @@
1
+ <script lang="ts" module>
2
+ /**
3
+ * Barra de tabs reutilizável para as variantes de perfil.
4
+ * Suporta loading state, tabs customizadas, active tab controlável
5
+ * e estilos variantes (underline vs pill).
6
+ * @component
7
+ */
8
+ export type ProfileUserTabItem = { id: string; label: string };
9
+ export type ProfileUserTabsStyle = "underline" | "pill";
10
+ </script>
11
+
12
+ <script lang="ts">
13
+ import Skeleton from "../../../ui/skeleton/skeleton.svelte";
14
+ import { cn } from "../../../../utils.js";
15
+
16
+ let {
17
+ tabs,
18
+ activeTab = $bindable(),
19
+ style = "underline",
20
+ isLoading = false,
21
+ className,
22
+ onchange,
23
+ }: {
24
+ tabs: ProfileUserTabItem[];
25
+ activeTab?: string;
26
+ style?: ProfileUserTabsStyle;
27
+ isLoading?: boolean;
28
+ className?: string;
29
+ onchange?: (id: string) => void;
30
+ } = $props();
31
+
32
+ const currentTab = $derived(activeTab ?? tabs[0]?.id ?? "");
33
+
34
+ const handleSelect = (id: string) => {
35
+ activeTab = id;
36
+ onchange?.(id);
37
+ };
38
+ </script>
39
+
40
+ <div
41
+ class={cn(
42
+ "mb-6 flex gap-1 border-b overflow-x-auto",
43
+ style === "pill" && "-mt-12 mb-6 rounded-t-lg border border-t bg-background px-2 py-1 shadow-sm border-b",
44
+ className
45
+ )}
46
+ data-slot="profile-user-tabs"
47
+ >
48
+ {#if isLoading}
49
+ {#each tabs as tab (tab.id)}
50
+ <Skeleton class="h-9 w-32 shrink-0 rounded-t-md" />
51
+ {/each}
52
+ {:else}
53
+ {#each tabs as tab (tab.id)}
54
+ <button
55
+ type="button"
56
+ onclick={() => handleSelect(tab.id)}
57
+ class={cn(
58
+ "shrink-0 px-4 py-2 text-sm font-medium transition-colors whitespace-nowrap",
59
+ style === "underline"
60
+ ? cn(
61
+ "border-b-2",
62
+ currentTab === tab.id
63
+ ? "border-foreground text-foreground"
64
+ : "border-transparent text-muted-foreground hover:text-foreground"
65
+ )
66
+ : cn(
67
+ "rounded-md",
68
+ currentTab === tab.id
69
+ ? "bg-primary/10 text-primary"
70
+ : "text-muted-foreground hover:bg-muted hover:text-foreground"
71
+ )
72
+ )}
73
+ >
74
+ {tab.label}
75
+ </button>
76
+ {/each}
77
+ {/if}
78
+ </div>
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Barra de tabs reutilizável para as variantes de perfil.
3
+ * Suporta loading state, tabs customizadas, active tab controlável
4
+ * e estilos variantes (underline vs pill).
5
+ * @component
6
+ */
7
+ export type ProfileUserTabItem = {
8
+ id: string;
9
+ label: string;
10
+ };
11
+ export type ProfileUserTabsStyle = "underline" | "pill";
12
+ type $$ComponentProps = {
13
+ tabs: ProfileUserTabItem[];
14
+ activeTab?: string;
15
+ style?: ProfileUserTabsStyle;
16
+ isLoading?: boolean;
17
+ className?: string;
18
+ onchange?: (id: string) => void;
19
+ };
20
+ declare const ProfileUserTabs: import("svelte").Component<$$ComponentProps, {}, "activeTab">;
21
+ type ProfileUserTabs = ReturnType<typeof ProfileUserTabs>;
22
+ export default ProfileUserTabs;
@@ -0,0 +1,144 @@
1
+ export type ProfileUserVariant = 1 | 2 | 3;
2
+ export interface ProfileUserAddress {
3
+ id: string | number;
4
+ label: string;
5
+ street: string;
6
+ apartment?: string;
7
+ state?: string;
8
+ zip?: string;
9
+ isDefault?: boolean;
10
+ }
11
+ export interface ProfileUserNote {
12
+ id: string | number;
13
+ text: string;
14
+ }
15
+ export interface ProfileUserNotificationPref {
16
+ emailEnabled?: boolean;
17
+ webEnabled?: boolean;
18
+ appEnabled?: boolean;
19
+ }
20
+ export interface ProfileUserMarketingPref {
21
+ id: string;
22
+ label: string;
23
+ email?: boolean;
24
+ push?: boolean;
25
+ }
26
+ export interface ProfileUserExperience {
27
+ id: string | number;
28
+ categoryId: string;
29
+ program: string;
30
+ role: string;
31
+ institution: string;
32
+ location?: string;
33
+ startDate?: string;
34
+ endDate?: string;
35
+ tags?: {
36
+ label: string;
37
+ }[];
38
+ }
39
+ export interface ProfileUserData {
40
+ id: string | number;
41
+ avatarUrl: string;
42
+ bannerUrl?: string;
43
+ firstName: string;
44
+ lastName: string;
45
+ fullName?: string;
46
+ email: string;
47
+ phone?: string;
48
+ role?: string;
49
+ status?: string;
50
+ username?: string;
51
+ defaultAddress?: string;
52
+ addresses?: ProfileUserAddress[];
53
+ notes?: ProfileUserNote[];
54
+ notificationPref?: ProfileUserNotificationPref;
55
+ enableNotification?: {
56
+ email?: boolean;
57
+ web?: boolean;
58
+ app?: boolean;
59
+ };
60
+ marketingPrefs?: ProfileUserMarketingPref[];
61
+ tabs?: {
62
+ id: string;
63
+ label: string;
64
+ }[];
65
+ location?: string;
66
+ verified?: boolean;
67
+ priceRange?: string;
68
+ experienceTitle?: string;
69
+ experiences?: ProfileUserExperience[];
70
+ experienceCategories?: {
71
+ id: string;
72
+ label: string;
73
+ }[];
74
+ }
75
+ export interface ProfileUserHeaderProps {
76
+ statusDefault?: string;
77
+ roleDefault?: string;
78
+ loginAsUserLabel?: string;
79
+ onLoginAsUser?: (id: string | number) => void;
80
+ }
81
+ export interface ProfileUserAddressProps {
82
+ title?: string;
83
+ addLabel?: string;
84
+ defaultBadge?: string;
85
+ emptyText?: string;
86
+ onAddAddress?: () => void;
87
+ className?: string;
88
+ }
89
+ export interface ProfileUserResetPasswordProps {
90
+ title?: string;
91
+ currentLabel?: string;
92
+ currentPlaceholder?: string;
93
+ newLabel?: string;
94
+ newPlaceholder?: string;
95
+ confirmLabel?: string;
96
+ confirmPlaceholder?: string;
97
+ submitLabel?: string;
98
+ cancelLabel?: string;
99
+ onChangePassword?: (payload: {
100
+ currentPassword: string;
101
+ newPassword: string;
102
+ confirmPassword: string;
103
+ }) => void;
104
+ onCancel?: () => void;
105
+ className?: string;
106
+ }
107
+ export interface ProfileUserSettingProps {
108
+ className?: string;
109
+ notificationTitle?: string;
110
+ notificationEmailLabel?: string;
111
+ notificationEmailDesc?: string;
112
+ notificationWebLabel?: string;
113
+ notificationWebDesc?: string;
114
+ notificationAppLabel?: string;
115
+ notificationAppDesc?: string;
116
+ enableTitle?: string;
117
+ enableEmailLabel?: string;
118
+ enableWebLabel?: string;
119
+ enableAppLabel?: string;
120
+ marketingTitle?: string;
121
+ marketingTypeLabel?: string;
122
+ marketingEmailLabel?: string;
123
+ marketingPushLabel?: string;
124
+ }
125
+ export interface ProfileUserTabsProps {
126
+ style?: "underline" | "pill";
127
+ className?: string;
128
+ onchange?: (id: string) => void;
129
+ }
130
+ export interface ProfileUserProps {
131
+ varient?: ProfileUserVariant;
132
+ data: ProfileUserData;
133
+ activeTab?: string;
134
+ isLoading?: boolean;
135
+ tabs?: {
136
+ id: string;
137
+ label: string;
138
+ }[];
139
+ userHeader?: ProfileUserHeaderProps;
140
+ userAddress?: ProfileUserAddressProps;
141
+ userResetPassword?: ProfileUserResetPasswordProps;
142
+ userSetting?: ProfileUserSettingProps;
143
+ userTabs?: ProfileUserTabsProps;
144
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -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 {};