@hilum/ui 3.6.8 → 3.6.9
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/index.d.ts +2 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/stacked-list.tsx +10 -1
package/package.json
CHANGED
|
@@ -5,10 +5,17 @@ interface StackedListProps {
|
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
divided?: boolean;
|
|
7
7
|
bordered?: boolean;
|
|
8
|
+
surface?: "card" | "responsive";
|
|
8
9
|
className?: string;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
function StackedList({
|
|
12
|
+
function StackedList({
|
|
13
|
+
children,
|
|
14
|
+
divided = true,
|
|
15
|
+
bordered = true,
|
|
16
|
+
surface = "card",
|
|
17
|
+
className,
|
|
18
|
+
}: StackedListProps) {
|
|
12
19
|
return (
|
|
13
20
|
<ul
|
|
14
21
|
role="list"
|
|
@@ -16,6 +23,8 @@ function StackedList({ children, divided = true, bordered = true, className }: S
|
|
|
16
23
|
"overflow-hidden rounded-xl bg-card",
|
|
17
24
|
bordered && "border border-border shadow-natural",
|
|
18
25
|
divided && "divide-y divide-border",
|
|
26
|
+
surface === "responsive" &&
|
|
27
|
+
"rounded-lg shadow-none max-sm:rounded-none max-sm:border-x-0 max-sm:bg-transparent",
|
|
19
28
|
className,
|
|
20
29
|
)}
|
|
21
30
|
>
|