@gobolt/genesis 0.4.30 → 0.4.32
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const MessageRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
2
|
state: string;
|
|
3
3
|
size: string;
|
|
4
|
-
isFullWidth: boolean;
|
|
4
|
+
$isFullWidth: boolean;
|
|
5
5
|
}>> & string;
|
|
6
6
|
export declare const MessageContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
7
|
size?: string;
|
|
8
8
|
action?: unknown;
|
|
9
|
-
isFullWidth?: boolean;
|
|
9
|
+
$isFullWidth?: boolean;
|
|
10
10
|
}>> & string;
|
|
11
11
|
export declare const ActionButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InfiniteScrollTableProps } from './types';
|
|
2
|
-
declare const InfiniteScrollTable: <T>({ columns: initialColumns, fetchService, scrollHeight, scrollWidth, onChange, rowSelection, onRowClick, onRowSelectionChange, onDataChange, filterFn, }: InfiniteScrollTableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const InfiniteScrollTable: <T>({ columns: initialColumns, fetchService, title, scrollHeight, scrollWidth, useWindowScroll, onChange, rowSelection, onRowClick, onRowSelectionChange, onDataChange, filterFn, }: InfiniteScrollTableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default InfiniteScrollTable;
|
|
@@ -1,32 +1,17 @@
|
|
|
1
1
|
import { ColumnType, TablePaginationConfig } from 'antd/es/table';
|
|
2
2
|
import { PaginationStyle } from './TableControls/CustomPagination';
|
|
3
3
|
import { ActionEvent } from '../../types/events';
|
|
4
|
+
import { FetchService } from './InfiniteScrollTable/types';
|
|
4
5
|
import * as React from "react";
|
|
5
6
|
export type Change = (actionEvent: ActionEvent) => void;
|
|
6
7
|
export type SelectionType = "checkbox" | "radio";
|
|
7
8
|
export interface InfiniteScrollConfig<T = any> {
|
|
8
9
|
instanceId: string;
|
|
9
|
-
fetchService:
|
|
10
|
-
|
|
11
|
-
pageParam: number;
|
|
12
|
-
}) => Promise<{
|
|
13
|
-
docs: T[];
|
|
14
|
-
totalDocs: number;
|
|
15
|
-
limit: number;
|
|
16
|
-
page: number;
|
|
17
|
-
totalPages: number;
|
|
18
|
-
pagingCounter: number;
|
|
19
|
-
hasPrevPage: boolean;
|
|
20
|
-
hasNextPage: boolean;
|
|
21
|
-
prevPage?: number;
|
|
22
|
-
nextPage?: number;
|
|
23
|
-
}>;
|
|
24
|
-
queryKey: string[];
|
|
25
|
-
};
|
|
26
|
-
title: string;
|
|
10
|
+
fetchService: FetchService<T>;
|
|
11
|
+
title?: string;
|
|
27
12
|
scrollHeight?: number;
|
|
28
13
|
scrollWidth?: number;
|
|
29
|
-
|
|
14
|
+
useWindowScroll?: boolean;
|
|
30
15
|
}
|
|
31
16
|
export interface TableProps<T extends Record<string, any>> {
|
|
32
17
|
dataSource: T[];
|
package/dist/index.cjs
CHANGED
|
@@ -59323,6 +59323,7 @@ const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 },
|
|
|
59323
59323
|
margin-bottom: 0 !important;
|
|
59324
59324
|
width: ${$isFullWidth ? "100%" : "auto"};
|
|
59325
59325
|
line-height: 1;
|
|
59326
|
+
-webkit-font-smoothing: antialiased;
|
|
59326
59327
|
|
|
59327
59328
|
&:disabled {
|
|
59328
59329
|
color: ${colors2.status.disabled.default} !important;
|
|
@@ -78958,7 +78959,7 @@ const MessageRow = styled.div`
|
|
|
78958
78959
|
gap: ${({ theme }) => theme.sizing.Size4}px;
|
|
78959
78960
|
padding: ${({ theme }) => theme.sizing.Size3}px;
|
|
78960
78961
|
background-color: ${({ theme, state }) => theme.colors.status[state].surface};
|
|
78961
|
-
width: ${({ theme, state, size, isFullWidth }) => isFullWidth ? "100%" : size === "standard" ? "320px" : "240px"};
|
|
78962
|
+
width: ${({ theme, state, size, $isFullWidth }) => $isFullWidth ? "100%" : size === "standard" ? "320px" : "240px"};
|
|
78962
78963
|
pointer-events: none;
|
|
78963
78964
|
cursor: default;
|
|
78964
78965
|
border-radius: ${({ theme }) => theme.borderRadius.BorderRadiusSm}px;
|
|
@@ -78968,7 +78969,7 @@ const MessageContent = styled.div`
|
|
|
78968
78969
|
align-items: center;
|
|
78969
78970
|
gap: ${({ theme }) => theme.sizing.Size2}px;
|
|
78970
78971
|
flex: 1;
|
|
78971
|
-
max-width: ${({ size, action, isFullWidth }) => isFullWidth ? "
|
|
78972
|
+
max-width: ${({ size, action, $isFullWidth }) => $isFullWidth ? "700px" : size === "standard" || !action ? "320px" : "240px"};
|
|
78972
78973
|
|
|
78973
78974
|
.ant-typography {
|
|
78974
78975
|
display: -webkit-box;
|
|
@@ -79044,8 +79045,8 @@ const Message = ({
|
|
|
79044
79045
|
const [linkColor, setLinkColor] = React.useState(
|
|
79045
79046
|
theme.colors.interactive.link.active
|
|
79046
79047
|
);
|
|
79047
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(MessageRow, { state, size, isFullWidth, children: [
|
|
79048
|
-
/* @__PURE__ */ jsxRuntime.jsxs(MessageContent, { action, size, isFullWidth, children: [
|
|
79048
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(MessageRow, { state, size, $isFullWidth: isFullWidth, children: [
|
|
79049
|
+
/* @__PURE__ */ jsxRuntime.jsxs(MessageContent, { action, size, $isFullWidth: isFullWidth, children: [
|
|
79049
79050
|
getIcon(state, color2),
|
|
79050
79051
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
79051
79052
|
Typography,
|
|
@@ -81625,7 +81626,10 @@ const Progress = ({
|
|
|
81625
81626
|
] });
|
|
81626
81627
|
}
|
|
81627
81628
|
if (isProgressCombined) {
|
|
81628
|
-
const combinedPercent = getCombinedPercent(
|
|
81629
|
+
const combinedPercent = getCombinedPercent(
|
|
81630
|
+
firstBarData,
|
|
81631
|
+
secondBarData || null
|
|
81632
|
+
);
|
|
81629
81633
|
const textColor = Number(combinedPercent) === 100 ? "green" : "black";
|
|
81630
81634
|
const adjustedFirstBar = secondBarData?.value === 100 ? 100 : firstBarData?.value || 0;
|
|
81631
81635
|
const firstBarStrokeColor = theme?.colors?.inputs?.progress?.[firstBarData?.status || "info"];
|
|
@@ -84812,8 +84816,10 @@ const ResizableTitle = (props) => {
|
|
|
84812
84816
|
const InfiniteScrollTable = ({
|
|
84813
84817
|
columns: initialColumns,
|
|
84814
84818
|
fetchService,
|
|
84819
|
+
title = "Data",
|
|
84815
84820
|
scrollHeight = 600,
|
|
84816
84821
|
scrollWidth = 1300,
|
|
84822
|
+
useWindowScroll = false,
|
|
84817
84823
|
onChange,
|
|
84818
84824
|
rowSelection,
|
|
84819
84825
|
onRowClick,
|
|
@@ -84882,19 +84888,37 @@ const InfiniteScrollTable = ({
|
|
|
84882
84888
|
}));
|
|
84883
84889
|
const lastRowRef = React.useCallback(
|
|
84884
84890
|
(node2) => {
|
|
84885
|
-
if (isFetchingNextPage
|
|
84891
|
+
if (isFetchingNextPage) return;
|
|
84886
84892
|
if (observer.current) observer.current.disconnect();
|
|
84887
|
-
|
|
84888
|
-
|
|
84889
|
-
|
|
84890
|
-
|
|
84891
|
-
|
|
84892
|
-
|
|
84893
|
-
|
|
84894
|
-
|
|
84893
|
+
if (useWindowScroll) {
|
|
84894
|
+
observer.current = new IntersectionObserver(
|
|
84895
|
+
(entries) => {
|
|
84896
|
+
if (entries[0].isIntersecting && hasNextPage) {
|
|
84897
|
+
fetchNextPage();
|
|
84898
|
+
}
|
|
84899
|
+
},
|
|
84900
|
+
{ root: null, threshold: 0.1, rootMargin: "100px" }
|
|
84901
|
+
);
|
|
84902
|
+
} else {
|
|
84903
|
+
if (!scrollableNode) return;
|
|
84904
|
+
observer.current = new IntersectionObserver(
|
|
84905
|
+
(entries) => {
|
|
84906
|
+
if (entries[0].isIntersecting && hasNextPage) {
|
|
84907
|
+
fetchNextPage();
|
|
84908
|
+
}
|
|
84909
|
+
},
|
|
84910
|
+
{ root: scrollableNode, threshold: 0.5 }
|
|
84911
|
+
);
|
|
84912
|
+
}
|
|
84895
84913
|
if (node2) observer.current.observe(node2);
|
|
84896
84914
|
},
|
|
84897
|
-
[
|
|
84915
|
+
[
|
|
84916
|
+
isFetchingNextPage,
|
|
84917
|
+
hasNextPage,
|
|
84918
|
+
fetchNextPage,
|
|
84919
|
+
scrollableNode,
|
|
84920
|
+
useWindowScroll
|
|
84921
|
+
]
|
|
84898
84922
|
);
|
|
84899
84923
|
const rawDataSource = data?.pages.flatMap((page) => page.docs) ?? [];
|
|
84900
84924
|
const filteredDataSource = filterFn ? filterFn(rawDataSource) : rawDataSource;
|
|
@@ -84975,7 +84999,7 @@ const InfiniteScrollTable = ({
|
|
|
84975
84999
|
pagination: false,
|
|
84976
85000
|
showSorterTooltip: false,
|
|
84977
85001
|
size: "small",
|
|
84978
|
-
scroll: { y: scrollHeight, x: scrollWidth },
|
|
85002
|
+
scroll: useWindowScroll ? { x: scrollWidth } : { y: scrollHeight, x: scrollWidth },
|
|
84979
85003
|
onChange: () => {
|
|
84980
85004
|
},
|
|
84981
85005
|
rowSelection: finalRowSelection,
|
|
@@ -85133,10 +85157,10 @@ function Table({
|
|
|
85133
85157
|
title: infiniteScrollConfig.title,
|
|
85134
85158
|
scrollHeight: infiniteScrollConfig.scrollHeight,
|
|
85135
85159
|
scrollWidth: infiniteScrollConfig.scrollWidth,
|
|
85160
|
+
useWindowScroll: infiniteScrollConfig.useWindowScroll,
|
|
85136
85161
|
onChange: isInfiniteScroll ? onChange : onChange,
|
|
85137
85162
|
onRowSelectionChange,
|
|
85138
|
-
onDataChange
|
|
85139
|
-
filterFn: infiniteScrollConfig.filterFn
|
|
85163
|
+
onDataChange
|
|
85140
85164
|
}
|
|
85141
85165
|
);
|
|
85142
85166
|
}
|
|
@@ -85778,8 +85802,7 @@ const SecondaryTableControlsRow = ({
|
|
|
85778
85802
|
) : null
|
|
85779
85803
|
]
|
|
85780
85804
|
}
|
|
85781
|
-
)
|
|
85782
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { width: 100, height: 0 } })
|
|
85805
|
+
)
|
|
85783
85806
|
]
|
|
85784
85807
|
}
|
|
85785
85808
|
);
|
|
@@ -85893,9 +85916,10 @@ const TableWithControls = ({
|
|
|
85893
85916
|
instanceId: infiniteScrollConfig.instanceId,
|
|
85894
85917
|
columns: resizableColumns,
|
|
85895
85918
|
fetchService: infiniteScrollConfig.fetchService,
|
|
85896
|
-
title: infiniteScrollConfig.title,
|
|
85919
|
+
title: infiniteScrollConfig.title || "",
|
|
85897
85920
|
scrollHeight: infiniteScrollConfig.scrollHeight,
|
|
85898
85921
|
scrollWidth: infiniteScrollConfig.scrollWidth,
|
|
85922
|
+
useWindowScroll: infiniteScrollConfig.useWindowScroll,
|
|
85899
85923
|
onChange: onInfiniteScrollTableChange,
|
|
85900
85924
|
rowSelection,
|
|
85901
85925
|
onRowClick: tableOnRowClick || onRowClick,
|
|
@@ -87101,6 +87125,7 @@ const useTableWithControls = (tableConfig) => {
|
|
|
87101
87125
|
const getGenesisClass = ({ colors: colors2, borderRadius: borderRadius2, sizing: sizing2 }, type4 = "primary", state = "active") => `
|
|
87102
87126
|
&.ant-tabs {
|
|
87103
87127
|
background: #F4F4F4;
|
|
87128
|
+
-webkit-font-smoothing: antialiased;
|
|
87104
87129
|
|
|
87105
87130
|
.ant-tabs-nav {
|
|
87106
87131
|
margin-bottom: 0;
|
|
@@ -87121,6 +87146,7 @@ const getGenesisClass = ({ colors: colors2, borderRadius: borderRadius2, sizing:
|
|
|
87121
87146
|
border-radius: 0 !important;
|
|
87122
87147
|
float: none; /* Prevent default float behavior */
|
|
87123
87148
|
position: relative;
|
|
87149
|
+
padding: 16px;
|
|
87124
87150
|
|
|
87125
87151
|
|
|
87126
87152
|
/* Use single side borders to prevent double borders */
|
|
@@ -87140,7 +87166,7 @@ const getGenesisClass = ({ colors: colors2, borderRadius: borderRadius2, sizing:
|
|
|
87140
87166
|
background: ${colors2.interactive.utility?.hover};
|
|
87141
87167
|
}
|
|
87142
87168
|
|
|
87143
|
-
|
|
87169
|
+
|
|
87144
87170
|
|
|
87145
87171
|
&:first-child {
|
|
87146
87172
|
border-radius: 0 !important;
|
|
@@ -87177,6 +87203,7 @@ const getGenesisClass = ({ colors: colors2, borderRadius: borderRadius2, sizing:
|
|
|
87177
87203
|
font-weight: 500;
|
|
87178
87204
|
font-size: 14px;
|
|
87179
87205
|
font-family: 'Inter' !important;
|
|
87206
|
+
border-top: 1px solid #ededed;
|
|
87180
87207
|
|
|
87181
87208
|
.ant-tabs-tab-btn {
|
|
87182
87209
|
color: ${colors2.onsurface["copy-dark"]} !important;
|
|
@@ -87185,15 +87212,22 @@ const getGenesisClass = ({ colors: colors2, borderRadius: borderRadius2, sizing:
|
|
|
87185
87212
|
|
|
87186
87213
|
&:hover {
|
|
87187
87214
|
background: ${colors2.interactive.utility?.hover};
|
|
87215
|
+
border-top: 1px solid #ededed;
|
|
87188
87216
|
}
|
|
87189
87217
|
|
|
87190
87218
|
&:focus {
|
|
87191
87219
|
background: ${colors2.interactive.utility?.active};
|
|
87220
|
+
border-top: 1px solid ${colors2.surface.border};
|
|
87192
87221
|
}
|
|
87193
87222
|
|
|
87194
87223
|
&:active {
|
|
87195
87224
|
background: ${colors2.interactive.utility?.active};
|
|
87196
87225
|
}
|
|
87226
|
+
|
|
87227
|
+
&:pressed {
|
|
87228
|
+
background: ${colors2.interactive.utility?.active};
|
|
87229
|
+
border-top: 1px solid ${colors2.surface.border};
|
|
87230
|
+
}
|
|
87197
87231
|
}
|
|
87198
87232
|
}
|
|
87199
87233
|
}
|
package/dist/index.js
CHANGED
|
@@ -59305,6 +59305,7 @@ const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 },
|
|
|
59305
59305
|
margin-bottom: 0 !important;
|
|
59306
59306
|
width: ${$isFullWidth ? "100%" : "auto"};
|
|
59307
59307
|
line-height: 1;
|
|
59308
|
+
-webkit-font-smoothing: antialiased;
|
|
59308
59309
|
|
|
59309
59310
|
&:disabled {
|
|
59310
59311
|
color: ${colors2.status.disabled.default} !important;
|
|
@@ -78940,7 +78941,7 @@ const MessageRow = styled.div`
|
|
|
78940
78941
|
gap: ${({ theme }) => theme.sizing.Size4}px;
|
|
78941
78942
|
padding: ${({ theme }) => theme.sizing.Size3}px;
|
|
78942
78943
|
background-color: ${({ theme, state }) => theme.colors.status[state].surface};
|
|
78943
|
-
width: ${({ theme, state, size, isFullWidth }) => isFullWidth ? "100%" : size === "standard" ? "320px" : "240px"};
|
|
78944
|
+
width: ${({ theme, state, size, $isFullWidth }) => $isFullWidth ? "100%" : size === "standard" ? "320px" : "240px"};
|
|
78944
78945
|
pointer-events: none;
|
|
78945
78946
|
cursor: default;
|
|
78946
78947
|
border-radius: ${({ theme }) => theme.borderRadius.BorderRadiusSm}px;
|
|
@@ -78950,7 +78951,7 @@ const MessageContent = styled.div`
|
|
|
78950
78951
|
align-items: center;
|
|
78951
78952
|
gap: ${({ theme }) => theme.sizing.Size2}px;
|
|
78952
78953
|
flex: 1;
|
|
78953
|
-
max-width: ${({ size, action, isFullWidth }) => isFullWidth ? "
|
|
78954
|
+
max-width: ${({ size, action, $isFullWidth }) => $isFullWidth ? "700px" : size === "standard" || !action ? "320px" : "240px"};
|
|
78954
78955
|
|
|
78955
78956
|
.ant-typography {
|
|
78956
78957
|
display: -webkit-box;
|
|
@@ -79026,8 +79027,8 @@ const Message = ({
|
|
|
79026
79027
|
const [linkColor, setLinkColor] = useState(
|
|
79027
79028
|
theme.colors.interactive.link.active
|
|
79028
79029
|
);
|
|
79029
|
-
return /* @__PURE__ */ jsxs(MessageRow, { state, size, isFullWidth, children: [
|
|
79030
|
-
/* @__PURE__ */ jsxs(MessageContent, { action, size, isFullWidth, children: [
|
|
79030
|
+
return /* @__PURE__ */ jsxs(MessageRow, { state, size, $isFullWidth: isFullWidth, children: [
|
|
79031
|
+
/* @__PURE__ */ jsxs(MessageContent, { action, size, $isFullWidth: isFullWidth, children: [
|
|
79031
79032
|
getIcon(state, color2),
|
|
79032
79033
|
/* @__PURE__ */ jsx(
|
|
79033
79034
|
Typography,
|
|
@@ -81607,7 +81608,10 @@ const Progress = ({
|
|
|
81607
81608
|
] });
|
|
81608
81609
|
}
|
|
81609
81610
|
if (isProgressCombined) {
|
|
81610
|
-
const combinedPercent = getCombinedPercent(
|
|
81611
|
+
const combinedPercent = getCombinedPercent(
|
|
81612
|
+
firstBarData,
|
|
81613
|
+
secondBarData || null
|
|
81614
|
+
);
|
|
81611
81615
|
const textColor = Number(combinedPercent) === 100 ? "green" : "black";
|
|
81612
81616
|
const adjustedFirstBar = secondBarData?.value === 100 ? 100 : firstBarData?.value || 0;
|
|
81613
81617
|
const firstBarStrokeColor = theme?.colors?.inputs?.progress?.[firstBarData?.status || "info"];
|
|
@@ -84794,8 +84798,10 @@ const ResizableTitle = (props) => {
|
|
|
84794
84798
|
const InfiniteScrollTable = ({
|
|
84795
84799
|
columns: initialColumns,
|
|
84796
84800
|
fetchService,
|
|
84801
|
+
title = "Data",
|
|
84797
84802
|
scrollHeight = 600,
|
|
84798
84803
|
scrollWidth = 1300,
|
|
84804
|
+
useWindowScroll = false,
|
|
84799
84805
|
onChange,
|
|
84800
84806
|
rowSelection,
|
|
84801
84807
|
onRowClick,
|
|
@@ -84864,19 +84870,37 @@ const InfiniteScrollTable = ({
|
|
|
84864
84870
|
}));
|
|
84865
84871
|
const lastRowRef = useCallback(
|
|
84866
84872
|
(node2) => {
|
|
84867
|
-
if (isFetchingNextPage
|
|
84873
|
+
if (isFetchingNextPage) return;
|
|
84868
84874
|
if (observer.current) observer.current.disconnect();
|
|
84869
|
-
|
|
84870
|
-
|
|
84871
|
-
|
|
84872
|
-
|
|
84873
|
-
|
|
84874
|
-
|
|
84875
|
-
|
|
84876
|
-
|
|
84875
|
+
if (useWindowScroll) {
|
|
84876
|
+
observer.current = new IntersectionObserver(
|
|
84877
|
+
(entries) => {
|
|
84878
|
+
if (entries[0].isIntersecting && hasNextPage) {
|
|
84879
|
+
fetchNextPage();
|
|
84880
|
+
}
|
|
84881
|
+
},
|
|
84882
|
+
{ root: null, threshold: 0.1, rootMargin: "100px" }
|
|
84883
|
+
);
|
|
84884
|
+
} else {
|
|
84885
|
+
if (!scrollableNode) return;
|
|
84886
|
+
observer.current = new IntersectionObserver(
|
|
84887
|
+
(entries) => {
|
|
84888
|
+
if (entries[0].isIntersecting && hasNextPage) {
|
|
84889
|
+
fetchNextPage();
|
|
84890
|
+
}
|
|
84891
|
+
},
|
|
84892
|
+
{ root: scrollableNode, threshold: 0.5 }
|
|
84893
|
+
);
|
|
84894
|
+
}
|
|
84877
84895
|
if (node2) observer.current.observe(node2);
|
|
84878
84896
|
},
|
|
84879
|
-
[
|
|
84897
|
+
[
|
|
84898
|
+
isFetchingNextPage,
|
|
84899
|
+
hasNextPage,
|
|
84900
|
+
fetchNextPage,
|
|
84901
|
+
scrollableNode,
|
|
84902
|
+
useWindowScroll
|
|
84903
|
+
]
|
|
84880
84904
|
);
|
|
84881
84905
|
const rawDataSource = data?.pages.flatMap((page) => page.docs) ?? [];
|
|
84882
84906
|
const filteredDataSource = filterFn ? filterFn(rawDataSource) : rawDataSource;
|
|
@@ -84957,7 +84981,7 @@ const InfiniteScrollTable = ({
|
|
|
84957
84981
|
pagination: false,
|
|
84958
84982
|
showSorterTooltip: false,
|
|
84959
84983
|
size: "small",
|
|
84960
|
-
scroll: { y: scrollHeight, x: scrollWidth },
|
|
84984
|
+
scroll: useWindowScroll ? { x: scrollWidth } : { y: scrollHeight, x: scrollWidth },
|
|
84961
84985
|
onChange: () => {
|
|
84962
84986
|
},
|
|
84963
84987
|
rowSelection: finalRowSelection,
|
|
@@ -85115,10 +85139,10 @@ function Table({
|
|
|
85115
85139
|
title: infiniteScrollConfig.title,
|
|
85116
85140
|
scrollHeight: infiniteScrollConfig.scrollHeight,
|
|
85117
85141
|
scrollWidth: infiniteScrollConfig.scrollWidth,
|
|
85142
|
+
useWindowScroll: infiniteScrollConfig.useWindowScroll,
|
|
85118
85143
|
onChange: isInfiniteScroll ? onChange : onChange,
|
|
85119
85144
|
onRowSelectionChange,
|
|
85120
|
-
onDataChange
|
|
85121
|
-
filterFn: infiniteScrollConfig.filterFn
|
|
85145
|
+
onDataChange
|
|
85122
85146
|
}
|
|
85123
85147
|
);
|
|
85124
85148
|
}
|
|
@@ -85760,8 +85784,7 @@ const SecondaryTableControlsRow = ({
|
|
|
85760
85784
|
) : null
|
|
85761
85785
|
]
|
|
85762
85786
|
}
|
|
85763
|
-
)
|
|
85764
|
-
/* @__PURE__ */ jsx("div", { style: { width: 100, height: 0 } })
|
|
85787
|
+
)
|
|
85765
85788
|
]
|
|
85766
85789
|
}
|
|
85767
85790
|
);
|
|
@@ -85875,9 +85898,10 @@ const TableWithControls = ({
|
|
|
85875
85898
|
instanceId: infiniteScrollConfig.instanceId,
|
|
85876
85899
|
columns: resizableColumns,
|
|
85877
85900
|
fetchService: infiniteScrollConfig.fetchService,
|
|
85878
|
-
title: infiniteScrollConfig.title,
|
|
85901
|
+
title: infiniteScrollConfig.title || "",
|
|
85879
85902
|
scrollHeight: infiniteScrollConfig.scrollHeight,
|
|
85880
85903
|
scrollWidth: infiniteScrollConfig.scrollWidth,
|
|
85904
|
+
useWindowScroll: infiniteScrollConfig.useWindowScroll,
|
|
85881
85905
|
onChange: onInfiniteScrollTableChange,
|
|
85882
85906
|
rowSelection,
|
|
85883
85907
|
onRowClick: tableOnRowClick || onRowClick,
|
|
@@ -87083,6 +87107,7 @@ const useTableWithControls = (tableConfig) => {
|
|
|
87083
87107
|
const getGenesisClass = ({ colors: colors2, borderRadius: borderRadius2, sizing: sizing2 }, type4 = "primary", state = "active") => `
|
|
87084
87108
|
&.ant-tabs {
|
|
87085
87109
|
background: #F4F4F4;
|
|
87110
|
+
-webkit-font-smoothing: antialiased;
|
|
87086
87111
|
|
|
87087
87112
|
.ant-tabs-nav {
|
|
87088
87113
|
margin-bottom: 0;
|
|
@@ -87103,6 +87128,7 @@ const getGenesisClass = ({ colors: colors2, borderRadius: borderRadius2, sizing:
|
|
|
87103
87128
|
border-radius: 0 !important;
|
|
87104
87129
|
float: none; /* Prevent default float behavior */
|
|
87105
87130
|
position: relative;
|
|
87131
|
+
padding: 16px;
|
|
87106
87132
|
|
|
87107
87133
|
|
|
87108
87134
|
/* Use single side borders to prevent double borders */
|
|
@@ -87122,7 +87148,7 @@ const getGenesisClass = ({ colors: colors2, borderRadius: borderRadius2, sizing:
|
|
|
87122
87148
|
background: ${colors2.interactive.utility?.hover};
|
|
87123
87149
|
}
|
|
87124
87150
|
|
|
87125
|
-
|
|
87151
|
+
|
|
87126
87152
|
|
|
87127
87153
|
&:first-child {
|
|
87128
87154
|
border-radius: 0 !important;
|
|
@@ -87159,6 +87185,7 @@ const getGenesisClass = ({ colors: colors2, borderRadius: borderRadius2, sizing:
|
|
|
87159
87185
|
font-weight: 500;
|
|
87160
87186
|
font-size: 14px;
|
|
87161
87187
|
font-family: 'Inter' !important;
|
|
87188
|
+
border-top: 1px solid #ededed;
|
|
87162
87189
|
|
|
87163
87190
|
.ant-tabs-tab-btn {
|
|
87164
87191
|
color: ${colors2.onsurface["copy-dark"]} !important;
|
|
@@ -87167,15 +87194,22 @@ const getGenesisClass = ({ colors: colors2, borderRadius: borderRadius2, sizing:
|
|
|
87167
87194
|
|
|
87168
87195
|
&:hover {
|
|
87169
87196
|
background: ${colors2.interactive.utility?.hover};
|
|
87197
|
+
border-top: 1px solid #ededed;
|
|
87170
87198
|
}
|
|
87171
87199
|
|
|
87172
87200
|
&:focus {
|
|
87173
87201
|
background: ${colors2.interactive.utility?.active};
|
|
87202
|
+
border-top: 1px solid ${colors2.surface.border};
|
|
87174
87203
|
}
|
|
87175
87204
|
|
|
87176
87205
|
&:active {
|
|
87177
87206
|
background: ${colors2.interactive.utility?.active};
|
|
87178
87207
|
}
|
|
87208
|
+
|
|
87209
|
+
&:pressed {
|
|
87210
|
+
background: ${colors2.interactive.utility?.active};
|
|
87211
|
+
border-top: 1px solid ${colors2.surface.border};
|
|
87212
|
+
}
|
|
87179
87213
|
}
|
|
87180
87214
|
}
|
|
87181
87215
|
}
|