@archbase/components 3.0.6 → 3.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archbase/components",
3
- "version": "3.0.6",
3
+ "version": "3.0.8",
4
4
  "description": "UI Components for Archbase React v3 - Form editors, data visualization, and business components",
5
5
  "author": "Edson Martins <edsonmartins2005@gmail.com>",
6
6
  "license": "MIT",
@@ -23,24 +23,21 @@
23
23
  "src"
24
24
  ],
25
25
  "peerDependencies": {
26
- "@mantine/carousel": "8.3.12",
27
- "@mantine/charts": "8.3.12",
28
- "@mantine/code-highlight": "8.3.12",
29
- "@mantine/core": "8.3.12",
30
- "@mantine/dates": "8.3.12",
31
- "@mantine/dropzone": "8.3.12",
32
- "@mantine/form": "8.3.12",
33
- "@mantine/hooks": "8.3.12",
34
- "@mantine/modals": "8.3.12",
35
- "@mantine/notifications": "8.3.12",
26
+ "@mantine/carousel": "8.3.14",
27
+ "@mantine/charts": "8.3.14",
28
+ "@mantine/code-highlight": "8.3.14",
29
+ "@mantine/core": "8.3.14",
30
+ "@mantine/dates": "8.3.14",
31
+ "@mantine/dropzone": "8.3.14",
32
+ "@mantine/form": "8.3.14",
33
+ "@mantine/hooks": "8.3.14",
34
+ "@mantine/modals": "8.3.14",
35
+ "@mantine/notifications": "8.3.14",
36
36
  "@tabler/icons-react": "^3.26.0",
37
37
  "react": "^18.3.0 || ^19.2.0",
38
38
  "react-dom": "^18.3.0 || ^19.2.0"
39
39
  },
40
40
  "dependencies": {
41
- "@archbase/core": "3.0.6",
42
- "@archbase/data": "3.0.6",
43
- "@archbase/layout": "3.0.6",
44
41
  "@datou/react-vis-timeline": "^1.4.0",
45
42
  "@gfazioli/mantine-list-view-table": "^1.1.9",
46
43
  "@gfazioli/mantine-onboarding-tour": "^2.6.5",
@@ -122,7 +119,10 @@
122
119
  "validator": "^13.12.0",
123
120
  "video.js": "^8.10.0",
124
121
  "vis-timeline": "^7.7.3",
125
- "xlsx": "^0.18.5"
122
+ "xlsx": "^0.18.5",
123
+ "@archbase/core": "3.0.8",
124
+ "@archbase/data": "3.0.8",
125
+ "@archbase/layout": "3.0.8"
126
126
  },
127
127
  "devDependencies": {
128
128
  "@types/d3": "^7.4.3",
@@ -148,9 +148,16 @@ export const ArchbaseMasonryResponsive: React.FC<ArchbaseMasonryResponsiveProps>
148
148
  return count;
149
149
  }, [windowWidth, columnsCountBreakPoints]);
150
150
 
151
+ // Usa cloneElement para injetar columnsCount no componente filho (ArchbaseMasonry)
152
+ // Isso evita criar masonry aninhado e mantém compatibilidade com o template
151
153
  return (
152
- <ArchbaseMasonry className={className!} style={style!} columnsCount={columnsCount}>
153
- {children}
154
- </ArchbaseMasonry>
154
+ <div className={className!} style={style!}>
155
+ {React.Children.map(children, (child, index) =>
156
+ React.cloneElement(child as React.ReactElement<ArchbaseMasonryProps>, {
157
+ key: index,
158
+ columnsCount: columnsCount,
159
+ }),
160
+ )}
161
+ </div>
155
162
  );
156
163
  };