@star-insure/sdk 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdk.cjs.development.js +7 -2
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +7 -2
- package/dist/sdk.esm.js.map +1 -1
- package/dist/types/misc/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/filter/PageHeader.tsx +6 -2
- package/src/types/misc/index.ts +1 -0
|
@@ -2900,6 +2900,11 @@ function PageHeader(_ref) {
|
|
|
2900
2900
|
checkScroll();
|
|
2901
2901
|
}
|
|
2902
2902
|
|
|
2903
|
+
var filteredActions = React__default.useMemo(function () {
|
|
2904
|
+
return actions.filter(function (action) {
|
|
2905
|
+
return !action.hidden;
|
|
2906
|
+
});
|
|
2907
|
+
}, [actions]);
|
|
2903
2908
|
return React__default.createElement("section", {
|
|
2904
2909
|
className: cn('col-span-full max-w-full rounded-lg bg-white p-2 shadow', className)
|
|
2905
2910
|
}, React__default.createElement("div", {
|
|
@@ -2936,13 +2941,13 @@ function PageHeader(_ref) {
|
|
|
2936
2941
|
})), hasScroll && React__default.createElement(hi2.HiChevronRight, {
|
|
2937
2942
|
onClick: clickRight,
|
|
2938
2943
|
className: "w-5 h-5 text-gray-400 stroke-[1.25]"
|
|
2939
|
-
}))),
|
|
2944
|
+
}))), filteredActions.length > 0 && React__default.createElement("div", {
|
|
2940
2945
|
className: "flex items-center gap-3"
|
|
2941
2946
|
}, filterOptions.length > 0 && React__default.createElement("div", {
|
|
2942
2947
|
className: "w-[1px] h-full bg-gray-300"
|
|
2943
2948
|
}), React__default.createElement("nav", {
|
|
2944
2949
|
className: "flex items-center gap-2"
|
|
2945
|
-
},
|
|
2950
|
+
}, filteredActions.map(function (action) {
|
|
2946
2951
|
return React__default.createElement(Action, Object.assign({
|
|
2947
2952
|
key: action.title + "-" + action.as + "-" + action.href
|
|
2948
2953
|
}, action));
|