@viamrobotics/test-widgets 0.1.4 → 0.1.5
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/table.svelte +25 -20
- package/package.json +1 -1
|
@@ -12,36 +12,41 @@
|
|
|
12
12
|
{@render children?.()}
|
|
13
13
|
</table>
|
|
14
14
|
|
|
15
|
-
<style
|
|
16
|
-
/*
|
|
17
|
-
NOTE(zp, 2024-06-10) Admittedly, this is a bit dangerous;
|
|
18
|
-
However, it does let us use standard html <table> tags like tr, th and tbody which has ergonomic advantages
|
|
19
|
-
|
|
20
|
-
If this is giving us trouble, please feel no hesitation about deleting this
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/* (:global is a svelte directive specifically for this purpose with slots.)*/
|
|
24
|
-
|
|
25
|
-
@reference "tailwindcss";
|
|
26
|
-
@reference "@viamrobotics/tailwind-config";
|
|
27
|
-
|
|
15
|
+
<style>
|
|
28
16
|
.customTable {
|
|
29
|
-
|
|
17
|
+
width: 100%;
|
|
18
|
+
table-layout: auto;
|
|
30
19
|
}
|
|
31
20
|
.customTable :global(thead) {
|
|
32
|
-
|
|
21
|
+
border: 1px solid #e4e4e6;
|
|
22
|
+
background-color: #f7f7f8;
|
|
33
23
|
}
|
|
34
24
|
.customTable :global(thead th) {
|
|
35
|
-
|
|
25
|
+
border: 1px solid #e4e4e6;
|
|
26
|
+
color: #4e4f52;
|
|
27
|
+
padding: 0.25rem 0.625rem;
|
|
28
|
+
font-size: 0.75rem;
|
|
29
|
+
line-height: 1rem;
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
white-space: nowrap;
|
|
36
32
|
}
|
|
37
33
|
.customTable :global(thead th abbr) {
|
|
38
|
-
|
|
34
|
+
color: #9c9ca4;
|
|
39
35
|
}
|
|
40
|
-
|
|
41
36
|
.customTable :global(tbody) {
|
|
42
|
-
|
|
37
|
+
border: 1px solid #e4e4e6;
|
|
43
38
|
}
|
|
44
39
|
.customTable :global(tbody th) {
|
|
45
|
-
|
|
40
|
+
border: 1px solid #e4e4e6;
|
|
41
|
+
font-family: 'Roboto Mono Variable', 'Roboto Mono', ui-monospace, monospace;
|
|
42
|
+
color: #282829;
|
|
43
|
+
height: 2.5rem;
|
|
44
|
+
gap: 0.5rem;
|
|
45
|
+
padding-left: 0.375rem;
|
|
46
|
+
padding-right: 0.375rem;
|
|
47
|
+
text-align: center;
|
|
48
|
+
font-size: 0.75rem;
|
|
49
|
+
line-height: 1rem;
|
|
50
|
+
font-weight: 400;
|
|
46
51
|
}
|
|
47
52
|
</style>
|