@star-insure/sdk 4.1.4 → 4.3.0
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/components/filter/PageHeader.d.ts +9 -3
- package/dist/sdk.cjs.development.js +21 -4
- 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 +21 -4
- package/dist/sdk.esm.js.map +1 -1
- package/dist/types/models/claims/ClaimRequest.d.ts +3 -3
- package/package.json +1 -1
- package/src/components/filter/PageHeader.tsx +22 -1
- package/src/types/models/claims/ClaimRequest.ts +3 -3
package/dist/sdk.esm.js
CHANGED
|
@@ -2954,7 +2954,8 @@ function PageHeader(_ref) {
|
|
|
2954
2954
|
_ref$filterOptions = _ref.filterOptions,
|
|
2955
2955
|
filterOptions = _ref$filterOptions === void 0 ? [] : _ref$filterOptions,
|
|
2956
2956
|
_ref$focusSearchShort = _ref.focusSearchShortcut,
|
|
2957
|
-
focusSearchShortcut = _ref$focusSearchShort === void 0 ? false : _ref$focusSearchShort
|
|
2957
|
+
focusSearchShortcut = _ref$focusSearchShort === void 0 ? false : _ref$focusSearchShort,
|
|
2958
|
+
children = _ref.children;
|
|
2958
2959
|
|
|
2959
2960
|
var _React$useState = React__default.useState(false),
|
|
2960
2961
|
isSearchActive = _React$useState[0],
|
|
@@ -2966,6 +2967,15 @@ function PageHeader(_ref) {
|
|
|
2966
2967
|
overScroll = _React$useState2[0],
|
|
2967
2968
|
setOverScroll = _React$useState2[1];
|
|
2968
2969
|
|
|
2970
|
+
var actionChildren = []; // Categorize children based on their type
|
|
2971
|
+
|
|
2972
|
+
React__default.Children.forEach(children, function (child) {
|
|
2973
|
+
if (React__default.isValidElement(child)) {
|
|
2974
|
+
if (child.type === PageHeader.Action) {
|
|
2975
|
+
actionChildren.push(child);
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2978
|
+
});
|
|
2969
2979
|
React__default.useEffect(function () {
|
|
2970
2980
|
var current = scrollContainerRef.current;
|
|
2971
2981
|
if (!current) return;
|
|
@@ -3085,7 +3095,7 @@ function PageHeader(_ref) {
|
|
|
3085
3095
|
back: back,
|
|
3086
3096
|
className: "bg-gray-100 h-[60px] w-[60px] rounded"
|
|
3087
3097
|
}), React__default.createElement("div", {
|
|
3088
|
-
className: cn('w-full grid grid-cols-[
|
|
3098
|
+
className: cn('w-full grid grid-cols-[auto_1fr_auto_auto] h-[60px] rounded bg-gray-100 p-3 gap-4', innerClassName)
|
|
3089
3099
|
}, React__default.createElement("button", {
|
|
3090
3100
|
type: "button",
|
|
3091
3101
|
disabled: !search,
|
|
@@ -3134,8 +3144,15 @@ function PageHeader(_ref) {
|
|
|
3134
3144
|
return React__default.createElement(Action, Object.assign({
|
|
3135
3145
|
key: action.title + "-" + action.as + "-" + action.href
|
|
3136
3146
|
}, action));
|
|
3137
|
-
})))
|
|
3138
|
-
|
|
3147
|
+
}))), actionChildren && React__default.createElement("div", {
|
|
3148
|
+
className: "flex items-center gap-3 bg-gray-100"
|
|
3149
|
+
}, actionChildren)));
|
|
3150
|
+
} // Subcomponents
|
|
3151
|
+
|
|
3152
|
+
PageHeader.Action = function (_ref2) {
|
|
3153
|
+
var children = _ref2.children;
|
|
3154
|
+
return React__default.createElement("div", null, children);
|
|
3155
|
+
};
|
|
3139
3156
|
|
|
3140
3157
|
export { Button, Card, DateOfBirthField, ErrorList, FormTester, Modal, MoneyField, PageHeader, Pagination, QuoteRequestFormContext, QuoteRequestFormProvider, QuoteRequestOptionsProvider, RegistrationSearchField, SimplePagination, Table, TableActions, TableBody, TableCell, TableHead, TableHeader, TableRow, ToastItem, ToastProvider, Toasts, addGst, autocomplete, calcMonthlyEnhancementPrice, calcPurchaseOptionPricing, calculateAge, fixRoundingError, formatDate, formatDateForTable, formatDateNice, formatDateTime, formatMoney, formatNumber, getAddressData, getGst, gstCalc, initialData, round, sanitiseQuoteRequestFormData, sanitiseVehicleType, subtractGst, useAuth, useClickOutside, useInertiaOptions, useLocalStorage, useQuoteRequestForm, useQuoteRequestOptions, useToast };
|
|
3141
3158
|
//# sourceMappingURL=sdk.esm.js.map
|