@gobolt/genesis 0.4.39 → 0.4.41
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.
|
@@ -6,7 +6,6 @@ export type Groups = {
|
|
|
6
6
|
};
|
|
7
7
|
export interface SecondaryTableControlsRowProps {
|
|
8
8
|
groups: Groups | null;
|
|
9
|
-
totalRecords: number | null;
|
|
10
9
|
onChange?: Change;
|
|
11
10
|
infiniteScrollData?: InfiniteScrollChangeEvent;
|
|
12
11
|
intialRowTotal?: number;
|
|
@@ -14,5 +13,5 @@ export interface SecondaryTableControlsRowProps {
|
|
|
14
13
|
getCustomIcon?: (title: string) => React.ReactNode | null;
|
|
15
14
|
filteredResultsCount?: number;
|
|
16
15
|
}
|
|
17
|
-
declare const SecondaryTableControlsRow: ({ groups,
|
|
16
|
+
declare const SecondaryTableControlsRow: ({ groups, onChange, infiniteScrollData, intialRowTotal, hasExternalFilters, getCustomIcon, filteredResultsCount, }: SecondaryTableControlsRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export default SecondaryTableControlsRow;
|
package/dist/index.cjs
CHANGED
|
@@ -59296,12 +59296,17 @@ const Avatar$1 = styled(Avatar$2)`
|
|
|
59296
59296
|
return getGenesisClass$d(theme, type4, state);
|
|
59297
59297
|
}}
|
|
59298
59298
|
`;
|
|
59299
|
+
const getBreakpoint = (breakpoint) => {
|
|
59300
|
+
{
|
|
59301
|
+
return "medium";
|
|
59302
|
+
}
|
|
59303
|
+
};
|
|
59299
59304
|
const getVariant$2 = (typography2, variant, breakpoint) => {
|
|
59300
59305
|
return `
|
|
59301
|
-
font-size: ${typography2[
|
|
59302
|
-
line-height: ${typography2[
|
|
59303
|
-
letter-spacing: ${typography2[
|
|
59304
|
-
font-weight: ${typography2[
|
|
59306
|
+
font-size: ${typography2[getBreakpoint()][variant].fontSize}px !important;
|
|
59307
|
+
line-height: ${typography2[getBreakpoint()][variant].lineHeight};
|
|
59308
|
+
letter-spacing: ${typography2[getBreakpoint()][variant].letterSpacing}px;
|
|
59309
|
+
font-weight: ${typography2[getBreakpoint()][variant].fontWeight};
|
|
59305
59310
|
`;
|
|
59306
59311
|
};
|
|
59307
59312
|
const getColor = (color2, colors2, $themeType) => {
|
|
@@ -59319,7 +59324,7 @@ const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 },
|
|
|
59319
59324
|
&.ant-typography {
|
|
59320
59325
|
font-family: ${getFontFamily(variant)};
|
|
59321
59326
|
color: ${getColor(color2, colors2, $themeType)} !important;
|
|
59322
|
-
${getVariant$2(typography2, variant
|
|
59327
|
+
${getVariant$2(typography2, variant)}
|
|
59323
59328
|
margin-bottom: 0 !important;
|
|
59324
59329
|
width: ${$isFullWidth ? "100%" : "auto"};
|
|
59325
59330
|
line-height: 1;
|
|
@@ -85792,7 +85797,6 @@ const GroupsRow = ({
|
|
|
85792
85797
|
};
|
|
85793
85798
|
const SecondaryTableControlsRow = ({
|
|
85794
85799
|
groups,
|
|
85795
|
-
totalRecords,
|
|
85796
85800
|
onChange,
|
|
85797
85801
|
infiniteScrollData,
|
|
85798
85802
|
intialRowTotal = 40,
|
|
@@ -85875,7 +85879,7 @@ const SecondaryTableControlsRow = ({
|
|
|
85875
85879
|
alignItems: "center",
|
|
85876
85880
|
gap: 4
|
|
85877
85881
|
},
|
|
85878
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body3", color: "#30606B;", children: "Clear
|
|
85882
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body3", color: "#30606B;", children: "Clear all filters" })
|
|
85879
85883
|
}
|
|
85880
85884
|
) : null
|
|
85881
85885
|
]
|
|
@@ -85919,7 +85923,6 @@ const TableControls = ({
|
|
|
85919
85923
|
SecondaryTableControlsRow,
|
|
85920
85924
|
{
|
|
85921
85925
|
groups: secondaryTableRowData.groups,
|
|
85922
|
-
totalRecords: secondaryTableRowData.totalRecords,
|
|
85923
85926
|
onChange: onSecondaryChange,
|
|
85924
85927
|
infiniteScrollData: secondaryTableRowData.infiniteScrollData,
|
|
85925
85928
|
hasExternalFilters: secondaryTableRowData.hasExternalFilters,
|
|
@@ -86042,7 +86045,6 @@ const TableWithControls = ({
|
|
|
86042
86045
|
const mergedSecondaryTableRowData = {
|
|
86043
86046
|
...secondaryTableRowData,
|
|
86044
86047
|
groups: secondaryTableRowData?.groups || null,
|
|
86045
|
-
totalRecords: secondaryTableRowData?.totalRecords || null,
|
|
86046
86048
|
infiniteScrollData: infiniteScrollData.resultsShown > 0 ? infiniteScrollData : secondaryTableRowData?.infiniteScrollData || infiniteScrollData
|
|
86047
86049
|
};
|
|
86048
86050
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
package/dist/index.js
CHANGED
|
@@ -59278,12 +59278,17 @@ const Avatar$1 = styled(Avatar$2)`
|
|
|
59278
59278
|
return getGenesisClass$d(theme, type4, state);
|
|
59279
59279
|
}}
|
|
59280
59280
|
`;
|
|
59281
|
+
const getBreakpoint = (breakpoint) => {
|
|
59282
|
+
{
|
|
59283
|
+
return "medium";
|
|
59284
|
+
}
|
|
59285
|
+
};
|
|
59281
59286
|
const getVariant$2 = (typography2, variant, breakpoint) => {
|
|
59282
59287
|
return `
|
|
59283
|
-
font-size: ${typography2[
|
|
59284
|
-
line-height: ${typography2[
|
|
59285
|
-
letter-spacing: ${typography2[
|
|
59286
|
-
font-weight: ${typography2[
|
|
59288
|
+
font-size: ${typography2[getBreakpoint()][variant].fontSize}px !important;
|
|
59289
|
+
line-height: ${typography2[getBreakpoint()][variant].lineHeight};
|
|
59290
|
+
letter-spacing: ${typography2[getBreakpoint()][variant].letterSpacing}px;
|
|
59291
|
+
font-weight: ${typography2[getBreakpoint()][variant].fontWeight};
|
|
59287
59292
|
`;
|
|
59288
59293
|
};
|
|
59289
59294
|
const getColor = (color2, colors2, $themeType) => {
|
|
@@ -59301,7 +59306,7 @@ const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 },
|
|
|
59301
59306
|
&.ant-typography {
|
|
59302
59307
|
font-family: ${getFontFamily(variant)};
|
|
59303
59308
|
color: ${getColor(color2, colors2, $themeType)} !important;
|
|
59304
|
-
${getVariant$2(typography2, variant
|
|
59309
|
+
${getVariant$2(typography2, variant)}
|
|
59305
59310
|
margin-bottom: 0 !important;
|
|
59306
59311
|
width: ${$isFullWidth ? "100%" : "auto"};
|
|
59307
59312
|
line-height: 1;
|
|
@@ -85774,7 +85779,6 @@ const GroupsRow = ({
|
|
|
85774
85779
|
};
|
|
85775
85780
|
const SecondaryTableControlsRow = ({
|
|
85776
85781
|
groups,
|
|
85777
|
-
totalRecords,
|
|
85778
85782
|
onChange,
|
|
85779
85783
|
infiniteScrollData,
|
|
85780
85784
|
intialRowTotal = 40,
|
|
@@ -85857,7 +85861,7 @@ const SecondaryTableControlsRow = ({
|
|
|
85857
85861
|
alignItems: "center",
|
|
85858
85862
|
gap: 4
|
|
85859
85863
|
},
|
|
85860
|
-
children: /* @__PURE__ */ jsx(Typography, { variant: "body3", color: "#30606B;", children: "Clear
|
|
85864
|
+
children: /* @__PURE__ */ jsx(Typography, { variant: "body3", color: "#30606B;", children: "Clear all filters" })
|
|
85861
85865
|
}
|
|
85862
85866
|
) : null
|
|
85863
85867
|
]
|
|
@@ -85901,7 +85905,6 @@ const TableControls = ({
|
|
|
85901
85905
|
SecondaryTableControlsRow,
|
|
85902
85906
|
{
|
|
85903
85907
|
groups: secondaryTableRowData.groups,
|
|
85904
|
-
totalRecords: secondaryTableRowData.totalRecords,
|
|
85905
85908
|
onChange: onSecondaryChange,
|
|
85906
85909
|
infiniteScrollData: secondaryTableRowData.infiniteScrollData,
|
|
85907
85910
|
hasExternalFilters: secondaryTableRowData.hasExternalFilters,
|
|
@@ -86024,7 +86027,6 @@ const TableWithControls = ({
|
|
|
86024
86027
|
const mergedSecondaryTableRowData = {
|
|
86025
86028
|
...secondaryTableRowData,
|
|
86026
86029
|
groups: secondaryTableRowData?.groups || null,
|
|
86027
|
-
totalRecords: secondaryTableRowData?.totalRecords || null,
|
|
86028
86030
|
infiniteScrollData: infiniteScrollData.resultsShown > 0 ? infiniteScrollData : secondaryTableRowData?.infiniteScrollData || infiniteScrollData
|
|
86029
86031
|
};
|
|
86030
86032
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|