@iclips/ui 1.1.5 → 1.2.2

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,16 +1,16 @@
1
1
  export * from './accordion';
2
- export * from './alert-dialog';
3
2
  export * from './alert';
3
+ export * from './alert-dialog';
4
4
  export { AppLayout } from './app-layout';
5
5
  export type { AppLayoutProps } from './app-layout';
6
6
  export { AppLayoutPrimaryNav } from './app-layout-primary-nav';
7
7
  export type { AppLayoutPrimaryNavProps, PrimaryNavItem, PrimaryNavSubItem } from './app-layout-primary-nav';
8
8
  export { AppLayoutSecondaryNav } from './app-layout-secondary-nav';
9
- export type { AppLayoutSecondaryNavProps, SecondaryNavItem, SecondaryNavGroup } from './app-layout-secondary-nav';
9
+ export type { AppLayoutSecondaryNavProps, SecondaryNavGroup, SecondaryNavItem } from './app-layout-secondary-nav';
10
10
  export { AppLayoutUserMenu } from './app-layout-user-menu';
11
- export type { AppLayoutUserMenuProps, AppLayoutUser, AppLayoutUserMenuItem } from './app-layout-user-menu';
12
- export * from './auth-layout';
11
+ export type { AppLayoutUser, AppLayoutUserMenuItem, AppLayoutUserMenuProps } from './app-layout-user-menu';
13
12
  export * from './aspect-ratio';
13
+ export * from './auth-layout';
14
14
  export * from './avatar';
15
15
  export * from './badge';
16
16
  export * from './breadcrumb';
@@ -22,23 +22,23 @@ export * from './checkbox';
22
22
  export * from './collapsible';
23
23
  export * from './command';
24
24
  export * from './context-menu';
25
+ export * from './currency-input';
25
26
  export * from './dialog';
26
27
  export * from './drawer';
27
28
  export * from './dropdown-menu';
28
29
  export * from './editable-badge';
29
30
  export * from './form';
30
31
  export * from './hover-card';
31
- export * from './input-otp';
32
32
  export * from './input';
33
- export * from './number-input';
34
- export * from './password-input';
35
- export * from './currency-input';
36
33
  export * from './input-group';
34
+ export * from './input-otp';
37
35
  export * from './label';
38
36
  export * from './menubar';
39
37
  export * from './navigation-menu';
38
+ export * from './number-input';
40
39
  export * from './page-header';
41
40
  export * from './pagination';
41
+ export * from './password-input';
42
42
  export * from './popover';
43
43
  export * from './progress';
44
44
  export * from './radio-group';
@@ -50,18 +50,20 @@ export * from './sheet';
50
50
  export * from './skeleton';
51
51
  export * from './slider';
52
52
  export * from './social-button';
53
- export * from './toast';
54
53
  export * from './switch';
55
54
  export * from './table';
56
55
  export * from './tabs';
57
56
  export * from './textarea';
58
- export * from './toggle-group';
57
+ export * from './toast';
59
58
  export * from './toggle';
59
+ export * from './toggle-group';
60
60
  export * from './tooltip';
61
+ export * from './advanced-data-table';
61
62
  export * from './brand-logo';
62
63
  export * from './chart';
63
64
  export * from './color-picker';
64
65
  export * from './comment-system';
66
+ export * from './data-table';
65
67
  export * from './date-picker';
66
68
  export * from './date-range-picker';
67
69
  export * from './document-editor';
@@ -72,16 +74,16 @@ export * from './filter-chip';
72
74
  export * from './gantt-chart';
73
75
  export * from './kanban-card';
74
76
  export * from './kpi-card';
77
+ export * from './lista-anexos-arquivo';
75
78
  export * from './saved-filters';
76
- export * from './data-table';
77
- export * from './advanced-data-table';
78
- export * from './table-types';
79
- export * from './table-pagination';
80
79
  export * from './sidebar';
80
+ export * from './table-pagination';
81
+ export * from './table-types';
81
82
  export * from './task-edit-dialog';
82
83
  export * from './time-picker';
83
84
  export * from './timeline';
84
85
  export * from './underline-tabs';
85
- export * from './utils';
86
+ export * from './zona-upload-arquivo';
86
87
  export * from './use-mobile';
88
+ export * from './utils';
87
89
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC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+ */
4
+ export interface FileAttachment {
5
+ id?: string;
6
+ nomeOriginal: string;
7
+ chave?: string;
8
+ tamanhoBytes?: number;
9
+ dataUpload?: string;
10
+ status?: 'completed' | 'uploading' | 'failed' | 'retrying';
11
+ progress?: number;
12
+ erro?: string;
13
+ }
14
+ /**
15
+ * Props do componente FileAttachmentList
16
+ */
17
+ export interface FileAttachmentListProps {
18
+ /** Lista de anexos a serem exibidos */
19
+ attachments: FileAttachment[];
20
+ /** Callback quando usuário clica em download */
21
+ onDownload?: (attachment: FileAttachment) => void | Promise<void>;
22
+ /** Callback quando usuário clica em remover */
23
+ onRemove?: (attachment: FileAttachment) => void;
24
+ /** Callback quando usuário clica em visualizar */
25
+ onView?: (attachment: FileAttachment) => void | Promise<void>;
26
+ /** Mostrar botão de download */
27
+ showDownload?: boolean;
28
+ /** Mostrar botão de remover */
29
+ showRemove?: boolean;
30
+ /** Mostrar botão de visualizar */
31
+ showView?: boolean;
32
+ /** Comprimento máximo do nome do arquivo antes de truncar */
33
+ maxFilenameLength?: number;
34
+ /** Variante de exibição */
35
+ variant?: 'compact' | 'detailed';
36
+ /** Mensagem quando lista está vazia */
37
+ emptyMessage?: string;
38
+ /** Estado de loading geral */
39
+ isLoading?: boolean;
40
+ /** Classe CSS adicional */
41
+ className?: string;
42
+ }
43
+ /**
44
+ * Componente para exibir lista de anexos com ações (download, view, remove)
45
+ */
46
+ export declare function FileAttachmentList({ attachments, onDownload, onRemove, onView, showDownload, showRemove, showView, maxFilenameLength, variant, emptyMessage, isLoading, className, }: FileAttachmentListProps): import("react/jsx-runtime").JSX.Element;
47
+ //# sourceMappingURL=lista-anexos-arquivo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lista-anexos-arquivo.d.ts","sourceRoot":"","sources":["../../../src/components/ui/lista-anexos-arquivo.tsx"],"names":[],"mappings":"AASA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,EA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AgB,EAChB,iBAAsB,EACtB,OAAmB,EACnB,YAA6B,EAC7B,SAAiB,EACjB,SAAS,GACV,EAAE,uBAAuB,2CAwTzB"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Props do componente FileUploadZone
3
+ */
4
+ export interface FileUploadZoneProps {
5
+ /** Callback quando arquivos são selecionados */
6
+ onFilesSelected: (files: File[]) => void;
7
+ /** Tipos de arquivo aceitos (ex: ".pdf,.doc,.docx" ou "image/*") */
8
+ accept?: string;
9
+ /** Permitir múltiplos arquivos */
10
+ multiple?: boolean;
11
+ /** Número máximo de arquivos */
12
+ maxFiles?: number;
13
+ /** Tamanho máximo em MB */
14
+ maxSizeMB?: number;
15
+ /** Desabilitar upload */
16
+ disabled?: boolean;
17
+ /** Estado de loading/upload em andamento */
18
+ isUploading?: boolean;
19
+ /** Título da zona de upload */
20
+ title?: string;
21
+ /** Descrição da zona de upload */
22
+ description?: string;
23
+ /** Ícone customizado */
24
+ icon?: React.ReactNode;
25
+ /** Classe CSS adicional */
26
+ className?: string;
27
+ /** Callback quando houver erro de validação */
28
+ onError?: (error: string) => void;
29
+ }
30
+ /**
31
+ * Componente de zona de upload com drag-and-drop
32
+ */
33
+ export declare function FileUploadZone({ onFilesSelected, accept, multiple, maxFiles, maxSizeMB, disabled, isUploading, title, description, icon, className, onError, }: FileUploadZoneProps): import("react/jsx-runtime").JSX.Element;
34
+ //# sourceMappingURL=zona-upload-arquivo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zona-upload-arquivo.d.ts","sourceRoot":"","sources":["../../../src/components/ui/zona-upload-arquivo.tsx"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,gDAAgD;IAChD,eAAe,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IAEzC,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,wBAAwB;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AA8CD;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,eAAe,EACf,MAAM,EACN,QAAe,EACf,QAAa,EACb,SAAc,EACd,QAAgB,EAChB,WAAmB,EACnB,KAA8C,EAC9C,WAAW,EACX,IAAI,EACJ,SAAS,EACT,OAAO,GACR,EAAE,mBAAmB,2CAuLrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iclips/ui",
3
- "version": "1.1.5",
3
+ "version": "1.2.2",
4
4
  "description": "Sistema de design completo com paleta personalizada (#7F26BF) e 47 componentes shadcn/ui",
5
5
  "author": "iclipsbr",
6
6
  "license": "MIT",