@licklist/design 0.50.1-dev.9 → 0.51.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/assets/dashboard/addImage.svg.js +1 -1
- package/dist/assets/dashboard/chartBar.svg.js +1 -1
- package/dist/assets/dashboard/genderFemale.svg.js +1 -1
- package/dist/assets/dashboard/genderMale.svg.js +1 -1
- package/dist/assets/dashboard/increment.svg.js +1 -1
- package/dist/assets/dashboard/info.svg.js +1 -1
- package/dist/assets/dashboard/managerRole.svg.js +1 -1
- package/dist/assets/dashboard/subManagerRole.svg.js +1 -1
- package/dist/assets/dashboard/viewerRole.svg.js +1 -1
- package/dist/assets/dashboard/visitedProviderLink.svg.js +1 -1
- package/dist/assets/dashboard/warning.svg.js +1 -1
- package/dist/assets/editor/bold.svg.js +1 -1
- package/dist/assets/editor/double-quotes-l.svg.js +1 -1
- package/dist/assets/editor/format-clear.svg.js +1 -1
- package/dist/assets/editor/h1.svg.js +1 -1
- package/dist/assets/editor/h2.svg.js +1 -1
- package/dist/assets/editor/italic.svg.js +1 -1
- package/dist/assets/editor/paragraph.svg.js +1 -1
- package/dist/assets/editor/separator.svg.js +1 -1
- package/dist/assets/editor/strikethrough.svg.js +1 -1
- package/dist/assets/editor/text-wrap.svg.js +1 -1
- package/dist/assets/iframe/available.svg.js +1 -1
- package/dist/assets/iframe/calendar.svg.js +1 -1
- package/dist/assets/iframe/clock.svg.js +1 -1
- package/dist/assets/iframe/close.svg.js +1 -1
- package/dist/assets/iframe/limited.svg.js +1 -1
- package/dist/assets/iframe/selectArrow.svg.js +1 -1
- package/dist/assets/iframe/soldOut.svg.js +1 -1
- package/dist/assets/iframe/success.svg.js +1 -1
- package/dist/assets/iframe/ticket.svg.js +1 -1
- package/dist/assets/logo/bookedit.svg.js +1 -1
- package/dist/assets/logo/licklist.sm.svg.js +1 -1
- package/dist/assets/logo/licklist.svg.js +1 -1
- package/dist/calendar/Calendar.d.ts +0 -3
- package/dist/calendar/Calendar.d.ts.map +1 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.js +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.js +1 -1
- package/dist/calendar/utils/index.d.ts +1 -2
- package/dist/calendar/utils/index.d.ts.map +1 -1
- package/dist/calendar/utils/index.js +1 -1
- package/dist/date-time-button/DateTimeButton.d.ts +2 -3
- package/dist/date-time-button/DateTimeButton.d.ts.map +1 -1
- package/dist/date-time-button/DateTimeButton.js +1 -1
- package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.js +1 -1
- package/dist/events/event-card/EventCard.d.ts +1 -2
- package/dist/events/event-card/EventCard.d.ts.map +1 -1
- package/dist/events/event-card/EventCard.js +1 -1
- package/dist/events/event-venue-map/components/Scrollbars/Scrollbars.js +1 -1
- package/dist/iframe/event/event-booking-products/EventBookingProducts.js +1 -1
- package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.d.ts +2 -2
- package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.d.ts.map +1 -1
- package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.js +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.d.ts +1 -2
- package/dist/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +1 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +1 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +1 -1
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +0 -1
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts +2 -3
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +1 -1
- package/dist/iframe/order-process/components/utils/useCategoryVerification.js +1 -1
- package/dist/index.js +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +1 -1
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +1 -1
- package/dist/sales/manual-booking/select-event/SelectEvent.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-event/SelectEvent.js +1 -1
- package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts +1 -2
- package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts.map +1 -1
- package/dist/sales/manual-booking/summary/ManualBookingSummary.js +1 -1
- package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
- package/dist/static/date-range-input/DateRangeInput.js +1 -1
- package/dist/styles/affiliate/AffiliateCard.scss +6 -26
- package/dist/styles/events/EventCard.scss +6 -3
- package/dist/styles/product-set/ProductSetCard.scss +0 -4
- package/dist/styles/resources-blocking/_index.scss +0 -6
- package/dist/styles/sales/BookingFilter.scss +0 -18
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/styles/sales/BookingTabs.scss +5 -63
- package/dist/styles/sales/LifeTimeSales.scss +0 -1
- package/dist/styles/sales/ManualBooking.scss +3 -62
- package/dist/styles/sales/SourceOfSales.scss +0 -3
- package/dist/styles/snippet-templates/SnippetTemplateCard.scss +2 -3
- package/dist/styles/static/Tabs.scss +0 -6
- package/dist/styles/themes/bookedit/_index.scss +8 -9
- package/dist/table/TableHelperComponent.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/calendar/Calendar.tsx +0 -5
- package/src/calendar/components/CalendarButtons/CalendarButtons.tsx +3 -3
- package/src/calendar/components/CalendarDates/CalendarDates.tsx +2 -5
- package/src/calendar/utils/index.ts +6 -15
- package/src/date-time-button/DateTimeButton.tsx +3 -16
- package/src/events/edit-event-modal/IntervalInput.tsx +80 -8
- package/src/events/event-card/EventCard.stories.tsx +0 -1
- package/src/events/event-card/EventCard.tsx +2 -27
- package/src/iframe/event/event-booking-products/EventBookingProducts.tsx +1 -1
- package/src/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.tsx +8 -8
- package/src/iframe/event/event-card/IframeEventCard.tsx +1 -3
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.stories.tsx +5 -5
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +6 -12
- package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +2 -5
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -1
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +4 -2
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +23 -13
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +1 -1
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +5 -11
- package/src/iframe/order-process/components/utils/useCategoryVerification.ts +1 -1
- package/src/iframe/payment/payment-page/PaymentPage.stories.tsx +1 -1
- package/src/notification/email-template/control/EmailTemplateControl.tsx +15 -5
- package/src/sales/booking/results/components/ResultCard.tsx +4 -6
- package/src/sales/manual-booking/select-event/SelectEvent.tsx +1 -4
- package/src/sales/manual-booking/summary/ManualBookingSummary.tsx +1 -9
- package/src/static/date-range-input/DateRangeInput.tsx +2 -23
- package/src/static/switch/BooleanSwitch.tsx +1 -1
- package/src/styles/affiliate/AffiliateCard.scss +6 -26
- package/src/styles/events/EventCard.scss +6 -3
- package/src/styles/product-set/ProductSetCard.scss +0 -4
- package/src/styles/resources-blocking/_index.scss +0 -6
- package/src/styles/sales/BookingFilter.scss +0 -18
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/styles/sales/BookingTabs.scss +5 -63
- package/src/styles/sales/LifeTimeSales.scss +0 -1
- package/src/styles/sales/ManualBooking.scss +3 -62
- package/src/styles/sales/SourceOfSales.scss +0 -3
- package/src/styles/snippet-templates/SnippetTemplateCard.scss +2 -3
- package/src/styles/static/Tabs.scss +0 -6
- package/src/styles/themes/bookedit/_index.scss +8 -9
- package/src/table/TableHelperComponent.tsx +13 -11
- package/dist/events/edit-event-modal/hooks/index.d.ts +0 -3
- package/dist/events/edit-event-modal/hooks/index.d.ts.map +0 -1
- package/dist/events/edit-event-modal/hooks/useFormattedDuration.d.ts +0 -2
- package/dist/events/edit-event-modal/hooks/useFormattedDuration.d.ts.map +0 -1
- package/dist/events/edit-event-modal/hooks/useFormattedDuration.js +0 -1
- package/dist/events/edit-event-modal/hooks/useValidationOptions.d.ts +0 -11
- package/dist/events/edit-event-modal/hooks/useValidationOptions.d.ts.map +0 -1
- package/dist/events/edit-event-modal/hooks/useValidationOptions.js +0 -1
- package/src/events/edit-event-modal/hooks/index.ts +0 -2
- package/src/events/edit-event-modal/hooks/useFormattedDuration.tsx +0 -40
- package/src/events/edit-event-modal/hooks/useValidationOptions.tsx +0 -36
|
@@ -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,
|
|
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;
|
|
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
|
|
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":";
|
|
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"),
|
|
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
|
+
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -361,11 +361,10 @@
|
|
|
361
361
|
width: inherit;
|
|
362
362
|
|
|
363
363
|
@include media-breakpoint-down(sm) {
|
|
364
|
-
|
|
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
|
+
}
|
|
@@ -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
|
-
|
|
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:
|
|
142
|
+
border-radius: .5rem;
|
|
144
143
|
background-color: lighten($primary, 40);
|
|
145
144
|
}
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
.page-item {
|
|
149
|
-
margin-left:
|
|
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:
|
|
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:
|
|
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,
|
|
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.
|
|
3
|
+
"version": "0.51.0",
|
|
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": "
|
|
56
|
+
"@licklist/core": "^0.17.0",
|
|
57
57
|
"@licklist/eslint-config": "0.3.4",
|
|
58
|
-
"@licklist/plugins": "
|
|
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 {
|
|
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 (
|
|
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 (
|
|
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 {
|
|
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 ||
|
|
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
|
})}
|