@licklist/design 0.50.1-dev.8 → 0.50.1

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 (161) hide show
  1. package/dist/assets/dashboard/addImage.svg.js +1 -1
  2. package/dist/assets/dashboard/chartBar.svg.js +1 -1
  3. package/dist/assets/dashboard/genderFemale.svg.js +1 -1
  4. package/dist/assets/dashboard/genderMale.svg.js +1 -1
  5. package/dist/assets/dashboard/increment.svg.js +1 -1
  6. package/dist/assets/dashboard/info.svg.js +1 -1
  7. package/dist/assets/dashboard/managerRole.svg.js +1 -1
  8. package/dist/assets/dashboard/subManagerRole.svg.js +1 -1
  9. package/dist/assets/dashboard/viewerRole.svg.js +1 -1
  10. package/dist/assets/dashboard/visitedProviderLink.svg.js +1 -1
  11. package/dist/assets/dashboard/warning.svg.js +1 -1
  12. package/dist/assets/editor/bold.svg.js +1 -1
  13. package/dist/assets/editor/double-quotes-l.svg.js +1 -1
  14. package/dist/assets/editor/format-clear.svg.js +1 -1
  15. package/dist/assets/editor/h1.svg.js +1 -1
  16. package/dist/assets/editor/h2.svg.js +1 -1
  17. package/dist/assets/editor/italic.svg.js +1 -1
  18. package/dist/assets/editor/paragraph.svg.js +1 -1
  19. package/dist/assets/editor/separator.svg.js +1 -1
  20. package/dist/assets/editor/strikethrough.svg.js +1 -1
  21. package/dist/assets/editor/text-wrap.svg.js +1 -1
  22. package/dist/assets/iframe/available.svg.js +1 -1
  23. package/dist/assets/iframe/calendar.svg.js +1 -1
  24. package/dist/assets/iframe/clock.svg.js +1 -1
  25. package/dist/assets/iframe/close.svg.js +1 -1
  26. package/dist/assets/iframe/limited.svg.js +1 -1
  27. package/dist/assets/iframe/selectArrow.svg.js +1 -1
  28. package/dist/assets/iframe/soldOut.svg.js +1 -1
  29. package/dist/assets/iframe/success.svg.js +1 -1
  30. package/dist/assets/iframe/ticket.svg.js +1 -1
  31. package/dist/assets/logo/bookedit.svg.js +1 -1
  32. package/dist/assets/logo/licklist.sm.svg.js +1 -1
  33. package/dist/assets/logo/licklist.svg.js +1 -1
  34. package/dist/calendar/Calendar.d.ts +0 -3
  35. package/dist/calendar/Calendar.d.ts.map +1 -1
  36. package/dist/calendar/components/CalendarButtons/CalendarButtons.js +1 -1
  37. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +1 -1
  38. package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
  39. package/dist/calendar/components/CalendarDates/CalendarDates.js +1 -1
  40. package/dist/calendar/utils/index.d.ts +1 -2
  41. package/dist/calendar/utils/index.d.ts.map +1 -1
  42. package/dist/calendar/utils/index.js +1 -1
  43. package/dist/date-time-button/DateTimeButton.d.ts +2 -3
  44. package/dist/date-time-button/DateTimeButton.d.ts.map +1 -1
  45. package/dist/date-time-button/DateTimeButton.js +1 -1
  46. package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
  47. package/dist/events/edit-event-modal/IntervalInput.js +1 -1
  48. package/dist/events/event-card/EventCard.d.ts +1 -2
  49. package/dist/events/event-card/EventCard.d.ts.map +1 -1
  50. package/dist/events/event-card/EventCard.js +1 -1
  51. package/dist/events/event-venue-map/components/Scrollbars/Scrollbars.js +1 -1
  52. package/dist/iframe/event/event-booking-products/EventBookingProducts.js +1 -1
  53. package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.d.ts +2 -2
  54. package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.d.ts.map +1 -1
  55. package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.js +1 -1
  56. package/dist/iframe/event/event-card/IframeEventCard.d.ts +1 -2
  57. package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
  58. package/dist/iframe/event/event-card/IframeEventCard.js +1 -1
  59. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
  60. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
  61. package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
  62. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +1 -2
  63. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
  64. package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +1 -1
  65. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +1 -2
  66. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
  67. package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.js +1 -1
  68. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +1 -1
  69. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +0 -1
  70. package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
  71. package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
  72. package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
  73. package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts +1 -2
  74. package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.d.ts.map +1 -1
  75. package/dist/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.js +1 -1
  76. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
  77. package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
  78. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +2 -3
  79. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  80. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
  81. package/dist/iframe/order-process/components/utils/useCategoryVerification.js +1 -1
  82. package/dist/index.js +1 -1
  83. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  84. package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
  85. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  86. package/dist/sales/booking/results/components/ResultCard.js +1 -1
  87. package/dist/sales/manual-booking/select-event/SelectEvent.d.ts.map +1 -1
  88. package/dist/sales/manual-booking/select-event/SelectEvent.js +1 -1
  89. package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts +1 -2
  90. package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts.map +1 -1
  91. package/dist/sales/manual-booking/summary/ManualBookingSummary.js +1 -1
  92. package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
  93. package/dist/static/date-range-input/DateRangeInput.js +1 -1
  94. package/dist/styles/affiliate/AffiliateCard.scss +6 -26
  95. package/dist/styles/events/EventCard.scss +6 -3
  96. package/dist/styles/product-set/ProductSetCard.scss +0 -4
  97. package/dist/styles/resources-blocking/_index.scss +0 -6
  98. package/dist/styles/sales/BookingFilter.scss +0 -18
  99. package/dist/styles/sales/BookingResults.scss +1 -1
  100. package/dist/styles/sales/BookingTabs.scss +5 -63
  101. package/dist/styles/sales/LifeTimeSales.scss +0 -1
  102. package/dist/styles/sales/ManualBooking.scss +3 -62
  103. package/dist/styles/sales/SourceOfSales.scss +0 -3
  104. package/dist/styles/snippet-templates/SnippetTemplateCard.scss +2 -3
  105. package/dist/styles/static/Tabs.scss +0 -6
  106. package/dist/styles/themes/bookedit/_index.scss +8 -9
  107. package/dist/table/TableHelperComponent.d.ts.map +1 -1
  108. package/package.json +3 -3
  109. package/src/calendar/Calendar.tsx +0 -5
  110. package/src/calendar/components/CalendarButtons/CalendarButtons.tsx +3 -3
  111. package/src/calendar/components/CalendarDates/CalendarDates.tsx +2 -5
  112. package/src/calendar/utils/index.ts +6 -15
  113. package/src/date-time-button/DateTimeButton.tsx +3 -16
  114. package/src/events/edit-event-modal/IntervalInput.tsx +80 -8
  115. package/src/events/event-card/EventCard.stories.tsx +0 -1
  116. package/src/events/event-card/EventCard.tsx +2 -27
  117. package/src/iframe/event/event-booking-products/EventBookingProducts.tsx +1 -1
  118. package/src/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.tsx +8 -8
  119. package/src/iframe/event/event-card/IframeEventCard.tsx +1 -3
  120. package/src/iframe/order-process/components/BookingSummary/BookingSummary.stories.tsx +5 -5
  121. package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
  122. package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +6 -12
  123. package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +2 -5
  124. package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -1
  125. package/src/iframe/order-process/components/BookingSummary/utils/index.ts +4 -2
  126. package/src/iframe/order-process/components/BookingSummaryFooter/BookingSummaryFooter.tsx +3 -16
  127. package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +23 -13
  128. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +5 -11
  129. package/src/iframe/order-process/components/utils/useCategoryVerification.ts +1 -1
  130. package/src/iframe/payment/payment-page/PaymentPage.stories.tsx +1 -1
  131. package/src/notification/email-template/control/EmailTemplateControl.tsx +15 -5
  132. package/src/sales/booking/results/components/ResultCard.tsx +4 -6
  133. package/src/sales/manual-booking/select-event/SelectEvent.tsx +1 -4
  134. package/src/sales/manual-booking/summary/ManualBookingSummary.tsx +1 -9
  135. package/src/static/date-range-input/DateRangeInput.tsx +2 -23
  136. package/src/static/switch/BooleanSwitch.tsx +1 -1
  137. package/src/styles/affiliate/AffiliateCard.scss +6 -26
  138. package/src/styles/events/EventCard.scss +6 -3
  139. package/src/styles/product-set/ProductSetCard.scss +0 -4
  140. package/src/styles/resources-blocking/_index.scss +0 -6
  141. package/src/styles/sales/BookingFilter.scss +0 -18
  142. package/src/styles/sales/BookingResults.scss +1 -1
  143. package/src/styles/sales/BookingTabs.scss +5 -63
  144. package/src/styles/sales/LifeTimeSales.scss +0 -1
  145. package/src/styles/sales/ManualBooking.scss +3 -62
  146. package/src/styles/sales/SourceOfSales.scss +0 -3
  147. package/src/styles/snippet-templates/SnippetTemplateCard.scss +2 -3
  148. package/src/styles/static/Tabs.scss +0 -6
  149. package/src/styles/themes/bookedit/_index.scss +8 -9
  150. package/src/table/TableHelperComponent.tsx +13 -11
  151. package/dist/events/edit-event-modal/hooks/index.d.ts +0 -3
  152. package/dist/events/edit-event-modal/hooks/index.d.ts.map +0 -1
  153. package/dist/events/edit-event-modal/hooks/useFormattedDuration.d.ts +0 -2
  154. package/dist/events/edit-event-modal/hooks/useFormattedDuration.d.ts.map +0 -1
  155. package/dist/events/edit-event-modal/hooks/useFormattedDuration.js +0 -1
  156. package/dist/events/edit-event-modal/hooks/useValidationOptions.d.ts +0 -11
  157. package/dist/events/edit-event-modal/hooks/useValidationOptions.d.ts.map +0 -1
  158. package/dist/events/edit-event-modal/hooks/useValidationOptions.js +0 -1
  159. package/src/events/edit-event-modal/hooks/index.ts +0 -2
  160. package/src/events/edit-event-modal/hooks/useFormattedDuration.tsx +0 -40
  161. package/src/events/edit-event-modal/hooks/useValidationOptions.tsx +0 -36
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react"));require("../../../static/loader/LoaderIndicator.js");var a=require("../../../static/loader/BlockLoader.js"),r=require("react-i18next"),l=require("react-bootstrap");require("../../../static/loader/ButtonLoader.js"),require("../../../static/loader/SnippetLoader.js"),require("../../../static/loader/PaymentLoader.js");var n=require("luxon"),o=require("rrule"),i=(e(o),e(require("@licklist/plugins/dist/services/Media/MediaService"))),s=require("../formatDays.js"),d=function(e){var a,i,d,c=e.coverImageUrl,u=e.title,m=e.rrule,v=e.startAt,E=e.endAt,p=e.isSoldOut,g=e.onClick,f=r.useTranslation("Sale").t;return t.createElement("div",{role:"button",tabIndex:0,className:"event-card-manual-booking","aria-disabled":p,onClick:p?void 0:g,onKeyUp:p?void 0:g},t.createElement("div",{className:"card-image-container"},t.createElement(l.Card.Img,{variant:"top",src:c,className:["card-img-manual-booking",p?"disable-img":""].join(" ")}),p&&t.createElement("div",{className:"sold-out"},f("soldOut"))),t.createElement("div",{className:"event-card-title"},u),t.createElement("div",{className:"event-card-days"},m?s.formatToDays(null===(i=null===(a=o.rrulestr(m.includes("EXDATE")?m.split(";EXDATE=")[0]:m))||void 0===a?void 0:a.options)||void 0===i?void 0:i.byweekday):s.formatToDays([null===(d=n.DateTime.fromISO(v))||void 0===d?void 0:d.day])),t.createElement("div",{className:"event-card-hours"},s.formatToHours(v,E)))};exports.EventCardManualBooking=d,exports.SelectEvent=function(e){var n=e.events,o=e.isLoading,s=e.selectEvent,c=r.useTranslation(["App","Sale"]).t;return t.createElement("div",null,o?t.createElement("div",{className:"loader-container"},t.createElement(a.BlockLoader,null)):t.createElement(t.Fragment,null,n&&n.length||o?t.createElement(t.Fragment,null,!o&&t.createElement(l.Form.Label,{className:"bold-text"},c("App:events")),t.createElement("div",{className:"event-list-manual-booking"},null==n?void 0:n.map((function(e){var a,r;return t.createElement(d,{key:"".concat(e.id,"-").concat(e.createdAt),coverImageUrl:i.getImageSrcByEvent(e,null===(a=null==e?void 0:e.providers[0])||void 0===a?void 0:a.images),title:null==e?void 0:e.name,rrule:null==e?void 0:e.rrule,startAt:null==e?void 0:e.startAt,endAt:null==e?void 0:e.endAt,isSoldOut:null===(r=null==e?void 0:e.menusInfo)||void 0===r?void 0:r.isAllMenuProductsSoldOut,onClick:function(){return s(e)}})})))):t.createElement("div",{className:"no-results-content"},t.createElement("span",{className:"no-results-found"},c("App:noResultsFoundForSelectedDate")))))};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react"));require("../../../static/loader/LoaderIndicator.js");var a=require("../../../static/loader/BlockLoader.js"),r=require("react-i18next"),l=require("react-bootstrap");require("../../../static/loader/ButtonLoader.js"),require("../../../static/loader/SnippetLoader.js"),require("../../../static/loader/PaymentLoader.js");var n=require("luxon"),o=require("rrule"),i=(e(o),e(require("@licklist/plugins/dist/services/Media/MediaService"))),s=require("../formatDays.js"),d=function(e){var a,i,d,c=e.coverImageUrl,u=e.title,m=e.rrule,v=e.startAt,E=e.endAt,p=e.isSoldOut,g=e.onClick,f=r.useTranslation("Sale").t;return t.createElement("div",{role:"button",tabIndex:0,className:"event-card-manual-booking","aria-disabled":p,onClick:p?void 0:g,onKeyUp:p?void 0:g},t.createElement("div",{className:"card-image-container"},t.createElement(l.Card.Img,{variant:"top",src:c,className:["card-img-manual-booking",p?"disable-img":""].join(" ")}),p&&t.createElement("div",{className:"sold-out"},f("soldOut"))),t.createElement("div",{className:"event-card-title"},u),t.createElement("div",{className:"event-card-days"},m?s.formatToDays(null===(i=null===(a=o.rrulestr(m.includes("EXDATE")?m.split(";EXDATE=")[0]:m))||void 0===a?void 0:a.options)||void 0===i?void 0:i.byweekday):s.formatToDays([null===(d=n.DateTime.fromISO(v))||void 0===d?void 0:d.day])),t.createElement("div",{className:"event-card-hours"},s.formatToHours(v,E)))};exports.EventCardManualBooking=d,exports.SelectEvent=function(e){var n=e.events,o=e.isLoading,s=e.selectEvent,c=r.useTranslation(["App","Sale"]).t;return t.createElement("div",null,o?t.createElement("div",{className:"loader-container"},t.createElement(a.BlockLoader,null)):t.createElement(t.Fragment,null,n&&n.length||o?t.createElement(t.Fragment,null,!o&&t.createElement(l.Form.Label,{className:"bold-text"},c("App:events")),t.createElement("div",{className:"event-list-manual-booking"},null==n?void 0:n.map((function(e){var a;return t.createElement(d,{key:"".concat(e.id,"-").concat(e.createdAt),coverImageUrl:i.getImageSrcByEvent(e),title:null==e?void 0:e.name,rrule:null==e?void 0:e.rrule,startAt:null==e?void 0:e.startAt,endAt:null==e?void 0:e.endAt,isSoldOut:null===(a=null==e?void 0:e.menusInfo)||void 0===a?void 0:a.isAllMenuProductsSoldOut,onClick:function(){return s(e)}})})))):t.createElement("div",{className:"no-results-content"},t.createElement("span",{className:"no-results-found"},c("App:noResultsFoundForSelectedDate")))))};
@@ -10,7 +10,6 @@ export interface ManualBookingSummaryProps {
10
10
  isFeeFetching: boolean;
11
11
  orderDate: string;
12
12
  relyOnPeopleType?: RelyOnPeopleType | null;
13
- isMobileView?: boolean;
14
13
  }
15
- export declare const ManualBookingSummary: ({ eventName, orders, ordersSum, orderSumIncludingFee, isFeeFetching, orderDate, relyOnPeopleType, hasBookingCategory, isMobileView, }: ManualBookingSummaryProps) => JSX.Element;
14
+ export declare const ManualBookingSummary: ({ eventName, orders, ordersSum, orderSumIncludingFee, isFeeFetching, orderDate, relyOnPeopleType, hasBookingCategory, }: ManualBookingSummaryProps) => JSX.Element;
16
15
  //# sourceMappingURL=ManualBookingSummary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ManualBookingSummary.d.ts","sourceRoot":"","sources":["../../../../src/sales/manual-booking/summary/ManualBookingSummary.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+DAA+D,CAAC;AAQnG,OAAO,EAEL,gBAAgB,EACjB,MAAM,6DAA6D,CAAC;AAIrE,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,oBAAoB,0IAU9B,yBAAyB,gBAwF3B,CAAC"}
1
+ {"version":3,"file":"ManualBookingSummary.d.ts","sourceRoot":"","sources":["../../../../src/sales/manual-booking/summary/ManualBookingSummary.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+DAA+D,CAAC;AAQnG,OAAO,EAEL,gBAAgB,EACjB,MAAM,6DAA6D,CAAC;AAIrE,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,oBAAoB,4HAS9B,yBAAyB,gBAkF3B,CAAC"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),r=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,a=require("@licklist/core/dist/Config");require("../../../static/loader/LoaderIndicator.js");var l=require("../../../static/loader/BlockLoader.js"),n=require("react-i18next");require("../../../static/loader/ButtonLoader.js"),require("../../../static/loader/SnippetLoader.js"),require("../../../static/loader/PaymentLoader.js");var i=require("luxon"),c=require("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper"),o=require("react-intl"),m=require("@licklist/plugins/dist/utils/relyOnPeople");exports.ManualBookingSummary=function(e){var t=e.eventName,s=e.orders,u=e.ordersSum,d=e.orderSumIncludingFee,y=e.isFeeFetching,p=e.orderDate,v=e.relyOnPeopleType,E=e.hasBookingCategory,N=e.isMobileView,g=n.useTranslation(["Design","Sale"]).t,q=o.useIntl().formatNumber,O=v&&v!==c.RELY_ON_PEOPLE_QUANTITY,P=i.DateTime.fromISO(p),b=P.toFormat(a.DATE_TIME_MANUAL_BOOKING_FORMAT),k=P.toFormat(a.TIME_FORMAT);return r.createElement("div",{className:N?"manual-booking-summary-mobile":"manual-booking-summary"},r.createElement("div",{className:"receipt-title"},g("Sale:receipt")),r.createElement("div",{className:"event-name border-summary-item"},t),r.createElement("div",{className:"border-summary-item"},b),r.createElement("div",{className:"border-summary-item"},k),s.length>0?r.createElement("div",{className:"summary-item-container"},s.map((function(e){var t=m.getRelyOnPeopleMultiplier({relyOnPeopleType:v,capacity:null==e?void 0:e.capacity,hasBookingCategory:E});return r.createElement("div",{key:e.id,className:"d-flex justify-content-between border-summary-item"},r.createElement("div",null,e.name),O&&!!t&&r.createElement("div",null,"x ".concat(e.quantity*t," ").concat(g("people"))),r.createElement("div",null,q(e.quantity*e.price,{style:"currency",currency:a.Currency.GBP})))})),r.createElement("div",null,r.createElement("div",{className:"total-container"},r.createElement("div",null,g("Sale:total")),r.createElement("div",{className:"total-amount"},q(u,{style:"currency",currency:a.Currency.GBP}))),d&&r.createElement("div",{className:"total-container ".concat(y?"mt-6":"mt-4")},y||!d?r.createElement(l.BlockLoader,null):r.createElement(r.Fragment,null,r.createElement("div",null,g("Sale:includingOperationalCost")),r.createElement("div",{className:"total-amount"},q(d,{style:"currency",currency:a.Currency.GBP})))))):r.createElement("div",{className:"cart-items"},r.createElement("p",{className:"empty-cart"},g("Design:emptyBasket"))))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),r=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,a=require("@licklist/core/dist/Config");require("../../../static/loader/LoaderIndicator.js");var l=require("../../../static/loader/BlockLoader.js"),n=require("react-i18next");require("../../../static/loader/ButtonLoader.js"),require("../../../static/loader/SnippetLoader.js"),require("../../../static/loader/PaymentLoader.js");var c=require("luxon"),i=require("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper"),o=require("react-intl"),m=require("@licklist/plugins/dist/utils/relyOnPeople");exports.ManualBookingSummary=function(e){var t=e.eventName,s=e.orders,u=e.ordersSum,d=e.orderSumIncludingFee,y=e.isFeeFetching,p=e.orderDate,v=e.relyOnPeopleType,E=e.hasBookingCategory,N=n.useTranslation(["Design","Sale"]).t,g=o.useIntl().formatNumber,q=v&&v!==i.RELY_ON_PEOPLE_QUANTITY,O=c.DateTime.fromISO(p),P=O.toFormat(a.DATE_TIME_MANUAL_BOOKING_FORMAT),f=O.toFormat(a.TIME_FORMAT);return r.createElement("div",{className:"manual-booking-summary"},r.createElement("div",{className:"receipt-title"},N("Sale:receipt")),r.createElement("div",{className:"event-name border-summary-item"},t),r.createElement("div",{className:"border-summary-item"},P),r.createElement("div",{className:"border-summary-item"},f),s.length>0?r.createElement("div",{className:"summary-item-container"},s.map((function(e){var t=m.getRelyOnPeopleMultiplier({relyOnPeopleType:v,capacity:null==e?void 0:e.capacity,hasBookingCategory:E});return r.createElement("div",{key:e.id,className:"d-flex justify-content-between border-summary-item"},r.createElement("div",null,e.name),q&&!!t&&r.createElement("div",null,"x ".concat(e.quantity*t," ").concat(N("people"))),r.createElement("div",null,g(e.quantity*e.price,{style:"currency",currency:a.Currency.GBP})))})),r.createElement("div",null,r.createElement("div",{className:"total-container"},r.createElement("div",null,N("Sale:total")),r.createElement("div",{className:"total-amount"},g(u,{style:"currency",currency:a.Currency.GBP}))),d&&r.createElement("div",{className:"total-container ".concat(y?"mt-6":"mt-4")},y||!d?r.createElement(l.BlockLoader,null):r.createElement(r.Fragment,null,r.createElement("div",null,N("Sale:includingOperationalCost")),r.createElement("div",{className:"total-amount"},g(d,{style:"currency",currency:a.Currency.GBP})))))):r.createElement("div",{className:"cart-items"},r.createElement("p",{className:"empty-cart"},N("Design:emptyBasket"))))};
@@ -1 +1 @@
1
- {"version":3,"file":"DateRangeInput.d.ts","sourceRoot":"","sources":["../../../src/static/date-range-input/DateRangeInput.tsx"],"names":[],"mappings":";AAeA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,yCAAyC,CAAC;AAIjD,KAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAC1E,CAAC;AAEF,eAAO,MAAM,cAAc,yEAOxB,mBAAmB,gBA8HrB,CAAC"}
1
+ {"version":3,"file":"DateRangeInput.d.ts","sourceRoot":"","sources":["../../../src/static/date-range-input/DateRangeInput.tsx"],"names":[],"mappings":";AAcA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,yCAAyC,CAAC;AAEjD,KAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAC1E,CAAC;AAEF,eAAO,MAAM,cAAc,yEAOxB,mBAAmB,gBA4GrB,CAAC"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("tslib"),n=require("react"),r=(e=n)&&"object"==typeof e&&"default"in e?e.default:e,a=require("react-i18next"),i=require("react-bootstrap"),s=require("../Icon.js"),o=require("@react-aria/utils"),u=require("react-date-range"),c=require("react-use"),l=require("./utils/index.js"),d=require("../../iframe/order-process/components/BookingSummary/types/index.js");require("react-date-range/dist/styles.css"),require("react-date-range/dist/theme/default.css"),require("../index.js");var m={name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;Object.assign(t.styles.popper,{marginLeft:"-2px",maxWidth:"unset"})},effect:function(e){var t=e.state;Object.assign(t.elements.popper.style,{maxWidth:"unset"})}};exports.DateRangeInput=function(e){var f=e.placeholder,p=e.startDate,g=e.endDate,D=e.onDateChange,v=e.months,h=void 0===v?2:v,y=e.disabled,_=a.useTranslation("Design").t,E=t.__read(n.useState("horizontal"),2),w=E[0],q=E[1],b=t.__read(n.useState([{startDate:new Date,endDate:new Date,key:"selection"}]),2),x=b[0],j=b[1],k=t.__read(n.useState(!1),2),C=k[0],S=k[1],I=o.useId(),N=n.useRef();c.useClickAway(N,(function(){return S(!1)}));return n.useEffect((function(){p&&g&&j((function(e){return[t.__assign(t.__assign({},e[0]),l.stringDatesToJSDates({startDate:p,endDate:g}))]}))}),[p,g]),n.useEffect((function(){var e=function(){window.innerWidth>d.MOBILE_WIDTH?q("horizontal"):q("vertical")};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),r.createElement("div",null,r.createElement(i.OverlayTrigger,{show:C,overlay:r.createElement(i.Popover,{id:I,className:"rounded"},r.createElement(i.Popover.Content,{className:"shadow-lg rounded",ref:N},r.createElement(u.DateRange,{onChange:function(e){return j([e.selection])},moveRangeOnFirstSelection:!1,ranges:x,months:h,direction:w}),r.createElement("div",{className:"mt-3 d-flex justify-content-end"},r.createElement(i.Button,{onClick:function(){D&&D({}),j((function(e){return[t.__assign(t.__assign({},e[0]),{startDate:new Date,endDate:new Date})]})),S(!1)},variant:"link"},_("clear")),r.createElement(i.Button,{onClick:function(){D&&D(l.rangeDatesToStringDates(x)),S(!1)},className:"ml-3",variant:"link"},_("apply"))))),trigger:"click",placement:"bottom",popperConfig:{modifiers:[m]}},r.createElement("div",{onClick:function(){return S((function(e){return!e}))},onKeyDown:function(){return S((function(e){return!e}))},role:"button",tabIndex:0,className:"date-range-input-wrapper"},r.createElement(i.Form.Control,{type:"input",placeholder:f,disabled:y,readOnly:!0,className:"date-range-input",value:l.stringDatesToInputValue({startDate:p,endDate:g})}),r.createElement(s.default,{type:"calendar",height:"1rem",className:"date-range-input-icon"}))))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("tslib"),n=require("react"),a=(e=n)&&"object"==typeof e&&"default"in e?e.default:e,r=require("react-i18next"),s=require("react-bootstrap"),i=require("../Icon.js"),o=require("@react-aria/utils"),u=require("react-date-range"),c=require("react-use"),l=require("./utils/index.js");require("react-date-range/dist/styles.css"),require("react-date-range/dist/theme/default.css"),require("../index.js");var d={name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;Object.assign(t.styles.popper,{marginLeft:"-2px",maxWidth:"unset"})},effect:function(e){var t=e.state;Object.assign(t.elements.popper.style,{maxWidth:"unset"})}};exports.DateRangeInput=function(e){var m=e.placeholder,p=e.startDate,f=e.endDate,g=e.onDateChange,D=e.months,v=void 0===D?2:D,h=e.disabled,y=r.useTranslation("Design").t,_=t.__read(n.useState([{startDate:new Date,endDate:new Date,key:"selection"}]),2),b=_[0],q=_[1],E=t.__read(n.useState(!1),2),x=E[0],w=E[1],C=o.useId(),j=n.useRef();c.useClickAway(j,(function(){return w(!1)}));return n.useEffect((function(){p&&f&&q((function(e){return[t.__assign(t.__assign({},e[0]),l.stringDatesToJSDates({startDate:p,endDate:f}))]}))}),[p,f]),a.createElement("div",null,a.createElement(s.OverlayTrigger,{show:x,overlay:a.createElement(s.Popover,{id:C,className:"rounded"},a.createElement(s.Popover.Content,{className:"shadow-lg rounded",ref:j},a.createElement(u.DateRange,{onChange:function(e){return q([e.selection])},moveRangeOnFirstSelection:!1,ranges:b,months:v,direction:"horizontal"}),a.createElement("div",{className:"mt-3 d-flex justify-content-end"},a.createElement(s.Button,{onClick:function(){g&&g({}),q((function(e){return[t.__assign(t.__assign({},e[0]),{startDate:new Date,endDate:new Date})]})),w(!1)},variant:"link"},y("clear")),a.createElement(s.Button,{onClick:function(){g&&g(l.rangeDatesToStringDates(b)),w(!1)},className:"ml-3",variant:"link"},y("apply"))))),trigger:"click",placement:"bottom",popperConfig:{modifiers:[d]}},a.createElement("div",{onClick:function(){return w((function(e){return!e}))},onKeyDown:function(){return w((function(e){return!e}))},role:"button",tabIndex:0,className:"date-range-input-wrapper"},a.createElement(s.Form.Control,{type:"input",placeholder:m,disabled:h,readOnly:!0,className:"date-range-input",value:l.stringDatesToInputValue({startDate:p,endDate:f})}),a.createElement(i.default,{type:"calendar",height:"1rem",className:"date-range-input-icon"}))))};
@@ -3,10 +3,7 @@ $affiliate-card-box-shadow-focus: $btn-focus-box-shadow !default;
3
3
  $affiliate-card-transition: $btn-transition !default;
4
4
 
5
5
  $affiliate-card-link-background-color: $affiliate-card-background-color !default;
6
- $affiliate-card-link-background-color-hover: theme-color-level(
7
- "primary",
8
- -10.5
9
- ) !default;
6
+ $affiliate-card-link-background-color-hover: theme-color-level("primary", -10.5) !default;
10
7
  $affiliate-card-link-box-shadow-focus: $affiliate-card-box-shadow-focus !default;
11
8
  $affiliate-card-link-padding-x: sp(10) !default;
12
9
  $affiliate-card-link-padding-y: sp(10) !default;
@@ -15,20 +12,12 @@ $affiliate-card-link-text-color-hover: theme-color("primary") !default;
15
12
  $affiliate-card-link-text-font-weight: $font-weight-normal !default;
16
13
  $affiliate-card-link-transition: $affiliate-card-transition !default;
17
14
 
18
- $affiliate-card-menu-button-background-color-hover: theme-color(
19
- "primary"
20
- ) !default;
15
+ $affiliate-card-menu-button-background-color-hover: theme-color("primary") !default;
21
16
  $affiliate-card-menu-button-border-radius: $border-radius !default;
22
17
  $affiliate-card-menu-button-box-shadow-focus: $affiliate-card-box-shadow-focus !default;
23
- $affiliate-card-menu-button-icon-color: adjust-color(
24
- theme-color("primary"),
25
- $alpha: -1/3
26
- ) !default;
18
+ $affiliate-card-menu-button-icon-color: adjust-color(theme-color("primary"), $alpha: -1/3) !default;
27
19
  $affiliate-card-menu-button-icon-color-hover: $affiliate-card-background-color !default;
28
- $affiliate-card-menu-button-icon-color-container-hover: adjust-color(
29
- theme-color("primary"),
30
- $alpha: -1 / 12
31
- ) !default;
20
+ $affiliate-card-menu-button-icon-color-container-hover: adjust-color(theme-color("primary"), $alpha: -1 / 12) !default;
32
21
  $affiliate-card-menu-button-icon-size: sp(4) !default;
33
22
  $affiliate-card-menu-button-inset: sp(2) !default;
34
23
  $affiliate-card-menu-button-size: sp(8) !default;
@@ -150,14 +139,12 @@ $affiliate-card-menu-icon-size: sp(3.5) !default;
150
139
  }
151
140
  }
152
141
 
153
- .affiliate-card-popover,
154
- #event-product-set-popover {
142
+ .affiliate-card-popover {
155
143
  border-radius: $affiliate-card-popover-border-radius;
156
144
  border: none;
157
145
  filter: $affiliate-card-popover-box-shadow-filter;
158
146
 
159
- .affiliate-card-menu,
160
- .event-product-set-card {
147
+ .affiliate-card-menu {
161
148
  padding: $affiliate-card-menu-padding-x $affiliate-card-menu-padding-y;
162
149
  border-radius: $affiliate-card-popover-border-radius;
163
150
 
@@ -188,12 +175,5 @@ $affiliate-card-menu-icon-size: sp(3.5) !default;
188
175
  }
189
176
  }
190
177
 
191
- #event-product-set-popover {
192
- .event-product-set-card {
193
- padding-left: 1rem;
194
- padding-right: 1rem;
195
- }
196
- }
197
-
198
178
  $snippet-template-card-background-color: color("red") !default;
199
179
  $snippet-template-card-border: 1px solid red;
@@ -7,6 +7,8 @@ $event-card-title-font-weight: $font-weight-semibold !default;
7
7
  $event-card-title-font-size: sp(5) !default;
8
8
  $event-card-title-line-height: 4 / 3 !default;
9
9
 
10
+ $event-card-footer-height: sp(6) !default;
11
+
10
12
  $event-card-image-container-overflow-top: sp(3) !default;
11
13
  $event-card-image-container-overflow-x: sp(3) !default;
12
14
  $event-card-image-container-aspect-ratio: 1.6 !default;
@@ -32,7 +34,7 @@ $event-card-views-gutter: sp(3) !default;
32
34
  transition: ease-in 0.25s;
33
35
  border-radius: $event-card-border-radius;
34
36
 
35
- > * + * {
37
+ >*+* {
36
38
  margin-top: $event-card-contents-gutter;
37
39
  }
38
40
 
@@ -52,7 +54,7 @@ $event-card-views-gutter: sp(3) !default;
52
54
  min-height: 13.75rem;
53
55
  max-height: 22rem;
54
56
  }
55
- }
57
+ }
56
58
  }
57
59
 
58
60
  .card-title {
@@ -72,6 +74,7 @@ $event-card-views-gutter: sp(3) !default;
72
74
  border: unset;
73
75
  border-radius: unset;
74
76
  padding: 0;
77
+ height: $event-card-footer-height;
75
78
 
76
79
  svg {
77
80
  height: 100%;
@@ -172,4 +175,4 @@ $event-card-views-gutter: sp(3) !default;
172
175
  color: #504f4f;
173
176
  width: 1.7rem;
174
177
  }
175
- }
178
+ }
@@ -100,10 +100,6 @@ $product-set-card-menu-icon-size: sp(3.5) !default;
100
100
  width: 2rem;
101
101
  height: 2rem;
102
102
  margin-right: 0.8rem;
103
-
104
- @include media-breakpoint-down(sm) {
105
- visibility: visible !important;
106
- }
107
103
  }
108
104
  }
109
105
 
@@ -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 {
@@ -243,11 +230,6 @@
243
230
  transform: rotate(45deg);
244
231
  }
245
232
  }
246
-
247
- @include media-breakpoint-down(sm) {
248
- flex-direction: column;
249
- justify-content: flex-start;
250
- }
251
233
  }
252
234
  }
253
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 {
@@ -28,13 +28,12 @@ $snippet-template-card-button-transition: $product-set-card-transition !default;
28
28
  border: 1px solid #ccc;
29
29
  border-radius: $border-radius;
30
30
  height: 10rem;
31
- min-width: 15rem;
31
+ width: 15rem;
32
32
  padding: 1rem;
33
33
 
34
34
  @include media-breakpoint-down(sm) {
35
35
  height: 100%;
36
36
  max-height: 10rem;
37
- width: 100%;
38
37
  }
39
38
 
40
39
  p {
@@ -110,4 +109,4 @@ $snippet-template-card-button-transition: $product-set-card-transition !default;
110
109
  &:hover {
111
110
  border: 2px solid $blue;
112
111
  }
113
- }
112
+ }
@@ -11,12 +11,6 @@ $tab-nav-link-active-border-bottom: 1px solid $tab-nav-link-active-color !defaul
11
11
  margin-left: -1.25rem;
12
12
  border-bottom: 1px solid $nav-tabs-border-color;
13
13
 
14
- @include media-breakpoint-down(sm) {
15
- display: flex;
16
- flex-direction: column;
17
- white-space: nowrap;
18
- }
19
-
20
14
  .nav-link {
21
15
  color: $tab-nav-link-color;
22
16
  background-color: transparent;
@@ -98,8 +98,7 @@
98
98
  color: gray("600");
99
99
 
100
100
  &.sortable {
101
- &::before,
102
- &::after {
101
+ &::before, &::after {
103
102
  opacity: 1;
104
103
  }
105
104
 
@@ -133,20 +132,20 @@
133
132
  width: 2.5rem;
134
133
  height: 2.5rem;
135
134
  background-color: transparent;
136
-
135
+
137
136
  svg {
138
137
  margin-bottom: 2.5px;
139
138
  }
140
139
 
141
140
  &:hover {
142
141
  cursor: pointer;
143
- border-radius: 0.5rem;
142
+ border-radius: .5rem;
144
143
  background-color: lighten($primary, 40);
145
144
  }
146
145
  }
147
146
 
148
147
  .page-item {
149
- margin-left: 0.4rem;
148
+ margin-left: .4rem;
150
149
  min-width: 15px;
151
150
  width: 2.5rem;
152
151
  height: 2.5rem;
@@ -154,7 +153,7 @@
154
153
  .page-link {
155
154
  border: 0;
156
155
  padding: 0;
157
- border-radius: 0.5rem;
156
+ border-radius: .5rem;
158
157
  height: 100%;
159
158
  display: flex;
160
159
  align-items: center;
@@ -163,13 +162,13 @@
163
162
  color: $black;
164
163
  font-weight: 600;
165
164
  font-size: 0.875rem;
166
-
165
+
167
166
  &:hover {
168
- border-radius: 0.5rem;
167
+ border-radius: .5rem;
169
168
  background-color: lighten($primary, 40);
170
169
  }
171
170
  }
172
-
171
+
173
172
  &.active {
174
173
  .page-link {
175
174
  border: 2px solid $primary;
@@ -1 +1 @@
1
- {"version":3,"file":"TableHelperComponent.d.ts","sourceRoot":"","sources":["../../src/table/TableHelperComponent.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAOnE,OAAO,qBAAqB,MAAM,mEAAmE,CAAC;AACtG,OAAO,YAAY,MAAM,0DAA0D,CAAC;AACpF,OAAO,WAAW,MAAM,yDAAyD,CAAC;AAQlF,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,YAAY,EAAE,QAAQ,CAAC;IACvB,SAAS,CAAC,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACzC,cAAc,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACtC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CACtE;AAUD;;;;;;GAMG;AACH,iBAAS,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,eA4S7D;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"TableHelperComponent.d.ts","sourceRoot":"","sources":["../../src/table/TableHelperComponent.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAOnE,OAAO,qBAAqB,MAAM,mEAAmE,CAAC;AACtG,OAAO,YAAY,MAAM,0DAA0D,CAAC;AACpF,OAAO,WAAW,MAAM,yDAAyD,CAAC;AAQlF,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,YAAY,EAAE,QAAQ,CAAC;IACvB,SAAS,CAAC,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACzC,cAAc,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACtC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CACtE;AAUD;;;;;;GAMG;AACH,iBAAS,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,eA8S7D;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.50.1-dev.8",
3
+ "version": "0.50.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -53,9 +53,9 @@
53
53
  "@fortawesome/free-brands-svg-icons": "5.15.2",
54
54
  "@fortawesome/free-solid-svg-icons": "5.15.2",
55
55
  "@fortawesome/react-fontawesome": "0.1.9",
56
- "@licklist/core": ">=0.15.41-dev.0 < 0.15.41",
56
+ "@licklist/core": "^0.17.0",
57
57
  "@licklist/eslint-config": "0.3.4",
58
- "@licklist/plugins": ">=0.24.0-dev.0 < 0.24.0",
58
+ "@licklist/plugins": "^0.23.0",
59
59
  "@mdx-js/react": "1.6.22",
60
60
  "@popperjs/core": "2.11.8",
61
61
  "@react-aria/utils": "3.9.0",
@@ -4,9 +4,6 @@ import { ZoneResourcesAvailability } from "@licklist/core/dist/DataMapper/Order/
4
4
  import { CalendarButtons } from "./components/CalendarButtons";
5
5
  import { CalendarDates } from "./components/CalendarDates";
6
6
 
7
- // same as apps/iframe/src/types/availability.ts
8
- export type AvailableTimes = Record<string, string[]>;
9
-
10
7
  export const defaultStartDay = DateTime.now().set({
11
8
  millisecond: 0,
12
9
  second: 0,
@@ -26,8 +23,6 @@ export type CalendarProps = {
26
23
  initialDate?: DateTime;
27
24
  getAvailability?: (date: DateTime) => ZoneResourcesAvailability | null;
28
25
  includeAvailability?: boolean;
29
- availableTimes?: AvailableTimes;
30
- shouldCalculateResources?: boolean;
31
26
  };
32
27
 
33
28
  export const Calendar = ({
@@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next";
4
4
  import { range } from "lodash";
5
5
  import { ReactComponent as SelectArrow } from "../../../assets/iframe/selectArrow.svg";
6
6
  import { CalendarSelect } from "../CalendarSelect";
7
- import { isDateDisabled } from "../../utils";
7
+ import { isSelectedDateDisabled } from "../../utils";
8
8
  import { CalendarProps } from "../../Calendar";
9
9
 
10
10
  type CalendarButtonsProps = Pick<
@@ -66,7 +66,7 @@ export const CalendarButtons = ({
66
66
  const onTodayClick = () => {
67
67
  setCurrentDate(initialDate);
68
68
 
69
- if (isDateDisabled(initialDate, disabledDates)) return;
69
+ if (isSelectedDateDisabled(initialDate, disabledDates)) return;
70
70
 
71
71
  setSelectedDate(initialDate);
72
72
  };
@@ -75,7 +75,7 @@ export const CalendarButtons = ({
75
75
  const nextDate = initialDate.set({ day: initialDate.day + 1 });
76
76
  setCurrentDate(nextDate);
77
77
 
78
- if (isDateDisabled(nextDate, disabledDates)) return;
78
+ if (isSelectedDateDisabled(nextDate, disabledDates)) return;
79
79
 
80
80
  setSelectedDate(nextDate);
81
81
  };
@@ -2,7 +2,7 @@ import React, { useMemo } from "react";
2
2
  import { DateTime } from "luxon";
3
3
  import { DateTimeButton, Variant } from "../../../date-time-button";
4
4
  import { CalendarWeekdays } from "../CalendarWeekdays";
5
- import { isDateDisabled } from "../../utils";
5
+ import { isSelectedDateDisabled } from "../../utils";
6
6
  import { CalendarProps } from "../../Calendar";
7
7
 
8
8
  export type CalendarDatesProps = Omit<
@@ -19,8 +19,6 @@ export const CalendarDates = ({
19
19
  fromPrice,
20
20
  getAvailability,
21
21
  includeAvailability,
22
- shouldCalculateResources,
23
- availableTimes,
24
22
  }: CalendarDatesProps) => {
25
23
  const fillCalendarDates = useMemo(() => {
26
24
  let firstDayOfWeek = calendarDates[0]?.weekday ?? 0;
@@ -47,7 +45,7 @@ export const CalendarDates = ({
47
45
  if (date === null) return <div />;
48
46
 
49
47
  const isDisabled =
50
- isLoading || isDateDisabled(date, disabledDates, availableTimes);
48
+ isLoading || isSelectedDateDisabled(date, disabledDates);
51
49
 
52
50
  return (
53
51
  <DateTimeButton
@@ -62,7 +60,6 @@ export const CalendarDates = ({
62
60
  resources={getAvailability?.(date)}
63
61
  showResources={includeAvailability}
64
62
  variant={Variant.month}
65
- shouldCalculateResources={shouldCalculateResources}
66
63
  />
67
64
  );
68
65
  })}