@mantine/charts 7.13.5-alpha.0 → 7.13.5-alpha.1

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": "@mantine/charts",
3
- "version": "7.13.5-alpha.0",
3
+ "version": "7.13.5-alpha.1",
4
4
  "description": "Charts components built with recharts and Mantine",
5
5
  "homepage": "https://mantine.dev/",
6
6
  "license": "MIT",
@@ -35,11 +35,11 @@
35
35
  "directory": "packages/@mantine/charts"
36
36
  },
37
37
  "peerDependencies": {
38
- "@mantine/core": "7.13.5-alpha.0",
39
- "@mantine/hooks": "7.13.5-alpha.0",
40
- "react": "^18.2.0",
41
- "react-dom": "^18.2.0",
42
- "recharts": "^2.10.3"
38
+ "@mantine/core": "7.13.5-alpha.1",
39
+ "@mantine/hooks": "7.13.5-alpha.1",
40
+ "react": "^18.x || ^19.x",
41
+ "react-dom": "^18.x || ^19.x",
42
+ "recharts": "^2.13.3"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@mantine-tests/core": "workspace:*",
package/styles.css CHANGED
@@ -29,11 +29,6 @@
29
29
  padding-top: var(--mantine-spacing-sm);
30
30
  }
31
31
 
32
- .m_b30369b5 {
33
- width: calc(0.75rem * var(--mantine-scale));
34
- height: calc(0.75rem * var(--mantine-scale));
35
- }
36
-
37
32
  .m_3de8964e {
38
33
  font-size: var(--mantine-font-size-sm);
39
34
  display: flex;
@@ -126,6 +121,8 @@
126
121
  .m_a50f3e58 {
127
122
  display: block;
128
123
  width: 100%;
124
+
125
+ --chart-bar-label-color: var(--mantine-color-dimmed);
129
126
  }
130
127
 
131
128
  .m_a50f3e58 svg {
@@ -147,6 +144,10 @@
147
144
  color: var(--chart-text-color, var(--mantine-color-dimmed));
148
145
  }
149
146
 
147
+ .m_a50f3e58:where([data-orientation='vertical']) {
148
+ --chart-bar-label-color: var(--mantine-color-white);
149
+ }
150
+
150
151
  .m_af9188cb {
151
152
  height: 100%;
152
153
  width: 100%;
@@ -226,41 +227,3 @@
226
227
  height: 100%;
227
228
  width: 100%;
228
229
  }
229
-
230
- :where([data-mantine-color-scheme='light']) .m_cd2bd9e5 {
231
- --chart-empty-background: var(--mantine-color-gray-1);
232
- --chart-cursor-color: var(--mantine-color-gray-4);
233
- }
234
- :where([data-mantine-color-scheme='dark']) .m_cd2bd9e5 {
235
- --chart-empty-background: var(--mantine-color-dark-6);
236
- --chart-cursor-color: var(--mantine-color-dark-4);
237
- }
238
-
239
- .m_6bcc3420 {
240
- padding: var(--mantine-spacing-md);
241
- box-shadow: var(--mantine-shadow-md);
242
- min-width: calc(12.5rem * var(--mantine-scale));
243
- font-size: var(--mantine-font-size-sm);
244
- display: flex;
245
- align-items: center;
246
- justify-content: space-between;
247
- }
248
-
249
- :where([data-mantine-color-scheme='light']) .m_6bcc3420 {
250
- border: 1px solid var(--mantine-color-gray-2);
251
- }
252
-
253
- :where([data-mantine-color-scheme='dark']) .m_6bcc3420 {
254
- border: 1px solid var(--mantine-color-dark-4);
255
- }
256
-
257
- .m_80d531e7 {
258
- min-height: var(--chart-size, auto);
259
- height: var(--chart-size, auto);
260
- width: var(--chart-size, auto);
261
- min-width: var(--chart-size, auto);
262
- }
263
-
264
- .m_80d531e7 :where(*) {
265
- outline: 0;
266
- }
package/styles.layer.css CHANGED
@@ -29,11 +29,6 @@
29
29
  padding-top: var(--mantine-spacing-sm);
30
30
  }
31
31
 
32
- .m_b30369b5 {
33
- width: calc(0.75rem * var(--mantine-scale));
34
- height: calc(0.75rem * var(--mantine-scale));
35
- }
36
-
37
32
  .m_3de8964e {
38
33
  font-size: var(--mantine-font-size-sm);
39
34
  display: flex;
@@ -126,6 +121,8 @@
126
121
  .m_a50f3e58 {
127
122
  display: block;
128
123
  width: 100%;
124
+
125
+ --chart-bar-label-color: var(--mantine-color-dimmed);
129
126
  }
130
127
 
131
128
  .m_a50f3e58 svg {
@@ -147,6 +144,10 @@
147
144
  color: var(--chart-text-color, var(--mantine-color-dimmed));
148
145
  }
149
146
 
147
+ .m_a50f3e58:where([data-orientation='vertical']) {
148
+ --chart-bar-label-color: var(--mantine-color-white);
149
+ }
150
+
150
151
  .m_af9188cb {
151
152
  height: 100%;
152
153
  width: 100%;
@@ -226,42 +227,4 @@
226
227
  height: 100%;
227
228
  width: 100%;
228
229
  }
229
-
230
- :where([data-mantine-color-scheme='light']) .m_cd2bd9e5 {
231
- --chart-empty-background: var(--mantine-color-gray-1);
232
- --chart-cursor-color: var(--mantine-color-gray-4);
233
- }
234
- :where([data-mantine-color-scheme='dark']) .m_cd2bd9e5 {
235
- --chart-empty-background: var(--mantine-color-dark-6);
236
- --chart-cursor-color: var(--mantine-color-dark-4);
237
- }
238
-
239
- .m_6bcc3420 {
240
- padding: var(--mantine-spacing-md);
241
- box-shadow: var(--mantine-shadow-md);
242
- min-width: calc(12.5rem * var(--mantine-scale));
243
- font-size: var(--mantine-font-size-sm);
244
- display: flex;
245
- align-items: center;
246
- justify-content: space-between;
247
- }
248
-
249
- :where([data-mantine-color-scheme='light']) .m_6bcc3420 {
250
- border: 1px solid var(--mantine-color-gray-2);
251
- }
252
-
253
- :where([data-mantine-color-scheme='dark']) .m_6bcc3420 {
254
- border: 1px solid var(--mantine-color-dark-4);
255
- }
256
-
257
- .m_80d531e7 {
258
- min-height: var(--chart-size, auto);
259
- height: var(--chart-size, auto);
260
- width: var(--chart-size, auto);
261
- min-width: var(--chart-size, auto);
262
- }
263
-
264
- .m_80d531e7 :where(*) {
265
- outline: 0;
266
- }
267
230
  }