@hybridcore/ui 1.6.30 → 1.6.32
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/dist/components/charts/_common/utils.js +50 -31
- package/dist/components/charts/candlestick/logic.js +83 -86
- package/dist/components/charts/column-line-mix/logic.js +66 -70
- package/dist/components/charts/donut-chart/logic.js +61 -64
- package/dist/components/charts/drill-down-treemap/logic.js +69 -69
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +75 -75
- package/dist/components/charts/forecast-cone/logic.js +110 -114
- package/dist/components/charts/heatmap/logic.js +115 -119
- package/dist/components/charts/highlighting-line-data/logic.js +65 -64
- package/dist/components/charts/histogram/logic.js +66 -70
- package/dist/components/charts/line/logic.js +95 -99
- package/dist/components/charts/logaritmic-scale/logic.js +79 -83
- package/dist/components/charts/multiple-value-axes/logic.js +65 -69
- package/dist/components/charts/nested-pie/logic.js +49 -53
- package/dist/components/charts/packed-circles/logic.js +139 -139
- package/dist/components/charts/pie-chart/logic.js +55 -59
- package/dist/components/charts/stacked-area-radar/logic.js +92 -96
- package/dist/components/charts/stacked-column-chart/logic.js +64 -68
- package/dist/components/charts/xy-chart/logic.js +82 -86
- package/dist/components/metric-card/MetricChart.js +6 -4
- package/dist/components/paginated-list/index.js +16 -15
- package/dist/components/paginated-list/styled.js +34 -17
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { styled as a, Paper as o, Box as e, List as s, Button as d, Typography as
|
|
1
|
+
import { styled as a, Paper as o, Box as e, List as s, Button as d, Typography as n } from "@mui/material";
|
|
2
2
|
const g = a(o, {
|
|
3
3
|
name: "HCPaginatedList",
|
|
4
4
|
slot: "Root"
|
|
@@ -6,7 +6,7 @@ const g = a(o, {
|
|
|
6
6
|
display: "flex",
|
|
7
7
|
flexDirection: "column",
|
|
8
8
|
height: "100%"
|
|
9
|
-
})),
|
|
9
|
+
})), p = a(e, {
|
|
10
10
|
name: "HCPaginatedList",
|
|
11
11
|
slot: "Header"
|
|
12
12
|
})(({ theme: t }) => ({
|
|
@@ -18,7 +18,7 @@ const g = a(o, {
|
|
|
18
18
|
alignItems: "center",
|
|
19
19
|
justifyContent: "space-between",
|
|
20
20
|
gap: t.spacing(1)
|
|
21
|
-
})),
|
|
21
|
+
})), c = a(e, {
|
|
22
22
|
name: "HCPaginatedList",
|
|
23
23
|
slot: "Content"
|
|
24
24
|
})(() => ({
|
|
@@ -59,12 +59,12 @@ const g = a(o, {
|
|
|
59
59
|
name: "HCPaginatedList",
|
|
60
60
|
slot: "CardRail",
|
|
61
61
|
shouldForwardProp: (t) => t !== "grid"
|
|
62
|
-
})(({ theme: t, grid:
|
|
62
|
+
})(({ theme: t, grid: i }) => ({
|
|
63
63
|
minHeight: 0,
|
|
64
64
|
display: "flex",
|
|
65
65
|
alignItems: "stretch",
|
|
66
66
|
gap: t.spacing(2),
|
|
67
|
-
...
|
|
67
|
+
...i ? {
|
|
68
68
|
// Wraps and lets the *page* scroll. No `overflow` here on purpose: the rail
|
|
69
69
|
// has no bounded height, so `auto` would produce no scrollbar and leave the
|
|
70
70
|
// sentinel permanently in view, pulling page after page.
|
|
@@ -73,12 +73,20 @@ const g = a(o, {
|
|
|
73
73
|
alignContent: "flex-start"
|
|
74
74
|
} : {
|
|
75
75
|
flex: "0 0 auto",
|
|
76
|
-
overflow: "hidden"
|
|
76
|
+
overflow: "hidden",
|
|
77
|
+
[t.breakpoints.down("md")]: {
|
|
78
|
+
overflowX: "auto",
|
|
79
|
+
overflowY: "hidden",
|
|
80
|
+
scrollSnapType: "x mandatory",
|
|
81
|
+
scrollbarWidth: "none",
|
|
82
|
+
"&::-webkit-scrollbar": { display: "none" }
|
|
83
|
+
}
|
|
77
84
|
}
|
|
78
85
|
})), P = a(e, {
|
|
79
86
|
name: "HCPaginatedList",
|
|
80
|
-
slot: "Card"
|
|
81
|
-
|
|
87
|
+
slot: "Card",
|
|
88
|
+
shouldForwardProp: (t) => t !== "grid"
|
|
89
|
+
})(({ theme: t, grid: i }) => ({
|
|
82
90
|
// Equal shares of the row: the rail does not scroll, so cards divide the width
|
|
83
91
|
// rather than spilling out of it. `flex-basis: 0` stops a long title widening its
|
|
84
92
|
// card; the grid overrides the basis so cards wrap instead of shrinking to slivers.
|
|
@@ -93,7 +101,16 @@ const g = a(o, {
|
|
|
93
101
|
padding: t.spacing(2),
|
|
94
102
|
borderRadius: t.shape.borderRadius,
|
|
95
103
|
backgroundColor: t.palette.background.paper,
|
|
96
|
-
overflow: "hidden"
|
|
104
|
+
overflow: "hidden",
|
|
105
|
+
...i ? {} : {
|
|
106
|
+
[t.breakpoints.down("md")]: {
|
|
107
|
+
flex: "0 0 42%",
|
|
108
|
+
scrollSnapAlign: "start"
|
|
109
|
+
},
|
|
110
|
+
[t.breakpoints.down("sm")]: {
|
|
111
|
+
flex: "0 0 78%"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
97
114
|
})), m = a(e, {
|
|
98
115
|
name: "HCPaginatedList",
|
|
99
116
|
slot: "CardHeader"
|
|
@@ -101,7 +118,7 @@ const g = a(o, {
|
|
|
101
118
|
display: "flex",
|
|
102
119
|
alignItems: "flex-start",
|
|
103
120
|
gap: t.spacing(1)
|
|
104
|
-
})),
|
|
121
|
+
})), u = a(e, {
|
|
105
122
|
name: "HCPaginatedList",
|
|
106
123
|
slot: "CardIcon"
|
|
107
124
|
})(() => ({
|
|
@@ -109,7 +126,7 @@ const g = a(o, {
|
|
|
109
126
|
display: "flex",
|
|
110
127
|
alignItems: "center",
|
|
111
128
|
justifyContent: "center"
|
|
112
|
-
})),
|
|
129
|
+
})), H = a(n, {
|
|
113
130
|
name: "HCPaginatedList",
|
|
114
131
|
slot: "CardTitle"
|
|
115
132
|
})(() => ({
|
|
@@ -118,7 +135,7 @@ const g = a(o, {
|
|
|
118
135
|
WebkitBoxOrient: "vertical",
|
|
119
136
|
WebkitLineClamp: 3,
|
|
120
137
|
overflow: "hidden"
|
|
121
|
-
})), y = a(
|
|
138
|
+
})), y = a(n, {
|
|
122
139
|
name: "HCPaginatedList",
|
|
123
140
|
slot: "CardDescription"
|
|
124
141
|
})(({ theme: t }) => ({
|
|
@@ -147,7 +164,7 @@ const g = a(o, {
|
|
|
147
164
|
alignItems: "center",
|
|
148
165
|
justifyContent: "space-between",
|
|
149
166
|
gap: 8
|
|
150
|
-
})), w = a(
|
|
167
|
+
})), w = a(n, {
|
|
151
168
|
name: "HCPaginatedList",
|
|
152
169
|
slot: "CardMeta"
|
|
153
170
|
})(({ theme: t }) => ({
|
|
@@ -176,12 +193,12 @@ export {
|
|
|
176
193
|
y as PaginatedListCardDescription,
|
|
177
194
|
b as PaginatedListCardFooter,
|
|
178
195
|
m as PaginatedListCardHeader,
|
|
179
|
-
|
|
196
|
+
u as PaginatedListCardIcon,
|
|
180
197
|
w as PaginatedListCardMeta,
|
|
181
198
|
L as PaginatedListCardRail,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
199
|
+
H as PaginatedListCardTitle,
|
|
200
|
+
c as PaginatedListContent,
|
|
201
|
+
p as PaginatedListHeader,
|
|
185
202
|
C as PaginatedListList,
|
|
186
203
|
v as PaginatedListLoadMore,
|
|
187
204
|
f as PaginatedListPagination,
|