mautourco-components 0.2.160 → 0.2.161

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.
@@ -3,6 +3,10 @@ export interface BookingMailSentProps {
3
3
  * Whether the dialog is open.
4
4
  */
5
5
  open: boolean;
6
+ /**
7
+ * The illustration to display.
8
+ */
9
+ illustration?: string;
6
10
  /**
7
11
  * The callback function to call when the dialog is closed.
8
12
  */
@@ -15,6 +15,6 @@ import { DialogBookingConfirm } from './DialogBookingConfirm';
15
15
  * @returns
16
16
  */
17
17
  export function BookingMailSent(props) {
18
- var open = props.open, setOpen = props.setOpen, onNext = props.onNext;
19
- return (_jsx(DialogBookingConfirm, { open: open, setOpen: setOpen, className: "!max-w-[800px]", children: _jsxs("div", { className: "space-y-9", children: [_jsxs("div", { className: "space-y-8", children: [_jsx("img", { src: "/images/svg/booking-mail-sent.svg", alt: "Booking success", className: "mx-auto", width: 150, height: 150 }), _jsx(Heading, { as: "p", level: 6, variant: "medium", className: "text-center", children: "You will receive a copy of your booking in your mail inbox." })] }), _jsx(Button, { variant: "secondary", onClick: onNext, className: "w-full", children: "Go to booking grid" })] }) }));
18
+ var open = props.open, setOpen = props.setOpen, onNext = props.onNext, _a = props.illustration, illustration = _a === void 0 ? '/images/svg/booking-mail-sent.svg' : _a;
19
+ return (_jsx(DialogBookingConfirm, { open: open, setOpen: setOpen, className: "!max-w-[800px]", children: _jsxs("div", { className: "space-y-9", children: [_jsxs("div", { className: "space-y-8", children: [_jsx("img", { src: illustration, alt: "Booking success", className: "mx-auto", width: 150, height: 150 }), _jsx(Heading, { as: "p", level: 6, variant: "medium", className: "text-center", children: "You will receive a copy of your booking in your mail inbox." })] }), _jsx(Button, { variant: "secondary", onClick: onNext, className: "w-full", children: "Go to booking grid" })] }) }));
20
20
  }
@@ -7,6 +7,10 @@ export interface BookingSuccessProps {
7
7
  * The name of the booking.
8
8
  */
9
9
  bookingName: string;
10
+ /**
11
+ * The illustration to display.
12
+ */
13
+ illustration?: string;
10
14
  /**
11
15
  * The callback function to call when the dialog is closed.
12
16
  */
@@ -17,6 +17,6 @@ import { DialogBookingConfirm } from './DialogBookingConfirm';
17
17
  * @returns The BookingSuccess component.
18
18
  */
19
19
  export function BookingSuccess(props) {
20
- var open = props.open, bookingName = props.bookingName, setOpen = props.setOpen, onNext = props.onNext;
21
- return (_jsx(DialogBookingConfirm, { open: open, setOpen: setOpen, className: "!max-w-[800px]", children: _jsxs("div", { className: "space-y-9", children: [_jsxs("div", { className: "space-y-8", children: [_jsx("img", { src: "/images/svg/booking-confirm.svg", alt: "Booking success", className: "mx-auto", width: 150, height: 150 }), _jsxs("div", { className: "text-center", children: [_jsx(Heading, { as: "p", level: 6, variant: "medium", children: "Your booking has been successfully confirmed!" }), _jsxs(Text, { variant: "bold", size: "lg", children: ["\"", bookingName, "\""] })] })] }), _jsx(Button, { variant: "secondary", onClick: onNext, className: "w-full", children: "Confirm booking" })] }) }));
20
+ var open = props.open, bookingName = props.bookingName, setOpen = props.setOpen, onNext = props.onNext, _a = props.illustration, illustration = _a === void 0 ? '/images/svg/booking-confirm.svg' : _a;
21
+ return (_jsx(DialogBookingConfirm, { open: open, setOpen: setOpen, className: "!max-w-[800px]", children: _jsxs("div", { className: "space-y-9", children: [_jsxs("div", { className: "space-y-8", children: [_jsx("img", { src: illustration, alt: "Booking success", className: "mx-auto", width: 150, height: 150 }), _jsxs("div", { className: "text-center", children: [_jsx(Heading, { as: "p", level: 6, variant: "medium", children: "Your booking has been successfully confirmed!" }), _jsxs(Text, { variant: "bold", size: "lg", children: ["\"", bookingName, "\""] })] })] }), _jsx(Button, { variant: "secondary", onClick: onNext, className: "w-full", children: "Confirm booking" })] }) }));
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mautourco-components",
3
- "version": "0.2.160",
3
+ "version": "0.2.161",
4
4
  "private": false,
5
5
  "description": "Bibliothèque de composants Mautourco pour le redesign",
6
6
  "main": "dist/index.js",
@@ -6,6 +6,10 @@ export interface BookingMailSentProps {
6
6
  * Whether the dialog is open.
7
7
  */
8
8
  open: boolean;
9
+ /**
10
+ * The illustration to display.
11
+ */
12
+ illustration?: string;
9
13
  /**
10
14
  * The callback function to call when the dialog is closed.
11
15
  */
@@ -30,13 +34,18 @@ export interface BookingMailSentProps {
30
34
  * @returns
31
35
  */
32
36
  export function BookingMailSent(props: BookingMailSentProps) {
33
- const { open, setOpen, onNext } = props;
37
+ const {
38
+ open,
39
+ setOpen,
40
+ onNext,
41
+ illustration = '/images/svg/booking-mail-sent.svg',
42
+ } = props;
34
43
  return (
35
44
  <DialogBookingConfirm open={open} setOpen={setOpen} className="!max-w-[800px]">
36
45
  <div className="space-y-9">
37
46
  <div className="space-y-8">
38
47
  <img
39
- src="/images/svg/booking-mail-sent.svg"
48
+ src={illustration}
40
49
  alt="Booking success"
41
50
  className="mx-auto"
42
51
  width={150}
@@ -10,6 +10,10 @@ export interface BookingSuccessProps {
10
10
  * The name of the booking.
11
11
  */
12
12
  bookingName: string;
13
+ /**
14
+ * The illustration to display.
15
+ */
16
+ illustration?: string;
13
17
  /**
14
18
  * The callback function to call when the dialog is closed.
15
19
  */
@@ -36,13 +40,19 @@ export interface BookingSuccessProps {
36
40
  * @returns The BookingSuccess component.
37
41
  */
38
42
  export function BookingSuccess(props: BookingSuccessProps) {
39
- const { open, bookingName, setOpen, onNext } = props;
43
+ const {
44
+ open,
45
+ bookingName,
46
+ setOpen,
47
+ onNext,
48
+ illustration = '/images/svg/booking-confirm.svg',
49
+ } = props;
40
50
  return (
41
51
  <DialogBookingConfirm open={open} setOpen={setOpen} className="!max-w-[800px]">
42
52
  <div className="space-y-9">
43
53
  <div className="space-y-8">
44
54
  <img
45
- src="/images/svg/booking-confirm.svg"
55
+ src={illustration}
46
56
  alt="Booking success"
47
57
  className="mx-auto"
48
58
  width={150}