@indico-data/design-system 3.14.0 → 3.15.0
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/lib/index.css +4 -23
- package/lib/index.esm.css +4 -23
- package/lib/index.esm.js +3 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/floatUI/FloatUI.tsx +5 -1
- package/src/components/tanstackTable/styles/table.scss +5 -29
package/package.json
CHANGED
|
@@ -11,6 +11,8 @@ import {
|
|
|
11
11
|
shift,
|
|
12
12
|
Placement,
|
|
13
13
|
useDismiss,
|
|
14
|
+
ReferenceType,
|
|
15
|
+
VirtualElement,
|
|
14
16
|
} from '@floating-ui/react';
|
|
15
17
|
import { FloatUIProps } from './types';
|
|
16
18
|
|
|
@@ -54,6 +56,8 @@ export function FloatUI({
|
|
|
54
56
|
throw new Error('Both children of FloatUI must be valid React elements.');
|
|
55
57
|
}
|
|
56
58
|
|
|
59
|
+
const referenceElement = floatingOptions.elements?.reference || referenceElementRef.current;
|
|
60
|
+
|
|
57
61
|
const { refs, floatingStyles, context } = useFloating({
|
|
58
62
|
...floatingOptions,
|
|
59
63
|
open: isOpen,
|
|
@@ -62,7 +66,7 @@ export function FloatUI({
|
|
|
62
66
|
onOpenChange?.(isOpen);
|
|
63
67
|
},
|
|
64
68
|
elements: {
|
|
65
|
-
reference:
|
|
69
|
+
reference: referenceElement as Element | null,
|
|
66
70
|
},
|
|
67
71
|
});
|
|
68
72
|
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
opacity: 0.5;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.tanstack-table__thead__th {
|
|
14
|
+
border-top: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
.tanstack-table__container {
|
|
14
18
|
height: calc(100vh - 70px);
|
|
15
19
|
grid-template-rows: auto 1fr auto;
|
|
@@ -21,35 +25,7 @@
|
|
|
21
25
|
overflow-y: auto;
|
|
22
26
|
background-color: var(--pf-semantic-page-background);
|
|
23
27
|
border-radius: var(--pf-border-radius-md);
|
|
24
|
-
border
|
|
25
|
-
border-right: var(--pf-border-sm) solid var(--pf-semantic-border-secondary);
|
|
26
|
-
border-bottom: var(--pf-border-sm) solid var(--pf-semantic-border-secondary);
|
|
27
|
-
|
|
28
|
-
// Webkit scrollbar styles
|
|
29
|
-
&::-webkit-scrollbar {
|
|
30
|
-
width: var(--pf-spacing-sm);
|
|
31
|
-
height: var(--pf-spacing-sm);
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&::-webkit-scrollbar-track {
|
|
36
|
-
background: var(--pf-semantic-page-background);
|
|
37
|
-
border-radius: var(--pf-border-radius-xs);
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&::-webkit-scrollbar-thumb {
|
|
42
|
-
background: var(--pf-semantic-border-secondary);
|
|
43
|
-
border-radius: var(--pf-border-radius-xs);
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
&:hover {
|
|
46
|
-
background: var(--pf-semantic-background-brand-hover);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// Firefox scrollbar styles
|
|
51
|
-
scrollbar-width: thin;
|
|
52
|
-
scrollbar-color: var(--pf-semantic-border-secondary) var(--pf-semantic-page-background);
|
|
28
|
+
border: var(--pf-border-sm) solid var(--pf-semantic-border-secondary);
|
|
53
29
|
}
|
|
54
30
|
}
|
|
55
31
|
|