@r2digisolutions/components 0.14.6 → 0.14.7
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.
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
|
|
51
51
|
<div
|
|
52
52
|
class={[
|
|
53
|
-
'flex flex-col
|
|
53
|
+
'flex flex-col rounded-2xl transition-[box-shadow,transform,border-color] duration-200',
|
|
54
|
+
hoverable ? 'overflow-visible' : 'overflow-hidden',
|
|
54
55
|
variantClasses[variant],
|
|
55
56
|
hoverable &&
|
|
56
57
|
'cursor-pointer hover:-translate-y-0.5 hover:border-border-strong hover:shadow-md',
|
|
@@ -165,6 +165,8 @@
|
|
|
165
165
|
expandedRow?: Snippet<[T, DataGridColumn<T>[]]>;
|
|
166
166
|
/** Custom card/list body; falls back to title + fields. */
|
|
167
167
|
itemCard?: Snippet<[T]>;
|
|
168
|
+
/** Border + surface around list/card/grid items. Inner cards already have their own. */
|
|
169
|
+
itemFrame?: boolean;
|
|
168
170
|
dockExtra?: Snippet;
|
|
169
171
|
leading?: Snippet;
|
|
170
172
|
onselectionchange?: (selection: GridSelection) => void;
|
|
@@ -222,6 +224,7 @@
|
|
|
222
224
|
cell,
|
|
223
225
|
expandedRow,
|
|
224
226
|
itemCard,
|
|
227
|
+
itemFrame = true,
|
|
225
228
|
dockExtra,
|
|
226
229
|
leading,
|
|
227
230
|
onselectionchange,
|
|
@@ -1924,7 +1927,10 @@
|
|
|
1924
1927
|
<!-- list / card / grid modes -->
|
|
1925
1928
|
<div
|
|
1926
1929
|
class={[
|
|
1927
|
-
'min-h-0 w-full flex-1
|
|
1930
|
+
'min-h-0 w-full flex-1',
|
|
1931
|
+
itemFrame
|
|
1932
|
+
? 'overflow-auto rounded-xl border border-border bg-surface-elevated p-3'
|
|
1933
|
+
: 'overflow-visible p-1',
|
|
1928
1934
|
viewMode === 'list' && 'flex flex-col gap-2',
|
|
1929
1935
|
viewMode === 'card' && 'flex flex-col gap-3',
|
|
1930
1936
|
viewMode === 'grid' &&
|
|
@@ -59,6 +59,8 @@ declare function $$render<T extends Record<string, unknown> = Record<string, unk
|
|
|
59
59
|
expandedRow?: Snippet<[T, DataGridColumn<T>[]]>;
|
|
60
60
|
/** Custom card/list body; falls back to title + fields. */
|
|
61
61
|
itemCard?: Snippet<[T]>;
|
|
62
|
+
/** Border + surface around list/card/grid items. Inner cards already have their own. */
|
|
63
|
+
itemFrame?: boolean;
|
|
62
64
|
dockExtra?: Snippet;
|
|
63
65
|
leading?: Snippet;
|
|
64
66
|
onselectionchange?: (selection: GridSelection) => void;
|