@lobehub/ui 5.63.1 → 5.63.3
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/es/ThemeProvider/GlobalStyle/essential.mjs +1 -2
- package/es/ThemeProvider/GlobalStyle/essential.mjs.map +1 -1
- package/es/base-ui/Input/style.d.mts +1 -1
- package/es/base-ui/Table/FixedFrost.mjs +120 -0
- package/es/base-ui/Table/FixedFrost.mjs.map +1 -0
- package/es/base-ui/Table/Table.mjs +52 -47
- package/es/base-ui/Table/Table.mjs.map +1 -1
- package/es/base-ui/Table/style.mjs +128 -76
- package/es/base-ui/Table/style.mjs.map +1 -1
- package/es/base-ui/Text/style.d.mts +1 -1
- package/es/dashboard/AuthLayout/AuthLayout.mjs +4 -5
- package/es/dashboard/AuthLayout/AuthLayout.mjs.map +1 -1
- package/es/dashboard/AuthLayout/style.mjs +20 -13
- package/es/dashboard/AuthLayout/style.mjs.map +1 -1
- package/es/dashboard/FilterSidebar/FilterSidebar.mjs +1 -1
- package/es/dashboard/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -20,13 +20,14 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
20
20
|
const surface = (light) => `var(--lobe-table-surface, ${light})`;
|
|
21
21
|
const cellBg = `var(--lobe-table-cell, ${cssVar.colorBgContainer})`;
|
|
22
22
|
const fill = "var(--lobe-table-fill, transparent)";
|
|
23
|
-
const
|
|
24
|
-
const
|
|
23
|
+
const hoverBg = cssVar.colorFillTertiary;
|
|
24
|
+
const selectedBg = `color-mix(in srgb, ${cssVar.colorPrimary} 6%, transparent)`;
|
|
25
|
+
const selectedHoverBg = `color-mix(in srgb, ${cssVar.colorPrimary} 10%, transparent)`;
|
|
26
|
+
const frost = `
|
|
27
|
+
-webkit-backdrop-filter: blur(16px);
|
|
28
|
+
backdrop-filter: blur(16px);
|
|
29
|
+
`;
|
|
25
30
|
const variantVars = `
|
|
26
|
-
--lobe-table-solid: var(
|
|
27
|
-
--lobe-table-canvas,
|
|
28
|
-
var(--lobe-surface-bg-solid, var(--lobe-table-canvas-default, ${cssVar.colorBgContainer}))
|
|
29
|
-
);
|
|
30
31
|
--lobe-table-cell: var(--lobe-table-cell-bg, ${cssVar.colorBgContainer});
|
|
31
32
|
--lobe-table-fill: var(--lobe-table-surface, transparent);
|
|
32
33
|
`;
|
|
@@ -64,13 +65,13 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
64
65
|
border-start-end-radius: ${cssVar.borderRadiusLG};
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
/* The container draws the
|
|
68
|
+
/* The container draws the full frame (incl. bottom). Last-row borders used to stand
|
|
69
|
+
in for the bottom edge, but with scroll.y / virtual the last row sits inside the
|
|
70
|
+
body viewport - overflow:clip + radius then eats that line at the rounded corners.
|
|
68
71
|
No column dividers (grouped headers included): rows are split horizontally only. */
|
|
69
72
|
& > ${p}-container {
|
|
70
73
|
overflow: clip;
|
|
71
|
-
|
|
72
|
-
border-block-start: ${border};
|
|
73
|
-
border-inline: ${border};
|
|
74
|
+
border: ${border};
|
|
74
75
|
border-radius: ${cssVar.borderRadiusLG};
|
|
75
76
|
|
|
76
77
|
/* Same lift as the dashboard Surface card (both modes). Outer shadow on the framed
|
|
@@ -84,6 +85,7 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
&:has(> ${p}-footer) > ${p}-container {
|
|
88
|
+
border-block-end: 0;
|
|
87
89
|
border-end-start-radius: 0;
|
|
88
90
|
border-end-end-radius: 0;
|
|
89
91
|
}
|
|
@@ -105,18 +107,45 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
105
107
|
box-shadow: inset 0 999px 0 ${cssVar.colorFillQuaternary};
|
|
106
108
|
}
|
|
107
109
|
|
|
108
|
-
/* Fixed cells:
|
|
110
|
+
/* Fixed cells: see-through (container fill shows) + backdrop blur only. */
|
|
109
111
|
& ${p}-tbody > tr > td${p}-cell-fix, & ${p}-tbody-virtual ${p}-cell${p}-cell-fix {
|
|
110
|
-
background:
|
|
112
|
+
background: transparent;
|
|
111
113
|
box-shadow: none;
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
/* Header: container fill + one Quaternary wash (box-shadow), like other th. */
|
|
115
117
|
& ${p}-thead > tr > th${p}-cell-fix, & ${p}-thead > tr > td${p}-cell-fix {
|
|
116
|
-
background:
|
|
118
|
+
background: transparent;
|
|
117
119
|
box-shadow: inset 0 999px 0 ${cssVar.colorFillQuaternary};
|
|
118
120
|
}
|
|
119
121
|
}
|
|
122
|
+
`,
|
|
123
|
+
frostRail: css`
|
|
124
|
+
pointer-events: none;
|
|
125
|
+
|
|
126
|
+
position: absolute;
|
|
127
|
+
z-index: 1;
|
|
128
|
+
inset-block-start: 0;
|
|
129
|
+
inset-inline-start: 0;
|
|
130
|
+
|
|
131
|
+
display: flex;
|
|
132
|
+
`,
|
|
133
|
+
frostStart: css`
|
|
134
|
+
position: sticky;
|
|
135
|
+
inset-inline-start: 0;
|
|
136
|
+
flex: none;
|
|
137
|
+
height: 100%;
|
|
138
|
+
${frost}
|
|
139
|
+
`,
|
|
140
|
+
frostEnd: css`
|
|
141
|
+
position: sticky;
|
|
142
|
+
inset-inline-end: 0;
|
|
143
|
+
|
|
144
|
+
flex: none;
|
|
145
|
+
|
|
146
|
+
height: 100%;
|
|
147
|
+
margin-inline-start: auto;
|
|
148
|
+
${frost}
|
|
120
149
|
`,
|
|
121
150
|
filled: css`
|
|
122
151
|
&${p}-filled {
|
|
@@ -124,10 +153,6 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
124
153
|
/* Filled owns its fill in both modes (Block filled = colorFillTertiary; dark uses the
|
|
125
154
|
Quaternary surface) and its opaque base is the page behind it, not colorBgContainer. */
|
|
126
155
|
--lobe-table-fill: var(--lobe-table-surface, ${cssVar.colorFillTertiary});
|
|
127
|
-
--lobe-table-solid: var(
|
|
128
|
-
--lobe-table-canvas,
|
|
129
|
-
var(--lobe-surface-bg-solid, ${cssVar.colorBgLayout})
|
|
130
|
-
);
|
|
131
156
|
|
|
132
157
|
/* Root stays clear (square box, would bleed past the rounded corners); the clipped
|
|
133
158
|
container is the ONE fill layer: light FillTertiary, dark colorFillQuaternary. */
|
|
@@ -180,16 +205,16 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
180
205
|
background: transparent;
|
|
181
206
|
}
|
|
182
207
|
|
|
183
|
-
/* Fixed cells
|
|
208
|
+
/* Fixed cells: see-through + blur; header keeps the same divider + wash as every th. */
|
|
184
209
|
& ${p}-thead > tr > th${p}-cell-fix, & ${p}-thead > tr > td${p}-cell-fix {
|
|
185
|
-
background:
|
|
210
|
+
background: transparent;
|
|
186
211
|
box-shadow:
|
|
187
212
|
inset 0 -1px 0 ${borderColor},
|
|
188
213
|
inset 0 999px 0 ${cssVar.colorFillQuaternary};
|
|
189
214
|
}
|
|
190
215
|
|
|
191
216
|
& ${p}-tbody > tr > td${p}-cell-fix {
|
|
192
|
-
background:
|
|
217
|
+
background: transparent;
|
|
193
218
|
box-shadow: none;
|
|
194
219
|
}
|
|
195
220
|
}
|
|
@@ -197,7 +222,7 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
197
222
|
/**
|
|
198
223
|
* Borderless: everything but the header is see-through, so the table sits on whatever
|
|
199
224
|
* surface hosts it. Hover / selected rows are translucent fills. Fixed (sticky) cells
|
|
200
|
-
*
|
|
225
|
+
* are see-through with a frosted backdrop so scrolled content stays obscured.
|
|
201
226
|
*/
|
|
202
227
|
borderless: css`
|
|
203
228
|
&& {
|
|
@@ -213,14 +238,14 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
213
238
|
}
|
|
214
239
|
|
|
215
240
|
&& ${p}-tbody > tr > td${p}-cell-row-hover, && ${p}-tbody-virtual ${p}-row:hover > ${p}-cell {
|
|
216
|
-
background:
|
|
241
|
+
background: ${hoverBg};
|
|
217
242
|
}
|
|
218
243
|
|
|
219
244
|
&& ${p}-tbody > tr${p}-row-selected > td {
|
|
220
|
-
background:
|
|
245
|
+
background: ${selectedBg};
|
|
221
246
|
|
|
222
247
|
&${p}-cell-row-hover {
|
|
223
|
-
background:
|
|
248
|
+
background: ${selectedHoverBg};
|
|
224
249
|
}
|
|
225
250
|
}
|
|
226
251
|
|
|
@@ -235,18 +260,18 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
235
260
|
&&
|
|
236
261
|
${p}-tbody-virtual
|
|
237
262
|
${p}-cell${p}-cell-fix {
|
|
238
|
-
background:
|
|
263
|
+
background: transparent;
|
|
239
264
|
}
|
|
240
265
|
|
|
241
266
|
&& ${p}-tbody > tr > td${p}-cell-fix${p}-cell-row-hover {
|
|
242
|
-
background:
|
|
267
|
+
background: ${hoverBg};
|
|
243
268
|
}
|
|
244
269
|
|
|
245
270
|
&& ${p}-tbody > tr${p}-row-selected > td${p}-cell-fix {
|
|
246
|
-
background:
|
|
271
|
+
background: ${selectedBg};
|
|
247
272
|
|
|
248
273
|
&${p}-cell-row-hover {
|
|
249
|
-
background:
|
|
274
|
+
background: ${selectedHoverBg};
|
|
250
275
|
}
|
|
251
276
|
}
|
|
252
277
|
`,
|
|
@@ -383,8 +408,9 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
383
408
|
vertical-align: middle;
|
|
384
409
|
`,
|
|
385
410
|
hoverable: css`
|
|
386
|
-
|
|
387
|
-
|
|
411
|
+
/* &&& outranks the variant cell rules (filled clear cells, transparent fixed cells). */
|
|
412
|
+
&&& ${p}-tbody > tr > ${p}-cell-row-hover, &&& ${p}-tbody-virtual ${p}-row:hover > ${p}-cell {
|
|
413
|
+
background: ${hoverBg};
|
|
388
414
|
}
|
|
389
415
|
`,
|
|
390
416
|
loading: css`
|
|
@@ -494,14 +520,23 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
494
520
|
sizeLarge: css`
|
|
495
521
|
${PADDING_BLOCK}: 16px;
|
|
496
522
|
${PADDING_INLINE}: 16px;
|
|
523
|
+
|
|
524
|
+
/* Same as VIRTUAL_ROW_HEIGHT in Table.tsx (padding * 2 + 22px line + 1px divider). */
|
|
525
|
+
--lobe-table-virtual-row-height: calc(16px * 2 + 23px);
|
|
497
526
|
`,
|
|
498
527
|
sizeMedium: css`
|
|
499
528
|
${PADDING_BLOCK}: 12px;
|
|
500
529
|
${PADDING_INLINE}: 16px;
|
|
530
|
+
|
|
531
|
+
/* Same as VIRTUAL_ROW_HEIGHT in Table.tsx (padding * 2 + 22px line + 1px divider). */
|
|
532
|
+
--lobe-table-virtual-row-height: calc(12px * 2 + 23px);
|
|
501
533
|
`,
|
|
502
534
|
sizeSmall: css`
|
|
503
535
|
${PADDING_BLOCK}: 8px;
|
|
504
536
|
${PADDING_INLINE}: 12px;
|
|
537
|
+
|
|
538
|
+
/* Same as VIRTUAL_ROW_HEIGHT in Table.tsx (padding * 2 + 22px line + 1px divider). */
|
|
539
|
+
--lobe-table-virtual-row-height: calc(8px * 2 + 23px);
|
|
505
540
|
`,
|
|
506
541
|
sortButton: css`
|
|
507
542
|
display: inline-flex;
|
|
@@ -531,7 +566,6 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
531
566
|
/* Reset per root so nested / borderless tables never inherit a parent's variant vars. */
|
|
532
567
|
--lobe-table-cell: ${cssVar.colorBgContainer};
|
|
533
568
|
--lobe-table-fill: transparent;
|
|
534
|
-
--lobe-table-solid: ${cssVar.colorBgContainer};
|
|
535
569
|
|
|
536
570
|
font-size: 14px;
|
|
537
571
|
color: ${cssVar.colorText};
|
|
@@ -550,9 +584,39 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
550
584
|
& tfoot > tr > th,
|
|
551
585
|
& tfoot > tr > td {
|
|
552
586
|
position: relative;
|
|
587
|
+
|
|
553
588
|
padding-block: var(${PADDING_BLOCK});
|
|
554
589
|
padding-inline: var(${PADDING_INLINE});
|
|
590
|
+
|
|
555
591
|
overflow-wrap: break-word;
|
|
592
|
+
|
|
593
|
+
/* The global \`* { vertical-align: baseline }\` reset drops the UA's middle for cells. */
|
|
594
|
+
vertical-align: middle;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/* Row-merged body cells (rowSpan > 1, table and virtual body alike) get vertical
|
|
598
|
+
dividers so the block reads apart from the neighbour rows' lines. Drawn on ::before
|
|
599
|
+
(::after is the fixed-column scroll shadow) so cell box-shadows stay untouched. The
|
|
600
|
+
first / last column skip the edge the frame or table edge already provides. */
|
|
601
|
+
& ${p}-tbody > tr > td[rowspan]:not([rowspan='0'], [rowspan='1'])::before,
|
|
602
|
+
& ${p}-tbody-virtual ${p}-cell[rowspan]:not([rowspan='0'], [rowspan='1'])::before {
|
|
603
|
+
pointer-events: none;
|
|
604
|
+
content: '';
|
|
605
|
+
|
|
606
|
+
position: absolute;
|
|
607
|
+
inset: 0;
|
|
608
|
+
|
|
609
|
+
border-inline: ${border};
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
& ${p}-tbody > tr > td[rowspan]:first-child::before,
|
|
613
|
+
& ${p}-tbody-virtual ${p}-cell[rowspan]:first-child::before {
|
|
614
|
+
border-inline-start: 0;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
& ${p}-tbody > tr > td[rowspan]:last-child::before,
|
|
618
|
+
& ${p}-tbody-virtual ${p}-cell[rowspan]:last-child::before {
|
|
619
|
+
border-inline-end: 0;
|
|
556
620
|
}
|
|
557
621
|
|
|
558
622
|
& ${p}-thead > tr > th,
|
|
@@ -588,8 +652,20 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
588
652
|
transition: background-color ${cssVar.motionDurationMid};
|
|
589
653
|
}
|
|
590
654
|
|
|
591
|
-
|
|
592
|
-
|
|
655
|
+
/* Filled / outlined drop the last body divider: filled because its fill is the edge,
|
|
656
|
+
outlined because the container now draws the frame bottom (avoids a double line, and
|
|
657
|
+
keeps the outline when scroll.y / virtual would otherwise scroll the last-row edge
|
|
658
|
+
away). Borderless keeps it as the closing rule under the rows. */
|
|
659
|
+
&${p}-filled ${p}-tbody > tr:last-child > td,
|
|
660
|
+
&${p}-filled ${p}-tbody > tr:last-child > th,
|
|
661
|
+
&${p}-outlined ${p}-tbody > tr:last-child > td,
|
|
662
|
+
&${p}-outlined ${p}-tbody > tr:last-child > th {
|
|
663
|
+
border-block-end: 0;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/* Borderless with a summary: tfoot draws its own top rule, so skip the last-row one. */
|
|
667
|
+
&${p}-borderless table:has(> tfoot) > ${p}-tbody > tr:last-child > td,
|
|
668
|
+
&${p}-borderless table:has(> tfoot) > ${p}-tbody > tr:last-child > th {
|
|
593
669
|
border-block-end: 0;
|
|
594
670
|
}
|
|
595
671
|
|
|
@@ -688,7 +764,7 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
688
764
|
}
|
|
689
765
|
|
|
690
766
|
& ${p}-cell-fix {
|
|
691
|
-
background:
|
|
767
|
+
background: transparent;
|
|
692
768
|
|
|
693
769
|
&::after {
|
|
694
770
|
${fixShadowBase}
|
|
@@ -715,41 +791,16 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
715
791
|
& ${p}-sticky-holder {
|
|
716
792
|
position: sticky;
|
|
717
793
|
z-index: calc(var(--columns-count, 1) * 2 + ${Z_FIXED} + 1);
|
|
718
|
-
background:
|
|
794
|
+
background: transparent;
|
|
795
|
+
|
|
796
|
+
/* The whole sticky header is one element, so it blurs as one continuous block. */
|
|
797
|
+
${frost}
|
|
719
798
|
}
|
|
720
799
|
|
|
721
800
|
& ${p}-sticky-scroll {
|
|
722
801
|
position: sticky;
|
|
723
802
|
z-index: calc(var(--columns-count, 1) * 2 + ${Z_FIXED} + 1);
|
|
724
803
|
inset-block-end: 0;
|
|
725
|
-
|
|
726
|
-
display: flex;
|
|
727
|
-
align-items: center;
|
|
728
|
-
|
|
729
|
-
height: 8px !important;
|
|
730
|
-
border-block-start: ${border};
|
|
731
|
-
|
|
732
|
-
opacity: 0.65;
|
|
733
|
-
background: ${cssVar.colorFillQuaternary};
|
|
734
|
-
|
|
735
|
-
&-bar {
|
|
736
|
-
position: absolute;
|
|
737
|
-
inset-block-end: 0;
|
|
738
|
-
|
|
739
|
-
height: 8px;
|
|
740
|
-
border-radius: 100px;
|
|
741
|
-
|
|
742
|
-
background-color: ${cssVar.colorFill};
|
|
743
|
-
|
|
744
|
-
transition:
|
|
745
|
-
all ${cssVar.motionDurationSlow},
|
|
746
|
-
transform 0s;
|
|
747
|
-
|
|
748
|
-
&:hover,
|
|
749
|
-
&-active {
|
|
750
|
-
background-color: ${cssVar.colorFillSecondary};
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
804
|
}
|
|
754
805
|
|
|
755
806
|
/* ============================ Selection =========================== */
|
|
@@ -769,11 +820,12 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
769
820
|
}
|
|
770
821
|
}
|
|
771
822
|
|
|
772
|
-
&
|
|
773
|
-
|
|
823
|
+
/* The table css carries no hoverable class, so use a fourth & to outrank hover too. */
|
|
824
|
+
&&&& ${p}-tbody > tr${p}-row-selected > td {
|
|
825
|
+
background: ${selectedBg};
|
|
774
826
|
|
|
775
827
|
&${p}-cell-row-hover {
|
|
776
|
-
background:
|
|
828
|
+
background: ${selectedHoverBg};
|
|
777
829
|
}
|
|
778
830
|
}
|
|
779
831
|
|
|
@@ -881,8 +933,8 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
881
933
|
position: relative;
|
|
882
934
|
z-index: ${Z_FIXED};
|
|
883
935
|
|
|
884
|
-
/*
|
|
885
|
-
background:
|
|
936
|
+
/* See-through; a sticky summary is a sticky holder and gets its frost there. */
|
|
937
|
+
background: transparent;
|
|
886
938
|
|
|
887
939
|
& > tr > th,
|
|
888
940
|
& > tr > td {
|
|
@@ -918,6 +970,14 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
918
970
|
box-sizing: border-box;
|
|
919
971
|
width: 100%;
|
|
920
972
|
|
|
973
|
+
/* Virtual rows are locked to the listItemHeight estimate (an integer). Measured
|
|
974
|
+
heights then equal the estimate, so a rowSpan cell (height = summed row sizes)
|
|
975
|
+
ends exactly on the neighbour rows' divider instead of drifting by sub-pixel
|
|
976
|
+
rounding or unmeasured-row estimates. */
|
|
977
|
+
&:not(${p}-row-extra, ${p}-expanded-row) {
|
|
978
|
+
height: var(--lobe-table-virtual-row-height);
|
|
979
|
+
}
|
|
980
|
+
|
|
921
981
|
& > ${p}-cell {
|
|
922
982
|
align-content: center;
|
|
923
983
|
}
|
|
@@ -929,14 +989,6 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
|
|
929
989
|
transition: background-color ${cssVar.motionDurationMid};
|
|
930
990
|
}
|
|
931
991
|
|
|
932
|
-
& ${p}-tbody-virtual-scrollbar {
|
|
933
|
-
cursor: pointer;
|
|
934
|
-
|
|
935
|
-
&:hover {
|
|
936
|
-
background-color: ${cssVar.colorFillQuaternary};
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
|
|
940
992
|
& ${p}-expanded-row ${p}-expanded-row-cell${p}-expanded-row-cell-fixed {
|
|
941
993
|
position: sticky;
|
|
942
994
|
inset-inline-start: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.mjs","names":[],"sources":["../../../src/base-ui/Table/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\n\n/** Own prefix so rc-table classNames never collide with antd's global `.ant-table` CSS. */\nexport const PREFIX_CLS = 'lobe-table';\n\nconst p = `.${PREFIX_CLS}`;\n\n// Cell padding comes from the size class through these vars, so title / footer / expanded rows\n// can reuse (and negate) it.\nconst PADDING_BLOCK = '--lobe-table-padding-block';\nconst PADDING_INLINE = '--lobe-table-padding-inline';\n\n// Matches antd's `zIndexTableFixed`.\nconst Z_FIXED = 2;\n\n// antd `expandColumnWidth`; nested tables start after it.\nexport const EXPAND_COLUMN_WIDTH = 48;\n\n// antd `selectionColumnWidth`, plus the `selections` trigger when there is one.\nexport const SELECTION_COLUMN_WIDTH = 32;\nexport const SELECTION_DROPDOWN_WIDTH = 24;\n\n/** Rows of this table's own sections only, so the rules never leak into nested tables. */\nconst ownRows = ['content', 'header', 'body', 'summary']\n .map((section) => `& > ${p}-container > ${p}-${section} > table > * > tr`)\n .join(', ');\nconst ownCells = (cell: string) =>\n ownRows\n .split(', ')\n .map((row) => `${row} > ${cell}`)\n .join(', ');\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n // Light colorFill / dark colorFillSecondary (see --lobe-fill-border in ThemeProvider).\n const borderColor = `var(--lobe-fill-border, ${cssVar.colorFill})`;\n const border = `1px solid ${borderColor}`;\n // Dark: colorFillQuaternary on the clipped container; unset in light so variants keep their fills.\n const surface = (light: string) => `var(--lobe-table-surface, ${light})`;\n // Cell background. Every table root resets it to colorBgContainer (so nested / borderless\n // tables never inherit it); outlined / filled switch it to transparent in dark.\n const cellBg = `var(--lobe-table-cell, ${cssVar.colorBgContainer})`;\n // The variant fill that opaque composites (fixed cells, sticky holder, summary) repeat\n // once. Reset to transparent per root; outlined / filled set it to the dark surface.\n const fill = 'var(--lobe-table-fill, transparent)';\n // Opaque base under fixed / sticky cells: the real color behind the table, so base + fill\n // matches the translucent body exactly. Override with --lobe-table-canvas; inside a Surface\n // card it is the card's solid color; dark default colorBgLayout (page), light colorBgContainer.\n const solid = 'var(--lobe-table-solid)';\n const solidWith = (...fills: string[]) =>\n `${fills.map((f) => `linear-gradient(${f}, ${f})`).join(', ')}, ${solid}`;\n const variantVars = `\n --lobe-table-solid: var(\n --lobe-table-canvas,\n var(--lobe-surface-bg-solid, var(--lobe-table-canvas-default, ${cssVar.colorBgContainer}))\n );\n --lobe-table-cell: var(--lobe-table-cell-bg, ${cssVar.colorBgContainer});\n --lobe-table-fill: var(--lobe-table-surface, transparent);\n `;\n const fixShadowBase = `\n pointer-events: none;\n content: '';\n position: absolute;\n inset-block: 0 -1px;\n width: 30px;\n transition: box-shadow ${cssVar.motionDurationSlow};\n `;\n const startShadow = `box-shadow: inset 10px 0 8px -8px ${cssVar.colorSplit};`;\n const endShadow = `box-shadow: inset -10px 0 8px -8px ${cssVar.colorSplit};`;\n\n return {\n outlined: css`\n &${p}-outlined {\n ${variantVars}\n /* The square root must not paint behind the rounded frame: the clipped container\n is the ONE layer carrying the body (light colorBgContainer, dark\n colorFillQuaternary). Title / footer are siblings, so they paint it once too. */\n background: transparent;\n\n & > ${p}-container {\n background: ${surface(cssVar.colorBgContainer)};\n }\n\n & > ${p}-title, & > ${p}-footer {\n background: ${surface(cssVar.colorBgContainer)};\n }\n\n & > ${p}-title {\n border: ${border};\n border-block-end: 0;\n border-start-start-radius: ${cssVar.borderRadiusLG};\n border-start-end-radius: ${cssVar.borderRadiusLG};\n }\n\n /* The container draws the top and both side edges; the last row draws the bottom.\n No column dividers (grouped headers included): rows are split horizontally only. */\n & > ${p}-container {\n overflow: clip;\n\n border-block-start: ${border};\n border-inline: ${border};\n border-radius: ${cssVar.borderRadiusLG};\n\n /* Same lift as the dashboard Surface card (both modes). Outer shadow on the framed\n container is not clipped by its own overflow. */\n box-shadow: rgb(0 0 0 / 4%) 0 1px 2px 0;\n }\n\n & > ${p}-title + ${p}-container {\n border-start-start-radius: 0;\n border-start-end-radius: 0;\n }\n\n &:has(> ${p}-footer) > ${p}-container {\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n }\n\n & > ${p}-footer {\n border: ${border};\n border-block-start: 0;\n border-end-start-radius: ${cssVar.borderRadiusLG};\n border-end-end-radius: ${cssVar.borderRadiusLG};\n }\n\n /* Every header row (including the last) draws one bottom edge — no inset\n shadow underneath, or group headers look double-thick. */\n & > ${p}-container > * > table > thead > tr > th {\n border-block-end: ${border};\n\n /* Extra FillQuaternary layer on top of the container fill. */\n background: ${cellBg};\n box-shadow: inset 0 999px 0 ${cssVar.colorFillQuaternary};\n }\n\n /* Fixed cells: opaque canvas (--lobe-table-solid) + the container fill once. */\n & ${p}-tbody > tr > td${p}-cell-fix, & ${p}-tbody-virtual ${p}-cell${p}-cell-fix {\n background: ${solidWith(fill)};\n box-shadow: none;\n }\n\n /* Header: container fill + one Quaternary wash (box-shadow), like other th. */\n & ${p}-thead > tr > th${p}-cell-fix, & ${p}-thead > tr > td${p}-cell-fix {\n background: ${solidWith(fill)};\n box-shadow: inset 0 999px 0 ${cssVar.colorFillQuaternary};\n }\n }\n `,\n\n /* Mirrors Block \\`filled\\`: one colorFillTertiary (dark: colorFillQuaternary on the clipped\n container) surface straight on the parent and no frame border. */\n filled: css`\n &${p}-filled {\n ${variantVars}\n /* Filled owns its fill in both modes (Block filled = colorFillTertiary; dark uses the\n Quaternary surface) and its opaque base is the page behind it, not colorBgContainer. */\n --lobe-table-fill: var(--lobe-table-surface, ${cssVar.colorFillTertiary});\n --lobe-table-solid: var(\n --lobe-table-canvas,\n var(--lobe-surface-bg-solid, ${cssVar.colorBgLayout})\n );\n\n /* Root stays clear (square box, would bleed past the rounded corners); the clipped\n container is the ONE fill layer: light FillTertiary, dark colorFillQuaternary. */\n background: transparent;\n\n & > ${p}-title, & > ${p}-footer {\n border-radius: ${cssVar.borderRadiusLG};\n background: ${fill};\n }\n\n & > ${p}-title {\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n }\n\n & > ${p}-footer {\n border-start-start-radius: 0;\n border-start-end-radius: 0;\n }\n\n & > ${p}-container {\n overflow: clip;\n border-radius: ${cssVar.borderRadiusLG};\n background: ${fill};\n }\n\n & > ${p}-title + ${p}-container {\n border-start-start-radius: 0;\n border-start-end-radius: 0;\n }\n\n &:has(> ${p}-footer) > ${p}-container {\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n }\n\n /* Header band: one extra FillQuaternary wash over the container fill. */\n & ${p}-thead > tr > th,\n & ${p}-thead > tr > td {\n background: transparent;\n box-shadow:\n inset 0 -1px 0 ${borderColor},\n inset 0 999px 0 ${cssVar.colorFillQuaternary};\n }\n\n /* Row dividers stay on (base border rule); body is clear over the container fill. */\n & ${p}-tbody > tr > td,\n & ${p}-tbody > tr > th,\n & ${p}-tbody-virtual ${p}-cell {\n background: transparent;\n }\n\n /* Fixed cells must be opaque: canvas (--lobe-table-solid) + the same fill; header adds one wash. */\n & ${p}-thead > tr > th${p}-cell-fix, & ${p}-thead > tr > td${p}-cell-fix {\n background: ${solidWith(fill)};\n box-shadow:\n inset 0 -1px 0 ${borderColor},\n inset 0 999px 0 ${cssVar.colorFillQuaternary};\n }\n\n & ${p}-tbody > tr > td${p}-cell-fix {\n background: ${solidWith(fill)};\n box-shadow: none;\n }\n }\n `,\n /**\n * Borderless: everything but the header is see-through, so the table sits on whatever\n * surface hosts it. Hover / selected rows are translucent fills. Fixed (sticky) cells\n * stay opaque in colorBgContainer so scrolled content never shows underneath them.\n */\n borderless: css`\n && {\n background: transparent;\n }\n\n && ${p}-tbody > tr > td,\n && ${p}-tbody > tr > th,\n && ${p}-tbody-virtual ${p}-cell, && ${p}-summary, && ${p}-summary > tr > td,\n && ${p}-summary > tr > th,\n && > ${p}-footer {\n background: transparent;\n }\n\n && ${p}-tbody > tr > td${p}-cell-row-hover, && ${p}-tbody-virtual ${p}-row:hover > ${p}-cell {\n background: color-mix(in srgb, ${cssVar.colorText} 3%, transparent);\n }\n\n && ${p}-tbody > tr${p}-row-selected > td {\n background: color-mix(in srgb, ${cssVar.colorPrimary} 6%, transparent);\n\n &${p}-cell-row-hover {\n background: color-mix(in srgb, ${cssVar.colorPrimary} 10%, transparent);\n }\n }\n\n &&\n ${p}-tbody\n > tr\n > td${p}-cell-fix,\n &&\n ${p}-tbody\n > tr\n > th${p}-cell-fix,\n &&\n ${p}-tbody-virtual\n ${p}-cell${p}-cell-fix {\n background: ${cssVar.colorBgContainer};\n }\n\n && ${p}-tbody > tr > td${p}-cell-fix${p}-cell-row-hover {\n background: color-mix(in srgb, ${cssVar.colorBgContainer}, ${cssVar.colorText} 3%);\n }\n\n && ${p}-tbody > tr${p}-row-selected > td${p}-cell-fix {\n background: color-mix(in srgb, ${cssVar.colorBgContainer}, ${cssVar.colorPrimary} 6%);\n\n &${p}-cell-row-hover {\n background: color-mix(in srgb, ${cssVar.colorBgContainer}, ${cssVar.colorPrimary} 10%);\n }\n }\n `,\n /**\n * Grouped (multi-level) headers only: column dividers in header and body so the\n * group spans stay readable. Plain tables never get vertical dividers.\n */\n grouped: css`\n ${ownCells('th')}, ${ownCells('td')} {\n border-inline-end: ${border};\n }\n\n & ${p}-tbody-virtual ${p}-cell {\n border-inline-end: ${border};\n }\n\n /* Outlined: the container already draws the trailing edge. Other variants: the\n rightmost body cell and first header row cell stop at the table edge. */\n &:not(${p}-outlined) ${p}-tbody > tr > td:last-child,\n &:not(${p}-outlined) ${p}-thead > tr:first-child > th:last-child,\n &${p}-outlined ${p}-tbody > tr > td:last-child,\n &${p}-outlined ${p}-thead > tr:first-child > th:last-child {\n border-inline-end: 0;\n }\n `,\n clickable: css`\n cursor: pointer;\n `,\n /** Title text of an `ellipsis` column; truncates inside the sort button / header controls. */\n columnTitle: css`\n overflow: hidden;\n\n min-width: 0;\n\n text-overflow: ellipsis;\n word-break: keep-all;\n white-space: nowrap;\n `,\n filterActive: css`\n &&,\n &&:hover {\n color: ${cssVar.colorPrimary};\n }\n `,\n filterButton: css`\n flex: none;\n margin-block: -4px;\n `,\n filterButtons: css`\n display: flex;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n padding-block: 7px;\n padding-inline: 8px;\n border-block-start: 1px solid ${cssVar.colorSplit};\n `,\n filterCheckAll: css`\n margin-block-end: 4px;\n padding-inline: 4px;\n `,\n filterDropdown: css`\n display: flex;\n flex-direction: column;\n min-width: 120px;\n `,\n filterEmpty: css`\n padding-block: 16px;\n padding-inline: 0;\n `,\n filterGroup: css`\n display: flex;\n flex-direction: column;\n\n & > div:not(:first-child) {\n padding-inline-start: 20px;\n }\n `,\n filterGroupTitle: css`\n padding-block: 5px;\n padding-inline: 8px;\n font-size: 12px;\n color: ${cssVar.colorTextDescription};\n `,\n filterItem: css`\n display: flex;\n align-items: center;\n\n padding-block: 5px;\n padding-inline: 8px;\n border-radius: ${cssVar.borderRadiusSM};\n\n white-space: nowrap;\n\n &:hover {\n background: ${cssVar.colorFillTertiary};\n }\n\n & > label {\n cursor: pointer;\n flex: 1;\n }\n `,\n filterMenu: css`\n overflow: auto;\n display: flex;\n flex-direction: column;\n\n max-height: 264px;\n padding: 4px;\n `,\n filterPopup: css`\n overflow: hidden;\n padding: 0;\n `,\n filterSearch: css`\n padding: 8px;\n border-block-end: 1px solid ${cssVar.colorSplit};\n `,\n filterTree: css`\n overflow: auto;\n max-height: 264px;\n padding: 8px;\n `,\n headerInner: css`\n display: inline-flex;\n gap: 6px;\n align-items: center;\n\n min-width: 0;\n max-width: 100%;\n\n vertical-align: middle;\n `,\n hoverable: css`\n & ${p}-tbody > tr > ${p}-cell-row-hover, & ${p}-tbody-virtual ${p}-row:hover > ${p}-cell {\n background: color-mix(in srgb, ${cssVar.colorBgContainer}, ${cssVar.colorText} 3%);\n }\n `,\n loading: css`\n position: absolute;\n z-index: calc(var(--columns-count, 1) * 2 + ${Z_FIXED} + 2);\n inset: 0;\n\n display: flex;\n flex-direction: column;\n gap: 8px;\n align-items: center;\n justify-content: center;\n\n color: ${cssVar.colorTextSecondary};\n\n background: color-mix(in srgb, ${cssVar.colorBgContainer} 60%, transparent);\n `,\n /**\n * Empty-state loading body. Tracks follow leaf column widths so bars sit under the\n * live header; cell padding reuses the size CSS vars on the table ancestor.\n */\n skeleton: css`\n display: flex;\n flex-direction: column;\n\n width: 100%;\n min-width: 0;\n\n text-align: start;\n `,\n skeletonCell: css`\n display: flex;\n align-items: center;\n\n min-width: 0;\n padding-block: var(${PADDING_BLOCK});\n padding-inline: var(${PADDING_INLINE});\n `,\n skeletonRow: css`\n display: grid;\n align-items: stretch;\n\n width: 100%;\n min-width: 0;\n border-block-end: 1px solid ${borderColor};\n\n &:last-child {\n border-block-end: 0;\n }\n `,\n // antd `paginationMargin` (token.margin): keep the pager off the table above and off\n // whatever sits below the table.\n pagination: css`\n display: flex;\n margin-block: 16px;\n `,\n paginationCenter: css`\n justify-content: center;\n `,\n paginationEnd: css`\n justify-content: flex-end;\n `,\n paginationStart: css`\n justify-content: flex-start;\n `,\n paginationTop: css`\n margin-block: 0 16px;\n `,\n root: css`\n min-width: 0;\n `,\n /** Header box of the selection column; `selectionExtra` hangs off its end. */\n selection: css`\n position: relative;\n display: inline-flex;\n flex-direction: column;\n vertical-align: middle;\n `,\n selectionColumn: css`\n && {\n padding-inline: 8px;\n text-align: center;\n }\n\n & > * {\n vertical-align: middle;\n }\n `,\n selectionExtra: css`\n position: absolute;\n z-index: 1;\n inset-block-start: 0;\n\n display: flex;\n align-items: center;\n\n height: 100%;\n margin-inline-start: 100%;\n padding-inline-start: 2px;\n `,\n selectionRadioGroup: css`\n display: inline-flex;\n vertical-align: middle;\n `,\n selectionTrigger: css`\n flex: none;\n margin-block: -4px;\n `,\n sizeLarge: css`\n ${PADDING_BLOCK}: 16px;\n ${PADDING_INLINE}: 16px;\n `,\n sizeMedium: css`\n ${PADDING_BLOCK}: 12px;\n ${PADDING_INLINE}: 16px;\n `,\n sizeSmall: css`\n ${PADDING_BLOCK}: 8px;\n ${PADDING_INLINE}: 12px;\n `,\n // Title + sort ActionIcon row (not a button — the ActionIcon owns the click).\n sortButton: css`\n display: inline-flex;\n gap: 4px;\n align-items: center;\n\n min-width: 0;\n max-width: 100%;\n `,\n // Matches the filter trigger: small ActionIcon with a slight negative margin so the\n // 24px block does not grow the header.\n sortCaret: css`\n flex: none;\n margin-block: -4px;\n `,\n sortTitle: css`\n cursor: pointer;\n min-width: 0;\n `,\n sortedColumn: css`\n ${p}-tbody > tr > &${p}-cell {\n background: ${cssVar.colorFillQuaternary};\n }\n `,\n spinContainer: css`\n position: relative;\n `,\n table: css`\n /* Reset per root so nested / borderless tables never inherit a parent's variant vars. */\n --lobe-table-cell: ${cssVar.colorBgContainer};\n --lobe-table-fill: transparent;\n --lobe-table-solid: ${cssVar.colorBgContainer};\n\n font-size: 14px;\n color: ${cssVar.colorText};\n background: ${cssVar.colorBgContainer};\n\n & table {\n border-spacing: 0;\n border-collapse: separate;\n width: 100%;\n text-align: start;\n }\n\n /* ============================== Cell ============================== */\n & ${p}-cell, & ${p}-thead > tr > th,\n & ${p}-tbody > tr > td,\n & tfoot > tr > th,\n & tfoot > tr > td {\n position: relative;\n padding-block: var(${PADDING_BLOCK});\n padding-inline: var(${PADDING_INLINE});\n overflow-wrap: break-word;\n }\n\n & ${p}-thead > tr > th,\n & ${p}-thead > tr > td {\n font-size: 13px;\n font-weight: 500;\n color: ${cssVar.colorTextSecondary};\n text-align: start;\n\n /* Clear in dark (outlined) so the container fill shows; Quaternary is the extra header layer. */\n background: ${cellBg};\n box-shadow:\n inset 0 -1px 0 ${borderColor},\n inset 0 999px 0 ${cssVar.colorFillQuaternary};\n\n &[colspan]:not([colspan='1']) {\n text-align: center;\n }\n }\n\n /* th covers rowScope row headers. */\n & ${p}-tbody > tr > td,\n & ${p}-tbody > tr > th {\n border-block-end: ${border};\n\n font-weight: inherit;\n font-variant-numeric: tabular-nums;\n text-align: start;\n\n /* Clear in dark (outlined) so the container fill shows through. */\n background: ${cellBg};\n\n transition: background-color ${cssVar.motionDurationMid};\n }\n\n &:not(${p}-outlined) ${p}-tbody > tr:last-child > td,\n &:not(${p}-outlined) ${p}-tbody > tr:last-child > th {\n border-block-end: 0;\n }\n\n & ${p}-tbody > tr${p}-placeholder > td {\n padding-block: 32px;\n color: ${cssVar.colorTextDescription};\n text-align: center;\n }\n\n /* Skeleton loading fills the placeholder like real body rows. */\n & ${p}-tbody > tr${p}-placeholder > td:has([data-table-skeleton]) {\n padding: 0;\n color: inherit;\n text-align: start;\n vertical-align: top;\n }\n\n & ${p}-cell-scrollbar:not([rowspan]) {\n box-shadow: 0 1px 0 1px ${cssVar.colorFillQuaternary};\n }\n\n /* ============================ Ellipsis ============================ */\n & ${p}-cell-ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: keep-all;\n white-space: nowrap;\n\n &${p}-cell-fix-start-shadow, &${p}-cell-fix-end-shadow {\n overflow: visible;\n\n & ${p}-cell-content {\n overflow: hidden;\n display: block;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n }\n\n /* ========================== Title / Footer ========================= */\n & > ${p}-title, & > ${p}-footer {\n padding-block: var(${PADDING_BLOCK});\n padding-inline: var(${PADDING_INLINE});\n }\n\n & > ${p}-footer {\n color: ${cssVar.colorText};\n background: ${cssVar.colorFillQuaternary};\n }\n\n /* ============================== Fixed ============================= */\n & ${p}-container {\n position: relative;\n\n &::before,\n &::after {\n ${fixShadowBase}\n z-index: calc(var(--columns-count, 1) * 2 + ${Z_FIXED} + 1);\n }\n\n &::before {\n inset-inline-start: 0;\n }\n\n &::after {\n inset-inline-end: 0;\n }\n }\n\n &${p}-has-fix-start > ${p}-container::before, &${p}-has-fix-end > ${p}-container::after {\n display: none;\n }\n\n &${p}-fix-start-shadow-show > ${p}-container::before {\n ${startShadow}\n }\n\n &${p}-fix-end-shadow-show > ${p}-container::after {\n ${endShadow}\n }\n\n /* Must outrank the generic cell rule that sets position: relative. */\n &\n ${p}-thead\n > tr\n > th${p}-cell-fix,\n &\n ${p}-tbody\n > tr\n > td${p}-cell-fix,\n &\n ${p}-cell${p}-cell-fix {\n position: sticky;\n z-index: calc(var(--z-offset-reverse) + ${Z_FIXED});\n }\n\n & ${p}-cell-fix {\n background: ${cssVar.colorBgContainer};\n\n &::after {\n ${fixShadowBase}\n }\n }\n\n & ${p}-cell-fix-start::after {\n inset-inline-start: 100%;\n }\n\n & ${p}-cell-fix-end::after {\n inset-inline-end: 100%;\n }\n\n & ${p}-cell-fix-start-shadow-show::after {\n ${startShadow}\n }\n\n & ${p}-cell-fix-end-shadow-show::after {\n ${endShadow}\n }\n\n /* ============================= Sticky ============================= */\n & ${p}-sticky-holder {\n position: sticky;\n z-index: calc(var(--columns-count, 1) * 2 + ${Z_FIXED} + 1);\n background: ${solidWith(fill)};\n }\n\n & ${p}-sticky-scroll {\n position: sticky;\n z-index: calc(var(--columns-count, 1) * 2 + ${Z_FIXED} + 1);\n inset-block-end: 0;\n\n display: flex;\n align-items: center;\n\n height: 8px !important;\n border-block-start: ${border};\n\n opacity: 0.65;\n background: ${cssVar.colorFillQuaternary};\n\n &-bar {\n position: absolute;\n inset-block-end: 0;\n\n height: 8px;\n border-radius: 100px;\n\n background-color: ${cssVar.colorFill};\n\n transition:\n all ${cssVar.motionDurationSlow},\n transform 0s;\n\n &:hover,\n &-active {\n background-color: ${cssVar.colorFillSecondary};\n }\n }\n }\n\n /* ============================ Selection =========================== */\n & ${p}-selection-col {\n width: ${SELECTION_COLUMN_WIDTH}px;\n\n &${p}-selection-col-with-dropdown {\n width: ${SELECTION_COLUMN_WIDTH + SELECTION_DROPDOWN_WIDTH}px;\n }\n }\n\n &${p}-outlined ${p}-selection-col {\n width: ${SELECTION_COLUMN_WIDTH + 16}px;\n\n &${p}-selection-col-with-dropdown {\n width: ${SELECTION_COLUMN_WIDTH + SELECTION_DROPDOWN_WIDTH + 16}px;\n }\n }\n\n & ${p}-tbody > tr${p}-row-selected > td {\n background: color-mix(in srgb, ${cssVar.colorBgContainer}, ${cssVar.colorPrimary} 6%);\n\n &${p}-cell-row-hover {\n background: color-mix(in srgb, ${cssVar.colorBgContainer}, ${cssVar.colorPrimary} 10%);\n }\n }\n\n /* ========================= Expand / Tree ========================== */\n & ${p}-expand-icon-col {\n width: ${EXPAND_COLUMN_WIDTH}px;\n }\n\n & ${p}-row-expand-icon-cell {\n text-align: center;\n\n & ${p}-row-expand-icon {\n float: none;\n display: inline-flex;\n vertical-align: sub;\n }\n }\n\n & ${p}-row-indent {\n float: inline-start;\n height: 1px;\n }\n\n & ${p}-row-expand-icon {\n float: inline-start;\n flex: none;\n vertical-align: middle;\n\n &${p}-row-expand-icon-spaced {\n display: inline-block;\n width: 24px;\n height: 24px;\n visibility: hidden;\n }\n }\n\n & ${p}-row-indent + ${p}-row-expand-icon {\n margin-block: -1px;\n margin-inline-end: 8px;\n }\n\n & tr${p}-expanded-row > td,\n & tr${p}-expanded-row:hover > td {\n background: ${cssVar.colorFillQuaternary};\n }\n\n & ${p}-expanded-row-fixed {\n position: relative;\n\n margin-block: calc(var(${PADDING_BLOCK}) * -1);\n margin-inline: calc(var(${PADDING_INLINE}) * -1);\n padding-block: var(${PADDING_BLOCK});\n padding-inline: var(${PADDING_INLINE});\n }\n\n /* ========================== Nested table ========================== */\n\n /* A table alone in a cell fills it, starting after the expand column. */\n &\n ${p}-tbody\n > tr\n > td\n > ${p}-wrapper:only-child,\n &\n ${p}-tbody\n > tr\n > td\n > ${p}-expanded-row-fixed\n > ${p}-wrapper:only-child {\n & ${p} {\n margin-block: calc(var(${PADDING_BLOCK}) * -1);\n margin-inline: calc(${EXPAND_COLUMN_WIDTH}px - var(${PADDING_INLINE}))\n calc(var(${PADDING_INLINE}) * -1);\n }\n\n & ${p}-tbody > tr:last-child > td {\n border-block-end: 0;\n }\n\n /* The outer cell already draws the frame: keep only the start edge of a bordered nest. */\n & ${p}${p}-outlined {\n & > ${p}-title, & > ${p}-container, & > ${p}-footer {\n border-block: 0;\n border-inline-end: 0;\n border-radius: 0;\n box-shadow: none;\n }\n\n & > ${p}-title + ${p}-container {\n border-block-start: ${border};\n }\n\n &:has(> ${p}-footer) > ${p}-container {\n border-block-end: ${border};\n }\n }\n }\n\n &${p}-outlined ${p}-tbody > tr > td > ${p}-expanded-row-fixed {\n margin-inline: calc((var(${PADDING_INLINE}) + 1px) * -1);\n }\n\n /* ============================= Summary ============================ */\n & ${p}-summary {\n position: relative;\n z-index: ${Z_FIXED};\n\n /* Opaque: canvas + the variant fill once. */\n background: ${solidWith(fill)};\n\n & > tr > th,\n & > tr > td {\n border-block-end: ${border};\n }\n }\n\n & div${p}-summary {\n box-shadow: 0 -1px 0 ${borderColor};\n }\n\n /* A fixed summary under \\`sticky\\` is a sticky holder too; keep it sticky (antd orders sticky last). */\n & ${p}-summary${p}-sticky-holder {\n position: sticky;\n z-index: calc(var(--columns-count, 1) * 2 + ${Z_FIXED} + 1);\n }\n\n & tfoot > tr > th,\n & tfoot > tr > td {\n border-block-start: ${border};\n }\n\n /* ============================= Virtual ============================ */\n & ${p}-tbody-virtual {\n &\n ${p}-tbody-virtual-holder-inner\n > ${p}-row,\n &\n ${p}-tbody-virtual-holder-inner\n > div:not(${p}-row)\n > ${p}-row {\n display: flex;\n box-sizing: border-box;\n width: 100%;\n\n & > ${p}-cell {\n align-content: center;\n }\n }\n\n & ${p}-cell {\n border-block-end: ${border};\n background: ${cellBg};\n transition: background-color ${cssVar.motionDurationMid};\n }\n\n & ${p}-tbody-virtual-scrollbar {\n cursor: pointer;\n\n &:hover {\n background-color: ${cssVar.colorFillQuaternary};\n }\n }\n\n & ${p}-expanded-row ${p}-expanded-row-cell${p}-expanded-row-cell-fixed {\n position: sticky;\n inset-inline-start: 0;\n overflow: hidden;\n width: calc(var(--virtual-width) - 1px);\n }\n }\n `,\n };\n});\n"],"mappings":";;;AAGA,MAAa,aAAa;AAE1B,MAAM,IAAI,IAAI;AAId,MAAM,gBAAgB;AACtB,MAAM,iBAAiB;AAGvB,MAAM,UAAU;;AAUhB,MAAM,UAAU;CAAC;CAAW;CAAU;CAAQ;AAAS,CAAC,CACrD,KAAK,YAAY,OAAO,EAAE,eAAe,EAAE,GAAG,QAAQ,kBAAkB,CAAC,CACzE,KAAK,IAAI;AACZ,MAAM,YAAY,SAChB,QACG,MAAM,IAAI,CAAC,CACX,KAAK,QAAQ,GAAG,IAAI,KAAK,MAAM,CAAC,CAChC,KAAK,IAAI;AAEd,MAAa,SAAS,oBAAoB,EAAE,KAAK,aAAa;CAE5D,MAAM,cAAc,2BAA2B,OAAO,UAAU;CAChE,MAAM,SAAS,aAAa;CAE5B,MAAM,WAAW,UAAkB,6BAA6B,MAAM;CAGtE,MAAM,SAAS,0BAA0B,OAAO,iBAAiB;CAGjE,MAAM,OAAO;CAIb,MAAM,Q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AAY,EAAE,qBAAqB,EAAE;mCACb,eAAe;;;;UAIxC,EAAE;;mBAEO,QAAQ;;;sBAGL,UAAU,IAAI,EAAE;;;;8BAIR,OAAO;;;;aAIxB,EAAE;+BACgB,YAAY;;;;UAIjC,EAAE,UAAU,EAAE;;sDAE8B,QAAQ;;;;;8BAKhC,OAAO;;;;UAI3B,EAAE;;YAEA,EAAE;cACA,EAAE;;YAEJ,EAAE;sBACQ,EAAE;cACV,EAAE;;;;;gBAKA,EAAE;;;;;YAKN,EAAE;8BACgB,OAAO;wBACb,OAAO;yCACU,OAAO,kBAAkB;;;YAGtD,EAAE;;;;gCAIkB,OAAO,oBAAoB;;;;YAI/C,EAAE,gBAAgB,EAAE,oBAAoB,EAAE;;;;;;;;CAQpD;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"style.mjs","names":[],"sources":["../../../src/base-ui/Table/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\n\n/** Own prefix so rc-table classNames never collide with antd's global `.ant-table` CSS. */\nexport const PREFIX_CLS = 'lobe-table';\n\nconst p = `.${PREFIX_CLS}`;\n\n// Cell padding comes from the size class through these vars, so title / footer / expanded rows\n// can reuse (and negate) it.\nconst PADDING_BLOCK = '--lobe-table-padding-block';\nconst PADDING_INLINE = '--lobe-table-padding-inline';\n\n// Matches antd's `zIndexTableFixed`.\nconst Z_FIXED = 2;\n\n// antd `expandColumnWidth`; nested tables start after it.\nexport const EXPAND_COLUMN_WIDTH = 48;\n\n// antd `selectionColumnWidth`, plus the `selections` trigger when there is one.\nexport const SELECTION_COLUMN_WIDTH = 32;\nexport const SELECTION_DROPDOWN_WIDTH = 24;\n\n/** Rows of this table's own sections only, so the rules never leak into nested tables. */\nconst ownRows = ['content', 'header', 'body', 'summary']\n .map((section) => `& > ${p}-container > ${p}-${section} > table > * > tr`)\n .join(', ');\nconst ownCells = (cell: string) =>\n ownRows\n .split(', ')\n .map((row) => `${row} > ${cell}`)\n .join(', ');\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n // Light colorFill / dark colorFillSecondary (see --lobe-fill-border in ThemeProvider).\n const borderColor = `var(--lobe-fill-border, ${cssVar.colorFill})`;\n const border = `1px solid ${borderColor}`;\n // Dark: colorFillQuaternary on the clipped container; unset in light so variants keep their fills.\n const surface = (light: string) => `var(--lobe-table-surface, ${light})`;\n // Cell background. Every table root resets it to colorBgContainer (so nested / borderless\n // tables never inherit it); outlined / filled switch it to transparent in dark.\n const cellBg = `var(--lobe-table-cell, ${cssVar.colorBgContainer})`;\n // The variant fill that opaque composites (fixed cells, sticky holder, summary) repeat\n // once. Reset to transparent per root; outlined / filled set it to the dark surface.\n const fill = 'var(--lobe-table-fill, transparent)';\n // Row states: translucent fills on the cell only (never on tr), same for every variant,\n // normal / fixed cells and the virtual body.\n const hoverBg = cssVar.colorFillTertiary;\n const selectedBg = `color-mix(in srgb, ${cssVar.colorPrimary} 6%, transparent)`;\n const selectedHoverBg = `color-mix(in srgb, ${cssVar.colorPrimary} 10%, transparent)`;\n // Fixed cells are see-through. Their frosted backdrop is not painted per cell (each box\n // would blur on its own and show seams at every row): FixedFrost portals one sticky pane\n // per fixed side into each scroll host (frostRail / frostStart / frostEnd below). The\n // sticky header is a single element and blurs itself.\n const frost = `\n -webkit-backdrop-filter: blur(16px);\n backdrop-filter: blur(16px);\n `;\n const variantVars = `\n --lobe-table-cell: var(--lobe-table-cell-bg, ${cssVar.colorBgContainer});\n --lobe-table-fill: var(--lobe-table-surface, transparent);\n `;\n const fixShadowBase = `\n pointer-events: none;\n content: '';\n position: absolute;\n inset-block: 0 -1px;\n width: 30px;\n transition: box-shadow ${cssVar.motionDurationSlow};\n `;\n const startShadow = `box-shadow: inset 10px 0 8px -8px ${cssVar.colorSplit};`;\n const endShadow = `box-shadow: inset -10px 0 8px -8px ${cssVar.colorSplit};`;\n\n return {\n outlined: css`\n &${p}-outlined {\n ${variantVars}\n /* The square root must not paint behind the rounded frame: the clipped container\n is the ONE layer carrying the body (light colorBgContainer, dark\n colorFillQuaternary). Title / footer are siblings, so they paint it once too. */\n background: transparent;\n\n & > ${p}-container {\n background: ${surface(cssVar.colorBgContainer)};\n }\n\n & > ${p}-title, & > ${p}-footer {\n background: ${surface(cssVar.colorBgContainer)};\n }\n\n & > ${p}-title {\n border: ${border};\n border-block-end: 0;\n border-start-start-radius: ${cssVar.borderRadiusLG};\n border-start-end-radius: ${cssVar.borderRadiusLG};\n }\n\n /* The container draws the full frame (incl. bottom). Last-row borders used to stand\n in for the bottom edge, but with scroll.y / virtual the last row sits inside the\n body viewport - overflow:clip + radius then eats that line at the rounded corners.\n No column dividers (grouped headers included): rows are split horizontally only. */\n & > ${p}-container {\n overflow: clip;\n border: ${border};\n border-radius: ${cssVar.borderRadiusLG};\n\n /* Same lift as the dashboard Surface card (both modes). Outer shadow on the framed\n container is not clipped by its own overflow. */\n box-shadow: rgb(0 0 0 / 4%) 0 1px 2px 0;\n }\n\n & > ${p}-title + ${p}-container {\n border-start-start-radius: 0;\n border-start-end-radius: 0;\n }\n\n &:has(> ${p}-footer) > ${p}-container {\n border-block-end: 0;\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n }\n\n & > ${p}-footer {\n border: ${border};\n border-block-start: 0;\n border-end-start-radius: ${cssVar.borderRadiusLG};\n border-end-end-radius: ${cssVar.borderRadiusLG};\n }\n\n /* Every header row (including the last) draws one bottom edge — no inset\n shadow underneath, or group headers look double-thick. */\n & > ${p}-container > * > table > thead > tr > th {\n border-block-end: ${border};\n\n /* Extra FillQuaternary layer on top of the container fill. */\n background: ${cellBg};\n box-shadow: inset 0 999px 0 ${cssVar.colorFillQuaternary};\n }\n\n /* Fixed cells: see-through (container fill shows) + backdrop blur only. */\n & ${p}-tbody > tr > td${p}-cell-fix, & ${p}-tbody-virtual ${p}-cell${p}-cell-fix {\n background: transparent;\n box-shadow: none;\n }\n\n /* Header: container fill + one Quaternary wash (box-shadow), like other th. */\n & ${p}-thead > tr > th${p}-cell-fix, & ${p}-thead > tr > td${p}-cell-fix {\n background: transparent;\n box-shadow: inset 0 999px 0 ${cssVar.colorFillQuaternary};\n }\n }\n `,\n\n /* Mirrors Block \\`filled\\`: one colorFillTertiary (dark: colorFillQuaternary on the clipped\n container) surface straight on the parent and no frame border. */\n /* FixedFrost rail: absolute over the table (or the virtual row layer), z-index 1 puts it\n above scrolling cells (z auto) and under fixed cells (z >= 2). */\n frostRail: css`\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset-block-start: 0;\n inset-inline-start: 0;\n\n display: flex;\n `,\n frostStart: css`\n position: sticky;\n inset-inline-start: 0;\n flex: none;\n height: 100%;\n ${frost}\n `,\n frostEnd: css`\n position: sticky;\n inset-inline-end: 0;\n\n flex: none;\n\n height: 100%;\n margin-inline-start: auto;\n ${frost}\n `,\n filled: css`\n &${p}-filled {\n ${variantVars}\n /* Filled owns its fill in both modes (Block filled = colorFillTertiary; dark uses the\n Quaternary surface) and its opaque base is the page behind it, not colorBgContainer. */\n --lobe-table-fill: var(--lobe-table-surface, ${cssVar.colorFillTertiary});\n\n /* Root stays clear (square box, would bleed past the rounded corners); the clipped\n container is the ONE fill layer: light FillTertiary, dark colorFillQuaternary. */\n background: transparent;\n\n & > ${p}-title, & > ${p}-footer {\n border-radius: ${cssVar.borderRadiusLG};\n background: ${fill};\n }\n\n & > ${p}-title {\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n }\n\n & > ${p}-footer {\n border-start-start-radius: 0;\n border-start-end-radius: 0;\n }\n\n & > ${p}-container {\n overflow: clip;\n border-radius: ${cssVar.borderRadiusLG};\n background: ${fill};\n }\n\n & > ${p}-title + ${p}-container {\n border-start-start-radius: 0;\n border-start-end-radius: 0;\n }\n\n &:has(> ${p}-footer) > ${p}-container {\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n }\n\n /* Header band: one extra FillQuaternary wash over the container fill. */\n & ${p}-thead > tr > th,\n & ${p}-thead > tr > td {\n background: transparent;\n box-shadow:\n inset 0 -1px 0 ${borderColor},\n inset 0 999px 0 ${cssVar.colorFillQuaternary};\n }\n\n /* Row dividers stay on (base border rule); body is clear over the container fill. */\n & ${p}-tbody > tr > td,\n & ${p}-tbody > tr > th,\n & ${p}-tbody-virtual ${p}-cell {\n background: transparent;\n }\n\n /* Fixed cells: see-through + blur; header keeps the same divider + wash as every th. */\n & ${p}-thead > tr > th${p}-cell-fix, & ${p}-thead > tr > td${p}-cell-fix {\n background: transparent;\n box-shadow:\n inset 0 -1px 0 ${borderColor},\n inset 0 999px 0 ${cssVar.colorFillQuaternary};\n }\n\n & ${p}-tbody > tr > td${p}-cell-fix {\n background: transparent;\n box-shadow: none;\n }\n }\n `,\n /**\n * Borderless: everything but the header is see-through, so the table sits on whatever\n * surface hosts it. Hover / selected rows are translucent fills. Fixed (sticky) cells\n * are see-through with a frosted backdrop so scrolled content stays obscured.\n */\n borderless: css`\n && {\n background: transparent;\n }\n\n && ${p}-tbody > tr > td,\n && ${p}-tbody > tr > th,\n && ${p}-tbody-virtual ${p}-cell, && ${p}-summary, && ${p}-summary > tr > td,\n && ${p}-summary > tr > th,\n && > ${p}-footer {\n background: transparent;\n }\n\n && ${p}-tbody > tr > td${p}-cell-row-hover, && ${p}-tbody-virtual ${p}-row:hover > ${p}-cell {\n background: ${hoverBg};\n }\n\n && ${p}-tbody > tr${p}-row-selected > td {\n background: ${selectedBg};\n\n &${p}-cell-row-hover {\n background: ${selectedHoverBg};\n }\n }\n\n &&\n ${p}-tbody\n > tr\n > td${p}-cell-fix,\n &&\n ${p}-tbody\n > tr\n > th${p}-cell-fix,\n &&\n ${p}-tbody-virtual\n ${p}-cell${p}-cell-fix {\n background: transparent;\n }\n\n && ${p}-tbody > tr > td${p}-cell-fix${p}-cell-row-hover {\n background: ${hoverBg};\n }\n\n && ${p}-tbody > tr${p}-row-selected > td${p}-cell-fix {\n background: ${selectedBg};\n\n &${p}-cell-row-hover {\n background: ${selectedHoverBg};\n }\n }\n `,\n /**\n * Grouped (multi-level) headers only: column dividers in header and body so the\n * group spans stay readable. Plain tables never get vertical dividers.\n */\n grouped: css`\n ${ownCells('th')}, ${ownCells('td')} {\n border-inline-end: ${border};\n }\n\n & ${p}-tbody-virtual ${p}-cell {\n border-inline-end: ${border};\n }\n\n /* Outlined: the container already draws the trailing edge. Other variants: the\n rightmost body cell and first header row cell stop at the table edge. */\n &:not(${p}-outlined) ${p}-tbody > tr > td:last-child,\n &:not(${p}-outlined) ${p}-thead > tr:first-child > th:last-child,\n &${p}-outlined ${p}-tbody > tr > td:last-child,\n &${p}-outlined ${p}-thead > tr:first-child > th:last-child {\n border-inline-end: 0;\n }\n `,\n clickable: css`\n cursor: pointer;\n `,\n /** Title text of an `ellipsis` column; truncates inside the sort button / header controls. */\n columnTitle: css`\n overflow: hidden;\n\n min-width: 0;\n\n text-overflow: ellipsis;\n word-break: keep-all;\n white-space: nowrap;\n `,\n filterActive: css`\n &&,\n &&:hover {\n color: ${cssVar.colorPrimary};\n }\n `,\n filterButton: css`\n flex: none;\n margin-block: -4px;\n `,\n filterButtons: css`\n display: flex;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n padding-block: 7px;\n padding-inline: 8px;\n border-block-start: 1px solid ${cssVar.colorSplit};\n `,\n filterCheckAll: css`\n margin-block-end: 4px;\n padding-inline: 4px;\n `,\n filterDropdown: css`\n display: flex;\n flex-direction: column;\n min-width: 120px;\n `,\n filterEmpty: css`\n padding-block: 16px;\n padding-inline: 0;\n `,\n filterGroup: css`\n display: flex;\n flex-direction: column;\n\n & > div:not(:first-child) {\n padding-inline-start: 20px;\n }\n `,\n filterGroupTitle: css`\n padding-block: 5px;\n padding-inline: 8px;\n font-size: 12px;\n color: ${cssVar.colorTextDescription};\n `,\n filterItem: css`\n display: flex;\n align-items: center;\n\n padding-block: 5px;\n padding-inline: 8px;\n border-radius: ${cssVar.borderRadiusSM};\n\n white-space: nowrap;\n\n &:hover {\n background: ${cssVar.colorFillTertiary};\n }\n\n & > label {\n cursor: pointer;\n flex: 1;\n }\n `,\n filterMenu: css`\n overflow: auto;\n display: flex;\n flex-direction: column;\n\n max-height: 264px;\n padding: 4px;\n `,\n filterPopup: css`\n overflow: hidden;\n padding: 0;\n `,\n filterSearch: css`\n padding: 8px;\n border-block-end: 1px solid ${cssVar.colorSplit};\n `,\n filterTree: css`\n overflow: auto;\n max-height: 264px;\n padding: 8px;\n `,\n headerInner: css`\n display: inline-flex;\n gap: 6px;\n align-items: center;\n\n min-width: 0;\n max-width: 100%;\n\n vertical-align: middle;\n `,\n hoverable: css`\n /* &&& outranks the variant cell rules (filled clear cells, transparent fixed cells). */\n &&& ${p}-tbody > tr > ${p}-cell-row-hover, &&& ${p}-tbody-virtual ${p}-row:hover > ${p}-cell {\n background: ${hoverBg};\n }\n `,\n loading: css`\n position: absolute;\n z-index: calc(var(--columns-count, 1) * 2 + ${Z_FIXED} + 2);\n inset: 0;\n\n display: flex;\n flex-direction: column;\n gap: 8px;\n align-items: center;\n justify-content: center;\n\n color: ${cssVar.colorTextSecondary};\n\n background: color-mix(in srgb, ${cssVar.colorBgContainer} 60%, transparent);\n `,\n /**\n * Empty-state loading body. Tracks follow leaf column widths so bars sit under the\n * live header; cell padding reuses the size CSS vars on the table ancestor.\n */\n skeleton: css`\n display: flex;\n flex-direction: column;\n\n width: 100%;\n min-width: 0;\n\n text-align: start;\n `,\n skeletonCell: css`\n display: flex;\n align-items: center;\n\n min-width: 0;\n padding-block: var(${PADDING_BLOCK});\n padding-inline: var(${PADDING_INLINE});\n `,\n skeletonRow: css`\n display: grid;\n align-items: stretch;\n\n width: 100%;\n min-width: 0;\n border-block-end: 1px solid ${borderColor};\n\n &:last-child {\n border-block-end: 0;\n }\n `,\n // antd `paginationMargin` (token.margin): keep the pager off the table above and off\n // whatever sits below the table.\n pagination: css`\n display: flex;\n margin-block: 16px;\n `,\n paginationCenter: css`\n justify-content: center;\n `,\n paginationEnd: css`\n justify-content: flex-end;\n `,\n paginationStart: css`\n justify-content: flex-start;\n `,\n paginationTop: css`\n margin-block: 0 16px;\n `,\n root: css`\n min-width: 0;\n `,\n /** Header box of the selection column; `selectionExtra` hangs off its end. */\n selection: css`\n position: relative;\n display: inline-flex;\n flex-direction: column;\n vertical-align: middle;\n `,\n selectionColumn: css`\n && {\n padding-inline: 8px;\n text-align: center;\n }\n\n & > * {\n vertical-align: middle;\n }\n `,\n selectionExtra: css`\n position: absolute;\n z-index: 1;\n inset-block-start: 0;\n\n display: flex;\n align-items: center;\n\n height: 100%;\n margin-inline-start: 100%;\n padding-inline-start: 2px;\n `,\n selectionRadioGroup: css`\n display: inline-flex;\n vertical-align: middle;\n `,\n selectionTrigger: css`\n flex: none;\n margin-block: -4px;\n `,\n sizeLarge: css`\n ${PADDING_BLOCK}: 16px;\n ${PADDING_INLINE}: 16px;\n\n /* Same as VIRTUAL_ROW_HEIGHT in Table.tsx (padding * 2 + 22px line + 1px divider). */\n --lobe-table-virtual-row-height: calc(16px * 2 + 23px);\n `,\n sizeMedium: css`\n ${PADDING_BLOCK}: 12px;\n ${PADDING_INLINE}: 16px;\n\n /* Same as VIRTUAL_ROW_HEIGHT in Table.tsx (padding * 2 + 22px line + 1px divider). */\n --lobe-table-virtual-row-height: calc(12px * 2 + 23px);\n `,\n sizeSmall: css`\n ${PADDING_BLOCK}: 8px;\n ${PADDING_INLINE}: 12px;\n\n /* Same as VIRTUAL_ROW_HEIGHT in Table.tsx (padding * 2 + 22px line + 1px divider). */\n --lobe-table-virtual-row-height: calc(8px * 2 + 23px);\n `,\n // Title + sort ActionIcon row (not a button — the ActionIcon owns the click).\n sortButton: css`\n display: inline-flex;\n gap: 4px;\n align-items: center;\n\n min-width: 0;\n max-width: 100%;\n `,\n // Matches the filter trigger: small ActionIcon with a slight negative margin so the\n // 24px block does not grow the header.\n sortCaret: css`\n flex: none;\n margin-block: -4px;\n `,\n sortTitle: css`\n cursor: pointer;\n min-width: 0;\n `,\n sortedColumn: css`\n ${p}-tbody > tr > &${p}-cell {\n background: ${cssVar.colorFillQuaternary};\n }\n `,\n spinContainer: css`\n position: relative;\n `,\n table: css`\n /* Reset per root so nested / borderless tables never inherit a parent's variant vars. */\n --lobe-table-cell: ${cssVar.colorBgContainer};\n --lobe-table-fill: transparent;\n\n font-size: 14px;\n color: ${cssVar.colorText};\n background: ${cssVar.colorBgContainer};\n\n & table {\n border-spacing: 0;\n border-collapse: separate;\n width: 100%;\n text-align: start;\n }\n\n /* ============================== Cell ============================== */\n & ${p}-cell, & ${p}-thead > tr > th,\n & ${p}-tbody > tr > td,\n & tfoot > tr > th,\n & tfoot > tr > td {\n position: relative;\n\n padding-block: var(${PADDING_BLOCK});\n padding-inline: var(${PADDING_INLINE});\n\n overflow-wrap: break-word;\n\n /* The global \\`* { vertical-align: baseline }\\` reset drops the UA's middle for cells. */\n vertical-align: middle;\n }\n\n /* Row-merged body cells (rowSpan > 1, table and virtual body alike) get vertical\n dividers so the block reads apart from the neighbour rows' lines. Drawn on ::before\n (::after is the fixed-column scroll shadow) so cell box-shadows stay untouched. The\n first / last column skip the edge the frame or table edge already provides. */\n & ${p}-tbody > tr > td[rowspan]:not([rowspan='0'], [rowspan='1'])::before,\n & ${p}-tbody-virtual ${p}-cell[rowspan]:not([rowspan='0'], [rowspan='1'])::before {\n pointer-events: none;\n content: '';\n\n position: absolute;\n inset: 0;\n\n border-inline: ${border};\n }\n\n & ${p}-tbody > tr > td[rowspan]:first-child::before,\n & ${p}-tbody-virtual ${p}-cell[rowspan]:first-child::before {\n border-inline-start: 0;\n }\n\n & ${p}-tbody > tr > td[rowspan]:last-child::before,\n & ${p}-tbody-virtual ${p}-cell[rowspan]:last-child::before {\n border-inline-end: 0;\n }\n\n & ${p}-thead > tr > th,\n & ${p}-thead > tr > td {\n font-size: 13px;\n font-weight: 500;\n color: ${cssVar.colorTextSecondary};\n text-align: start;\n\n /* Clear in dark (outlined) so the container fill shows; Quaternary is the extra header layer. */\n background: ${cellBg};\n box-shadow:\n inset 0 -1px 0 ${borderColor},\n inset 0 999px 0 ${cssVar.colorFillQuaternary};\n\n &[colspan]:not([colspan='1']) {\n text-align: center;\n }\n }\n\n /* th covers rowScope row headers. */\n & ${p}-tbody > tr > td,\n & ${p}-tbody > tr > th {\n border-block-end: ${border};\n\n font-weight: inherit;\n font-variant-numeric: tabular-nums;\n text-align: start;\n\n /* Clear in dark (outlined) so the container fill shows through. */\n background: ${cellBg};\n\n transition: background-color ${cssVar.motionDurationMid};\n }\n\n /* Filled / outlined drop the last body divider: filled because its fill is the edge,\n outlined because the container now draws the frame bottom (avoids a double line, and\n keeps the outline when scroll.y / virtual would otherwise scroll the last-row edge\n away). Borderless keeps it as the closing rule under the rows. */\n &${p}-filled ${p}-tbody > tr:last-child > td,\n &${p}-filled ${p}-tbody > tr:last-child > th,\n &${p}-outlined ${p}-tbody > tr:last-child > td,\n &${p}-outlined ${p}-tbody > tr:last-child > th {\n border-block-end: 0;\n }\n\n /* Borderless with a summary: tfoot draws its own top rule, so skip the last-row one. */\n &${p}-borderless table:has(> tfoot) > ${p}-tbody > tr:last-child > td,\n &${p}-borderless table:has(> tfoot) > ${p}-tbody > tr:last-child > th {\n border-block-end: 0;\n }\n\n & ${p}-tbody > tr${p}-placeholder > td {\n padding-block: 32px;\n color: ${cssVar.colorTextDescription};\n text-align: center;\n }\n\n /* Skeleton loading fills the placeholder like real body rows. */\n & ${p}-tbody > tr${p}-placeholder > td:has([data-table-skeleton]) {\n padding: 0;\n color: inherit;\n text-align: start;\n vertical-align: top;\n }\n\n & ${p}-cell-scrollbar:not([rowspan]) {\n box-shadow: 0 1px 0 1px ${cssVar.colorFillQuaternary};\n }\n\n /* ============================ Ellipsis ============================ */\n & ${p}-cell-ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: keep-all;\n white-space: nowrap;\n\n &${p}-cell-fix-start-shadow, &${p}-cell-fix-end-shadow {\n overflow: visible;\n\n & ${p}-cell-content {\n overflow: hidden;\n display: block;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n }\n\n /* ========================== Title / Footer ========================= */\n & > ${p}-title, & > ${p}-footer {\n padding-block: var(${PADDING_BLOCK});\n padding-inline: var(${PADDING_INLINE});\n }\n\n & > ${p}-footer {\n color: ${cssVar.colorText};\n background: ${cssVar.colorFillQuaternary};\n }\n\n /* ============================== Fixed ============================= */\n & ${p}-container {\n position: relative;\n\n &::before,\n &::after {\n ${fixShadowBase}\n z-index: calc(var(--columns-count, 1) * 2 + ${Z_FIXED} + 1);\n }\n\n &::before {\n inset-inline-start: 0;\n }\n\n &::after {\n inset-inline-end: 0;\n }\n }\n\n &${p}-has-fix-start > ${p}-container::before, &${p}-has-fix-end > ${p}-container::after {\n display: none;\n }\n\n &${p}-fix-start-shadow-show > ${p}-container::before {\n ${startShadow}\n }\n\n &${p}-fix-end-shadow-show > ${p}-container::after {\n ${endShadow}\n }\n\n /* Must outrank the generic cell rule that sets position: relative. */\n &\n ${p}-thead\n > tr\n > th${p}-cell-fix,\n &\n ${p}-tbody\n > tr\n > td${p}-cell-fix,\n &\n ${p}-cell${p}-cell-fix {\n position: sticky;\n z-index: calc(var(--z-offset-reverse) + ${Z_FIXED});\n }\n\n & ${p}-cell-fix {\n background: transparent;\n\n &::after {\n ${fixShadowBase}\n }\n }\n\n & ${p}-cell-fix-start::after {\n inset-inline-start: 100%;\n }\n\n & ${p}-cell-fix-end::after {\n inset-inline-end: 100%;\n }\n\n & ${p}-cell-fix-start-shadow-show::after {\n ${startShadow}\n }\n\n & ${p}-cell-fix-end-shadow-show::after {\n ${endShadow}\n }\n\n /* ============================= Sticky ============================= */\n & ${p}-sticky-holder {\n position: sticky;\n z-index: calc(var(--columns-count, 1) * 2 + ${Z_FIXED} + 1);\n background: transparent;\n\n /* The whole sticky header is one element, so it blurs as one continuous block. */\n ${frost}\n }\n\n & ${p}-sticky-scroll {\n position: sticky;\n z-index: calc(var(--columns-count, 1) * 2 + ${Z_FIXED} + 1);\n inset-block-end: 0;\n }\n\n /* ============================ Selection =========================== */\n & ${p}-selection-col {\n width: ${SELECTION_COLUMN_WIDTH}px;\n\n &${p}-selection-col-with-dropdown {\n width: ${SELECTION_COLUMN_WIDTH + SELECTION_DROPDOWN_WIDTH}px;\n }\n }\n\n &${p}-outlined ${p}-selection-col {\n width: ${SELECTION_COLUMN_WIDTH + 16}px;\n\n &${p}-selection-col-with-dropdown {\n width: ${SELECTION_COLUMN_WIDTH + SELECTION_DROPDOWN_WIDTH + 16}px;\n }\n }\n\n /* The table css carries no hoverable class, so use a fourth & to outrank hover too. */\n &&&& ${p}-tbody > tr${p}-row-selected > td {\n background: ${selectedBg};\n\n &${p}-cell-row-hover {\n background: ${selectedHoverBg};\n }\n }\n\n /* ========================= Expand / Tree ========================== */\n & ${p}-expand-icon-col {\n width: ${EXPAND_COLUMN_WIDTH}px;\n }\n\n & ${p}-row-expand-icon-cell {\n text-align: center;\n\n & ${p}-row-expand-icon {\n float: none;\n display: inline-flex;\n vertical-align: sub;\n }\n }\n\n & ${p}-row-indent {\n float: inline-start;\n height: 1px;\n }\n\n & ${p}-row-expand-icon {\n float: inline-start;\n flex: none;\n vertical-align: middle;\n\n &${p}-row-expand-icon-spaced {\n display: inline-block;\n width: 24px;\n height: 24px;\n visibility: hidden;\n }\n }\n\n & ${p}-row-indent + ${p}-row-expand-icon {\n margin-block: -1px;\n margin-inline-end: 8px;\n }\n\n & tr${p}-expanded-row > td,\n & tr${p}-expanded-row:hover > td {\n background: ${cssVar.colorFillQuaternary};\n }\n\n & ${p}-expanded-row-fixed {\n position: relative;\n\n margin-block: calc(var(${PADDING_BLOCK}) * -1);\n margin-inline: calc(var(${PADDING_INLINE}) * -1);\n padding-block: var(${PADDING_BLOCK});\n padding-inline: var(${PADDING_INLINE});\n }\n\n /* ========================== Nested table ========================== */\n\n /* A table alone in a cell fills it, starting after the expand column. */\n &\n ${p}-tbody\n > tr\n > td\n > ${p}-wrapper:only-child,\n &\n ${p}-tbody\n > tr\n > td\n > ${p}-expanded-row-fixed\n > ${p}-wrapper:only-child {\n & ${p} {\n margin-block: calc(var(${PADDING_BLOCK}) * -1);\n margin-inline: calc(${EXPAND_COLUMN_WIDTH}px - var(${PADDING_INLINE}))\n calc(var(${PADDING_INLINE}) * -1);\n }\n\n & ${p}-tbody > tr:last-child > td {\n border-block-end: 0;\n }\n\n /* The outer cell already draws the frame: keep only the start edge of a bordered nest. */\n & ${p}${p}-outlined {\n & > ${p}-title, & > ${p}-container, & > ${p}-footer {\n border-block: 0;\n border-inline-end: 0;\n border-radius: 0;\n box-shadow: none;\n }\n\n & > ${p}-title + ${p}-container {\n border-block-start: ${border};\n }\n\n &:has(> ${p}-footer) > ${p}-container {\n border-block-end: ${border};\n }\n }\n }\n\n &${p}-outlined ${p}-tbody > tr > td > ${p}-expanded-row-fixed {\n margin-inline: calc((var(${PADDING_INLINE}) + 1px) * -1);\n }\n\n /* ============================= Summary ============================ */\n & ${p}-summary {\n position: relative;\n z-index: ${Z_FIXED};\n\n /* See-through; a sticky summary is a sticky holder and gets its frost there. */\n background: transparent;\n\n & > tr > th,\n & > tr > td {\n border-block-end: ${border};\n }\n }\n\n & div${p}-summary {\n box-shadow: 0 -1px 0 ${borderColor};\n }\n\n /* A fixed summary under \\`sticky\\` is a sticky holder too; keep it sticky (antd orders sticky last). */\n & ${p}-summary${p}-sticky-holder {\n position: sticky;\n z-index: calc(var(--columns-count, 1) * 2 + ${Z_FIXED} + 1);\n }\n\n & tfoot > tr > th,\n & tfoot > tr > td {\n border-block-start: ${border};\n }\n\n /* ============================= Virtual ============================ */\n & ${p}-tbody-virtual {\n &\n ${p}-tbody-virtual-holder-inner\n > ${p}-row,\n &\n ${p}-tbody-virtual-holder-inner\n > div:not(${p}-row)\n > ${p}-row {\n display: flex;\n box-sizing: border-box;\n width: 100%;\n\n /* Virtual rows are locked to the listItemHeight estimate (an integer). Measured\n heights then equal the estimate, so a rowSpan cell (height = summed row sizes)\n ends exactly on the neighbour rows' divider instead of drifting by sub-pixel\n rounding or unmeasured-row estimates. */\n &:not(${p}-row-extra, ${p}-expanded-row) {\n height: var(--lobe-table-virtual-row-height);\n }\n\n & > ${p}-cell {\n align-content: center;\n }\n }\n\n & ${p}-cell {\n border-block-end: ${border};\n background: ${cellBg};\n transition: background-color ${cssVar.motionDurationMid};\n }\n\n & ${p}-expanded-row ${p}-expanded-row-cell${p}-expanded-row-cell-fixed {\n position: sticky;\n inset-inline-start: 0;\n overflow: hidden;\n width: calc(var(--virtual-width) - 1px);\n }\n }\n `,\n };\n});\n"],"mappings":";;;AAGA,MAAa,aAAa;AAE1B,MAAM,IAAI,IAAI;AAId,MAAM,gBAAgB;AACtB,MAAM,iBAAiB;AAGvB,MAAM,UAAU;;AAUhB,MAAM,UAAU;CAAC;CAAW;CAAU;CAAQ;AAAS,CAAC,CACrD,KAAK,YAAY,OAAO,EAAE,eAAe,EAAE,GAAG,QAAQ,kBAAkB,CAAC,CACzE,KAAK,IAAI;AACZ,MAAM,YAAY,SAChB,QACG,MAAM,IAAI,CAAC,CACX,KAAK,QAAQ,GAAG,IAAI,KAAK,MAAM,CAAC,CAChC,KAAK,IAAI;AAEd,MAAa,SAAS,oBAAoB,EAAE,KAAK,aAAa;CAE5D,MAAM,cAAc,2BAA2B,OAAO,UAAU;CAChE,MAAM,SAAS,aAAa;CAE5B,MAAM,WAAW,UAAkB,6BAA6B,MAAM;CAGtE,MAAM,SAAS,0BAA0B,OAAO,iBAAiB;CAGjE,MAAM,OAAO;CAGb,MAAM,UAAU,OAAO;CACvB,MAAM,aAAa,sBAAsB,OAAO,aAAa;CAC7D,MAAM,kBAAkB,sBAAsB,OAAO,aAAa;CAKlE,MAAM,QAAQ;;;;CAId,MAAM,cAAc;mDAC6B,OAAO,iBAAiB;;;CAGzE,MAAM,gBAAgB;;;;;;6BAMK,OAAO,mBAAmB;;CAErD,MAAM,cAAc,qCAAqC,OAAO,WAAW;CAC3E,MAAM,YAAY,sCAAsC,OAAO,WAAW;CAE1E,OAAO;EACL,UAAU,GAAG;SACR,EAAE;UACD,YAAY;;;;;;cAMR,EAAE;wBACQ,QAA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
|
|
43
43
|
shiny?: boolean | null | undefined;
|
|
44
44
|
strong?: boolean | null | undefined;
|
|
45
|
-
type?: "
|
|
45
|
+
type?: "danger" | "warning" | "success" | "info" | "secondary" | null | undefined;
|
|
46
46
|
underline?: boolean | null | undefined;
|
|
47
47
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
48
48
|
//#endregion
|
|
@@ -4,10 +4,9 @@ import Skeleton from "../../base-ui/Skeleton/index.mjs";
|
|
|
4
4
|
import Text from "../../base-ui/Text/Text.mjs";
|
|
5
5
|
import { styles } from "./style.mjs";
|
|
6
6
|
import AuthLayoutAside from "./Aside.mjs";
|
|
7
|
-
import { useSurfaceCardClassName } from "../Surface/link.mjs";
|
|
8
7
|
import { isValidElement } from "react";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { cx } from "antd-style";
|
|
9
|
+
import { cx, useThemeMode } from "antd-style";
|
|
11
10
|
//#region src/dashboard/AuthLayout/AuthLayout.tsx
|
|
12
11
|
const FormSkeleton = () => /* @__PURE__ */ jsxs(FlexBasic_default, {
|
|
13
12
|
"aria-hidden": true,
|
|
@@ -31,7 +30,7 @@ const FormSkeleton = () => /* @__PURE__ */ jsxs(FlexBasic_default, {
|
|
|
31
30
|
]
|
|
32
31
|
});
|
|
33
32
|
function AuthLayout({ alert, aside, background = "plain", brand, card = true, children, className, description, footer, loading, logo, title, tools, variant = "default", ...rest }) {
|
|
34
|
-
const
|
|
33
|
+
const { isDarkMode } = useThemeMode();
|
|
35
34
|
const split = Boolean(aside);
|
|
36
35
|
const art = isValidElement(background) ? background : null;
|
|
37
36
|
const heading = title === void 0 || title === null ? null : typeof title === "string" ? /* @__PURE__ */ jsx(Text, {
|
|
@@ -59,8 +58,8 @@ function AuthLayout({ alert, aside, background = "plain", brand, card = true, ch
|
|
|
59
58
|
]
|
|
60
59
|
}) : null;
|
|
61
60
|
return /* @__PURE__ */ jsxs("div", {
|
|
62
|
-
className: cx(styles.page, background === "grid" && styles.grid, className),
|
|
63
61
|
"data-auth-layout": "",
|
|
62
|
+
className: cx(styles.page, background === "grid" && styles.grid, background === "grid" && isDarkMode && styles.gridDark, className),
|
|
64
63
|
...rest,
|
|
65
64
|
children: [
|
|
66
65
|
art ? /* @__PURE__ */ jsx("div", {
|
|
@@ -78,7 +77,7 @@ function AuthLayout({ alert, aside, background = "plain", brand, card = true, ch
|
|
|
78
77
|
className: styles.main,
|
|
79
78
|
children: card ? /* @__PURE__ */ jsx("div", {
|
|
80
79
|
"data-auth-card": "",
|
|
81
|
-
className: cx(styles.lift, split && styles.liftSplit,
|
|
80
|
+
className: cx(styles.lift, split && styles.liftSplit, variant === "elevated" && styles.elevated),
|
|
82
81
|
children: /* @__PURE__ */ jsxs("div", {
|
|
83
82
|
className: cx(styles.frame, split && styles.split),
|
|
84
83
|
children: [/* @__PURE__ */ jsxs("div", {
|