@archbase/components 3.0.2 → 3.0.3

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Edson Martins
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # @archbase/components
2
+
3
+ UI Components for Archbase React v3 - Form editors, data visualization, and business components.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @archbase/components @archbase/core @archbase/data @archbase/layout
9
+ # or
10
+ pnpm add @archbase/components @archbase/core @archbase/data @archbase/layout
11
+ # or
12
+ yarn add @archbase/components @archbase/core @archbase/data @archbase/layout
13
+ ```
14
+
15
+ ## Features
16
+
17
+ - **Form Components**: Auto-generated forms from JSON schema
18
+ - **Data Grid**: Advanced data grid with sorting, filtering, and pagination
19
+ - **Charts**: React Chart.js and ApexCharts wrappers
20
+ - **Code Editor**: CodeMirror integration
21
+ - **File Components**: File upload, preview, and management
22
+ - **PDF Viewer**: PDF.js integration
23
+ - **Rich Text Editor**: Markdown and WYSIWYG editors
24
+ - **Print Components**: Print-to-PDF functionality
25
+ - **Timeline**: Vis.js timeline integration
26
+
27
+ ## Dependencies
28
+
29
+ ```json
30
+ {
31
+ "@mantine/core": "8.3.12",
32
+ "@mantine/charts": "8.3.12",
33
+ "@mantine/form": "8.3.12",
34
+ "@tabler/icons-react": "^3.26.0",
35
+ "react": "^18.3.0 || ^19.0.0",
36
+ "react-dom": "^18.3.0 || ^19.0.0"
37
+ }
38
+ ```
39
+
40
+ ## Usage
41
+
42
+ ```typescript
43
+ import {
44
+ ArchbaseForm,
45
+ ArchbaseDataGrid,
46
+ ArchbaseChart
47
+ } from '@archbase/components';
48
+ ```
49
+
50
+ ## License
51
+
52
+ MIT © Edson Martins
53
+
54
+ ## Documentation
55
+
56
+ For full documentation, visit [https://react.archbase.dev](https://react.archbase.dev)
@@ -70,6 +70,12 @@ export interface ArchbaseDataGridToolbarProps {
70
70
  activeFilters?: ArchbaseActiveFilter[];
71
71
  onFiltersChange?: (filters: ArchbaseActiveFilter[], rsql?: string) => void;
72
72
  hideMuiFilters?: boolean;
73
+ /** Exibir borda inferior da toolbar. Default: true */
74
+ withBorder?: boolean;
75
+ /** Padding da toolbar. Default: '8px 12px' */
76
+ padding?: string | number;
77
+ /** Border radius da toolbar. Default: theme.radius.sm */
78
+ borderRadius?: string | number;
73
79
  }
74
80
  export interface ArchbaseDataGridPaginationProps {
75
81
  paginationModel: GridPaginationModel;
@@ -83,6 +89,12 @@ export interface ArchbaseDataGridPaginationProps {
83
89
  };
84
90
  bottomToolbarMinHeight?: string | number;
85
91
  theme: any;
92
+ /** Exibir borda superior da paginação. Default: true */
93
+ withBorder?: boolean;
94
+ /** Padding da paginação. Default: '8px 12px' */
95
+ padding?: string | number;
96
+ /** Border radius da paginação. Default: theme.radius.sm */
97
+ borderRadius?: string | number;
86
98
  }
87
99
  /**
88
100
  * Componente para definir ações na barra de ferramentas
@@ -192,12 +204,21 @@ export interface ArchbaseDataGridProps<T extends object = any, ID = any> {
192
204
  tableHeadCellPadding?: string;
193
205
  columnAutoWidth?: boolean;
194
206
  rowHeight?: number;
207
+ /** Exibir borda inferior da toolbar. Default: true */
208
+ withToolbarBorder?: boolean;
209
+ /** Exibir borda superior da paginação. Default: true */
210
+ withPaginationBorder?: boolean;
211
+ /** Padding da toolbar. Default: '8px 12px' */
212
+ toolbarPadding?: string | number;
213
+ /** Padding da paginação. Default: '8px 12px' */
214
+ paginationPadding?: string | number;
195
215
  printTitle?: string;
196
216
  logoPrint?: string;
197
217
  globalDateFormat?: string;
198
218
  csvOptions?: any;
199
219
  toolbarAlignment?: 'left' | 'right' | 'center';
200
220
  positionActionsColumn?: 'first' | 'last';
221
+ actionsColumnWidth?: number;
201
222
  toolbarLeftContent?: ReactNode;
202
223
  bottomToolbarMinHeight?: string | number;
203
224
  paginationLabels?: Record<string, string>;