@gobolt/genesis 0.4.40 → 0.4.42
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
|
@@ -60721,6 +60721,9 @@ function HiSearch(props) {
|
|
|
60721
60721
|
function HiXCircle(props) {
|
|
60722
60722
|
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z", "clipRule": "evenodd" }, "child": [] }] })(props);
|
|
60723
60723
|
}
|
|
60724
|
+
function HiOutlineAdjustments(props) {
|
|
60725
|
+
return GenIcon({ "attr": { "fill": "none", "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "strokeLinecap": "round", "strokeLinejoin": "round", "d": "M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4" }, "child": [] }] })(props);
|
|
60726
|
+
}
|
|
60724
60727
|
function HiOutlineCheckCircle(props) {
|
|
60725
60728
|
return GenIcon({ "attr": { "fill": "none", "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "strokeLinecap": "round", "strokeLinejoin": "round", "d": "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" }, "child": [] }] })(props);
|
|
60726
60729
|
}
|
|
@@ -85580,9 +85583,6 @@ const useTable = (useTableConfig) => {
|
|
|
85580
85583
|
retry
|
|
85581
85584
|
};
|
|
85582
85585
|
};
|
|
85583
|
-
function HiMiniAdjustmentsVertical(props) {
|
|
85584
|
-
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "d": "M17 2.75a.75.75 0 0 0-1.5 0v5.5a.75.75 0 0 0 1.5 0v-5.5ZM17 15.75a.75.75 0 0 0-1.5 0v1.5a.75.75 0 0 0 1.5 0v-1.5ZM3.75 15a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5a.75.75 0 0 1 .75-.75ZM4.5 2.75a.75.75 0 0 0-1.5 0v5.5a.75.75 0 0 0 1.5 0v-5.5ZM10 11a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-1.5 0v-5.5A.75.75 0 0 1 10 11ZM10.75 2.75a.75.75 0 0 0-1.5 0v1.5a.75.75 0 0 0 1.5 0v-1.5ZM10 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM3.75 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM16.25 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z" }, "child": [] }] })(props);
|
|
85585
|
-
}
|
|
85586
85586
|
function FiSettings(props) {
|
|
85587
85587
|
return GenIcon({ "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "circle", "attr": { "cx": "12", "cy": "12", "r": "3" }, "child": [] }, { "tag": "path", "attr": { "d": "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" }, "child": [] }] })(props);
|
|
85588
85588
|
}
|
|
@@ -85663,7 +85663,7 @@ const PrimaryTableControlsRow = ({
|
|
|
85663
85663
|
UtilityButton,
|
|
85664
85664
|
{
|
|
85665
85665
|
isIconButton: true,
|
|
85666
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
85666
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(HiOutlineAdjustments, { color: "#222222", size: 24 }),
|
|
85667
85667
|
onClick: onFilterClick
|
|
85668
85668
|
}
|
|
85669
85669
|
) }),
|
|
@@ -85797,7 +85797,6 @@ const GroupsRow = ({
|
|
|
85797
85797
|
};
|
|
85798
85798
|
const SecondaryTableControlsRow = ({
|
|
85799
85799
|
groups,
|
|
85800
|
-
totalRecords,
|
|
85801
85800
|
onChange,
|
|
85802
85801
|
infiniteScrollData,
|
|
85803
85802
|
intialRowTotal = 40,
|
|
@@ -85880,7 +85879,7 @@ const SecondaryTableControlsRow = ({
|
|
|
85880
85879
|
alignItems: "center",
|
|
85881
85880
|
gap: 4
|
|
85882
85881
|
},
|
|
85883
|
-
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" })
|
|
85884
85883
|
}
|
|
85885
85884
|
) : null
|
|
85886
85885
|
]
|
|
@@ -85924,7 +85923,6 @@ const TableControls = ({
|
|
|
85924
85923
|
SecondaryTableControlsRow,
|
|
85925
85924
|
{
|
|
85926
85925
|
groups: secondaryTableRowData.groups,
|
|
85927
|
-
totalRecords: secondaryTableRowData.totalRecords,
|
|
85928
85926
|
onChange: onSecondaryChange,
|
|
85929
85927
|
infiniteScrollData: secondaryTableRowData.infiniteScrollData,
|
|
85930
85928
|
hasExternalFilters: secondaryTableRowData.hasExternalFilters,
|
|
@@ -86047,7 +86045,6 @@ const TableWithControls = ({
|
|
|
86047
86045
|
const mergedSecondaryTableRowData = {
|
|
86048
86046
|
...secondaryTableRowData,
|
|
86049
86047
|
groups: secondaryTableRowData?.groups || null,
|
|
86050
|
-
totalRecords: secondaryTableRowData?.totalRecords || null,
|
|
86051
86048
|
infiniteScrollData: infiniteScrollData.resultsShown > 0 ? infiniteScrollData : secondaryTableRowData?.infiniteScrollData || infiniteScrollData
|
|
86052
86049
|
};
|
|
86053
86050
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
package/dist/index.js
CHANGED
|
@@ -60703,6 +60703,9 @@ function HiSearch(props) {
|
|
|
60703
60703
|
function HiXCircle(props) {
|
|
60704
60704
|
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z", "clipRule": "evenodd" }, "child": [] }] })(props);
|
|
60705
60705
|
}
|
|
60706
|
+
function HiOutlineAdjustments(props) {
|
|
60707
|
+
return GenIcon({ "attr": { "fill": "none", "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "strokeLinecap": "round", "strokeLinejoin": "round", "d": "M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4" }, "child": [] }] })(props);
|
|
60708
|
+
}
|
|
60706
60709
|
function HiOutlineCheckCircle(props) {
|
|
60707
60710
|
return GenIcon({ "attr": { "fill": "none", "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "strokeLinecap": "round", "strokeLinejoin": "round", "d": "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" }, "child": [] }] })(props);
|
|
60708
60711
|
}
|
|
@@ -85562,9 +85565,6 @@ const useTable = (useTableConfig) => {
|
|
|
85562
85565
|
retry
|
|
85563
85566
|
};
|
|
85564
85567
|
};
|
|
85565
|
-
function HiMiniAdjustmentsVertical(props) {
|
|
85566
|
-
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "d": "M17 2.75a.75.75 0 0 0-1.5 0v5.5a.75.75 0 0 0 1.5 0v-5.5ZM17 15.75a.75.75 0 0 0-1.5 0v1.5a.75.75 0 0 0 1.5 0v-1.5ZM3.75 15a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5a.75.75 0 0 1 .75-.75ZM4.5 2.75a.75.75 0 0 0-1.5 0v5.5a.75.75 0 0 0 1.5 0v-5.5ZM10 11a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-1.5 0v-5.5A.75.75 0 0 1 10 11ZM10.75 2.75a.75.75 0 0 0-1.5 0v1.5a.75.75 0 0 0 1.5 0v-1.5ZM10 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM3.75 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM16.25 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z" }, "child": [] }] })(props);
|
|
85567
|
-
}
|
|
85568
85568
|
function FiSettings(props) {
|
|
85569
85569
|
return GenIcon({ "attr": { "viewBox": "0 0 24 24", "fill": "none", "stroke": "currentColor", "strokeWidth": "2", "strokeLinecap": "round", "strokeLinejoin": "round" }, "child": [{ "tag": "circle", "attr": { "cx": "12", "cy": "12", "r": "3" }, "child": [] }, { "tag": "path", "attr": { "d": "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" }, "child": [] }] })(props);
|
|
85570
85570
|
}
|
|
@@ -85645,7 +85645,7 @@ const PrimaryTableControlsRow = ({
|
|
|
85645
85645
|
UtilityButton,
|
|
85646
85646
|
{
|
|
85647
85647
|
isIconButton: true,
|
|
85648
|
-
icon: /* @__PURE__ */ jsx(
|
|
85648
|
+
icon: /* @__PURE__ */ jsx(HiOutlineAdjustments, { color: "#222222", size: 24 }),
|
|
85649
85649
|
onClick: onFilterClick
|
|
85650
85650
|
}
|
|
85651
85651
|
) }),
|
|
@@ -85779,7 +85779,6 @@ const GroupsRow = ({
|
|
|
85779
85779
|
};
|
|
85780
85780
|
const SecondaryTableControlsRow = ({
|
|
85781
85781
|
groups,
|
|
85782
|
-
totalRecords,
|
|
85783
85782
|
onChange,
|
|
85784
85783
|
infiniteScrollData,
|
|
85785
85784
|
intialRowTotal = 40,
|
|
@@ -85862,7 +85861,7 @@ const SecondaryTableControlsRow = ({
|
|
|
85862
85861
|
alignItems: "center",
|
|
85863
85862
|
gap: 4
|
|
85864
85863
|
},
|
|
85865
|
-
children: /* @__PURE__ */ jsx(Typography, { variant: "body3", color: "#30606B;", children: "Clear
|
|
85864
|
+
children: /* @__PURE__ */ jsx(Typography, { variant: "body3", color: "#30606B;", children: "Clear all filters" })
|
|
85866
85865
|
}
|
|
85867
85866
|
) : null
|
|
85868
85867
|
]
|
|
@@ -85906,7 +85905,6 @@ const TableControls = ({
|
|
|
85906
85905
|
SecondaryTableControlsRow,
|
|
85907
85906
|
{
|
|
85908
85907
|
groups: secondaryTableRowData.groups,
|
|
85909
|
-
totalRecords: secondaryTableRowData.totalRecords,
|
|
85910
85908
|
onChange: onSecondaryChange,
|
|
85911
85909
|
infiniteScrollData: secondaryTableRowData.infiniteScrollData,
|
|
85912
85910
|
hasExternalFilters: secondaryTableRowData.hasExternalFilters,
|
|
@@ -86029,7 +86027,6 @@ const TableWithControls = ({
|
|
|
86029
86027
|
const mergedSecondaryTableRowData = {
|
|
86030
86028
|
...secondaryTableRowData,
|
|
86031
86029
|
groups: secondaryTableRowData?.groups || null,
|
|
86032
|
-
totalRecords: secondaryTableRowData?.totalRecords || null,
|
|
86033
86030
|
infiniteScrollData: infiniteScrollData.resultsShown > 0 ? infiniteScrollData : secondaryTableRowData?.infiniteScrollData || infiniteScrollData
|
|
86034
86031
|
};
|
|
86035
86032
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|