@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.
@@ -1,4 +1,4 @@
1
- import { styled as a, Paper as o, Box as e, List as s, Button as d, Typography as i } from "@mui/material";
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
- })), c = a(e, {
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
- })), p = a(e, {
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: n }) => ({
62
+ })(({ theme: t, grid: i }) => ({
63
63
  minHeight: 0,
64
64
  display: "flex",
65
65
  alignItems: "stretch",
66
66
  gap: t.spacing(2),
67
- ...n ? {
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
- })(({ theme: t }) => ({
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
- })), H = a(e, {
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
- })), u = a(i, {
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(i, {
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(i, {
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
- H as PaginatedListCardIcon,
196
+ u as PaginatedListCardIcon,
180
197
  w as PaginatedListCardMeta,
181
198
  L as PaginatedListCardRail,
182
- u as PaginatedListCardTitle,
183
- p as PaginatedListContent,
184
- c as PaginatedListHeader,
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,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridcore/ui",
3
3
  "description": "Hybrid Core UI Library",
4
- "version": "1.6.30",
4
+ "version": "1.6.32",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",