@archbase/components 3.0.0 → 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.
Files changed (131) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +56 -0
  3. package/dist/buttons/ArchbaseActionButtons.d.ts +1 -1
  4. package/dist/charts/vis-timeline/ArchbaseVisTimeline.d.ts +1 -1
  5. package/dist/charts/vis-timeline/ArchbaseVisTimeline.types.d.ts +1 -1
  6. package/dist/charts/vis-timeline/utils/timelineOptions.d.ts +1 -1
  7. package/dist/datagrid/components/index.d.ts +2 -2
  8. package/dist/datagrid/components/pagination/grid-pagination.d.ts +1 -1
  9. package/dist/datagrid/components/toolbar/global-search-input.d.ts +1 -1
  10. package/dist/datagrid/components/toolbar/grid-toolbar.d.ts +1 -1
  11. package/dist/datagrid/hooks/use-grid-details-panel.d.ts +2 -2
  12. package/dist/datagrid/main/archbase-data-grid-pagination.d.ts +1 -1
  13. package/dist/datagrid/main/archbase-data-grid-toolbar.d.ts +1 -1
  14. package/dist/datagrid/main/archbase-data-grid-types.d.ts +28 -3
  15. package/dist/datagrid/main/archbase-data-grid-utils.d.ts +1 -1
  16. package/dist/datagrid/main/archbase-detail-panel-component.d.ts +1 -1
  17. package/dist/datagrid/main/archbase-expand-button.d.ts +1 -1
  18. package/dist/datagrid/main/archbase-grid-popover.d.ts +1 -1
  19. package/dist/datagrid/modals/print-data.d.ts +0 -1
  20. package/dist/editors/ArchbaseAsyncMultiSelect.d.ts +1 -1
  21. package/dist/editors/ArchbaseAsyncSelect.context.d.ts +1 -1
  22. package/dist/editors/ArchbaseAsyncSelect.d.ts +1 -5
  23. package/dist/editors/ArchbaseAvatarEdit.d.ts +2 -2
  24. package/dist/editors/ArchbaseCheckbox.d.ts +2 -3
  25. package/dist/editors/ArchbaseChip.d.ts +2 -3
  26. package/dist/editors/ArchbaseChipGroup.d.ts +1 -1
  27. package/dist/editors/ArchbaseDatePickerEdit.d.ts +3 -3
  28. package/dist/editors/ArchbaseDatePickerRange.d.ts +1 -2
  29. package/dist/editors/ArchbaseDateTimePickerEdit.d.ts +2 -3
  30. package/dist/editors/ArchbaseDateTimePickerRange.d.ts +2 -3
  31. package/dist/editors/ArchbaseEdit.d.ts +2 -7
  32. package/dist/editors/ArchbaseFileAttachment.d.ts +1 -1
  33. package/dist/editors/ArchbaseImageEdit.d.ts +2 -2
  34. package/dist/editors/ArchbaseJsonEdit.d.ts +2 -3
  35. package/dist/editors/ArchbaseLookupEdit.d.ts +2 -3
  36. package/dist/editors/ArchbaseLookupNumber.d.ts +2 -3
  37. package/dist/editors/ArchbaseMarkdownEdit.d.ts +1 -1
  38. package/dist/editors/ArchbaseMaskEdit.d.ts +3 -8
  39. package/dist/editors/ArchbaseNumberEdit.d.ts +1 -2
  40. package/dist/editors/ArchbasePasswordEdit.d.ts +2 -3
  41. package/dist/editors/ArchbaseRadioGroup.d.ts +2 -3
  42. package/dist/editors/ArchbaseRating.d.ts +1 -1
  43. package/dist/editors/ArchbaseRichTextEdit.d.ts +3 -3
  44. package/dist/editors/ArchbaseSelect.context.d.ts +1 -1
  45. package/dist/editors/ArchbaseSelect.d.ts +1 -1
  46. package/dist/editors/ArchbaseSwitch.d.ts +2 -3
  47. package/dist/editors/ArchbaseTextArea.d.ts +2 -3
  48. package/dist/editors/ArchbaseTimeEdit.d.ts +2 -3
  49. package/dist/editors/ArchbaseTimeRangeSelector.d.ts +1 -1
  50. package/dist/editors/ArchbaseTreeSelect.d.ts +1 -1
  51. package/dist/editors/index.d.ts +5 -5
  52. package/dist/filters/ArchbaseCompositeFilters.d.ts +1 -1
  53. package/dist/filters/ArchbaseCompositeFilters.types.d.ts +1 -1
  54. package/dist/filters/ArchbaseCompositeFilters.utils.d.ts +1 -1
  55. package/dist/filters/components/FilterPill.d.ts +1 -1
  56. package/dist/filters/hooks/useArchbaseFilterHistory.d.ts +1 -1
  57. package/dist/filters/hooks/useArchbaseFilterPresets.d.ts +1 -1
  58. package/dist/filters/hooks/useArchbaseFilters.d.ts +1 -1
  59. package/dist/filters/hooks/useArchbaseQuickFilters.d.ts +1 -1
  60. package/dist/hooks/useArchbaseListContext.d.ts +1 -1
  61. package/dist/hooks/useArchbaseNavigateParams.d.ts +2 -2
  62. package/dist/hooks/useArchbaseVisible.d.ts +1 -1
  63. package/dist/image/ArchbaseImage.d.ts +1 -1
  64. package/dist/image/editor/components/BasicFilters/BasicFilter.d.ts +1 -1
  65. package/dist/image/editor/components/CropprWrapper/ArchbaseCropperWrapper.d.ts +1 -2
  66. package/dist/image/editor/components/EditImage/ArchbaseEditImage.d.ts +1 -2
  67. package/dist/image/editor/components/Input/Input.d.ts +1 -1
  68. package/dist/image/editor/components/Tab/Tab.d.ts +1 -2
  69. package/dist/image/editor/functions/croppr/core.d.ts +1 -5
  70. package/dist/image/editor/functions/croppr/croppr.d.ts +1 -10
  71. package/dist/image/editor/functions/croppr/index.d.ts +1 -1
  72. package/dist/image/editor/index.d.ts +1 -2
  73. package/dist/index.d.ts +0 -3
  74. package/dist/index.js +5315 -5379
  75. package/dist/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.context.d.ts +1 -1
  76. package/dist/list/ArchbaseList.context.d.ts +1 -1
  77. package/dist/list/ArchbaseList.d.ts +1 -1
  78. package/dist/list/index.d.ts +1 -1
  79. package/dist/list/treeview/ArchbaseTreeView.d.ts +1 -1
  80. package/dist/list/treeview/ArchbaseTreeViewItem.d.ts +1 -1
  81. package/dist/list-view/ArchbaseListViewTable.d.ts +1 -1
  82. package/dist/markdown/ArchbaseMarkdown.d.ts +1 -1
  83. package/dist/markdown/ArchbaseMarkdown.types.d.ts +2 -2
  84. package/dist/markdown/components/CodeBlock.d.ts +2 -2
  85. package/dist/markdown/components/LinkRenderer.d.ts +1 -1
  86. package/dist/masonry/ArchbaseMasonry.context.d.ts +1 -1
  87. package/dist/masonry/ArchbaseMasonry.d.ts +1 -5
  88. package/dist/masonry/index.d.ts +1 -1
  89. package/dist/notification/ArchbaseAlert.d.ts +1 -5
  90. package/dist/onboarding/ArchbaseOnboardingTour.d.ts +1 -1
  91. package/dist/printer/ArchbaseThermalPrinter.d.ts +1 -1
  92. package/dist/printer/ArchbaseThermalPrinter.types.d.ts +1 -1
  93. package/dist/printer/utils/escpos.d.ts +1 -1
  94. package/dist/theme-editor/ArchbaseThemeEditor.d.ts +1 -1
  95. package/dist/theme-editor/ArchbaseThemeEditor.types.d.ts +2 -2
  96. package/dist/theme-editor/utils/themeExport.d.ts +2 -2
  97. package/dist/themes/ArchbaseThemeEditor.d.ts +2 -3
  98. package/dist/video/ArchbaseVideoPlayer.d.ts +1 -1
  99. package/dist/video/ArchbaseVideoPlayer.types.d.ts +1 -1
  100. package/dist/video/hooks/useVideoPlayer.d.ts +5 -5
  101. package/dist/viewers/ArchbasePDFViewer.annotations.d.ts +1 -1
  102. package/dist/viewers/ArchbasePDFViewer.d.ts +1 -1
  103. package/dist/viewers/ArchbasePDFViewer.toolbar.d.ts +1 -1
  104. package/dist/viewers/ArchbasePDFViewer.types.d.ts +2 -2
  105. package/dist/viewers/file-preview/ArchbaseFilePreviewer.d.ts +1 -1
  106. package/dist/viewers/file-preview/ArchbaseFilePreviewer.types.d.ts +1 -1
  107. package/dist/viewers/file-preview/utils/fileTypeDetector.d.ts +1 -1
  108. package/package.json +21 -21
  109. package/src/datagrid/main/archbase-data-grid-pagination.tsx +16 -5
  110. package/src/datagrid/main/archbase-data-grid-toolbar.tsx +15 -4
  111. package/src/datagrid/main/archbase-data-grid-types.tsx +32 -0
  112. package/src/datagrid/main/archbase-data-grid.tsx +64 -4
  113. package/src/index.ts +0 -1
  114. package/dist/archbase-components-3.0.0.tgz +0 -0
  115. package/dist/debug/index.d.ts +0 -4
  116. package/dist/debug/jsonpathpicker/ArchbaseJsonPathPicker.d.ts +0 -37
  117. package/dist/debug/jsonpathpicker/index.d.ts +0 -1
  118. package/dist/debug/jsonview/ArchbaseJsonViewDataRenderer.d.ts +0 -34
  119. package/dist/debug/jsonview/ArchbaseJsonViewDataTypeDetection.d.ts +0 -8
  120. package/dist/debug/jsonview/index.d.ts +0 -11
  121. package/dist/debug/objectinspector/ArchbaseDebugInspector.d.ts +0 -23
  122. package/dist/debug/objectinspector/ArchbaseFloatingWindow.d.ts +0 -24
  123. package/dist/debug/objectinspector/ArchbaseObjectInspector.d.ts +0 -6
  124. package/dist/debug/objectinspector/index.d.ts +0 -3
  125. package/dist/spreadsheet/ArchbaseSpreadsheetImport.d.ts +0 -4
  126. package/dist/spreadsheet/ArchbaseSpreadsheetImport.types.d.ts +0 -65
  127. package/dist/spreadsheet/index.d.ts +0 -2
  128. package/src/debug/jsonview/styles.module.css.d.ts +0 -4
  129. package/src/spreadsheet/ArchbaseSpreadsheetImport.tsx +0 -223
  130. package/src/spreadsheet/ArchbaseSpreadsheetImport.types.ts +0 -66
  131. package/src/spreadsheet/index.ts +0 -10
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)
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  export interface ActionButtonsCustomComponentsDefinition {
3
3
  largeButtonType?: React.ElementType;
4
4
  largeButtonProps?: any;
@@ -1,4 +1,4 @@
1
- import type { ArchbaseVisTimelineProps, TimelineItem } from './ArchbaseVisTimeline.types';
1
+ import { ArchbaseVisTimelineProps, TimelineItem } from './ArchbaseVisTimeline.types';
2
2
  /**
3
3
  * Componente wrapper para vis-timeline
4
4
  * Implementação leve usando vis-timeline diretamente
@@ -1,4 +1,4 @@
1
- import type { CSSProperties, ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  /**
3
3
  * Tipos de dados para itens da timeline
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { TimelineOptions, TimelineOrientation, TimelineLayout } from '../ArchbaseVisTimeline.types';
1
+ import { TimelineOptions, TimelineOrientation, TimelineLayout } from '../ArchbaseVisTimeline.types';
2
2
  /**
3
3
  * Opções padrão para a timeline
4
4
  */
@@ -1,6 +1,6 @@
1
1
  export { default as GlobalSearchInput } from './toolbar/global-search-input';
2
2
  export { default as GridToolbar } from './toolbar/grid-toolbar';
3
3
  export { default as GridPagination } from './pagination/grid-pagination';
4
- export { ArchbaseItemRender } from "./render/archbase-data-grid-item-renderer";
5
- export type { ArchbaseItemRenderProps, ArchbaseItemRenderType } from "./render/archbase-data-grid-item-renderer.tsx";
4
+ export { ArchbaseItemRender } from './render/archbase-data-grid-item-renderer';
5
+ export type { ArchbaseItemRenderProps, ArchbaseItemRenderType } from './render/archbase-data-grid-item-renderer.tsx';
6
6
  export * from '../types';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { PaginationProps } from '../../types';
3
3
  /**
4
4
  * Componente de paginação para o grid
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  /**
3
3
  * Props para o componente de pesquisa global
4
4
  */
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  interface GridToolbarProps {
3
3
  onRefresh: () => void;
4
4
  onExport: () => void;
@@ -9,12 +9,12 @@ export declare function useDetailPanels<T extends object = any>({ allowMultipleD
9
9
  }): {
10
10
  expandedRowIds: Set<GridRowId>;
11
11
  detailPanelHeight: number;
12
- detailPanelRefs: import("react").RefObject<Map<GridRowId, HTMLDivElement>>;
12
+ detailPanelRefs: import('react').RefObject<Map<GridRowId, HTMLDivElement>>;
13
13
  toggleExpand: (rowId: GridRowId) => void;
14
14
  closeDetailPanel: (rowId: GridRowId) => void;
15
15
  closeAllDetailPanels: () => void;
16
16
  expandDetailPanel: (rowId: GridRowId) => void;
17
- setExpandedRowIds: import("react").Dispatch<import("react").SetStateAction<Set<GridRowId>>>;
17
+ setExpandedRowIds: import('react').Dispatch<import('react').SetStateAction<Set<GridRowId>>>;
18
18
  };
19
19
  /**
20
20
  * Hook para detectar cliques fora e scroll para fechar os painéis de detalhes
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { ArchbaseDataGridPaginationProps } from './archbase-data-grid-types';
3
3
  /**
4
4
  * Componente de paginação da grid
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { ArchbaseDataGridToolbarProps } from './archbase-data-grid-types';
3
3
  /**
4
4
  * Componente da barra de ferramentas da grid
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
- import { MutableRefObject, ReactNode, RefObject } from 'react';
1
+ import { default as React, MutableRefObject, ReactNode, RefObject } from 'react';
3
2
  import { GridRowId, GridFilterModel, GridPaginationModel } from '@mui/x-data-grid';
4
3
  import { IArchbaseDataSourceBase } from '@archbase/data';
5
- import type { ArchbaseFilterDefinition, ArchbaseActiveFilter } from '../../filters/ArchbaseCompositeFilters.types';
4
+ import { ArchbaseFilterDefinition, ArchbaseActiveFilter } from '../../filters/ArchbaseCompositeFilters.types';
6
5
  /**
7
6
  * DataGrid Types - V1/V2 Compatible
8
7
  *
@@ -35,6 +34,10 @@ export interface ArchbaseDataGridRef<T = any> {
35
34
  collapseRow: (rowId: GridRowId) => void;
36
35
  collapseAllRows: () => void;
37
36
  getExpandedRows: () => GridRowId[];
37
+ /**
38
+ * Obtém o modelo de filtro atual
39
+ */
40
+ getFilterModel: () => GridFilterModel;
38
41
  }
39
42
  export interface GridToolBarActionsProps {
40
43
  children: ReactNode;
@@ -67,6 +70,12 @@ export interface ArchbaseDataGridToolbarProps {
67
70
  activeFilters?: ArchbaseActiveFilter[];
68
71
  onFiltersChange?: (filters: ArchbaseActiveFilter[], rsql?: string) => void;
69
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;
70
79
  }
71
80
  export interface ArchbaseDataGridPaginationProps {
72
81
  paginationModel: GridPaginationModel;
@@ -80,6 +89,12 @@ export interface ArchbaseDataGridPaginationProps {
80
89
  };
81
90
  bottomToolbarMinHeight?: string | number;
82
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;
83
98
  }
84
99
  /**
85
100
  * Componente para definir ações na barra de ferramentas
@@ -189,12 +204,21 @@ export interface ArchbaseDataGridProps<T extends object = any, ID = any> {
189
204
  tableHeadCellPadding?: string;
190
205
  columnAutoWidth?: boolean;
191
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;
192
215
  printTitle?: string;
193
216
  logoPrint?: string;
194
217
  globalDateFormat?: string;
195
218
  csvOptions?: any;
196
219
  toolbarAlignment?: 'left' | 'right' | 'center';
197
220
  positionActionsColumn?: 'first' | 'last';
221
+ actionsColumnWidth?: number;
198
222
  toolbarLeftContent?: ReactNode;
199
223
  bottomToolbarMinHeight?: string | number;
200
224
  paginationLabels?: Record<string, string>;
@@ -207,6 +231,7 @@ export interface ArchbaseDataGridProps<T extends object = any, ID = any> {
207
231
  }) => void;
208
232
  onExport?: (callback: () => void) => void;
209
233
  onPrint?: (callback: () => void) => void;
234
+ onFilterModelChange?: (filterModel: any) => void;
210
235
  gridRef?: RefObject<ArchbaseDataGridRef<T>> | MutableRefObject<ArchbaseDataGridRef<T> | null>;
211
236
  }
212
237
  export interface CellClickEvent {
@@ -1,5 +1,5 @@
1
1
  import { GridFilterModel, GridRowId, GridSortModel, GridColDef } from '@mui/x-data-grid';
2
- import type { ArchbaseFilterDefinition, ArchbaseActiveFilter } from '../../filters/ArchbaseCompositeFilters.types';
2
+ import { ArchbaseFilterDefinition, ArchbaseActiveFilter } from '../../filters/ArchbaseCompositeFilters.types';
3
3
  /**
4
4
  * Obtém o ID de uma linha de forma segura
5
5
  */
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { GridRowId } from '@mui/x-data-grid';
3
3
  /**
4
4
  * Componente para renderizar o painel de detalhes inline (diretamente abaixo da linha na grid)
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { GridRowId } from '@mui/x-data-grid';
3
3
  /**
4
4
  * Componente que renderiza o botão de expansão para mostrar/ocultar detalhes
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { GridRowId } from '@mui/x-data-grid';
3
3
  /**
4
4
  * Componente para renderizar o painel de detalhes como popover quando não há espaço suficiente
@@ -1,4 +1,3 @@
1
- import 'jspdf-autotable';
2
1
  export interface PrintConfig {
3
2
  title?: string;
4
3
  subtitle?: string;
@@ -1,5 +1,5 @@
1
1
  import { FloatingPosition, MantineSize, OptionsFilter, ScrollAreaProps } from '@mantine/core';
2
- import React, { CSSProperties, ReactNode } from 'react';
2
+ import { default as React, CSSProperties, ReactNode } from 'react';
3
3
  import { IArchbaseDataSourceBase } from '@archbase/data';
4
4
  export type OptionsResult<O> = {
5
5
  options: O[];
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export interface ArchbaseAsyncSelectContextValue {
3
3
  /** Function para notificar o select que o dropdown chegou ao final da lista*/
4
4
  handleDropdownScrollEnded?: () => void;
@@ -1,9 +1,5 @@
1
- /**
2
- * ArchbaseAsyncSelect — select assíncrono com dataSource opcional, suporta paginação/scroll e loading.
3
- * @status stable
4
- */
5
1
  import { FloatingPosition, MantineSize, OptionsFilter, ScrollAreaProps } from '@mantine/core';
6
- import React, { CSSProperties, ReactNode } from 'react';
2
+ import { default as React, CSSProperties, ReactNode } from 'react';
7
3
  import { IArchbaseDataSourceBase } from '@archbase/data';
8
4
  export type OptionsResult<O> = {
9
5
  options: O[];
@@ -1,6 +1,6 @@
1
1
  import { ActionIconVariant } from '@mantine/core';
2
- import type { IArchbaseDataSourceBase } from '@archbase/data';
3
- import React, { CSSProperties } from 'react';
2
+ import { IArchbaseDataSourceBase } from '@archbase/data';
3
+ import { default as React, CSSProperties } from 'react';
4
4
  export interface ArchbaseAvatarEditProps<T, ID> {
5
5
  /** Fonte de dados onde será atribuido o valor do avatar (V1 ou V2) */
6
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,7 +1,6 @@
1
1
  import { MantineSize } from '@mantine/core';
2
- import type { CSSProperties } from 'react';
3
- import React, { ReactNode } from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, default as React, ReactNode } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  export interface ArchbaseCheckboxProps<T, ID> {
6
5
  /** Fonte de dados onde será atribuido o valor do checkbox (V1 ou V2) */
7
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,7 +1,6 @@
1
1
  import { MantineSize } from '@mantine/core';
2
- import type { CSSProperties } from 'react';
3
- import React from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, default as React } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  export interface ArchbaseChipProps<T, ID> {
6
5
  /** Fonte de dados onde será atribuido o valor do chip (V1 ou V2) */
7
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,6 +1,6 @@
1
1
  import { ChipVariant } from '@mantine/core';
2
2
  import { CSSProperties, ReactNode } from 'react';
3
- import type { IArchbaseDataSourceBase } from '@archbase/data';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
4
4
  export interface ArchbaseChipGroupProps<T, ID, O> {
5
5
  /** Fonte de dados onde será atribuido o valor do ChipGroup (V1 ou V2) */
6
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,8 +1,8 @@
1
- import { __InputProps, CloseButtonProps, InputStylesNames, InputVariant, InputWrapperStylesNames, MantineSize, PolymorphicFactory, PopoverProps, StylesApiProps } from '@mantine/core';
1
+ import { ___InputProps, CloseButtonProps, InputStylesNames, InputVariant, InputWrapperStylesNames, MantineSize, PolymorphicFactory, PopoverProps, StylesApiProps } from '@mantine/core';
2
2
  import { CalendarBaseProps, CalendarLevel, CalendarStylesNames, DecadeLevelSettings, MonthLevelSettings, YearLevelSettings } from '@mantine/dates';
3
+ import { default as React, CSSProperties } from 'react';
4
+ import { IArchbaseDataSourceBase } from '@archbase/data';
3
5
  type DateValue = Date | null;
4
- import React, { CSSProperties } from 'react';
5
- import { type IArchbaseDataSourceBase } from '@archbase/data';
6
6
  export declare function assignTime(originalDate: DateValue, resultDate: DateValue): Date;
7
7
  export type ArchbaseDatePickerEditStylesNames = CalendarStylesNames | InputStylesNames | InputWrapperStylesNames;
8
8
  export interface ArchbaseDatePickerEditProps<T, ID> extends StylesApiProps<ArchbaseDatePickerEditFactory>, __InputProps, CalendarBaseProps, DecadeLevelSettings, YearLevelSettings, MonthLevelSettings, Omit<React.ComponentPropsWithoutRef<'input'>, 'size' | 'value' | 'defaultValue' | 'onChange'> {
@@ -1,7 +1,6 @@
1
1
  import { MantineSize } from '@mantine/core';
2
2
  import { DateValue } from '@mantine/dates';
3
- import React from 'react';
4
- import { CSSProperties, ReactNode } from 'react';
3
+ import { default as React, CSSProperties, ReactNode } from 'react';
5
4
  export interface ArchbaseDatePickerRangeProps {
6
5
  /** Indicador se o date picker range está desabilitado */
7
6
  disabled?: boolean;
@@ -1,7 +1,6 @@
1
1
  import { DateTimePickerProps } from '@mantine/dates';
2
- import type { CSSProperties, ForwardedRef } from 'react';
3
- import React from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, ForwardedRef, default as React } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  type OmittedDateTimePickerProps = Omit<DateTimePickerProps, 'value' | 'onChange'>;
6
5
  export interface ArchbaseDateTimePickerEditProps<T, ID> extends OmittedDateTimePickerProps {
7
6
  /** Data source where the edit value will be assigned (V1 ou V2) */
@@ -1,7 +1,6 @@
1
1
  import { MantineSize } from '@mantine/core';
2
- import React from 'react';
3
- import { CSSProperties, ReactNode } from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { default as React, CSSProperties, ReactNode } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  export interface ArchbaseDateTimePickerRangeProps<T, ID> {
6
5
  /** Data source where the range values will be assigned (V1 ou V2) */
7
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,11 +1,6 @@
1
- /**
2
- * ArchbaseEdit — input texto integrado ao DataSource (v1/v2) com suporte a validação e estado controlado.
3
- * @status stable
4
- */
5
1
  import { ActionIconVariant, MantineSize } from '@mantine/core';
6
- import type { CSSProperties, FocusEventHandler, ReactNode } from 'react';
7
- import React from 'react';
8
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, FocusEventHandler, ReactNode, default as React } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
9
4
  export interface ArchbaseEditProps<T, ID> {
10
5
  /** Fonte de dados onde será atribuido o valor do edit (V1 ou V2) */
11
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export interface Attachment {
3
3
  name: string;
4
4
  type: string;
@@ -1,6 +1,6 @@
1
1
  import { ActionIconVariant, ImageProps } from '@mantine/core';
2
- import React, { CSSProperties } from 'react';
3
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { default as React, CSSProperties } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
4
4
  export interface ArchbaseImageEditProps<T, ID> extends ImageProps {
5
5
  /** Fonte de dados onde será atribuido o valor do rich edit (V1 ou V2) */
6
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,7 +1,6 @@
1
1
  import { MantineSize } from '@mantine/core';
2
- import type { CSSProperties } from 'react';
3
- import React from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, default as React } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  export interface ArchbaseJsonEditProps<T, ID> {
6
5
  /** Fonte de dados onde será atribuido o valor do json input (V1 ou V2) */
7
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,7 +1,6 @@
1
1
  import { MantineSize } from '@mantine/core';
2
- import type { CSSProperties, ReactNode } from 'react';
3
- import React from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, ReactNode, default as React } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  export interface ArchbaseLookupEditProps<T, ID, O> {
6
5
  /** Fonte de dados onde será atribuido o valor do lookup edit (V1 ou V2) */
7
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,7 +1,6 @@
1
1
  import { MantineSize } from '@mantine/core';
2
- import type { CSSProperties, ReactNode } from 'react';
3
- import React from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, ReactNode, default as React } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  export interface ArchbaseLookupNumberProps<T, ID, O> {
6
5
  /** Fonte de dados onde será atribuido o valor do lookup edit (V1 ou V2) */
7
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { IArchbaseDataSourceBase } from '@archbase/data';
3
3
  export interface ArchbaseMarkdownEditProps<T, ID> {
4
4
  /** Indicador se o editor recebe o foco automaticamente */
5
5
  autoFocus?: boolean;
@@ -1,11 +1,6 @@
1
- /**
2
- * ArchbaseMaskEdit input mascarado com padrões comuns e integração com dataSource.
3
- * @status stable
4
- */
5
- import { __InputProps, InputStylesNames, InputVariant, InputWrapperStylesNames, MantineSize, PolymorphicFactory, StylesApiProps } from '@mantine/core';
6
- import type { CSSProperties } from 'react';
7
- import React from 'react';
8
- import type { IArchbaseDataSourceBase } from '@archbase/data';
1
+ import { ___InputProps, InputStylesNames, InputVariant, InputWrapperStylesNames, MantineSize, PolymorphicFactory, StylesApiProps } from '@mantine/core';
2
+ import { CSSProperties, default as React } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
9
4
  export declare enum MaskPattern {
10
5
  CNPJ = "00.000.000/0000-00",
11
6
  CEP = "00.000-000",
@@ -1,7 +1,6 @@
1
1
  import { CloseButtonProps, MantineSize, TextInputProps } from '@mantine/core';
2
2
  import { IArchbaseDataSourceBase } from '@archbase/data';
3
- import type { CSSProperties } from 'react';
4
- import React from 'react';
3
+ import { CSSProperties, default as React } from 'react';
5
4
  export interface ArchbaseNumberEditProps<T, ID> extends TextInputProps, Omit<React.ComponentPropsWithoutRef<'input'>, 'size' | 'value' | 'defaultValue' | 'onChange'>, React.RefAttributes<HTMLInputElement> {
6
5
  clearable?: boolean;
7
6
  clearButtonProps?: CloseButtonProps;
@@ -1,7 +1,6 @@
1
1
  import { InputVariant, MantineSize } from '@mantine/core';
2
- import type { CSSProperties } from 'react';
3
- import React from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, default as React } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  export interface ArchbasePasswordEditProps<T, ID> {
6
5
  /** Fonte de dados onde será atribuido o valor do edit (V1 ou V2) */
7
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,7 +1,6 @@
1
1
  import { MantineSize } from '@mantine/core';
2
- import type { CSSProperties } from 'react';
3
- import React, { ReactNode } from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, default as React, ReactNode } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  export interface ArchbaseRadioGroupProps<T, ID, O> {
6
5
  /** Fonte de dados onde será atribuido o valor do RadioGroup (V1 ou V2) */
7
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,5 +1,5 @@
1
1
  import { MantineSize } from '@mantine/core';
2
- import React, { CSSProperties } from 'react';
2
+ import { default as React, CSSProperties } from 'react';
3
3
  import { IArchbaseDataSourceBase } from '@archbase/data';
4
4
  export interface ArchbaseRatingProps<T, ID> {
5
5
  /** Fonte de dados onde será atribuido o valor do rating (V1 ou V2) */
@@ -1,6 +1,6 @@
1
- import React, { CSSProperties } from 'react';
2
- import type { UploadBeforeHandler, UploadBeforeReturn, UploadInfo } from 'suneditor-react/dist/types/upload';
3
- import type { IArchbaseDataSourceBase } from '@archbase/data';
1
+ import { default as React, CSSProperties } from 'react';
2
+ import { UploadBeforeHandler, UploadBeforeReturn, UploadInfo } from 'suneditor-react/dist/types/upload';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
4
4
  export interface ArchbaseRichTextEditProps<T, ID> {
5
5
  /** Indicador se o rich editor recebe o foco automaticamente */
6
6
  autoFocus?: boolean;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  export interface ArchbaseSelectContextValue {
3
3
  /** Function para notificar o select que o dropdown chegou ao final da lista*/
4
4
  handleDropdownScrollEnded?: () => void;
@@ -1,5 +1,5 @@
1
1
  import { ComboboxItem, CSSProperties, MantineSize, MantineStyleProp, MantineTheme, SelectProps, SelectStylesNames } from '@mantine/core';
2
- import React, { ReactNode } from 'react';
2
+ import { default as React, ReactNode } from 'react';
3
3
  import { ArchbaseDataSource, IArchbaseDataSourceBase } from '@archbase/data';
4
4
  export interface SelectItem extends ComboboxItem {
5
5
  selected?: boolean;
@@ -1,7 +1,6 @@
1
1
  import { MantineColor, MantineSize } from '@mantine/core';
2
- import type { CSSProperties } from 'react';
3
- import React from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, default as React } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  export interface ArchbaseSwitchProps<T, ID> {
6
5
  /** Fonte de dados onde será atribuido o valor do switch (V1 ou V2) */
7
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,7 +1,6 @@
1
1
  import { MantineSize } from '@mantine/core';
2
- import type { CSSProperties } from 'react';
3
- import React from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, default as React } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  export interface ArchbaseTextAreaProps<T, ID> {
6
5
  /** Fonte de dados onde será atribuido o valor do textarea (V1 ou V2) */
7
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,7 +1,6 @@
1
1
  import { ActionIconVariant, MantineSize } from '@mantine/core';
2
- import type { CSSProperties, ReactNode } from 'react';
3
- import React from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, ReactNode, default as React } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  export interface ArchbaseTimeEditProps<T, ID> {
6
5
  /** Fonte de dados onde será atribuido o valor do edit (V1 ou V2) */
7
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,4 +1,4 @@
1
- import React, { FC } from 'react';
1
+ import { default as React, FC } from 'react';
2
2
  export type RangeOption = {
3
3
  label: string;
4
4
  value: string;
@@ -1,7 +1,7 @@
1
1
  import { MantineSize } from '@mantine/core';
2
2
  import { IArchbaseDataSourceBase } from '@archbase/data';
3
3
  import { ArchbaseTreeNode } from '../list';
4
- import React, { ReactNode } from 'react';
4
+ import { default as React, ReactNode } from 'react';
5
5
  export interface ArchbaseTreeSelectProps<T, ID> {
6
6
  /** Fonte de dados onde será atribuido o valor selecionado (V1 ou V2) */
7
7
  dataSource?: IArchbaseDataSourceBase<T>;