@licklist/design 0.44.486-dev.28 → 0.44.486-dev.3
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/logo/bookedit.svg +11 -9
- package/dist/assets/logo/bookedit.svg.js +1 -1
- package/dist/assets/logo/licklist.svg +2 -0
- package/dist/assets/logo/licklist.svg.js +1 -1
- package/dist/date-time-button/DateTimeButton.d.ts +1 -5
- 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-venue-map/hooks/useImage.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useImage.js +1 -1
- package/dist/file-upload/FileUpload.d.ts.map +1 -1
- package/dist/file-upload/FileUpload.js +1 -1
- package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts +12 -0
- package/dist/iframe/activity-cards/activity-card/ActivityCard.d.ts.map +1 -0
- package/dist/iframe/activity-cards/activity-card/ActivityCard.js +1 -0
- package/dist/iframe/activity-cards/index.d.ts +3 -0
- package/dist/iframe/activity-cards/index.d.ts.map +1 -0
- package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts +12 -0
- package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.d.ts.map +1 -0
- package/dist/iframe/activity-cards/list-activity-card/ListActivityCard.js +1 -0
- package/dist/iframe/event/event-calendar/EventCalendar.d.ts +5 -0
- package/dist/iframe/event/event-calendar/EventCalendar.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/EventCalendar.js +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts +6 -0
- package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarButtons/CalendarButtons.js +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarButtons/index.d.ts.map +1 -0
- package/dist/{calendar → iframe/event/event-calendar}/components/CalendarDate/CalendarDate.d.ts +2 -3
- package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarDate/CalendarDate.js +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarDate/index.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts +5 -0
- package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarDates/CalendarDates.js +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarDates/index.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarSelect/CalendarSelect.js +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarSelect/index.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/components/CalendarWeekdays/index.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/index.d.ts +4 -0
- package/dist/iframe/event/event-calendar/index.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/types/index.d.ts +6 -0
- package/dist/iframe/event/event-calendar/types/index.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/utils/index.d.ts +3 -0
- package/dist/iframe/event/event-calendar/utils/index.d.ts.map +1 -0
- package/dist/iframe/event/event-calendar/utils/index.js +1 -0
- package/dist/iframe/event/index.d.ts +1 -0
- package/dist/iframe/event/index.d.ts.map +1 -1
- package/dist/iframe/index.d.ts +2 -2
- package/dist/iframe/index.d.ts.map +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/BookingSummaryAccordion/BookingSummaryAccordion.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/CalendarStepsForm/CalendarStepsForm.d.ts +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.js +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.d.ts +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/Timer/utils/index.js +1 -1
- package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts +2 -3
- package/dist/iframe/order-process/components/utils/useCategoryVerification.d.ts.map +1 -1
- package/dist/iframe/order-process/components/utils/useCategoryVerification.js +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.js +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +1 -1
- package/dist/iframe/payment/order-items-table/types/index.d.ts +1 -7
- package/dist/iframe/payment/order-items-table/types/index.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +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/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +1 -1
- package/dist/product-set/form/ProductsControl.d.ts +1 -3
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +1 -1
- package/dist/product-set/product/ProductControl.d.ts +1 -2
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.js +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.d.ts +1 -2
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +1 -1
- package/dist/recurrence-input/RecurrenceInput.d.ts +1 -2
- package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceInput.js +1 -1
- package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts +1 -4
- package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.js +1 -1
- package/dist/report/form/ReportForm.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +1 -1
- package/dist/static/RestrictedAccess.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.d.ts +1 -2
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +1 -1
- package/dist/styles/header/Header.scss +4 -0
- package/dist/styles/{activity-card/GridActivitiesCard.scss → iframe-customers-journey/ActivitiesCard.scss} +1 -1
- package/{src/styles/activity-card/ListActivitiesCard.scss → dist/styles/iframe-customers-journey/ActivitiesSelectedCard.scss} +1 -2
- package/dist/styles/{date-time-button → iframe-customers-journey}/DateTimeButton.scss +6 -3
- package/dist/styles/iframe-customers-journey/_index.scss +3 -0
- package/dist/styles/iframe-events/Calendar.scss +14 -14
- package/dist/styles/iframe-events/Card.scss +0 -1
- package/dist/styles/iframe-page/PageBody.scss +2 -3
- package/dist/styles/notification/Notification.scss +0 -4
- package/dist/styles/packages.scss +1 -2
- package/dist/styles/resources-blocking/_index.scss +0 -5
- package/dist/styles/themes/bookedit/_index.scss +0 -1
- package/dist/zone/form/components/AvailableTimesControl.d.ts.map +1 -1
- package/dist/zone/form/components/AvailableTimesControl.js +1 -1
- package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneControl.js +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.js +1 -1
- package/dist/zone/form/utils/dates.d.ts.map +1 -1
- package/dist/zone/form/utils/dates.js +1 -1
- package/package.json +2 -2
- package/src/assets/logo/bookedit.svg +11 -9
- package/src/assets/logo/licklist.svg +2 -0
- package/src/date-time-button/DateTimeButton.stories.tsx +0 -17
- package/src/date-time-button/DateTimeButton.tsx +20 -42
- package/src/events/edit-event-modal/IntervalInput.tsx +0 -3
- package/src/events/event-venue-map/hooks/useImage.tsx +8 -17
- package/src/file-upload/FileUpload.tsx +1 -3
- package/src/iframe/{activity-card → activity-cards/activity-card}/ActivityCard.stories.tsx +1 -24
- package/src/iframe/activity-cards/activity-card/ActivityCard.tsx +38 -0
- package/src/iframe/activity-cards/index.ts +2 -0
- package/src/iframe/activity-cards/list-activity-card/ListActivityCard.stories.tsx +52 -0
- package/src/iframe/activity-cards/list-activity-card/ListActivityCard.tsx +49 -0
- package/src/iframe/event/event-calendar/EventCalendar.stories.tsx +37 -0
- package/src/iframe/event/event-calendar/EventCalendar.tsx +20 -0
- package/src/{calendar → iframe/event/event-calendar}/components/CalendarButtons/CalendarButtons.tsx +14 -31
- package/src/{calendar → iframe/event/event-calendar}/components/CalendarDate/CalendarDate.tsx +2 -10
- package/src/{calendar → iframe/event/event-calendar}/components/CalendarDates/CalendarDates.tsx +13 -17
- package/src/{calendar → iframe/event/event-calendar}/components/CalendarSelect/CalendarSelect.tsx +1 -1
- package/src/iframe/event/event-calendar/index.ts +6 -0
- package/src/iframe/event/event-calendar/types/index.ts +6 -0
- package/src/iframe/event/event-calendar/utils/index.ts +11 -0
- package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +1 -1
- package/src/iframe/event/index.ts +6 -0
- package/src/iframe/index.ts +2 -1
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +0 -1
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +0 -2
- package/src/iframe/order-process/components/CalendarStepsForm/CalendarStepsForm.tsx +3 -5
- package/src/iframe/order-process/components/Timer/utils/index.ts +9 -6
- package/src/iframe/order-process/components/utils/useCategoryVerification.ts +29 -28
- package/src/iframe/page/Page.stories.tsx +2 -2
- package/src/iframe/page/components/PageBody/components/LeftBlock/LeftBlock.tsx +1 -6
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +99 -11
- package/src/iframe/payment/order-items-table/types/index.ts +1 -18
- package/src/iframe/payment/payment-page/PaymentPage.tsx +4 -4
- package/src/index.ts +0 -1
- package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -26
- package/src/product-set/form/ProductCategoriesControl.tsx +0 -2
- package/src/product-set/form/ProductSetForm.stories.tsx +0 -1
- package/src/product-set/form/ProductsControl.tsx +0 -10
- package/src/product-set/product/ProductControl.tsx +8 -30
- package/src/product-set/product/duration/ProductDurationControl.tsx +1 -1
- package/src/product-set/product-category/ProductCategoryControl.tsx +5 -15
- package/src/provider/location-input/LocationInputDescription.tsx +2 -2
- package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +8 -10
- package/src/recurrence-input/RecurrenceEndInput.tsx +9 -27
- package/src/recurrence-input/RecurrenceInput.tsx +0 -3
- package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +21 -24
- package/src/report/form/ReportForm.tsx +1 -1
- package/src/snippet/snippet-template/preview/Preview.tsx +2 -14
- package/src/static/CountryCodeSelect.tsx +3 -3
- package/src/static/RestrictedAccess.tsx +1 -1
- package/src/static/form-number-input/FormNumberInput.tsx +1 -8
- package/src/styles/header/Header.scss +4 -0
- package/src/styles/{activity-card/GridActivitiesCard.scss → iframe-customers-journey/ActivitiesCard.scss} +1 -1
- package/{dist/styles/activity-card/ListActivitiesCard.scss → src/styles/iframe-customers-journey/ActivitiesSelectedCard.scss} +1 -2
- package/src/styles/{date-time-button → iframe-customers-journey}/DateTimeButton.scss +6 -3
- package/src/styles/iframe-customers-journey/_index.scss +3 -0
- package/src/styles/iframe-events/Calendar.scss +14 -14
- package/src/styles/iframe-events/Card.scss +0 -1
- package/src/styles/iframe-page/PageBody.scss +2 -3
- package/src/styles/notification/Notification.scss +0 -4
- package/src/styles/packages.scss +1 -2
- package/src/styles/resources-blocking/_index.scss +0 -5
- package/src/styles/themes/bookedit/_index.scss +0 -1
- package/src/typings.d.ts +0 -11
- package/src/zone/form/components/AvailableTimesControl.tsx +9 -4
- package/src/zone/form/components/ZoneControl.tsx +0 -2
- package/src/zone/form/components/ZoneRecurrencesControl.tsx +35 -27
- package/src/zone/form/utils/dates.ts +36 -29
- package/dist/assets/iframe/available.svg.js +0 -1
- package/dist/assets/iframe/limited.svg.js +0 -1
- package/dist/assets/iframe/soldOut.svg.js +0 -1
- package/dist/assets/logo/favicon.svg +0 -12
- package/dist/calendar/Calendar.d.ts +0 -16
- package/dist/calendar/Calendar.d.ts.map +0 -1
- package/dist/calendar/Calendar.js +0 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts +0 -6
- package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +0 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.js +0 -1
- package/dist/calendar/components/CalendarButtons/index.d.ts.map +0 -1
- package/dist/calendar/components/CalendarDate/CalendarDate.d.ts.map +0 -1
- package/dist/calendar/components/CalendarDate/CalendarDate.js +0 -1
- package/dist/calendar/components/CalendarDate/index.d.ts.map +0 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +0 -8
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +0 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.js +0 -1
- package/dist/calendar/components/CalendarDates/index.d.ts.map +0 -1
- package/dist/calendar/components/CalendarSelect/CalendarSelect.d.ts.map +0 -1
- package/dist/calendar/components/CalendarSelect/CalendarSelect.js +0 -1
- package/dist/calendar/components/CalendarSelect/index.d.ts.map +0 -1
- package/dist/calendar/components/CalendarWeekdays/CalendarWeekdays.d.ts.map +0 -1
- package/dist/calendar/components/CalendarWeekdays/index.d.ts.map +0 -1
- package/dist/calendar/index.d.ts +0 -4
- package/dist/calendar/index.d.ts.map +0 -1
- package/dist/calendar/utils/index.d.ts +0 -5
- package/dist/calendar/utils/index.d.ts.map +0 -1
- package/dist/calendar/utils/index.js +0 -1
- package/dist/iframe/activity-card/ActivityCard.d.ts +0 -17
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +0 -1
- package/dist/iframe/activity-card/ActivityCard.js +0 -1
- package/dist/iframe/activity-card/index.d.ts +0 -2
- package/dist/iframe/activity-card/index.d.ts.map +0 -1
- package/dist/iframe/payment/order-items-table/types/index.js +0 -1
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts +0 -3
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +0 -1
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.js +0 -1
- package/dist/styles/activity-card/_index.scss +0 -2
- package/dist/styles/date-time-button/_index.scss +0 -1
- package/dist/zone/form/components/GameDurationControl.d.ts +0 -7
- package/dist/zone/form/components/GameDurationControl.d.ts.map +0 -1
- package/dist/zone/form/components/GameDurationControl.js +0 -1
- package/src/assets/logo/favicon.svg +0 -12
- package/src/calendar/Calendar.stories.tsx +0 -33
- package/src/calendar/Calendar.tsx +0 -59
- package/src/calendar/index.ts +0 -3
- package/src/calendar/utils/index.ts +0 -28
- package/src/iframe/activity-card/ActivityCard.tsx +0 -77
- package/src/iframe/activity-card/index.ts +0 -1
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -118
- package/src/styles/activity-card/_index.scss +0 -2
- package/src/styles/date-time-button/_index.scss +0 -1
- package/src/zone/form/components/GameDurationControl.tsx +0 -46
- /package/dist/assets/iframe/{available.svg → dateInfo/available.svg} +0 -0
- /package/dist/assets/iframe/{limited.svg → dateInfo/limited.svg} +0 -0
- /package/dist/assets/iframe/{soldOut.svg → dateInfo/soldOut.svg} +0 -0
- /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarButtons/index.d.ts +0 -0
- /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarDate/index.d.ts +0 -0
- /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarDates/index.d.ts +0 -0
- /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarSelect/CalendarSelect.d.ts +0 -0
- /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarSelect/index.d.ts +0 -0
- /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.d.ts +0 -0
- /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.js +0 -0
- /package/dist/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/index.d.ts +0 -0
- /package/src/assets/iframe/{available.svg → dateInfo/available.svg} +0 -0
- /package/src/assets/iframe/{limited.svg → dateInfo/limited.svg} +0 -0
- /package/src/assets/iframe/{soldOut.svg → dateInfo/soldOut.svg} +0 -0
- /package/src/{calendar → iframe/event/event-calendar}/components/CalendarButtons/index.ts +0 -0
- /package/src/{calendar → iframe/event/event-calendar}/components/CalendarDate/index.ts +0 -0
- /package/src/{calendar → iframe/event/event-calendar}/components/CalendarDates/index.ts +0 -0
- /package/src/{calendar → iframe/event/event-calendar}/components/CalendarSelect/index.ts +0 -0
- /package/src/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/CalendarWeekdays.tsx +0 -0
- /package/src/{calendar → iframe/event/event-calendar}/components/CalendarWeekdays/index.ts +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
.calendar-wrapper {
|
|
2
3
|
display: flex;
|
|
3
4
|
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
background-color: transparent;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
&:focus
|
|
24
|
+
&:focus{
|
|
24
25
|
box-shadow: none;
|
|
25
26
|
}
|
|
26
27
|
}
|
|
@@ -72,9 +73,10 @@
|
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
|
|
76
|
+
|
|
77
|
+
|
|
75
78
|
.calendar-dates-wrapper {
|
|
76
|
-
.calendar-weekdays,
|
|
77
|
-
.calendar-dates {
|
|
79
|
+
.calendar-weekdays, .calendar-dates {
|
|
78
80
|
display: grid;
|
|
79
81
|
grid-template-columns: repeat(7, auto);
|
|
80
82
|
grid-gap: 0.5rem 1rem;
|
|
@@ -96,17 +98,17 @@
|
|
|
96
98
|
margin-top: 0.75rem;
|
|
97
99
|
|
|
98
100
|
.calendar-date {
|
|
101
|
+
height: 2rem;
|
|
99
102
|
display: flex;
|
|
100
|
-
flex-direction: column;
|
|
101
103
|
align-items: center;
|
|
102
104
|
justify-content: center;
|
|
103
|
-
padding: 0
|
|
105
|
+
padding: 0;
|
|
104
106
|
border-radius: 0.25rem;
|
|
105
107
|
background-color: $snippet-calendar-button-background-color;
|
|
106
108
|
color: $snippet-calendar-button-font-color;
|
|
107
109
|
font-size: 0.875rem;
|
|
108
110
|
line-height: 1.3125rem;
|
|
109
|
-
border: 1px solid $snippet-calendar-button-border-color
|
|
111
|
+
border: 1px solid $snippet-calendar-button-border-color;;
|
|
110
112
|
|
|
111
113
|
&.selected-date {
|
|
112
114
|
background-color: $snippet-calendar-active-button-background-color;
|
|
@@ -136,7 +138,7 @@
|
|
|
136
138
|
&:hover {
|
|
137
139
|
border-color: $snippet-calendar-active-button-border-color;
|
|
138
140
|
}
|
|
139
|
-
|
|
141
|
+
|
|
140
142
|
&:focus {
|
|
141
143
|
box-shadow: none;
|
|
142
144
|
}
|
|
@@ -165,11 +167,11 @@
|
|
|
165
167
|
justify-content: center;
|
|
166
168
|
width: 3.75rem;
|
|
167
169
|
height: 2.5rem;
|
|
168
|
-
background-color: #
|
|
170
|
+
background-color: #F2F2F2;
|
|
169
171
|
color: $black;
|
|
170
172
|
font-size: 0.75rem;
|
|
171
173
|
border-radius: 0.25rem;
|
|
172
|
-
|
|
174
|
+
|
|
173
175
|
&.selected-time {
|
|
174
176
|
background-color: $blue;
|
|
175
177
|
color: $white;
|
|
@@ -187,16 +189,14 @@
|
|
|
187
189
|
flex-direction: column;
|
|
188
190
|
align-items: center;
|
|
189
191
|
|
|
190
|
-
.calendar,
|
|
191
|
-
.start-time-wrapper {
|
|
192
|
+
.calendar, .start-time-wrapper {
|
|
192
193
|
min-width: 20.75rem;
|
|
193
194
|
|
|
194
195
|
.calendar-dates-wrapper {
|
|
195
|
-
.calendar-weekdays,
|
|
196
|
-
.calendar-dates {
|
|
196
|
+
.calendar-weekdays, .calendar-dates {
|
|
197
197
|
grid-gap: 0.5rem;
|
|
198
198
|
}
|
|
199
|
-
|
|
199
|
+
|
|
200
200
|
.calendar-dates {
|
|
201
201
|
.calendar-date {
|
|
202
202
|
width: 2.5rem;
|
|
@@ -199,8 +199,7 @@
|
|
|
199
199
|
color: $snippet-elements-button-color;
|
|
200
200
|
border: none;
|
|
201
201
|
background-color: $snippet-elements-button-background-color;
|
|
202
|
-
box-shadow: 0 0 0 $input-btn-focus-width
|
|
203
|
-
$snippet-elements-button-background-color;
|
|
202
|
+
box-shadow: 0 0 0 $input-btn-focus-width $snippet-elements-button-background-color;
|
|
204
203
|
}
|
|
205
204
|
|
|
206
205
|
&:disabled {
|
|
@@ -235,7 +234,7 @@
|
|
|
235
234
|
font-weight: 500;
|
|
236
235
|
border-radius: 0.25rem;
|
|
237
236
|
font-size: 0.875rem;
|
|
238
|
-
|
|
237
|
+
height: 2.25rem;
|
|
239
238
|
|
|
240
239
|
&:focus {
|
|
241
240
|
box-shadow: unset;
|
package/src/styles/packages.scss
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
@import "./static";
|
|
14
14
|
@import "./table";
|
|
15
15
|
@import "./back-button";
|
|
16
|
+
@import "./iframe-customers-journey";
|
|
16
17
|
@import "./custom-fields";
|
|
17
18
|
@import "./file-upload";
|
|
18
19
|
@import "./iframe-events";
|
|
@@ -40,5 +41,3 @@
|
|
|
40
41
|
@import "./striped-static-table/";
|
|
41
42
|
@import "./image-radio-input/";
|
|
42
43
|
@import "./radio-card/";
|
|
43
|
-
@import "./activity-card/";
|
|
44
|
-
@import "./date-time-button/";
|
package/src/typings.d.ts
CHANGED
|
@@ -28,14 +28,3 @@ declare module "*.json" {
|
|
|
28
28
|
|
|
29
29
|
declare module "react-phone-number-input/input";
|
|
30
30
|
declare module "react-phone-number-input/commonjs/Flag";
|
|
31
|
-
|
|
32
|
-
// @TODO: this is a hofix for the following issue:
|
|
33
|
-
// licklist_workspace_frontend/packages/design/src/product-set/hooks/useSortableTreeFunctions.ts(17,34):
|
|
34
|
-
// semantic error TS2304: Cannot find name 'structuredClone'.
|
|
35
|
-
interface WindowOrWorkerGlobalScope {
|
|
36
|
-
structuredClone(value: any, options?: StructuredSerializeOptions): any;
|
|
37
|
-
}
|
|
38
|
-
declare function structuredClone(
|
|
39
|
-
value: any,
|
|
40
|
-
options?: StructuredSerializeOptions
|
|
41
|
-
): any;
|
|
@@ -9,6 +9,7 @@ import { Form } from "react-bootstrap";
|
|
|
9
9
|
import { UseFormSetError, useForm } from "react-hook-form";
|
|
10
10
|
import { useId } from "@react-aria/utils";
|
|
11
11
|
import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
|
|
12
|
+
import { calculateTimeWithOffset } from "@licklist/plugins/dist/utils/time";
|
|
12
13
|
import { getCheckboxesByWorkHours } from "../utils/dates";
|
|
13
14
|
|
|
14
15
|
export type AvailableTimesControlRef = {
|
|
@@ -61,18 +62,20 @@ export const AvailableTimesControl = forwardRef<
|
|
|
61
62
|
});
|
|
62
63
|
|
|
63
64
|
const onChange = (option: string) => {
|
|
64
|
-
const
|
|
65
|
+
const timeWithOffset = calculateTimeWithOffset(option);
|
|
66
|
+
|
|
67
|
+
const isAlreadyChecked = availableTimes.includes(timeWithOffset);
|
|
65
68
|
|
|
66
69
|
if (isAlreadyChecked) {
|
|
67
70
|
setValue(
|
|
68
71
|
"availableTimes",
|
|
69
|
-
availableTimes.filter((value) => value !==
|
|
72
|
+
availableTimes.filter((value) => value !== timeWithOffset)
|
|
70
73
|
);
|
|
71
74
|
|
|
72
75
|
return;
|
|
73
76
|
}
|
|
74
77
|
|
|
75
|
-
setValue("availableTimes", [...availableTimes,
|
|
78
|
+
setValue("availableTimes", [...availableTimes, timeWithOffset]);
|
|
76
79
|
};
|
|
77
80
|
|
|
78
81
|
useEffect(() => {
|
|
@@ -92,7 +95,9 @@ export const AvailableTimesControl = forwardRef<
|
|
|
92
95
|
<Form.Check.Input
|
|
93
96
|
type="checkbox"
|
|
94
97
|
value={option}
|
|
95
|
-
checked={availableTimes.includes(
|
|
98
|
+
checked={availableTimes.includes(
|
|
99
|
+
calculateTimeWithOffset(option)
|
|
100
|
+
)}
|
|
96
101
|
onChange={() => onChange(option)}
|
|
97
102
|
disabled={isLoading}
|
|
98
103
|
/>
|
|
@@ -7,7 +7,6 @@ import { SortControl } from "./SortControl";
|
|
|
7
7
|
import { ZoneRecurrencesControl } from "./ZoneRecurrencesControl";
|
|
8
8
|
import { DescriptionControl } from "./DescriptionControl";
|
|
9
9
|
import { ZoneImageControl } from "./ZoneImageControl";
|
|
10
|
-
import { GameDurationControl } from "./GameDurationControl";
|
|
11
10
|
|
|
12
11
|
export type ZoneControlProps = {
|
|
13
12
|
isLoading: boolean;
|
|
@@ -28,7 +27,6 @@ export const ZoneControl = ({
|
|
|
28
27
|
<Col md={6} sm={6}>
|
|
29
28
|
<ZoneTypeControl isLoading={isLoading} />
|
|
30
29
|
<SortControl isLoading={isLoading} />
|
|
31
|
-
<GameDurationControl isLoading={isLoading} />
|
|
32
30
|
</Col>
|
|
33
31
|
<Col md={6} sm={6}>
|
|
34
32
|
<ZoneImageControl isLoading={isLoading} />
|
|
@@ -12,8 +12,11 @@ import {
|
|
|
12
12
|
import { DndContext } from "@dnd-kit/core";
|
|
13
13
|
import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
|
|
14
14
|
import { DateTime } from "luxon";
|
|
15
|
-
import { TIME_FORMAT } from "@licklist/core/dist/Config";
|
|
16
|
-
|
|
15
|
+
import { TIME_FORMAT, TIME_FULL_FORMAT } from "@licklist/core/dist/Config";
|
|
16
|
+
import {
|
|
17
|
+
calculateTimeWithOffset,
|
|
18
|
+
DIRECTION_TO_LOCAL,
|
|
19
|
+
} from "@licklist/plugins/dist/utils/time";
|
|
17
20
|
import { CONFIRM_MODAL_ACTIONS } from "../../../modals/confirmation/ConfirmModal";
|
|
18
21
|
import { Icon } from "../../../static";
|
|
19
22
|
import {
|
|
@@ -64,6 +67,7 @@ export const ZoneRecurrencesControl = ({
|
|
|
64
67
|
});
|
|
65
68
|
const clearEditState = () => setEditState({ index: null, values: null });
|
|
66
69
|
const [availableTimes, setAvailableTimes] = useState<string[]>([]);
|
|
70
|
+
|
|
67
71
|
const popoverRef = useRef<HTMLDivElement>();
|
|
68
72
|
const availableTimesFormRef = useRef<AvailableTimesControlRef>();
|
|
69
73
|
|
|
@@ -93,29 +97,30 @@ export const ZoneRecurrencesControl = ({
|
|
|
93
97
|
if (!isAvailableTimesFormValid) {
|
|
94
98
|
return;
|
|
95
99
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
)
|
|
100
|
+
const startTime = DateTime.fromFormat(next.startTime, TIME_FULL_FORMAT);
|
|
101
|
+
const endTime = DateTime.fromFormat(next.endTime, TIME_FULL_FORMAT);
|
|
102
|
+
const { availableTimes } = availableTimesFormRef.current.getValues();
|
|
103
|
+
const validAvalilableTimes = availableTimes.every((time) => {
|
|
104
|
+
const currentAvailableTime = DateTime.fromFormat(
|
|
105
|
+
calculateTimeWithOffset(time, DIRECTION_TO_LOCAL),
|
|
106
|
+
TIME_FORMAT
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
return (
|
|
110
|
+
currentAvailableTime.diff(startTime, "minutes").minutes >= 0 &&
|
|
111
|
+
currentAvailableTime.diff(endTime, "minutes").minutes <= 0
|
|
112
|
+
);
|
|
113
|
+
});
|
|
114
|
+
if (!validAvalilableTimes) {
|
|
115
|
+
availableTimesFormRef.current.setError("availableTimes", {
|
|
116
|
+
message: t("Validation:fieldTimeBetween", {
|
|
117
|
+
attribute: t("Design:startTimesSmall"),
|
|
118
|
+
min: startTime.toFormat(TIME_FORMAT),
|
|
119
|
+
max: endTime.toFormat(TIME_FORMAT),
|
|
120
|
+
}),
|
|
107
121
|
});
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
message: t("Validation:fieldTimeBetween", {
|
|
111
|
-
attribute: t("Design:startTimesSmall"),
|
|
112
|
-
min: startTime.toFormat(TIME_FORMAT),
|
|
113
|
-
max: endTime.toFormat(TIME_FORMAT),
|
|
114
|
-
}),
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
122
|
+
|
|
123
|
+
return;
|
|
119
124
|
}
|
|
120
125
|
const values = {
|
|
121
126
|
rrule: next.rrule,
|
|
@@ -143,9 +148,12 @@ export const ZoneRecurrencesControl = ({
|
|
|
143
148
|
const handleOnEdit = (next: Partial<ZoneRecurrence>, index) => {
|
|
144
149
|
clearEditState();
|
|
145
150
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
151
|
+
// Hotfix for an issue with Popover close & open actions
|
|
152
|
+
setTimeout(() => {
|
|
153
|
+
setEditState({ index, values: next });
|
|
154
|
+
setAvailableTimes(next.availableTimes || []);
|
|
155
|
+
setIsDatePopoverVisible(() => true);
|
|
156
|
+
}, 100);
|
|
149
157
|
};
|
|
150
158
|
|
|
151
159
|
const handleOnAdd = () => {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { TIME_SEPARATOR } from "@licklist/core/dist/Services/Date";
|
|
1
|
+
import { datetime, TIME_SEPARATOR } from "@licklist/core/dist/Services/Date";
|
|
2
2
|
import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
|
|
3
|
-
import { DateTime } from "luxon";
|
|
4
|
-
import { TIME_FORMAT } from "@licklist/core/dist/Config";
|
|
5
3
|
|
|
6
4
|
const DEFAULT_START_DAY_TIME = "00:00";
|
|
7
5
|
const DEFAULT_END_DAY_TIME = "23:59";
|
|
@@ -15,37 +13,46 @@ export const getTimeCheckboxRanges = (
|
|
|
15
13
|
const [startHour, startMinutes] = startTime.split(TIME_SEPARATOR);
|
|
16
14
|
const [endHour, endMinutes] = endTime.split(TIME_SEPARATOR);
|
|
17
15
|
|
|
18
|
-
let startDate =
|
|
19
|
-
.
|
|
20
|
-
.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
second: 0,
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
const checkboxes: string[] = [startDate.toFormat(TIME_FORMAT)];
|
|
16
|
+
let startDate = datetime(
|
|
17
|
+
today.getFullYear(),
|
|
18
|
+
today.getMonth() + 1,
|
|
19
|
+
today.getDate(),
|
|
20
|
+
Number(startHour),
|
|
21
|
+
Number(startMinutes)
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
const endDate = datetime(
|
|
25
|
+
today.getFullYear(),
|
|
26
|
+
today.getMonth() + 1,
|
|
27
|
+
today.getDate(),
|
|
28
|
+
Number(endHour),
|
|
29
|
+
Number(endMinutes)
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
const dateSlices: { [key: string]: Date } = {
|
|
33
|
+
0: startDate,
|
|
34
|
+
};
|
|
41
35
|
let count = 0;
|
|
42
36
|
|
|
43
|
-
while (endDate
|
|
44
|
-
startDate = startDate.
|
|
37
|
+
while (endDate >= startDate) {
|
|
38
|
+
startDate = new Date(startDate.getTime() + range * 60 * 1000);
|
|
45
39
|
count += 1;
|
|
46
|
-
|
|
40
|
+
dateSlices[count] = startDate;
|
|
47
41
|
}
|
|
48
42
|
|
|
43
|
+
const checkboxes = Object.keys(dateSlices)
|
|
44
|
+
.map((key) => {
|
|
45
|
+
const date = dateSlices[key];
|
|
46
|
+
if (date < endDate) {
|
|
47
|
+
const [, time] = date.toISOString().split("T");
|
|
48
|
+
const [selectedHours, selectedMinutes] = time.split(TIME_SEPARATOR);
|
|
49
|
+
|
|
50
|
+
return [selectedHours, selectedMinutes].join(TIME_SEPARATOR);
|
|
51
|
+
}
|
|
52
|
+
return null;
|
|
53
|
+
})
|
|
54
|
+
.filter(Boolean);
|
|
55
|
+
|
|
49
56
|
return checkboxes;
|
|
50
57
|
};
|
|
51
58
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,r,n,i=require("react");(e=i)&&"object"==typeof e&&"default"in e&&e.default;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}exports.ReactComponent=function(e){return i.createElement("svg",f({width:7,height:11,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=i.createElement("rect",{x:.944,y:1.037,width:5.252,height:3.049,rx:1.5,fill:"#4CF973",stroke:"#fff"})),r||(r=i.createElement("rect",{x:.944,y:4.11,width:5.252,height:3.049,rx:1.5,fill:"#4CF973",stroke:"#fff"})),n||(n=i.createElement("rect",{x:.944,y:7.183,width:5.252,height:3.049,rx:1.5,fill:"#4CF973",stroke:"#fff"})))};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,r,n,i=require("react");(e=i)&&"object"==typeof e&&"default"in e&&e.default;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}exports.ReactComponent=function(e){return i.createElement("svg",f({width:7,height:11,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=i.createElement("rect",{x:1.241,y:1.037,width:5.252,height:3.049,rx:1.5,fill:"#E4E4E4",stroke:"#fff"})),r||(r=i.createElement("rect",{x:1.241,y:4.11,width:5.252,height:3.049,rx:1.5,fill:"#FDD054",stroke:"#fff"})),n||(n=i.createElement("rect",{x:1.241,y:7.183,width:5.252,height:3.049,rx:1.5,fill:"#FDD054",stroke:"#fff"})))};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,r,n,f,i=require("react");(e=i)&&"object"==typeof e&&"default"in e&&e.default;function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}exports.ReactComponent=function(e){return i.createElement("svg",l({width:7,height:10,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=i.createElement("path",{fill:"#fff",d:"M.497 0h5.94v10H.497z"})),r||(r=i.createElement("rect",{x:.591,y:.5,width:5.752,height:3,rx:1.5,fill:"#E4E4E4",stroke:"#fff"})),n||(n=i.createElement("rect",{x:.591,y:3.5,width:5.752,height:3,rx:1.5,fill:"#E4E4E4",stroke:"#fff"})),f||(f=i.createElement("rect",{x:.591,y:6.5,width:5.752,height:3,rx:1.5,fill:"#E4E4E4",stroke:"#fff"})))};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<svg width="200" height="201" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" version="1.1">
|
|
3
|
-
<title>Single Colour - Light Blue Light</title>
|
|
4
|
-
<g class="layer">
|
|
5
|
-
<title>Layer 1</title>
|
|
6
|
-
<g fill="none" fill-rule="evenodd" id="Page-1">
|
|
7
|
-
<g fill="#0E8CE2" fill-rule="nonzero" id="Logo-Export" transform="translate(0 -1835)">
|
|
8
|
-
<path d="m52.59,1861.52c16.49,-16.49 24.18,-20.75 33.43,-23.55c9.25,-2.8 18.71,-2.8 27.95,0c9.25,2.8 16.95,7.06 33.43,23.55l26.95,26.94c16.48,16.49 20.74,24.18 23.54,33.43c2.81,9.25 2.81,18.71 0,27.95c-2.8,9.25 -7.06,16.95 -23.54,33.43l-26.95,26.95c-16.48,16.48 -24.18,20.74 -33.43,23.54c-9.24,2.81 -18.7,2.81 -27.95,0c-9.25,-2.8 -16.94,-7.06 -33.43,-23.54l-26.94,-26.95c-16.49,-16.48 -20.75,-24.18 -23.55,-33.43c-2.8,-9.24 -2.8,-18.7 0,-27.95c2.8,-9.25 7.06,-16.94 23.55,-33.43l26.94,-26.94zm14.82,14.04l-27.33,27.33c-12.85,12.85 -16.37,18.05 -18.45,24.92c-1.63,5.39 -1.63,10.73 0,16.11c2.06,6.8 5.53,11.97 18.06,24.54l27.72,27.71c12.57,12.54 17.73,16 24.53,18.06c5.39,1.64 10.73,1.64 16.11,0c6.87,-2.08 12.07,-5.59 24.92,-18.44l26.95,-26.95c12.85,-12.85 16.36,-18.05 18.44,-24.92c1.64,-5.38 1.64,-10.72 0,-16.11c-2.08,-6.87 -5.59,-12.07 -18.44,-24.92l-26.95,-26.94c-12.85,-12.85 -18.05,-16.37 -24.92,-18.45c-5.38,-1.63 -10.72,-1.63 -16.11,0c-6.8,2.06 -11.96,5.53 -24.53,18.06zm67.18,50.6c5.48,-5.47 14.37,-5.47 19.85,0c5.47,5.48 5.47,14.37 0,19.85l-44.2,44.19c-5.48,5.48 -14.36,5.48 -19.84,0l-6.45,-6.45c-1.21,-1.21 -1.52,-1.77 -1.72,-2.45c-0.21,-0.68 -0.21,-1.37 0,-2.05c0.2,-0.67 0.51,-1.24 1.72,-2.44l50.64,-50.65zm-73.77,24.53c1.32,-1.32 3.11,-2.06 4.97,-2.05l25.82,0.06c1.4,0 2.54,1.15 2.54,2.55c0,0.67 -0.26,1.3 -0.72,1.78l-1.36,1.4l-16.1,15.95c-1.49,1.48 -3.91,1.48 -5.4,-0.01l-9.75,-9.76c-2.74,-2.74 -2.74,-7.18 0,-9.92" id="Single-Colour---Light-Blue-Light"/>
|
|
9
|
-
</g>
|
|
10
|
-
</g>
|
|
11
|
-
</g>
|
|
12
|
-
</svg>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Dispatch, ReactElement, SetStateAction } from "react";
|
|
2
|
-
import { DateTime } from "luxon";
|
|
3
|
-
export declare const defaultStartDay: DateTime;
|
|
4
|
-
export type CalendarProps = {
|
|
5
|
-
currentDate: DateTime;
|
|
6
|
-
setCurrentDate: Dispatch<SetStateAction<DateTime>>;
|
|
7
|
-
calendarDates: DateTime[];
|
|
8
|
-
disabledDates?: DateTime[];
|
|
9
|
-
selectedDate: DateTime | null;
|
|
10
|
-
setSelectedDate: Dispatch<SetStateAction<DateTime | null>>;
|
|
11
|
-
fromPrice?: string | ReactElement | null;
|
|
12
|
-
isLoading?: boolean;
|
|
13
|
-
initialDate?: DateTime;
|
|
14
|
-
};
|
|
15
|
-
export declare const Calendar: ({ currentDate, setCurrentDate, calendarDates, disabledDates, selectedDate, setSelectedDate, initialDate, isLoading, fromPrice, }: CalendarProps) => JSX.Element;
|
|
16
|
-
//# sourceMappingURL=Calendar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../src/calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAIjC,eAAO,MAAM,eAAe,UAK1B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,QAAQ,CAAC;IACtB,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnD,aAAa,EAAE,QAAQ,EAAE,CAAC;IAC1B,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC3B,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,QAAQ,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,QAAQ,qIAUlB,aAAa,gBAwBf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),a=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,r=require("luxon"),n=require("./components/CalendarButtons/CalendarButtons.js"),s=require("./components/CalendarDates/CalendarDates.js"),d=r.DateTime.now().set({millisecond:0,second:0,hour:0,minute:0});exports.Calendar=function(e){var t=e.currentDate,r=e.setCurrentDate,i=e.calendarDates,l=e.disabledDates,c=void 0===l?[]:l,o=e.selectedDate,u=e.setSelectedDate,D=e.initialDate,m=void 0===D?d:D,p=e.isLoading,C=void 0!==p&&p,f=e.fromPrice;return a.createElement("div",{className:"calendar-wrapper"},a.createElement("div",{className:"calendar"},a.createElement(n.CalendarButtons,{disabledDates:c,isLoading:C,currentDate:t,setCurrentDate:r,setSelectedDate:u,initialDate:m}),a.createElement(s.CalendarDates,{disabledDates:c,isLoading:C,fromPrice:f,selectedDate:o,setSelectedDate:u,calendarDates:i,initialDate:m})))},exports.defaultStartDay=d;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CalendarProps } from "../../Calendar";
|
|
3
|
-
type CalendarButtonsProps = Pick<CalendarProps, "isLoading" | "disabledDates" | "initialDate" | "currentDate" | "setCurrentDate" | "setSelectedDate">;
|
|
4
|
-
export declare const CalendarButtons: ({ disabledDates, isLoading, initialDate, currentDate, setCurrentDate, setSelectedDate, }: CalendarButtonsProps) => JSX.Element;
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=CalendarButtons.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarButtons.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarButtons/CalendarButtons.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,KAAK,oBAAoB,GAAG,IAAI,CAC9B,aAAa,EACX,WAAW,GACX,eAAe,GACf,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,iBAAiB,CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,6FAOzB,oBAAoB,gBA0GtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),a=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,n=require("react-i18next"),r=require("react-bootstrap"),l=require("lodash"),s=require("../CalendarSelect/CalendarSelect.js"),i=require("../../../assets/iframe/selectArrow.svg.js"),o=require("../../utils/index.js");exports.CalendarButtons=function(e){var c=e.disabledDates,u=void 0===c?[]:c,d=e.isLoading,m=void 0!==d&&d,b=e.initialDate,v=e.currentDate,f=e.setCurrentDate,C=e.setSelectedDate,p=n.useTranslation("Design").t,E=t.useCallback((function(){f((function(e){return e.plus({months:1})}))}),[]),y=t.useCallback((function(){f((function(e){return e.minus({month:1})}))}),[]),D=t.useMemo((function(){return l.range(b.year,b.year+5,1).map((function(e){return{label:String(e),value:e}}))}),[b]),N=t.useMemo((function(){return v>b}),[v,b]);return a.createElement("div",null,a.createElement("div",{className:"calendar-top-buttons"},a.createElement(r.Button,{variant:"outline-secondary",className:"mr-4",size:"sm",onClick:function(){f(b),o.isSelectedDateDisabled(b,u)||C(b)},disabled:m},p("today")),a.createElement(r.Button,{variant:"outline-secondary",size:"sm",onClick:function(){var e=b.set({day:b.day+1});f(e),o.isSelectedDateDisabled(e,u)||C(e)},disabled:m},p("tomorrow"))),a.createElement("hr",null),a.createElement("div",{className:"calendar-buttons"},a.createElement("div",{className:"buttons-wrapper"},a.createElement(r.Button,{className:"calendar-button left-button",onClick:y,disabled:!N,variant:"link"},a.createElement(i.ReactComponent,null)),a.createElement("div",{className:"month-title"},v.toFormat("MMMM")),a.createElement(r.Button,{className:"calendar-button",onClick:E,variant:"link"},a.createElement(i.ReactComponent,null))),a.createElement(s.CalendarSelect,{options:D,onChange:function(e){var t=Number(e),a=v.set({year:t});f(a<=b?b:a)},value:v.year,className:"ml-4"})))};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarButtons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarDate.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarDate/CalendarDate.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,QAAQ,CAAC;IACtB,WAAW,EAAE,QAAQ,CAAC;IACtB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,eAAe,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,YAAY,wFAOtB,iBAAiB,gBA6BnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
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")),a=require("react-bootstrap"),r=e(require("clsx"));exports.CalendarDate=function(e){var l=e.initialDate,n=e.currentDate,i=e.selectedDate,d=e.setSelectedDate,c=e.isDisabled,u=void 0!==c&&c,s=e.fromPrice,o=n<l||u;return t.createElement(a.Button,{variant:"link",disabled:o,className:r("calendar-date",(null==i?void 0:i.hasSame(n,"day"))&&"selected-date",o&&"disabled-date"),onClick:function(){u||d(n)}},t.createElement("div",null,n.day),"string"==typeof s?t.createElement("div",null,s):t.createElement(t.Fragment,null,s))};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarDate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DateTime } from "luxon";
|
|
3
|
-
import { CalendarProps } from "../../Calendar";
|
|
4
|
-
export type CalendarDatesProps = Pick<CalendarProps, "calendarDates" | "fromPrice" | "isLoading" | "disabledDates" | "selectedDate" | "setSelectedDate"> & {
|
|
5
|
-
initialDate: DateTime;
|
|
6
|
-
};
|
|
7
|
-
export declare const CalendarDates: ({ disabledDates, isLoading, calendarDates, ...props }: CalendarDatesProps) => JSX.Element;
|
|
8
|
-
//# sourceMappingURL=CalendarDates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarDates.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarDates/CalendarDates.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAIjC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,aAAa,EACX,eAAe,GACf,WAAW,GACX,WAAW,GACX,eAAe,GACf,cAAc,GACd,iBAAiB,CACpB,GAAG;IACF,WAAW,EAAE,QAAQ,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,aAAa,0DAKvB,kBAAkB,gBAwCpB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,a=require("tslib"),r=require("react"),t=(e=r)&&"object"==typeof e&&"default"in e?e.default:e,d=require("../../utils/index.js"),l=require("../CalendarWeekdays/CalendarWeekdays.js"),n=require("../CalendarDate/CalendarDate.js");exports.CalendarDates=function(e){var s=e.disabledDates,i=void 0===s?[]:s,u=e.isLoading,c=void 0!==u&&u,o=e.calendarDates,v=a.__rest(e,["disabledDates","isLoading","calendarDates"]),_=r.useMemo((function(){var e,r,t=null!==(r=null===(e=o[0])||void 0===e?void 0:e.weekday)&&void 0!==r?r:0;if(1===t)return o;for(var d=[];t>1;)d.push(null),t-=1;return a.__spreadArray(a.__spreadArray([],a.__read(d),!1),a.__read(o),!1)}),[o]);return t.createElement("div",{className:"calendar-dates-wrapper"},t.createElement(l.CalendarWeekdays,null),t.createElement("div",{className:"calendar-dates"},_.map((function(e){if(null===e)return t.createElement("div",null);var r=c||d.isSelectedDateDisabled(e,i);return t.createElement(n.CalendarDate,a.__assign({key:+e,currentDate:e,isDisabled:r},v))}))))};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarDates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarSelect.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarSelect/CalendarSelect.tsx"],"names":[],"mappings":";AAKA,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,cAAc,6CAKxB,mBAAmB,gBA+BrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var a=require("react"),r=e(a),t=require("react-bootstrap"),n=e(require("clsx")),l=require("../../../iframe/page/components/PageBody/constants.js");exports.CalendarSelect=function(e){var o=e.options,c=e.onChange,s=e.value,u=e.className,i=a.useRef(null);return r.createElement("div",{className:n("calendar-select-wrapper",u),id:l.PAGE_CALENDAR_SELECT_WRAPPER},r.createElement(t.Form.Control,{as:"select",onChange:function(e){var a=e.target.value;c&&c(a)},className:"calendar-select",value:s,ref:i},o.map((function(e){var a=e.label,t=e.value;return r.createElement("option",{value:t,key:a||t},a)}))))};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACV,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarWeekdays.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarWeekdays/CalendarWeekdays.tsx"],"names":[],"mappings":";AAaA,eAAO,MAAM,gBAAgB,mBAc5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/components/CalendarWeekdays/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/calendar/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/calendar/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,SAAS,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DateTime } from "luxon";
|
|
2
|
-
export declare const isSelectedDateDisabled: (selectedDate: DateTime, disabledDates?: DateTime[]) => boolean;
|
|
3
|
-
export declare const getMonthCalendarDates: (initialDate: DateTime) => DateTime[];
|
|
4
|
-
export declare const getWeekCalendarDates: (initialDate: DateTime) => DateTime[];
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAY,MAAM,OAAO,CAAC;AAG3C,eAAO,MAAM,sBAAsB,iBACnB,QAAQ,kBACP,QAAQ,EAAE,YAK1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBAAiB,QAAQ,KAAG,QAAQ,EAOrE,CAAC;AAEF,eAAO,MAAM,oBAAoB,gBAAiB,QAAQ,KAAG,QAAQ,EAMpE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e=require("luxon"),r=(t=require("lodash/isEqual"))&&"object"==typeof t&&"default"in t?t.default:t;exports.getMonthCalendarDates=function(t){var r=t.startOf("month"),n=t.endOf("month");return e.Interval.fromDateTimes(r,n).splitBy({day:1}).map((function(t){return t.start}))},exports.getWeekCalendarDates=function(t){var r=t.plus({days:7});return e.Interval.fromDateTimes(t,r).splitBy({day:1}).map((function(t){return t.start}))},exports.isSelectedDateDisabled=function(t,e){return void 0===e&&(e=[]),!!e.find((function(e){return r(e.toObject(),t.toObject())}))};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { Image } from "@licklist/core/dist/DataMapper/Media/ImageDataMapper";
|
|
3
|
-
export declare const LAYOUT_GRID = "grid";
|
|
4
|
-
export declare const LAYOUT_LIST = "list";
|
|
5
|
-
type Layout = typeof LAYOUT_GRID | typeof LAYOUT_LIST;
|
|
6
|
-
export type ActivityCardProps = {
|
|
7
|
-
title: ReactNode;
|
|
8
|
-
duration: ReactNode;
|
|
9
|
-
price: ReactNode;
|
|
10
|
-
image?: Image | null;
|
|
11
|
-
onSelect: () => void;
|
|
12
|
-
isSelected: boolean;
|
|
13
|
-
layout?: Layout;
|
|
14
|
-
};
|
|
15
|
-
export declare const ActivityCard: ({ title, duration, price, image, onSelect, isSelected, layout, }: ActivityCardProps) => JSX.Element;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=ActivityCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ActivityCard.d.ts","sourceRoot":"","sources":["../../../src/iframe/activity-card/ActivityCard.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAC;AAE7E,eAAO,MAAM,WAAW,SAAS,CAAC;AAClC,eAAO,MAAM,WAAW,SAAS,CAAC;AAElC,KAAK,MAAM,GAAG,OAAO,WAAW,GAAG,OAAO,WAAW,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,YAAY,qEAQtB,iBAAiB,gBAiDnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
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")),a=e(require("clsx")),l="grid";exports.ActivityCard=function(e){var c=e.title,i=e.duration,r=e.price,n=e.image,s=e.onSelect,m=e.isSelected,d=e.layout;return(void 0===d?l:d)===l?t.createElement("button",{type:"button",className:a("activity-card",m&&"active"),onClick:s},n&&t.createElement("img",{className:"activity-card-image",alt:"",src:n.url}),t.createElement("div",{className:a("d-flex","flex-column",!n&&"no-image")},t.createElement("div",{className:"activity-card-title"},c),i&&t.createElement("div",null,i),r&&t.createElement("div",null,r))):t.createElement("div",{role:"button",onClick:s,onKeyPress:s,tabIndex:0},t.createElement("div",{className:a("list-activity-card",{active:m})},t.createElement("div",{className:"description"},t.createElement("div",{className:"title"},c),i&&t.createElement("div",null,t.createElement("p",null,i)),r&&t.createElement("div",null,r)),n&&t.createElement("div",{className:"image-container"},t.createElement("img",{className:"image",src:n.url,alt:""}))),t.createElement("hr",{className:"list-activity-card-hr"}))},exports.LAYOUT_GRID=l,exports.LAYOUT_LIST="list";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/iframe/activity-card/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.AMOUNT_TOTAL="amountTotal",exports.AMOUNT_WITH_DISCOUNT="amountWithDiscount",exports.REMAINING_TO_PAY="remainingToPay",exports.TOTAL_PAID="totalPaid";
|