@topjoao/top-design-system 0.1.0-beta.8 → 0.1.0

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,3 +1,4 @@
1
+ export type TopButtonSeverity = 'primary' | 'secondary' | 'success' | 'warn' | 'danger';
1
2
  type __VLS_Props = {
2
3
  tooltip?: string;
3
4
  tooltipClass?: string;
@@ -6,6 +7,7 @@ type __VLS_Props = {
6
7
  loading?: boolean;
7
8
  class?: string;
8
9
  outlined?: boolean;
10
+ severity?: TopButtonSeverity;
9
11
  secondary?: boolean;
10
12
  disabled?: boolean;
11
13
  unstyled?: boolean;
@@ -20,6 +22,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
20
22
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
21
23
  onClick?: (() => any) | undefined;
22
24
  }>, {
25
+ secondary: boolean;
23
26
  icon: string;
24
27
  tooltip: string;
25
28
  tooltipClass: string;
@@ -27,7 +30,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
27
30
  loading: boolean;
28
31
  class: string;
29
32
  outlined: boolean;
30
- secondary: boolean;
33
+ severity: TopButtonSeverity;
31
34
  disabled: boolean;
32
35
  unstyled: boolean;
33
36
  type: "button" | "submit" | "reset";
@@ -29,8 +29,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
29
29
  }>, {
30
30
  icon: string;
31
31
  loading: boolean;
32
- title: string;
33
32
  severity: ConfirmDialogSeverity;
33
+ title: string;
34
34
  modelValue: boolean;
35
35
  message: string;
36
36
  confirmText: string;
@@ -0,0 +1,81 @@
1
+ import { DatePickerBlurEvent, DatePickerMonthChangeEvent, DatePickerYearChangeEvent } from 'primevue/datepicker';
2
+ export type TopDatePickerSelectionMode = 'single' | 'multiple' | 'range';
3
+ export type TopDatePickerValue = Date | Date[] | Array<Date | null> | null;
4
+ type __VLS_Props = {
5
+ modelValue?: TopDatePickerValue;
6
+ label?: string;
7
+ placeholder?: string;
8
+ required?: boolean;
9
+ error?: string;
10
+ invalid?: boolean;
11
+ disabled?: boolean;
12
+ readonly?: boolean;
13
+ selectionMode?: TopDatePickerSelectionMode;
14
+ dateFormat?: string;
15
+ minDate?: Date;
16
+ maxDate?: Date;
17
+ showIcon?: boolean;
18
+ iconDisplay?: 'button' | 'input';
19
+ manualInput?: boolean;
20
+ showButtonBar?: boolean;
21
+ appendTo?: 'body' | 'self' | HTMLElement;
22
+ };
23
+ declare var __VLS_22: string, __VLS_23: any;
24
+ type __VLS_Slots = {} & {
25
+ [K in NonNullable<typeof __VLS_22>]?: (props: typeof __VLS_23) => any;
26
+ };
27
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
+ input: (event: Event) => any;
29
+ "update:modelValue": (value: TopDatePickerValue) => any;
30
+ hide: () => any;
31
+ show: () => any;
32
+ change: (event: Event) => any;
33
+ "date-select": (value: Date) => any;
34
+ "today-click": (date: Date) => any;
35
+ "clear-click": (event: Event) => any;
36
+ "month-change": (event: DatePickerMonthChangeEvent) => any;
37
+ "year-change": (event: DatePickerYearChangeEvent) => any;
38
+ focus: (event: Event) => any;
39
+ blur: (event: DatePickerBlurEvent) => any;
40
+ keydown: (event: Event) => any;
41
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
42
+ onInput?: ((event: Event) => any) | undefined;
43
+ "onUpdate:modelValue"?: ((value: TopDatePickerValue) => any) | undefined;
44
+ onHide?: (() => any) | undefined;
45
+ onShow?: (() => any) | undefined;
46
+ onChange?: ((event: Event) => any) | undefined;
47
+ "onDate-select"?: ((value: Date) => any) | undefined;
48
+ "onToday-click"?: ((date: Date) => any) | undefined;
49
+ "onClear-click"?: ((event: Event) => any) | undefined;
50
+ "onMonth-change"?: ((event: DatePickerMonthChangeEvent) => any) | undefined;
51
+ "onYear-change"?: ((event: DatePickerYearChangeEvent) => any) | undefined;
52
+ onFocus?: ((event: Event) => any) | undefined;
53
+ onBlur?: ((event: DatePickerBlurEvent) => any) | undefined;
54
+ onKeydown?: ((event: Event) => any) | undefined;
55
+ }>, {
56
+ label: string;
57
+ disabled: boolean;
58
+ placeholder: string;
59
+ modelValue: TopDatePickerValue;
60
+ appendTo: "body" | "self" | HTMLElement;
61
+ required: boolean;
62
+ error: string;
63
+ invalid: boolean;
64
+ readonly: boolean;
65
+ selectionMode: TopDatePickerSelectionMode;
66
+ dateFormat: string;
67
+ minDate: Date;
68
+ maxDate: Date;
69
+ showIcon: boolean;
70
+ iconDisplay: "button" | "input";
71
+ manualInput: boolean;
72
+ showButtonBar: boolean;
73
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
74
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
75
+ declare const _default: typeof __VLS_export;
76
+ export default _default;
77
+ type __VLS_WithSlots<T, S> = T & {
78
+ new (): {
79
+ $slots: S;
80
+ };
81
+ };
@@ -0,0 +1,88 @@
1
+ export type TopFileUploadValue = File | File[] | null;
2
+ export type TopFileUploadErrorCode = "file-type" | "file-size" | "file-limit";
3
+ export type TopFileUploadError = {
4
+ code: TopFileUploadErrorCode;
5
+ message: string;
6
+ file?: File;
7
+ };
8
+ type __VLS_Props = {
9
+ modelValue?: TopFileUploadValue;
10
+ label?: string;
11
+ placeholder?: string;
12
+ required?: boolean;
13
+ disabled?: boolean;
14
+ accept?: string;
15
+ multiple?: boolean;
16
+ maxFileSize?: number | null;
17
+ maxFiles?: number | null;
18
+ error?: string;
19
+ selectLabel?: string;
20
+ removeLabel?: string;
21
+ loading?: boolean;
22
+ };
23
+ declare function choose(): void;
24
+ declare function clear(): void;
25
+ declare var __VLS_12: {
26
+ choose: typeof choose;
27
+ disabled: boolean;
28
+ }, __VLS_26: {
29
+ file: {
30
+ readonly lastModified: number;
31
+ readonly name: string;
32
+ readonly webkitRelativePath: string;
33
+ readonly size: number;
34
+ readonly type: string;
35
+ arrayBuffer: () => Promise<ArrayBuffer>;
36
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
37
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
38
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
39
+ text: () => Promise<string>;
40
+ };
41
+ index: number;
42
+ url: string;
43
+ };
44
+ type __VLS_Slots = {} & {
45
+ empty?: (props: typeof __VLS_12) => any;
46
+ } & {
47
+ preview?: (props: typeof __VLS_26) => any;
48
+ };
49
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
50
+ choose: typeof choose;
51
+ clear: typeof clear;
52
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
+ select: (files: File[]) => any;
54
+ "update:modelValue": (value: TopFileUploadValue) => any;
55
+ error: (errors: TopFileUploadError[]) => any;
56
+ change: (value: TopFileUploadValue) => any;
57
+ remove: (file: File, index: number) => any;
58
+ clear: () => any;
59
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
60
+ onSelect?: ((files: File[]) => any) | undefined;
61
+ "onUpdate:modelValue"?: ((value: TopFileUploadValue) => any) | undefined;
62
+ onError?: ((errors: TopFileUploadError[]) => any) | undefined;
63
+ onChange?: ((value: TopFileUploadValue) => any) | undefined;
64
+ onRemove?: ((file: File, index: number) => any) | undefined;
65
+ onClear?: (() => any) | undefined;
66
+ }>, {
67
+ label: string;
68
+ loading: boolean;
69
+ disabled: boolean;
70
+ placeholder: string;
71
+ modelValue: TopFileUploadValue;
72
+ multiple: boolean;
73
+ required: boolean;
74
+ error: string;
75
+ accept: string;
76
+ maxFileSize: number | null;
77
+ maxFiles: number | null;
78
+ selectLabel: string;
79
+ removeLabel: string;
80
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
81
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
82
+ declare const _default: typeof __VLS_export;
83
+ export default _default;
84
+ type __VLS_WithSlots<T, S> = T & {
85
+ new (): {
86
+ $slots: S;
87
+ };
88
+ };
@@ -0,0 +1,287 @@
1
+ export type TopNavItem = {
2
+ id: string;
3
+ label: string;
4
+ to?: string;
5
+ icon?: string;
6
+ disabled?: boolean;
7
+ children?: TopNavItem[];
8
+ data?: unknown;
9
+ };
10
+ export type TopNavSection = TopNavItem & {
11
+ children: TopNavItem[];
12
+ };
13
+ export type TopNavBreadcrumb = {
14
+ id: string;
15
+ label: string;
16
+ to?: string;
17
+ sectionId?: string;
18
+ menuId?: string;
19
+ };
20
+ export type TopNavAction = {
21
+ id: string;
22
+ label: string;
23
+ icon?: string;
24
+ disabled?: boolean;
25
+ data?: unknown;
26
+ };
27
+ export type TopNavBarColors = {
28
+ navigation?: string;
29
+ text?: string;
30
+ mutedText?: string;
31
+ accent?: string;
32
+ border?: string;
33
+ menuText?: string;
34
+ mobileActiveText?: string;
35
+ favoritesText?: string;
36
+ };
37
+ export type TopNavBarSurfaces = {
38
+ breadcrumb?: string;
39
+ drawer?: string;
40
+ drawerFooter?: string;
41
+ menu?: string;
42
+ menuHover?: string;
43
+ menuExplored?: string;
44
+ mobileActive?: string;
45
+ favorites?: string;
46
+ currentPage?: string;
47
+ };
48
+ export type TopNavBarBorders = {
49
+ menu?: string;
50
+ menuOutline?: string;
51
+ mobileDivider?: string;
52
+ favorites?: string;
53
+ currentPage?: string;
54
+ };
55
+ export type TopNavBarShape = {
56
+ radius?: string;
57
+ drawerRadius?: string;
58
+ shadow?: string;
59
+ favoritesShadow?: string;
60
+ };
61
+ export type TopNavBarFocus = {
62
+ onDark?: string;
63
+ onLight?: string;
64
+ };
65
+ export type TopNavBarAppearance = {
66
+ colors?: TopNavBarColors;
67
+ surfaces?: TopNavBarSurfaces;
68
+ borders?: TopNavBarBorders;
69
+ shape?: TopNavBarShape;
70
+ focus?: TopNavBarFocus;
71
+ };
72
+ export type TopNavUser = {
73
+ name: string;
74
+ subtitle?: string;
75
+ avatarUrl?: string;
76
+ initials?: string;
77
+ data?: unknown;
78
+ };
79
+ /** Contexto visual da organização, cliente ou escopo ativo. Não possui ação própria. */
80
+ export type TopNavClient = {
81
+ name: string;
82
+ subtitle?: string;
83
+ logoUrl?: string;
84
+ initials?: string;
85
+ data?: unknown;
86
+ };
87
+ export type TopNavUserMenuItem = {
88
+ id: string;
89
+ label: string;
90
+ icon?: string;
91
+ disabled?: boolean;
92
+ separator?: boolean;
93
+ data?: unknown;
94
+ };
95
+ type RenderAction = TopNavAction & {
96
+ kind: 'aia' | 'support' | 'action';
97
+ };
98
+ type __VLS_Props = {
99
+ sections?: TopNavSection[];
100
+ breadcrumbs?: TopNavBreadcrumb[];
101
+ homeItem?: TopNavItem;
102
+ navigationLabel?: string;
103
+ activeItemId?: string;
104
+ searchable?: boolean;
105
+ searchValue?: string;
106
+ searchPlaceholder?: string;
107
+ searchResults?: TopNavItem[];
108
+ showAia?: boolean;
109
+ aiaActive?: boolean;
110
+ aiaLabel?: string;
111
+ showSupport?: boolean;
112
+ supportLabel?: string;
113
+ actions?: TopNavAction[];
114
+ client?: TopNavClient;
115
+ user?: TopNavUser;
116
+ userMenuItems?: TopNavUserMenuItem[];
117
+ favoriteItems?: TopNavItem[];
118
+ showFavoriteToggle?: boolean;
119
+ favoriteActive?: boolean;
120
+ favoriteLabel?: string;
121
+ mobileOpen?: boolean;
122
+ appearance?: TopNavBarAppearance;
123
+ };
124
+ declare function selectItem(item: TopNavItem): void;
125
+ declare function selectUserAction(item: TopNavUserMenuItem, closeDrawer?: boolean): void;
126
+ declare function updateSearch(query: string): void;
127
+ declare function clearSearch(): void;
128
+ declare function closeDesktopPopovers(): void;
129
+ declare function openSearch(): Promise<void>;
130
+ declare var __VLS_1: {
131
+ compact: boolean;
132
+ }, __VLS_3: {
133
+ client: TopNavClient | undefined;
134
+ compact: boolean;
135
+ }, __VLS_5: {
136
+ client: TopNavClient | undefined;
137
+ compact: boolean;
138
+ }, __VLS_7: {
139
+ client: TopNavClient | undefined;
140
+ compact: boolean;
141
+ }, __VLS_9: {
142
+ client: TopNavClient | undefined;
143
+ compact: boolean;
144
+ }, __VLS_11: {
145
+ items: TopNavItem[];
146
+ select: typeof selectItem;
147
+ }, __VLS_13: {}, __VLS_15: {}, __VLS_17: {
148
+ compact: boolean;
149
+ close: typeof closeDesktopPopovers;
150
+ }, __VLS_19: {
151
+ user: TopNavUser | undefined;
152
+ compact: boolean;
153
+ }, __VLS_21: {
154
+ items: TopNavUserMenuItem[];
155
+ select: typeof selectUserAction;
156
+ }, __VLS_34: {}, __VLS_49: {
157
+ close: () => void;
158
+ }, __VLS_51: {}, __VLS_53: {
159
+ compact: boolean;
160
+ }, __VLS_55: {
161
+ query: string;
162
+ update: typeof updateSearch;
163
+ clear: typeof clearSearch;
164
+ }, __VLS_57: {
165
+ actions: RenderAction[];
166
+ select: (actionItem: RenderAction) => void;
167
+ close: () => void;
168
+ }, __VLS_59: {
169
+ close: () => void;
170
+ }, __VLS_74: {
171
+ sections: TopNavItem[];
172
+ select: typeof selectItem;
173
+ close: () => void;
174
+ }, __VLS_83: {
175
+ close: () => void;
176
+ }, __VLS_85: {
177
+ user: TopNavUser | undefined;
178
+ open: boolean;
179
+ toggle: () => boolean;
180
+ }, __VLS_87: {
181
+ close: () => void;
182
+ };
183
+ type __VLS_Slots = {} & {
184
+ brand?: (props: typeof __VLS_1) => any;
185
+ } & {
186
+ 'context-compact'?: (props: typeof __VLS_3) => any;
187
+ } & {
188
+ context?: (props: typeof __VLS_5) => any;
189
+ } & {
190
+ scope?: (props: typeof __VLS_7) => any;
191
+ } & {
192
+ client?: (props: typeof __VLS_9) => any;
193
+ } & {
194
+ 'search-results'?: (props: typeof __VLS_11) => any;
195
+ } & {
196
+ 'aia-icon'?: (props: typeof __VLS_13) => any;
197
+ } & {
198
+ 'support-icon'?: (props: typeof __VLS_15) => any;
199
+ } & {
200
+ actions?: (props: typeof __VLS_17) => any;
201
+ } & {
202
+ user?: (props: typeof __VLS_19) => any;
203
+ } & {
204
+ 'user-menu'?: (props: typeof __VLS_21) => any;
205
+ } & {
206
+ 'breadcrumb-actions'?: (props: typeof __VLS_34) => any;
207
+ } & {
208
+ 'drawer-header'?: (props: typeof __VLS_49) => any;
209
+ } & {
210
+ 'drawer-brand'?: (props: typeof __VLS_51) => any;
211
+ } & {
212
+ brand?: (props: typeof __VLS_53) => any;
213
+ } & {
214
+ 'drawer-search'?: (props: typeof __VLS_55) => any;
215
+ } & {
216
+ 'drawer-actions'?: (props: typeof __VLS_57) => any;
217
+ } & {
218
+ 'drawer-before-menu'?: (props: typeof __VLS_59) => any;
219
+ } & {
220
+ 'drawer-menu'?: (props: typeof __VLS_74) => any;
221
+ } & {
222
+ 'drawer-after-menu'?: (props: typeof __VLS_83) => any;
223
+ } & {
224
+ 'drawer-user'?: (props: typeof __VLS_85) => any;
225
+ } & {
226
+ 'drawer-footer'?: (props: typeof __VLS_87) => any;
227
+ };
228
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
229
+ close: typeof closeDesktopPopovers;
230
+ closeDrawer: () => void;
231
+ focusSearch: typeof openSearch;
232
+ openDrawer: () => void;
233
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
234
+ search: (query: string) => any;
235
+ action: (action: TopNavAction) => any;
236
+ navigate: (item: TopNavItem) => any;
237
+ "update:searchValue": (query: string) => any;
238
+ "update:mobileOpen": (open: boolean) => any;
239
+ "toggle-aia": () => any;
240
+ "open-support": () => any;
241
+ "toggle-favorite": () => any;
242
+ "user-action": (item: TopNavUserMenuItem) => any;
243
+ "user-click": (user: TopNavUser | undefined) => any;
244
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
245
+ onSearch?: ((query: string) => any) | undefined;
246
+ onAction?: ((action: TopNavAction) => any) | undefined;
247
+ onNavigate?: ((item: TopNavItem) => any) | undefined;
248
+ "onUpdate:searchValue"?: ((query: string) => any) | undefined;
249
+ "onUpdate:mobileOpen"?: ((open: boolean) => any) | undefined;
250
+ "onToggle-aia"?: (() => any) | undefined;
251
+ "onOpen-support"?: (() => any) | undefined;
252
+ "onToggle-favorite"?: (() => any) | undefined;
253
+ "onUser-action"?: ((item: TopNavUserMenuItem) => any) | undefined;
254
+ "onUser-click"?: ((user: TopNavUser | undefined) => any) | undefined;
255
+ }>, {
256
+ activeItemId: string;
257
+ sections: TopNavSection[];
258
+ breadcrumbs: TopNavBreadcrumb[];
259
+ homeItem: TopNavItem;
260
+ navigationLabel: string;
261
+ searchable: boolean;
262
+ searchValue: string;
263
+ searchPlaceholder: string;
264
+ searchResults: TopNavItem[];
265
+ showAia: boolean;
266
+ aiaActive: boolean;
267
+ aiaLabel: string;
268
+ showSupport: boolean;
269
+ supportLabel: string;
270
+ actions: TopNavAction[];
271
+ user: TopNavUser;
272
+ userMenuItems: TopNavUserMenuItem[];
273
+ favoriteItems: TopNavItem[];
274
+ showFavoriteToggle: boolean;
275
+ favoriteActive: boolean;
276
+ favoriteLabel: string;
277
+ mobileOpen: boolean;
278
+ appearance: TopNavBarAppearance;
279
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
280
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
281
+ declare const _default: typeof __VLS_export;
282
+ export default _default;
283
+ type __VLS_WithSlots<T, S> = T & {
284
+ new (): {
285
+ $slots: S;
286
+ };
287
+ };
@@ -52,9 +52,9 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
52
52
  }) => any;
53
53
  select: (event: unknown) => any;
54
54
  "update:modelValue": (value: SelectOption | SelectOption[] | null) => any;
55
- loadMore: (event: unknown) => any;
56
- clear: () => any;
57
55
  change: (event: unknown) => any;
56
+ clear: () => any;
57
+ loadMore: (event: unknown) => any;
58
58
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
59
59
  onSearch?: ((event: {
60
60
  originalEvent: Event;
@@ -62,9 +62,9 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
62
62
  }) => any) | undefined;
63
63
  onSelect?: ((event: unknown) => any) | undefined;
64
64
  "onUpdate:modelValue"?: ((value: SelectOption | SelectOption[] | null) => any) | undefined;
65
- onLoadMore?: ((event: unknown) => any) | undefined;
66
- onClear?: (() => any) | undefined;
67
65
  onChange?: ((event: unknown) => any) | undefined;
66
+ onClear?: (() => any) | undefined;
67
+ onLoadMore?: ((event: unknown) => any) | undefined;
68
68
  }>, {
69
69
  loading: boolean;
70
70
  disabled: boolean;
@@ -0,0 +1,34 @@
1
+ export type TopTabValue = string | number;
2
+ export interface TopTabItem {
3
+ value: TopTabValue;
4
+ label: string;
5
+ disabled?: boolean;
6
+ }
7
+ type __VLS_Props = {
8
+ modelValue: TopTabValue;
9
+ tabs: TopTabItem[];
10
+ lazy?: boolean;
11
+ scrollable?: boolean;
12
+ };
13
+ type __VLS_Slots = {
14
+ [name: string]: (props: {
15
+ tab: TopTabItem;
16
+ active: boolean;
17
+ }) => unknown;
18
+ };
19
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ "update:modelValue": (value: TopTabValue) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ "onUpdate:modelValue"?: ((value: TopTabValue) => any) | undefined;
23
+ }>, {
24
+ lazy: boolean;
25
+ scrollable: boolean;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -1,13 +1,5 @@
1
- export type TopToastFooter = string | number;
2
- export type TopToastAction = {
3
- label: string;
4
- icon?: string;
5
- onClick?: () => void;
6
- };
7
- export type TopToastData = {
8
- footer?: TopToastFooter;
9
- action?: TopToastAction;
10
- };
1
+ import { TopToastAction, TopToastData, TopToastFooter } from '../types/toast';
2
+ export type { TopToastAction, TopToastData, TopToastFooter };
11
3
  type __VLS_Props = {
12
4
  baseZIndex?: number;
13
5
  };
@@ -0,0 +1,20 @@
1
+ import { TopNavItem } from '../TopNavBar.vue';
2
+ type __VLS_Props = {
3
+ items: TopNavItem[];
4
+ activeItemId?: string;
5
+ level?: number;
6
+ forceOpen?: boolean;
7
+ showSectionDividers?: boolean;
8
+ };
9
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ select: (item: TopNavItem) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onSelect?: ((item: TopNavItem) => any) | undefined;
13
+ }>, {
14
+ activeItemId: string;
15
+ level: number;
16
+ forceOpen: boolean;
17
+ showSectionDividers: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./TopToast-CMAykvmB.cjs");let t=require("@primeuix/themes"),n=require("@primeuix/themes/aura");n=e.s(n,1);var r=(0,t.definePreset)(n.default,{semantic:{primary:e.a.primary,secondary:e.a.secondary,success:e.a.success,warn:e.a.warn,danger:e.a.danger}});exports.TopButton=e.o,exports.TopConfirmDialog=e.i,exports.TopInputText=e.r,exports.TopSelect=e.n,exports.TopSolutionsPreset=r,exports.TopToast=e.t,exports.colors=e.a;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./TopToast-CC6iBs5S.cjs");let t=require("@primeuix/themes"),n=require("@primeuix/themes/aura");n=e.d(n,1);var r=(0,t.definePreset)(n.default,{semantic:{primary:e.l.primary,secondary:e.l.secondary,success:e.l.success,warn:e.l.warn,danger:e.l.danger}});exports.TopButton=e.u,exports.TopConfirmDialog=e.c,exports.TopDatePicker=e.s,exports.TopFileUpload=e.o,exports.TopInputText=e.a,exports.TopNavBar=e.i,exports.TopSelect=e.r,exports.TopSolutionsPreset=r,exports.TopTabs=e.n,exports.TopToast=e.t,exports.colors=e.l;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -1,8 +1,17 @@
1
1
  export { default as TopButton } from './components/TopButton.vue';
2
+ export type { TopButtonSeverity } from './components/TopButton.vue';
2
3
  export { default as TopConfirmDialog } from './components/TopConfirmDialog.vue';
4
+ export { default as TopDatePicker } from './components/TopDatePicker.vue';
5
+ export type { TopDatePickerSelectionMode, TopDatePickerValue } from './components/TopDatePicker.vue';
6
+ export { default as TopFileUpload } from './components/TopFileUpload.vue';
7
+ export type { TopFileUploadError, TopFileUploadErrorCode, TopFileUploadValue } from './components/TopFileUpload.vue';
3
8
  export { default as TopInputText } from './components/TopInputText.vue';
9
+ export { default as TopNavBar } from './components/TopNavBar.vue';
10
+ export type { TopNavAction, TopNavBarAppearance, TopNavBarBorders, TopNavBarColors, TopNavBarFocus, TopNavBreadcrumb, TopNavItem, TopNavSection, TopNavBarShape, TopNavBarSurfaces, TopNavClient, TopNavUser, TopNavUserMenuItem, } from './components/TopNavBar.vue';
4
11
  export { default as TopSelect } from './components/TopSelect.vue';
12
+ export { default as TopTabs } from './components/TopTabs.vue';
13
+ export type { TopTabItem, TopTabValue } from './components/TopTabs.vue';
5
14
  export { default as TopToast } from './components/TopToast.vue';
6
- export type { TopToastAction, TopToastData, TopToastFooter } from './components/TopToast.vue';
15
+ export type { TopToastAction, TopToastData, TopToastFooter, TopToastMessageOptions, } from './types/toast';
7
16
  export { TopSolutionsPreset } from './theme/topSolutions';
8
17
  export { colors } from './tokens/colors';
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "./TopToast-BoaGrI3X.js";
2
- import { definePreset as o } from "@primeuix/themes";
3
- import s from "@primeuix/themes/aura";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./TopToast-BFY94BWZ.js";
2
+ import { definePreset as u } from "@primeuix/themes";
3
+ import d from "@primeuix/themes/aura";
4
4
  //#region src/theme/topSolutions.ts
5
- var c = o(s, { semantic: {
6
- primary: e.primary,
7
- secondary: e.secondary,
8
- success: e.success,
9
- warn: e.warn,
10
- danger: e.danger
5
+ var f = u(d, { semantic: {
6
+ primary: r.primary,
7
+ secondary: r.secondary,
8
+ success: r.success,
9
+ warn: r.warn,
10
+ danger: r.danger
11
11
  } });
12
12
  //#endregion
13
- export { r as TopButton, t as TopConfirmDialog, i as TopInputText, n as TopSelect, c as TopSolutionsPreset, a as TopToast, e as colors };
13
+ export { l as TopButton, t as TopConfirmDialog, s as TopDatePicker, a as TopFileUpload, e as TopInputText, n as TopNavBar, o as TopSelect, f as TopSolutionsPreset, i as TopTabs, c as TopToast, r as colors };
14
14
 
15
15
  //# sourceMappingURL=index.js.map
package/dist/nuxt.cjs CHANGED
@@ -1,2 +1,2 @@
1
- let e=require("@nuxt/kit");var t=`@topjoao/top-design-system`,n=`${t}/style.css`,r=(0,e.defineNuxtModule)({meta:{name:t,configKey:`topDesignSystem`,compatibility:{nuxt:`^3.0.0 || ^4.0.0`}},setup(r,i){i.options.css.some(e=>e===n)||i.options.css.push(n),(0,e.addComponent)({name:`TopButton`,export:`TopButton`,filePath:t}),(0,e.addComponent)({name:`TopConfirmDialog`,export:`TopConfirmDialog`,filePath:t}),(0,e.addComponent)({name:`TopInputText`,export:`TopInputText`,filePath:t}),(0,e.addComponent)({name:`TopSelect`,export:`TopSelect`,filePath:t})}});module.exports=r;
1
+ let e=require("@nuxt/kit");var t=`@topjoao/top-design-system`,n=`${t}/style.css`,r=(0,e.defineNuxtModule)({meta:{name:t,configKey:`topDesignSystem`,compatibility:{nuxt:`^3.0.0 || ^4.0.0`}},setup(r,i){i.options.css.some(e=>e===n)||i.options.css.push(n),(0,e.addComponent)({name:`TopButton`,export:`TopButton`,filePath:t}),(0,e.addComponent)({name:`TopConfirmDialog`,export:`TopConfirmDialog`,filePath:t}),(0,e.addComponent)({name:`TopDatePicker`,export:`TopDatePicker`,filePath:t}),(0,e.addComponent)({name:`TopFileUpload`,export:`TopFileUpload`,filePath:t}),(0,e.addComponent)({name:`TopInputText`,export:`TopInputText`,filePath:t}),(0,e.addComponent)({name:`TopNavBar`,export:`TopNavBar`,filePath:t}),(0,e.addComponent)({name:`TopSelect`,export:`TopSelect`,filePath:t}),(0,e.addComponent)({name:`TopTabs`,export:`TopTabs`,filePath:t}),(0,e.addComponent)({name:`TopToast`,export:`TopToast`,filePath:t})}});module.exports=r;
2
2
  //# sourceMappingURL=nuxt.cjs.map
package/dist/nuxt.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"nuxt.cjs","names":[],"sources":["../src/nuxt.ts"],"sourcesContent":["import { addComponent, defineNuxtModule } from '@nuxt/kit'\r\n\r\nconst packageName = '@topjoao/top-design-system'\r\nconst stylePath = `${packageName}/style.css`\r\n\r\nexport default defineNuxtModule({\r\n meta: {\r\n name: packageName,\r\n configKey: 'topDesignSystem',\r\n compatibility: {\r\n nuxt: '^3.0.0 || ^4.0.0',\r\n },\r\n },\r\n setup(_options, nuxt) {\r\n if (!nuxt.options.css.some((style) => style === stylePath)) {\r\n nuxt.options.css.push(stylePath)\r\n }\r\n\r\n addComponent({\r\n name: 'TopButton',\r\n export: 'TopButton',\r\n filePath: packageName,\r\n })\n addComponent({\n name: 'TopConfirmDialog',\n export: 'TopConfirmDialog',\n filePath: packageName,\n })\n addComponent({\n name: 'TopInputText',\n export: 'TopInputText',\n filePath: packageName,\n })\r\n addComponent({\r\n name: 'TopSelect',\r\n export: 'TopSelect',\r\n filePath: packageName,\r\n })\r\n },\r\n})\r\n"],"mappings":"2BAEA,IAAM,EAAc,6BACd,EAAY,GAAG,EAAY,YAEjC,GAAA,EAAe,EAAA,iBAAA,CAAiB,CAC9B,KAAM,CACJ,KAAM,EACN,UAAW,kBACX,cAAe,CACb,KAAM,kBACR,CACF,EACA,MAAM,EAAU,EAAM,CACf,EAAK,QAAQ,IAAI,KAAM,GAAU,IAAU,CAAS,GACvD,EAAK,QAAQ,IAAI,KAAK,CAAS,GAGjC,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,YACN,OAAQ,YACR,SAAU,CACZ,CAAC,GACD,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,mBACN,OAAQ,mBACR,SAAU,CACZ,CAAC,GACD,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,eACN,OAAQ,eACR,SAAU,CACZ,CAAC,GACD,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,YACN,OAAQ,YACR,SAAU,CACZ,CAAC,CACH,CACF,CAAC"}
1
+ {"version":3,"file":"nuxt.cjs","names":[],"sources":["../src/nuxt.ts"],"sourcesContent":["import { addComponent, defineNuxtModule } from '@nuxt/kit'\r\n\r\nconst packageName = '@topjoao/top-design-system'\r\nconst stylePath = `${packageName}/style.css`\r\n\r\nexport default defineNuxtModule({\r\n meta: {\r\n name: packageName,\r\n configKey: 'topDesignSystem',\r\n compatibility: {\r\n nuxt: '^3.0.0 || ^4.0.0',\r\n },\r\n },\r\n setup(_options, nuxt) {\r\n if (!nuxt.options.css.some((style) => style === stylePath)) {\r\n nuxt.options.css.push(stylePath)\r\n }\r\n\r\n addComponent({\r\n name: 'TopButton',\r\n export: 'TopButton',\r\n filePath: packageName,\r\n })\r\n addComponent({\r\n name: 'TopConfirmDialog',\r\n export: 'TopConfirmDialog',\r\n filePath: packageName,\r\n })\r\n addComponent({\r\n name: 'TopDatePicker',\r\n export: 'TopDatePicker',\r\n filePath: packageName,\r\n })\r\n addComponent({\r\n name: 'TopFileUpload',\r\n export: 'TopFileUpload',\r\n filePath: packageName,\r\n })\r\n addComponent({\r\n name: 'TopInputText',\r\n export: 'TopInputText',\r\n filePath: packageName,\r\n })\r\n addComponent({\r\n name: 'TopNavBar',\r\n export: 'TopNavBar',\r\n filePath: packageName,\r\n })\r\n addComponent({\r\n name: 'TopSelect',\r\n export: 'TopSelect',\r\n filePath: packageName,\r\n })\r\n addComponent({\n name: 'TopTabs',\n export: 'TopTabs',\n filePath: packageName,\n })\n addComponent({\n name: 'TopToast',\n export: 'TopToast',\n filePath: packageName,\n })\n },\n})\n"],"mappings":"2BAEA,IAAM,EAAc,6BACd,EAAY,GAAG,EAAY,YAEjC,GAAA,EAAe,EAAA,iBAAA,CAAiB,CAC9B,KAAM,CACJ,KAAM,EACN,UAAW,kBACX,cAAe,CACb,KAAM,kBACR,CACF,EACA,MAAM,EAAU,EAAM,CACf,EAAK,QAAQ,IAAI,KAAM,GAAU,IAAU,CAAS,GACvD,EAAK,QAAQ,IAAI,KAAK,CAAS,GAGjC,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,YACN,OAAQ,YACR,SAAU,CACZ,CAAC,GACD,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,mBACN,OAAQ,mBACR,SAAU,CACZ,CAAC,GACD,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,gBACN,OAAQ,gBACR,SAAU,CACZ,CAAC,GACD,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,gBACN,OAAQ,gBACR,SAAU,CACZ,CAAC,GACD,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,eACN,OAAQ,eACR,SAAU,CACZ,CAAC,GACD,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,YACN,OAAQ,YACR,SAAU,CACZ,CAAC,GACD,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,YACN,OAAQ,YACR,SAAU,CACZ,CAAC,GACD,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,UACN,OAAQ,UACR,SAAU,CACZ,CAAC,GACD,EAAA,EAAA,aAAA,CAAa,CACX,KAAM,WACN,OAAQ,WACR,SAAU,CACZ,CAAC,CACH,CACF,CAAC"}