@licklist/design 0.53.0-dev.4 → 0.53.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.
Files changed (109) hide show
  1. package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
  2. package/dist/auth/Login/LoginComponent.js +1 -1
  3. package/dist/calendar/Calendar.d.ts +8 -3
  4. package/dist/calendar/Calendar.d.ts.map +1 -1
  5. package/dist/calendar/Calendar.js +1 -1
  6. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts +2 -2
  7. package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
  8. package/dist/calendar/components/CalendarButtons/CalendarButtons.js +1 -1
  9. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +2 -2
  10. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
  11. package/dist/calendar/components/CalendarDates/CalendarDates.js +1 -1
  12. package/dist/calendar/utils/index.d.ts +2 -0
  13. package/dist/calendar/utils/index.d.ts.map +1 -1
  14. package/dist/calendar/utils/index.js +1 -1
  15. package/dist/date-time-button/DateTimeButton.d.ts +3 -3
  16. package/dist/date-time-button/DateTimeButton.d.ts.map +1 -1
  17. package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
  18. package/dist/events/edit-event-modal/IntervalInput.js +1 -1
  19. package/dist/events/event-venue-map/components/Scrollbars/Scrollbars.js +1 -1
  20. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  21. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  22. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  23. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +1 -2
  24. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
  25. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +1 -1
  26. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +1 -2
  27. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
  28. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.js +1 -1
  29. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +1 -1
  30. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +0 -1
  31. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  32. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  33. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
  34. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  35. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  36. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  37. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
  38. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +1 -2
  39. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  40. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
  41. package/dist/index.js +1 -1
  42. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  43. package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
  44. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  45. package/dist/sales/booking/results/components/ResultCard.js +1 -1
  46. package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts +1 -2
  47. package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts.map +1 -1
  48. package/dist/sales/manual-booking/summary/ManualBookingSummary.js +1 -1
  49. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  50. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  51. package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
  52. package/dist/static/date-range-input/DateRangeInput.js +1 -1
  53. package/dist/styles/resources-blocking/_index.scss +0 -6
  54. package/dist/styles/sales/BookingFilter.scss +2 -24
  55. package/dist/styles/sales/BookingResults.scss +1 -1
  56. package/dist/styles/sales/BookingTabs.scss +5 -63
  57. package/dist/styles/sales/LifeTimeSales.scss +0 -1
  58. package/dist/styles/sales/ManualBooking.scss +3 -62
  59. package/dist/styles/sales/SourceOfSales.scss +0 -3
  60. package/dist/styles/snippet-templates/SnippetTemplate.scss +11 -17
  61. package/dist/styles/snippet-templates/SnippetTemplateCard.scss +2 -3
  62. package/dist/styles/static/Tabs.scss +0 -6
  63. package/dist/styles/themes/bookedit/_index.scss +8 -9
  64. package/dist/styles/themes/bookedit/_variables.scss +0 -2
  65. package/package.json +3 -3
  66. package/src/auth/Login/LoginComponent.tsx +1 -9
  67. package/src/calendar/Calendar.tsx +16 -9
  68. package/src/calendar/components/CalendarButtons/CalendarButtons.tsx +5 -8
  69. package/src/calendar/components/CalendarDates/CalendarDates.tsx +13 -12
  70. package/src/calendar/utils/index.ts +19 -0
  71. package/src/date-time-button/DateTimeButton.tsx +3 -3
  72. package/src/events/edit-event-modal/IntervalInput.tsx +80 -8
  73. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
  74. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +6 -12
  75. package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +0 -3
  76. package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -1
  77. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +4 -2
  78. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +23 -16
  79. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +3 -10
  80. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +3 -9
  81. package/src/notification/email-template/control/EmailTemplateControl.tsx +15 -5
  82. package/src/sales/booking/results/components/ResultCard.tsx +4 -6
  83. package/src/sales/manual-booking/summary/ManualBookingSummary.tsx +1 -9
  84. package/src/snippet/snippet-template/preview/Preview.tsx +0 -3
  85. package/src/static/date-range-input/DateRangeInput.tsx +2 -23
  86. package/src/static/switch/BooleanSwitch.tsx +1 -1
  87. package/src/styles/resources-blocking/_index.scss +0 -6
  88. package/src/styles/sales/BookingFilter.scss +2 -24
  89. package/src/styles/sales/BookingResults.scss +1 -1
  90. package/src/styles/sales/BookingTabs.scss +5 -63
  91. package/src/styles/sales/LifeTimeSales.scss +0 -1
  92. package/src/styles/sales/ManualBooking.scss +3 -62
  93. package/src/styles/sales/SourceOfSales.scss +0 -3
  94. package/src/styles/snippet-templates/SnippetTemplate.scss +11 -17
  95. package/src/styles/snippet-templates/SnippetTemplateCard.scss +2 -3
  96. package/src/styles/static/Tabs.scss +0 -6
  97. package/src/styles/themes/bookedit/_index.scss +8 -9
  98. package/src/styles/themes/bookedit/_variables.scss +0 -2
  99. package/dist/events/edit-event-modal/hooks/index.d.ts +0 -3
  100. package/dist/events/edit-event-modal/hooks/index.d.ts.map +0 -1
  101. package/dist/events/edit-event-modal/hooks/useFormattedDuration.d.ts +0 -2
  102. package/dist/events/edit-event-modal/hooks/useFormattedDuration.d.ts.map +0 -1
  103. package/dist/events/edit-event-modal/hooks/useFormattedDuration.js +0 -1
  104. package/dist/events/edit-event-modal/hooks/useValidationOptions.d.ts +0 -11
  105. package/dist/events/edit-event-modal/hooks/useValidationOptions.d.ts.map +0 -1
  106. package/dist/events/edit-event-modal/hooks/useValidationOptions.js +0 -1
  107. package/src/events/edit-event-modal/hooks/index.ts +0 -2
  108. package/src/events/edit-event-modal/hooks/useFormattedDuration.tsx +0 -40
  109. package/src/events/edit-event-modal/hooks/useValidationOptions.tsx +0 -36
@@ -7,8 +7,10 @@ export const cartSumByOrderProducts = (orderProducts?: OrderItem[]) => {
7
7
  }
8
8
  return orderProducts.reduce((prevSumValue: number, product) => {
9
9
  if (!product) return 0;
10
- const price = product?.hasDeposit ? product?.deposit : product?.price;
11
- return prevSumValue + price * product.quantity;
10
+
11
+ return (
12
+ prevSumValue + (product?.deposit || product?.price) * product.quantity
13
+ );
12
14
  }, 0);
13
15
  };
14
16
 
@@ -32,9 +32,6 @@ export const CategoryProduct = ({
32
32
  const { t } = useTranslation(["Design", "Validation"]);
33
33
  const { control, clearErrors, setError } = useFormContext();
34
34
 
35
- const hasDeposits =
36
- category.allowDeposits && product?.deposit < product.price;
37
-
38
35
  const productQuantityError = useMemo(() => {
39
36
  if (!productsWithErrors) {
40
37
  return undefined;
@@ -45,6 +42,18 @@ export const CategoryProduct = ({
45
42
  return error?.message;
46
43
  }, [productsWithErrors, product.id]);
47
44
 
45
+ const deposit = useMemo(() => {
46
+ if (
47
+ !category.allowDeposits ||
48
+ !product.deposit ||
49
+ product?.isSoldOut ||
50
+ product.deposit >= product.price
51
+ ) {
52
+ return undefined;
53
+ }
54
+ return product.deposit;
55
+ }, [category, product]);
56
+
48
57
  const checkIfSoldOutProduct = () => {
49
58
  if (!soldOutProducts || product?.isSoldOut) {
50
59
  return undefined;
@@ -137,13 +146,10 @@ export const CategoryProduct = ({
137
146
  </div>
138
147
  <div className="iframe-event__product-price-wrapper">
139
148
  <span className="product-price">
140
- {formatNumber(
141
- category.allowDeposits ? product?.deposit : product.price,
142
- {
143
- style: "currency",
144
- currency: Config.Currency.GBP,
145
- }
146
- )}
149
+ {formatNumber(deposit ?? product.price, {
150
+ style: "currency",
151
+ currency: Config.Currency.GBP,
152
+ })}
147
153
  </span>
148
154
  <ProductQuantityInput
149
155
  onChange={onChange}
@@ -156,16 +162,17 @@ export const CategoryProduct = ({
156
162
  }}
157
163
  category={category}
158
164
  invalid={invalid}
165
+ deposit={deposit}
159
166
  />
160
167
  </div>
161
- {hasDeposits && !category?.remainderExpireAfter && (
168
+ {deposit && !category?.remainderExpireAfter && (
162
169
  <div className="mt-4">
163
170
  {t("Design:payNowAndUponArrival", {
164
- deposit: formatNumber(product?.deposit, {
171
+ deposit: formatNumber(deposit, {
165
172
  style: "currency",
166
173
  currency: Config.Currency.GBP,
167
174
  }),
168
- remainder: formatNumber(product.price - product?.deposit, {
175
+ remainder: formatNumber(product.price - deposit, {
169
176
  style: "currency",
170
177
  currency: Config.Currency.GBP,
171
178
  }),
@@ -173,14 +180,14 @@ export const CategoryProduct = ({
173
180
  </div>
174
181
  )}
175
182
 
176
- {hasDeposits && category?.remainderExpireAfter > 0 && (
183
+ {deposit && category?.remainderExpireAfter > 0 && (
177
184
  <div className="mt-4">
178
185
  {t("Design:payNowAndReminderDays", {
179
- deposit: formatNumber(product?.deposit, {
186
+ deposit: formatNumber(deposit, {
180
187
  style: "currency",
181
188
  currency: Config.Currency.GBP,
182
189
  }),
183
- remainder: formatNumber(product.price - product?.deposit, {
190
+ remainder: formatNumber(product.price - deposit, {
184
191
  style: "currency",
185
192
  currency: Config.Currency.GBP,
186
193
  }),
@@ -31,11 +31,8 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
31
31
  },
32
32
  ref
33
33
  ) => {
34
- const minusButtonGreyedOut = !value;
35
- const plusButtonGreyedOut = max !== undefined && value === max;
36
-
37
34
  const handleArrowUpClick = () => {
38
- if (max !== undefined && (value || 0) < max) {
35
+ if (max !== undefined && value < max) {
39
36
  onArrowUp(value + 1);
40
37
  }
41
38
  if (max === undefined) {
@@ -59,9 +56,7 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
59
56
  <button
60
57
  type="button"
61
58
  onClick={handleArrowDownClick}
62
- className={`payment-number-input__btn-down ${
63
- minusButtonGreyedOut && "disabled-number-input-button"
64
- }`}
59
+ className="payment-number-input__btn-down"
65
60
  disabled={disabled}
66
61
  >
67
62
  &minus;
@@ -81,9 +76,7 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
81
76
  <button
82
77
  type="button"
83
78
  onClick={handleArrowUpClick}
84
- className={`payment-number-input__btn-up ${
85
- plusButtonGreyedOut && "disabled-number-input-button"
86
- }`}
79
+ className="payment-number-input__btn-up"
87
80
  disabled={disabled}
88
81
  >
89
82
  &#43;
@@ -15,7 +15,6 @@ interface FormOrderItem {
15
15
  name: string;
16
16
  price: number;
17
17
  productCategoryId: number;
18
- hasDeposit?: boolean;
19
18
  zoneId?: Zone["id"];
20
19
  deposit?: number | null;
21
20
  quantity: number;
@@ -41,23 +40,19 @@ export const ProductQuantityInput = ({
41
40
  refCallback,
42
41
  productInfo,
43
42
  invalid,
43
+ deposit,
44
44
  }: ProductQuantityInputProps) => {
45
45
  const { t } = useTranslation("Design");
46
46
 
47
47
  const onChange = (quantity: number | null) => {
48
- let productQuantity = quantity;
49
- if (product?.maxAmount && quantity > product?.maxAmount) {
50
- productQuantity = product?.maxAmount;
51
- }
52
48
  _onChange({
53
49
  id: product.id,
54
50
  name: product.name,
55
- deposit: product?.deposit,
56
- hasDeposit: category.allowDeposits && product?.deposit < product.price,
51
+ deposit,
57
52
  price: product.price,
58
53
  productCategoryId: category.id,
59
54
  zoneId: category.zone?.id,
60
- quantity: productQuantity,
55
+ quantity,
61
56
  capacity: product?.capacity,
62
57
  });
63
58
  };
@@ -104,7 +99,6 @@ export const ProductQuantityInput = ({
104
99
  clearErrors(`${product.id}` as const);
105
100
  }}
106
101
  min={0}
107
- max={product?.maxAmount ? Number(product?.maxAmount) : undefined}
108
102
  placeholder="0"
109
103
  disabled={product.isSoldOut}
110
104
  value={productInfo?.quantity}
@@ -201,7 +201,15 @@ export const EmailTemplateControl = React.forwardRef(
201
201
  return (
202
202
  <>
203
203
  <Row>
204
- <Form.Group as={Col} controlId="type" sm={12}>
204
+ <Form.Group
205
+ as={Col}
206
+ controlId="type"
207
+ xs
208
+ sm={12}
209
+ md={8}
210
+ lg={10}
211
+ xl={12}
212
+ >
205
213
  <Form.Label>{t("type")}</Form.Label>
206
214
  <Form.Control
207
215
  as="select"
@@ -364,7 +372,9 @@ export const EmailTemplateControl = React.forwardRef(
364
372
  if (option.type === OPTION_TYPE.checkbox) {
365
373
  return (
366
374
  <Form.Check
367
- {...register(`templateOptionValues.${option?.id}.value`)}
375
+ {...register(
376
+ `templateOptionValues.${option?.id}.value` as any
377
+ )}
368
378
  type="checkbox"
369
379
  label={t(`Design:${option.name}`)}
370
380
  id={option.name + option.id}
@@ -387,7 +397,7 @@ export const EmailTemplateControl = React.forwardRef(
387
397
  onChange={() => {
388
398
  setIsIncludePDF(!isIncludePDF);
389
399
  setValue(
390
- `templateOptionValues.${option.id}.value`,
400
+ `templateOptionValues.${option.id}.value` as any,
391
401
  ""
392
402
  );
393
403
  }}
@@ -403,7 +413,7 @@ export const EmailTemplateControl = React.forwardRef(
403
413
  <Form.Control
404
414
  as="select"
405
415
  {...register(
406
- `templateOptionValues.${option.id}.value`
416
+ `templateOptionValues.${option.id}.value` as any
407
417
  )}
408
418
  defaultValue={option.selectedValue || ""}
409
419
  >
@@ -432,7 +442,7 @@ export const EmailTemplateControl = React.forwardRef(
432
442
  </Form.Label>
433
443
  <Form.Control
434
444
  {...register(
435
- `templateOptionValues.${option?.id}.value`
445
+ `templateOptionValues.${option?.id}.value` as any
436
446
  )}
437
447
  type="number"
438
448
  placeholder={t(`Design:${option.name}`)}
@@ -12,7 +12,7 @@ import { TIME_FORMAT } from "@licklist/core/dist/Config";
12
12
  import * as Config from "@licklist/core/dist/Config";
13
13
  import { formatDateStringForEvent } from "@licklist/plugins/dist/utils/formatDate";
14
14
  import { getOrderSourceTitle } from "@licklist/plugins/dist/utils/sourceTitle";
15
- import { calculateTotalDiscount } from "../../../../iframe/payment/order-items-table/utils";
15
+
16
16
  import Icon from "../../../../static/Icon";
17
17
 
18
18
  export type ResultCardProps = {
@@ -22,6 +22,8 @@ export type ResultCardProps = {
22
22
  onCardClick?: (id: number) => void;
23
23
  };
24
24
 
25
+ // @TODO integrate when API will be available
26
+ // activity and staff keys
25
27
  export const ResultCard = ({
26
28
  order,
27
29
  className,
@@ -43,14 +45,10 @@ export const ResultCard = ({
43
45
  event,
44
46
  menu,
45
47
  remainingToPay,
46
- payments,
47
48
  } = order;
48
49
 
49
- const discount = calculateTotalDiscount(payments);
50
-
51
50
  const productList = products.map((product) => product.name)?.join(", ") || "";
52
51
  const activityName = event?.name || menu?.name || "";
53
- const totalAmountWithDiscount = totalAmount - discount;
54
52
 
55
53
  const onClick = () => {
56
54
  if (!onCardClick) return;
@@ -110,7 +108,7 @@ export const ResultCard = ({
110
108
  )}
111
109
  <p>
112
110
  {t("paidAmount")}:{" "}
113
- {formatNumber(totalAmountWithDiscount, {
111
+ {formatNumber(totalAmount, {
114
112
  style: "currency",
115
113
  currency: Config.Currency.GBP,
116
114
  })}
@@ -24,7 +24,6 @@ export interface ManualBookingSummaryProps {
24
24
  isFeeFetching: boolean;
25
25
  orderDate: string;
26
26
  relyOnPeopleType?: RelyOnPeopleType | null;
27
- isMobileView?: boolean;
28
27
  }
29
28
 
30
29
  export const ManualBookingSummary = ({
@@ -36,7 +35,6 @@ export const ManualBookingSummary = ({
36
35
  orderDate,
37
36
  relyOnPeopleType,
38
37
  hasBookingCategory,
39
- isMobileView,
40
38
  }: ManualBookingSummaryProps) => {
41
39
  const { t } = useTranslation(["Design", "Sale"]);
42
40
  const { formatNumber } = useIntl();
@@ -46,13 +44,7 @@ export const ManualBookingSummary = ({
46
44
  const date = currentDate.toFormat(DATE_TIME_MANUAL_BOOKING_FORMAT);
47
45
  const time = currentDate.toFormat(TIME_FORMAT);
48
46
  return (
49
- <div
50
- className={
51
- isMobileView
52
- ? "manual-booking-summary-mobile"
53
- : "manual-booking-summary"
54
- }
55
- >
47
+ <div className="manual-booking-summary">
56
48
  <div className="receipt-title">{t("Sale:receipt")}</div>
57
49
  <div className="event-name border-summary-item">{eventName}</div>
58
50
  <div className="border-summary-item">{date}</div>
@@ -208,9 +208,6 @@ export function Preview({
208
208
  selectedDate={selectedDate}
209
209
  setSelectedDate={setSelectedDate}
210
210
  calendarDates={calendarDates}
211
- getDateTimeButtonProps={() => ({
212
- isDisabled: false,
213
- })}
214
211
  />
215
212
  </SettingButton>
216
213
  </div>
@@ -11,13 +11,10 @@ import {
11
11
  rangeDatesToStringDates,
12
12
  stringDatesToInputValue,
13
13
  } from "./utils";
14
- import { MOBILE_WIDTH } from "../../iframe/order-process/components/BookingSummary/types";
15
14
 
16
15
  import "react-date-range/dist/styles.css";
17
16
  import "react-date-range/dist/theme/default.css";
18
17
 
19
- type DateRangeDirection = "vertical" | "horizontal";
20
-
21
18
  type DateRangeInputProps = {
22
19
  placeholder: string;
23
20
  startDate?: string;
@@ -36,7 +33,7 @@ export const DateRangeInput = ({
36
33
  disabled,
37
34
  }: DateRangeInputProps) => {
38
35
  const { t } = useTranslation("Design");
39
- const [direction, setDirection] = useState<DateRangeDirection>("horizontal");
36
+
40
37
  const [state, setState] = useState<Range[]>([
41
38
  {
42
39
  startDate: new Date(),
@@ -85,24 +82,6 @@ export const DateRangeInput = ({
85
82
  }
86
83
  }, [startDate, endDate]);
87
84
 
88
- useEffect(() => {
89
- const resizeBodyInMobile = () => {
90
- if (window.innerWidth > MOBILE_WIDTH) {
91
- setDirection("horizontal");
92
- return;
93
- }
94
-
95
- setDirection("vertical");
96
- };
97
-
98
- resizeBodyInMobile();
99
- window.addEventListener("resize", resizeBodyInMobile);
100
-
101
- return () => {
102
- window.removeEventListener("resize", resizeBodyInMobile);
103
- };
104
- }, []);
105
-
106
85
  return (
107
86
  <div>
108
87
  <OverlayTrigger
@@ -115,7 +94,7 @@ export const DateRangeInput = ({
115
94
  moveRangeOnFirstSelection={false}
116
95
  ranges={state}
117
96
  months={months}
118
- direction={direction}
97
+ direction="horizontal"
119
98
  />
120
99
  <div className="mt-3 d-flex justify-content-end">
121
100
  <Button onClick={onReset} variant="link">
@@ -23,7 +23,7 @@ export function BooleanSwitch({
23
23
  const { t } = useTranslation("Design");
24
24
 
25
25
  const options: SelectItem[] = [
26
- { id: 1, value: firstValueTitle ?? t("yes") },
26
+ { id: 1, value: firstValueTitle ?? t("yes") },
27
27
  { id: 0, value: secondValueTitle ?? t("no") },
28
28
  ];
29
29
 
@@ -106,12 +106,6 @@
106
106
  align-items: center;
107
107
  gap: 0.25rem;
108
108
  margin-bottom: 0.5rem;
109
-
110
- @include media-breakpoint-down(sm) {
111
- justify-content: center;
112
- flex-wrap: wrap;
113
- }
114
-
115
109
  }
116
110
 
117
111
  .text-input.form-group {
@@ -157,19 +157,6 @@
157
157
  margin-bottom: 0;
158
158
  }
159
159
  }
160
-
161
- .apply-container{
162
- display: flex;
163
- justify-content: space-around;
164
- column-gap: 2rem;
165
- margin-left: 3rem;
166
-
167
- @include media-breakpoint-down(sm) {
168
- flex-direction: row;
169
- margin-left: 0rem;
170
- column-gap: 1rem;
171
- }
172
- }
173
160
  }
174
161
 
175
162
  .additional-filter-container {
@@ -188,12 +175,8 @@
188
175
  }
189
176
  }
190
177
 
191
- @include media-breakpoint-down(xl) {
192
- flex-wrap: wrap;
193
-
194
- .apply-container {
195
- margin-left: 4rem;
196
- }
178
+ @include media-breakpoint-between(md, lg) {
179
+ flex-wrap: nowrap;
197
180
 
198
181
  .date-container {
199
182
  width: auto;
@@ -247,11 +230,6 @@
247
230
  transform: rotate(45deg);
248
231
  }
249
232
  }
250
-
251
- @include media-breakpoint-down(sm) {
252
- flex-direction: column;
253
- justify-content: flex-start;
254
- }
255
233
  }
256
234
  }
257
235
  }
@@ -5,7 +5,7 @@
5
5
  flex-wrap: wrap;
6
6
 
7
7
  .result-card {
8
- height: 14rem;
8
+ height: 14.25rem;
9
9
  border: 1px solid $gray-400;
10
10
  max-width: calc(50% - 0.75rem);
11
11
  flex: 0 0 calc(50% - 0.75rem);
@@ -1,49 +1,24 @@
1
1
  .booking-tabs-pane {
2
2
  display: flex;
3
3
  flex-direction: row;
4
- justify-content: space-between;
5
4
  align-items: center;
6
5
  height: 2.75rem;
7
6
  background-color: $white;
8
7
 
9
8
  .booking-tabs {
10
9
  svg {
11
- g>rect:first-child {
12
- fill: $white;
10
+ g > rect:first-child {
11
+ fill: $white;
13
12
  }
14
13
  }
15
-
14
+
16
15
  .active {
17
16
  svg {
18
- g>rect:first-child {
19
- fill: $blue;
17
+ g > rect:first-child {
18
+ fill: $blue;
20
19
  }
21
20
  }
22
21
  }
23
-
24
- @include media-breakpoint-down(sm) {
25
- width: 4rem;
26
- }
27
- }
28
-
29
- .content {
30
- display: flex;
31
- justify-content: space-between;
32
- width: 85%;
33
- flex-direction: row;
34
-
35
- @include media-breakpoint-down(sm) {
36
- display: flex;
37
- flex-direction: column;
38
- align-items: start;
39
- height: 4rem;
40
- }
41
-
42
- .booking {
43
- @include media-breakpoint-down(sm) {
44
- height: 13rem;
45
- }
46
- }
47
22
  }
48
23
 
49
24
  .separator {
@@ -54,12 +29,6 @@
54
29
  .children {
55
30
  flex: 1;
56
31
  margin-left: 1rem;
57
-
58
- @include media-breakpoint-down(sm) {
59
- display: flex;
60
- flex-direction: column;
61
- align-items: start;
62
- }
63
32
  }
64
33
 
65
34
  .buttons {
@@ -92,33 +61,6 @@
92
61
  border-radius: 0.625rem;
93
62
  margin-right: 0.5rem;
94
63
  }
95
- @include media-breakpoint-down(sm) {
96
- width: 12.5rem;
97
- }
98
-
99
- }
100
-
101
- @include media-breakpoint-down(sm) {
102
- display: flex;
103
- flex-direction: column;
104
- align-items: start;
105
- gap: .5rem;
106
- margin-top: .5rem;
107
- white-space: nowrap;
108
- }
109
- }
110
-
111
- @include media-breakpoint-down(sm) {
112
- display: flex;
113
- align-items: start;
114
- gap: 1rem;
115
- margin-top: 1rem;
116
- height: 100%;
117
- }
118
-
119
- .booking {
120
- @include media-breakpoint-down(sm) {
121
- height: 13rem;
122
64
  }
123
65
  }
124
66
  }
@@ -33,7 +33,6 @@
33
33
  }
34
34
 
35
35
  @include media-breakpoint-down(sm) {
36
- height: 12rem;
37
36
  &__value {
38
37
  line-height: 1rem;
39
38
  font-size: 2rem;
@@ -361,11 +361,10 @@
361
361
  width: inherit;
362
362
 
363
363
  @include media-breakpoint-down(sm) {
364
- display: none;
364
+ padding: 0 0.5rem;
365
+ padding-top: 2rem;
365
366
  }
366
367
 
367
-
368
-
369
368
  .form-control {
370
369
  margin-bottom: 1.5rem;
371
370
  }
@@ -412,64 +411,6 @@
412
411
  }
413
412
  }
414
413
 
415
- .manual-booking-summary-mobile {
416
- display: none;
417
-
418
- @include media-breakpoint-down(sm) {
419
- display: block;
420
- padding: 0 1.5rem;
421
- padding-top: 2rem;
422
- height: max-content;
423
- margin-bottom: 1.5rem;
424
- width: inherit;
425
-
426
- .form-control {
427
- margin-bottom: .5rem;
428
- }
429
- .receipt-title {
430
- font-size: 1.125rem;
431
- font-weight: 600;
432
- padding-bottom: 0.4rem;
433
- margin-bottom: 1rem;
434
- border-bottom: 2px solid $gray-400;
435
- }
436
- .event-name {
437
- font-size: 0.94rem;
438
- font-weight: 600;
439
- }
440
-
441
- .border-summary-item {
442
- padding-bottom: 0.9rem;
443
- margin-bottom: 1%;
444
- border-bottom: 2px solid $gray-100;
445
- flex-wrap: wrap;
446
- }
447
-
448
- .total-container {
449
- display: flex;
450
- justify-content: space-between;
451
- font-size: 1rem;
452
- font-weight: 600;
453
-
454
- @include media-breakpoint-down(lg) {
455
- flex-wrap: wrap;
456
- }
457
- .total-amount {
458
- padding-left: 1rem;
459
- @include media-breakpoint-down(lg) {
460
- padding-left: 0;
461
- }
462
- }
463
- }
464
-
465
- .summary-item-container {
466
- .border-summary-item:nth-last-child(2) {
467
- border-bottom: 2px solid $gray-400;
468
- }
469
- }
470
- }
471
- }
472
-
473
414
  .menu-list-manual-booking {
474
415
  display: flex;
475
416
  align-items: center;
@@ -496,4 +437,4 @@
496
437
  color: $blue;
497
438
  }
498
439
  }
499
- }
440
+ }
@@ -13,9 +13,6 @@
13
13
 
14
14
  &__pie-chart {
15
15
  height: 100%;
16
- @include media-breakpoint-down(sm) {
17
- height: 12rem;
18
- }
19
16
  }
20
17
 
21
18
  .colors-0 {