mautourco-components 0.2.35 → 0.2.36
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.
|
@@ -8,7 +8,4 @@ export interface QuoteHeaderProps {
|
|
|
8
8
|
onNewQuote: () => void;
|
|
9
9
|
onFilterChange: (filter: 'date' | 'clientType' | 'fileStatus', value: string) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
12
|
-
(props: QuoteHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
11
|
+
export declare function QuoteHeader(props: QuoteHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -19,7 +19,7 @@ var filterConfig = {
|
|
|
19
19
|
placeholder: 'File status',
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export function QuoteHeader(props) {
|
|
23
23
|
var _a = props.current, current = _a === void 0 ? 'quotation' : _a, onNavigate = props.onNavigate, onNewQuote = props.onNewQuote, onFilterChange = props.onFilterChange;
|
|
24
24
|
return (_jsxs("div", { className: "quote-header", children: [_jsx(Heading, { level: 4, as: "h1", className: "quote-header__title", color: "accent", children: "Quotation & Booking" }), _jsxs("div", { className: "flex gap-4", children: [_jsx(Button, { variant: current === 'quotation' ? 'primary' : 'outline-primary', className: "quote-header__button", onClick: function () { return onNavigate('quotation'); }, children: "Quotation" }), _jsx(Button, { variant: current === 'booking' ? 'primary' : 'outline-primary', className: "quote-header__button", onClick: function () { return onNavigate('booking'); }, children: "Booking" })] }), _jsxs("div", { className: "quote-header__search-container", children: [_jsx(Input, { placeholder: "Search", icon: "search", iconPosition: "leading", className: "quote-header__search" }), _jsx(Button, { variant: "primary", leadingIcon: "plus-circle", iconSize: "md", size: "sm", onClick: onNewQuote, children: "New quote" })] }), _jsx("div", { className: "quote-header__filters", children: Object.entries(filterConfig).map(function (_a) {
|
|
25
25
|
var key = _a[0], value = _a[1];
|
|
@@ -27,5 +27,4 @@ export var QuoteHeader = function (props) {
|
|
|
27
27
|
return onFilterChange(key, value);
|
|
28
28
|
} }, key));
|
|
29
29
|
}) })] }));
|
|
30
|
-
}
|
|
31
|
-
QuoteHeader.displayName = 'QuoteHeader';
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ const filterConfig = {
|
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
export
|
|
40
|
+
export function QuoteHeader(props: QuoteHeaderProps) {
|
|
41
41
|
const { current = 'quotation', onNavigate, onNewQuote, onFilterChange } = props;
|
|
42
42
|
|
|
43
43
|
return (
|
|
@@ -89,6 +89,4 @@ export const QuoteHeader = (props: QuoteHeaderProps) => {
|
|
|
89
89
|
</div>
|
|
90
90
|
</div>
|
|
91
91
|
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
QuoteHeader.displayName = 'QuoteHeader';
|
|
92
|
+
}
|