bookito-widget 0.43.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/README.md +191 -7
  2. package/dist/bookito-widget.css +3 -0
  3. package/dist/bookito-widget.iife.js +112 -0
  4. package/dist/bookito-widget.js +40173 -0
  5. package/dist/bookito-widget.umd.js +104 -1992
  6. package/dist/bookito-widget.window.js +104 -1992
  7. package/dist/src/app/i18n/index.d.ts +868 -0
  8. package/dist/src/app/i18n/locales/de.d.ts +86 -0
  9. package/dist/src/app/i18n/locales/en.d.ts +86 -0
  10. package/dist/src/app/i18n/locales/fr.d.ts +86 -0
  11. package/dist/src/app/i18n/locales/it.d.ts +86 -0
  12. package/dist/src/app/i18n/locales/pl.d.ts +86 -0
  13. package/dist/src/app/providers/BookitoWidgetRoot.vue.d.ts +8 -0
  14. package/dist/src/app/query/query-client.d.ts +2 -0
  15. package/dist/src/embed/global-api.d.ts +9 -0
  16. package/dist/src/embed/mount-registry.d.ts +10 -0
  17. package/dist/src/embed/mount.d.ts +12 -0
  18. package/dist/src/embed/open-modal.d.ts +11 -0
  19. package/dist/src/embed/shadow-dom.d.ts +5 -0
  20. package/dist/src/embed/vue-plugin.d.ts +14 -0
  21. package/dist/src/embed.d.ts +1 -0
  22. package/dist/src/features/booking-flow/api/bookito-booking.client.d.ts +2 -0
  23. package/dist/src/features/booking-flow/api/bookito-booking.dto.d.ts +25 -0
  24. package/dist/src/features/booking-flow/api/bookito-booking.mutations.d.ts +2 -0
  25. package/dist/src/features/booking-flow/components/AnimatedSuccessCheckmark.vue.d.ts +2 -0
  26. package/dist/src/features/booking-flow/components/BookingCheckbox.vue.d.ts +11 -0
  27. package/dist/src/features/booking-flow/components/BookingDetailsDateOfBirthInput.vue.d.ts +10 -0
  28. package/dist/src/features/booking-flow/components/BookingDetailsDialCodePicker.vue.d.ts +11 -0
  29. package/dist/src/features/booking-flow/components/BookingDetailsDialCodePickerContent.vue.d.ts +9 -0
  30. package/dist/src/features/booking-flow/components/BookingDetailsField.vue.d.ts +20 -0
  31. package/dist/src/features/booking-flow/components/BookingDetailsLanguageSelect.vue.d.ts +9 -0
  32. package/dist/src/features/booking-flow/components/BookingDetailsPhoneInput.vue.d.ts +12 -0
  33. package/dist/src/features/booking-flow/components/BookingDetailsSection.vue.d.ts +30 -0
  34. package/dist/src/features/booking-flow/components/BookingDetailsTextInput.vue.d.ts +13 -0
  35. package/dist/src/features/booking-flow/components/BookingExtras.vue.d.ts +15 -0
  36. package/dist/src/features/booking-flow/components/BookingFlowNextButton.vue.d.ts +10 -0
  37. package/dist/src/features/booking-flow/components/BookingFlowPanel.vue.d.ts +7 -0
  38. package/dist/src/features/booking-flow/components/BookingFlowStepper.vue.d.ts +13 -0
  39. package/dist/src/features/booking-flow/components/BookingFlowSuccess.vue.d.ts +5 -0
  40. package/dist/src/features/booking-flow/components/BookingGuestChips.vue.d.ts +11 -0
  41. package/dist/src/features/booking-flow/components/BookingGuestsStep.vue.d.ts +15 -0
  42. package/dist/src/features/booking-flow/components/BookingParticipantCounter.vue.d.ts +13 -0
  43. package/dist/src/features/booking-flow/components/BookingTimeSection.vue.d.ts +24 -0
  44. package/dist/src/features/booking-flow/components/booking-flow.props.d.ts +31 -0
  45. package/dist/src/features/booking-flow/composables/create-booking-flow-api.d.ts +70 -0
  46. package/dist/src/features/booking-flow/composables/useBookingFlow.d.ts +52 -0
  47. package/dist/src/features/booking-flow/composables/useBookingFlowActions.d.ts +13 -0
  48. package/dist/src/features/booking-flow/composables/useBookingFlowActions.types.d.ts +31 -0
  49. package/dist/src/features/booking-flow/composables/useBookingFlowFormSync.d.ts +12 -0
  50. package/dist/src/features/booking-flow/composables/useBookingFlowWaitlist.d.ts +17 -0
  51. package/dist/src/features/booking-flow/composables/useBookingGuestsStepLabels.d.ts +26 -0
  52. package/dist/src/features/booking-flow/composables/useBookingTimeSectionState.d.ts +19 -0
  53. package/dist/src/features/booking-flow/composables/useBookingTimeSlots.d.ts +18 -0
  54. package/dist/src/features/booking-flow/lib/booking-calendar-bounds.d.ts +9 -0
  55. package/dist/src/features/booking-flow/lib/booking-details-flow.helpers.d.ts +11 -0
  56. package/dist/src/features/booking-flow/lib/booking-details.helpers.d.ts +26 -0
  57. package/dist/src/features/booking-flow/lib/booking-external-participant.helpers.d.ts +10 -0
  58. package/dist/src/features/booking-flow/lib/booking-flow-stepper.helpers.d.ts +17 -0
  59. package/dist/src/features/booking-flow/lib/booking-flow.actions.d.ts +34 -0
  60. package/dist/src/features/booking-flow/lib/booking-flow.helpers.d.ts +32 -0
  61. package/dist/src/features/booking-flow/lib/booking-participants.helpers.d.ts +4 -0
  62. package/dist/src/features/booking-flow/lib/booking-payload-label.helpers.d.ts +14 -0
  63. package/dist/src/features/booking-flow/lib/booking-payload.helpers.d.ts +11 -0
  64. package/dist/src/features/booking-flow/lib/booking-step-completion.helpers.d.ts +2 -0
  65. package/dist/src/features/booking-flow/lib/booking-time-slot-payload.helpers.d.ts +8 -0
  66. package/dist/src/features/booking-flow/lib/filter-phone-dial-codes.d.ts +2 -0
  67. package/dist/src/features/booking-flow/lib/format-booking-time-slot-label.d.ts +13 -0
  68. package/dist/src/features/booking-flow/lib/phone-dial-code-countries.data.d.ts +2 -0
  69. package/dist/src/features/booking-flow/lib/phone-dial-codes.d.ts +6 -0
  70. package/dist/src/features/booking-flow/lib/reset-booking-auth.helpers.d.ts +1 -0
  71. package/dist/src/features/booking-flow/lib/reset-booking-confirm-step.helpers.d.ts +2 -0
  72. package/dist/src/features/booking-flow/lib/resolve-booking-total-price.d.ts +10 -0
  73. package/dist/src/features/booking-flow/lib/resolve-booking-waitlist.d.ts +19 -0
  74. package/dist/src/features/booking-flow/model/booking-display-step.types.d.ts +6 -0
  75. package/dist/src/features/booking-flow/model/booking-form-date.helpers.d.ts +10 -0
  76. package/dist/src/features/booking-flow/model/booking-form-navigation.helpers.d.ts +2 -0
  77. package/dist/src/features/booking-flow/model/booking-form.types.d.ts +27 -0
  78. package/dist/src/features/bookito-settings/api/bookito-settings.client.d.ts +2 -0
  79. package/dist/src/features/bookito-settings/api/bookito-settings.keys.d.ts +4 -0
  80. package/dist/src/features/bookito-settings/api/bookito-settings.queries.d.ts +2 -0
  81. package/dist/src/features/bookito-settings/model/bookito-settings.types.d.ts +27 -0
  82. package/dist/src/features/event-feed/api/bookito-event-category.client.d.ts +4 -0
  83. package/dist/src/features/event-feed/api/bookito-event-category.dto.d.ts +11 -0
  84. package/dist/src/features/event-feed/api/bookito-event-category.queries.d.ts +9 -0
  85. package/dist/src/features/event-feed/api/bookito-event-modal-dates.helpers.d.ts +6 -0
  86. package/dist/src/features/event-feed/api/bookito-event.client.d.ts +5 -0
  87. package/dist/src/features/event-feed/api/bookito-event.dto.d.ts +102 -0
  88. package/dist/src/features/event-feed/api/bookito-event.keys.d.ts +7 -0
  89. package/dist/src/features/event-feed/api/bookito-event.mapper-helpers.d.ts +17 -0
  90. package/dist/src/features/event-feed/api/bookito-event.mapper-image.helpers.d.ts +2 -0
  91. package/dist/src/features/event-feed/api/bookito-event.mapper-variant.helpers.d.ts +3 -0
  92. package/dist/src/features/event-feed/api/bookito-event.mapper.d.ts +6 -0
  93. package/dist/src/features/event-feed/api/bookito-event.queries.d.ts +24 -0
  94. package/dist/src/features/event-feed/api/bookito-time-slots.queries.d.ts +9 -0
  95. package/dist/src/features/event-feed/components/BookitoWidget.vue.d.ts +5 -0
  96. package/dist/src/features/event-feed/components/EventFeed.vue.d.ts +21 -0
  97. package/dist/src/features/event-feed/components/EventFeedScrollControls.vue.d.ts +13 -0
  98. package/dist/src/features/event-feed/components/ExperienceCard.vue.d.ts +13 -0
  99. package/dist/src/features/event-feed/components/PoweredByCarlito.vue.d.ts +2 -0
  100. package/dist/src/features/event-feed/composables/useBookitoWidgetTheme.d.ts +2 -0
  101. package/dist/src/features/event-feed/composables/useEventFeedScroll.d.ts +8 -0
  102. package/dist/src/features/event-feed/lib/event-feed-date.utils.d.ts +15 -0
  103. package/dist/src/features/event-feed/lib/event-feed-item.helpers.d.ts +9 -0
  104. package/dist/src/features/event-feed/lib/event-feed-occurrence.helpers.d.ts +7 -0
  105. package/dist/src/features/event-feed/lib/event-feed.utils.d.ts +8 -0
  106. package/dist/src/features/event-feed/lib/resolve-localized-text.d.ts +2 -0
  107. package/dist/src/features/event-feed/model/widget.types.d.ts +96 -0
  108. package/dist/src/features/experience-detail/components/BookitoEventModal.vue.d.ts +14 -0
  109. package/dist/src/features/experience-detail/components/ExperienceDetailPanel.vue.d.ts +9 -0
  110. package/dist/src/features/experience-detail/components/ExperienceOverlay.vue.d.ts +16 -0
  111. package/dist/src/features/experience-detail/components/ExperienceOverlayContent.vue.d.ts +29 -0
  112. package/dist/src/features/experience-detail/components/ExperienceOverlayHeader.vue.d.ts +15 -0
  113. package/dist/src/features/experience-detail/composables/useExperienceOverlayBooking.d.ts +20 -0
  114. package/dist/src/features/experience-detail/lib/bookito-event-modal.helpers.d.ts +7 -0
  115. package/dist/src/features/experience-detail/lib/experience-booking-cancellation.helpers.d.ts +2 -0
  116. package/dist/src/features/experience-detail/lib/experience-booking-cutoff.helpers.d.ts +3 -0
  117. package/dist/src/features/experience-detail/lib/experience-booking-date.helpers.d.ts +3 -0
  118. package/dist/src/features/experience-detail/lib/experience-overlay.helpers.d.ts +3 -0
  119. package/dist/src/features/experience-detail/lib/resolve-experience-booking-availability.d.ts +39 -0
  120. package/dist/src/features/guest-auth/api/guest-auth.client.d.ts +2 -0
  121. package/dist/src/features/guest-auth/api/guest-auth.dto.d.ts +36 -0
  122. package/dist/src/features/guest-auth/api/guest-auth.mutations.d.ts +2 -0
  123. package/dist/src/features/guest-auth/lib/map-login-guests.d.ts +2 -0
  124. package/dist/src/index.d.ts +8 -0
  125. package/dist/src/shared/api/api-config.d.ts +5 -0
  126. package/dist/src/shared/api/auth-tokens.d.ts +3 -0
  127. package/dist/src/shared/api/federation-client.d.ts +14 -0
  128. package/dist/src/shared/api/federation-errors.d.ts +9 -0
  129. package/dist/src/shared/api/graphql-client.d.ts +22 -0
  130. package/dist/src/shared/api/subdomain-parameter.d.ts +8 -0
  131. package/dist/src/shared/calendar/BookingCalendar.vue.d.ts +15 -0
  132. package/dist/src/shared/calendar/BookingCalendarGrid.vue.d.ts +8 -0
  133. package/dist/src/shared/calendar/BookingCalendarNavigation.vue.d.ts +17 -0
  134. package/dist/src/shared/calendar/calendar-date-key.d.ts +4 -0
  135. package/dist/src/shared/calendar/calendar-date-value.d.ts +11 -0
  136. package/dist/src/shared/calendar/calendar-date.types.d.ts +1 -0
  137. package/dist/src/shared/calendar/hotel-calendar-date.d.ts +10 -0
  138. package/dist/src/shared/calendar/index.d.ts +1 -0
  139. package/dist/src/shared/calendar/useBookingCalendarState.d.ts +29 -0
  140. package/dist/src/shared/config/languages.d.ts +3 -0
  141. package/dist/src/shared/lib/format-booking-price.d.ts +2 -0
  142. package/dist/src/shared/lib/is-ios-platform.d.ts +1 -0
  143. package/dist/src/shared/lib/map-language-to-intl-locale.d.ts +2 -0
  144. package/dist/src/shared/lib/normalize-widget-background-color.d.ts +1 -0
  145. package/dist/src/shared/lib/resolve-widget-title.d.ts +2 -0
  146. package/dist/src/shared/markdown/components/CarlitoMarkdownRenderer.vue.d.ts +8 -0
  147. package/dist/src/shared/markdown/components/PdfEmbed/PdfEmbed.vue.d.ts +6 -0
  148. package/dist/src/shared/markdown/components/PdfEmbed/PdfLoading.vue.d.ts +2 -0
  149. package/dist/src/shared/markdown/components/PdfEmbed/PdfRenderer.vue.d.ts +14 -0
  150. package/dist/src/shared/markdown/components/PdfEmbed/PdfViewer.vue.d.ts +38 -0
  151. package/dist/src/shared/markdown/components/PdfEmbed/PdfViewerError.vue.d.ts +5 -0
  152. package/dist/src/shared/markdown/components/PdfEmbed/composables/usePdfViewerState.d.ts +24 -0
  153. package/dist/src/shared/markdown/components/PdfEmbed/composables/useRenderPdf.d.ts +17 -0
  154. package/dist/src/shared/markdown/components/PdfEmbed/lib/pdf-canvas.d.ts +40 -0
  155. package/dist/src/shared/markdown/components/PdfEmbed/lib/pdf-render-watches.d.ts +15 -0
  156. package/dist/src/shared/markdown/has-meaningful-markdown-content.d.ts +5 -0
  157. package/dist/src/shared/markdown/process-markdown.d.ts +1 -0
  158. package/dist/src/shared/markdown/remark-center.d.ts +3 -0
  159. package/dist/src/shared/markdown/transform-markdown-url.d.ts +1 -0
  160. package/dist/src/shared/pdf/create-pdf-panzoom-session.d.ts +18 -0
  161. package/dist/src/shared/pdf/index.d.ts +5 -0
  162. package/dist/src/shared/pdf/pdf-panzoom.d.ts +14 -0
  163. package/dist/src/shared/pdf/pdfjs.d.ts +2 -0
  164. package/dist/src/shared/pdf/setup-pdf-panzoom-watches.d.ts +14 -0
  165. package/dist/src/shared/pdf/usePdfPanzoom.d.ts +6 -0
  166. package/dist/src/shared/pdf/usePdfPanzoom.types.d.ts +11 -0
  167. package/dist/src/shared/theme/theme-loader.d.ts +19 -0
  168. package/dist/src/shared/utils/cn.d.ts +2 -0
  169. package/dist/src/shared/utils/dom-events.d.ts +4 -0
  170. package/package.json +102 -4
  171. package/.babelrc +0 -12
  172. package/.eslintrc.json +0 -18
  173. package/CHANGELOG.md +0 -1931
  174. package/dist/1219.js +0 -1
  175. package/dist/1229.js +0 -2
  176. package/dist/1229.js.LICENSE.txt +0 -3
  177. package/dist/135.js +0 -2
  178. package/dist/135.js.LICENSE.txt +0 -3
  179. package/dist/1385.js +0 -2
  180. package/dist/1385.js.LICENSE.txt +0 -3
  181. package/dist/1421.js +0 -2
  182. package/dist/1421.js.LICENSE.txt +0 -3
  183. package/dist/1426.js +0 -2
  184. package/dist/1426.js.LICENSE.txt +0 -3
  185. package/dist/1428.js +0 -2
  186. package/dist/1428.js.LICENSE.txt +0 -3
  187. package/dist/1677.js +0 -2
  188. package/dist/1677.js.LICENSE.txt +0 -3
  189. package/dist/173.js +0 -2
  190. package/dist/173.js.LICENSE.txt +0 -3
  191. package/dist/1798.js +0 -2
  192. package/dist/1798.js.LICENSE.txt +0 -3
  193. package/dist/1813.js +0 -2
  194. package/dist/1813.js.LICENSE.txt +0 -3
  195. package/dist/2411.js +0 -2
  196. package/dist/2411.js.LICENSE.txt +0 -3
  197. package/dist/2782.js +0 -2
  198. package/dist/2782.js.LICENSE.txt +0 -3
  199. package/dist/2827.js +0 -2
  200. package/dist/2827.js.LICENSE.txt +0 -3
  201. package/dist/2939.js +0 -2
  202. package/dist/2939.js.LICENSE.txt +0 -3
  203. package/dist/3002.js +0 -2
  204. package/dist/3002.js.LICENSE.txt +0 -3
  205. package/dist/3140.js +0 -1
  206. package/dist/3rdpartylicenses.txt +0 -3609
  207. package/dist/4189.js +0 -2
  208. package/dist/4189.js.LICENSE.txt +0 -3
  209. package/dist/4194.js +0 -2
  210. package/dist/4194.js.LICENSE.txt +0 -3
  211. package/dist/4220.js +0 -2
  212. package/dist/4220.js.LICENSE.txt +0 -3
  213. package/dist/434.js +0 -2
  214. package/dist/434.js.LICENSE.txt +0 -3
  215. package/dist/4606.js +0 -2
  216. package/dist/4606.js.LICENSE.txt +0 -3
  217. package/dist/4614.js +0 -2
  218. package/dist/4614.js.LICENSE.txt +0 -3
  219. package/dist/5065.js +0 -2
  220. package/dist/5065.js.LICENSE.txt +0 -3
  221. package/dist/5090.js +0 -2
  222. package/dist/5090.js.LICENSE.txt +0 -3
  223. package/dist/5143.js +0 -2
  224. package/dist/5143.js.LICENSE.txt +0 -3
  225. package/dist/5309.js +0 -2
  226. package/dist/5309.js.LICENSE.txt +0 -3
  227. package/dist/5397.js +0 -2
  228. package/dist/5397.js.LICENSE.txt +0 -3
  229. package/dist/5427.js +0 -2
  230. package/dist/5427.js.LICENSE.txt +0 -3
  231. package/dist/5941.js +0 -2
  232. package/dist/5941.js.LICENSE.txt +0 -3
  233. package/dist/5956.js +0 -2
  234. package/dist/5956.js.LICENSE.txt +0 -3
  235. package/dist/6016.js +0 -2
  236. package/dist/6016.js.LICENSE.txt +0 -3
  237. package/dist/6250.js +0 -2
  238. package/dist/6250.js.LICENSE.txt +0 -3
  239. package/dist/6290.js +0 -2
  240. package/dist/6290.js.LICENSE.txt +0 -3
  241. package/dist/6335.js +0 -2
  242. package/dist/6335.js.LICENSE.txt +0 -3
  243. package/dist/6462.js +0 -2
  244. package/dist/6462.js.LICENSE.txt +0 -3
  245. package/dist/650.js +0 -2
  246. package/dist/650.js.LICENSE.txt +0 -3
  247. package/dist/6531.js +0 -2
  248. package/dist/6531.js.LICENSE.txt +0 -3
  249. package/dist/6878.js +0 -2
  250. package/dist/6878.js.LICENSE.txt +0 -3
  251. package/dist/6892.js +0 -2
  252. package/dist/6892.js.LICENSE.txt +0 -3
  253. package/dist/6979.js +0 -2
  254. package/dist/6979.js.LICENSE.txt +0 -3
  255. package/dist/7120.js +0 -2
  256. package/dist/7120.js.LICENSE.txt +0 -3
  257. package/dist/7149.js +0 -2
  258. package/dist/7149.js.LICENSE.txt +0 -3
  259. package/dist/7202.js +0 -2
  260. package/dist/7202.js.LICENSE.txt +0 -3
  261. package/dist/7213.js +0 -2
  262. package/dist/7213.js.LICENSE.txt +0 -3
  263. package/dist/7290.js +0 -2
  264. package/dist/7290.js.LICENSE.txt +0 -3
  265. package/dist/7373.js +0 -2
  266. package/dist/7373.js.LICENSE.txt +0 -3
  267. package/dist/7515.js +0 -2
  268. package/dist/7515.js.LICENSE.txt +0 -3
  269. package/dist/7797.js +0 -2
  270. package/dist/7797.js.LICENSE.txt +0 -3
  271. package/dist/7804.js +0 -2
  272. package/dist/7804.js.LICENSE.txt +0 -3
  273. package/dist/7813.js +0 -2
  274. package/dist/7813.js.LICENSE.txt +0 -3
  275. package/dist/7843.js +0 -2
  276. package/dist/7843.js.LICENSE.txt +0 -3
  277. package/dist/8199.js +0 -2
  278. package/dist/8199.js.LICENSE.txt +0 -3
  279. package/dist/821.js +0 -2
  280. package/dist/821.js.LICENSE.txt +0 -3
  281. package/dist/8365.js +0 -2
  282. package/dist/8365.js.LICENSE.txt +0 -3
  283. package/dist/8599.js +0 -2
  284. package/dist/8599.js.LICENSE.txt +0 -3
  285. package/dist/880.js +0 -2
  286. package/dist/880.js.LICENSE.txt +0 -3
  287. package/dist/8831.js +0 -2
  288. package/dist/8831.js.LICENSE.txt +0 -3
  289. package/dist/885.js +0 -2
  290. package/dist/885.js.LICENSE.txt +0 -3
  291. package/dist/9079.js +0 -2
  292. package/dist/9079.js.LICENSE.txt +0 -3
  293. package/dist/9104.js +0 -2
  294. package/dist/9104.js.LICENSE.txt +0 -3
  295. package/dist/9236.js +0 -2
  296. package/dist/9236.js.LICENSE.txt +0 -3
  297. package/dist/942.js +0 -2
  298. package/dist/942.js.LICENSE.txt +0 -3
  299. package/dist/9456.js +0 -2
  300. package/dist/9456.js.LICENSE.txt +0 -3
  301. package/dist/951.js +0 -2
  302. package/dist/951.js.LICENSE.txt +0 -3
  303. package/dist/9636.js +0 -2
  304. package/dist/9636.js.LICENSE.txt +0 -3
  305. package/dist/9742.js +0 -2
  306. package/dist/9742.js.LICENSE.txt +0 -3
  307. package/dist/9792.js +0 -2
  308. package/dist/9792.js.LICENSE.txt +0 -3
  309. package/dist/9875.js +0 -2
  310. package/dist/9875.js.LICENSE.txt +0 -3
  311. package/dist/Carlito.eot +0 -0
  312. package/dist/Carlito.svg +0 -321
  313. package/dist/Carlito.ttf +0 -0
  314. package/dist/Carlito.woff +0 -0
  315. package/dist/Carlito.woff2 +0 -0
  316. package/dist/bookito-widget.umd.js.LICENSE.txt +0 -128
  317. package/dist/bookito-widget.window.js.LICENSE.txt +0 -128
  318. package/dist/layers-2x.png +0 -0
  319. package/dist/layers.png +0 -0
  320. package/dist/marker-icon.png +0 -0
  321. package/e2e-tests/e2e.html +0 -77
  322. package/index.html +0 -92
  323. package/jest.config.ts +0 -9
  324. package/postcss.config.js +0 -3
  325. package/project.json +0 -72
  326. package/src/BookitoEventDetail/index.tsx +0 -101
  327. package/src/BookitoEventModal/ModalLoader.tsx +0 -43
  328. package/src/BookitoEventModal/index.tsx +0 -71
  329. package/src/BookitoForm/EventInfo.tsx +0 -68
  330. package/src/BookitoForm/FormSubmitButton/AnimatedSuccessCheckmark/index.module.css +0 -45
  331. package/src/BookitoForm/FormSubmitButton/AnimatedSuccessCheckmark/index.tsx +0 -24
  332. package/src/BookitoForm/FormSubmitButton/index.tsx +0 -58
  333. package/src/BookitoForm/NewBookingForm.tsx +0 -199
  334. package/src/BookitoWidget/index.tsx +0 -299
  335. package/src/BookitoWidgetProvider/BookitoWidgetProvider.tsx +0 -36
  336. package/src/Card/EmptyCard.tsx +0 -30
  337. package/src/Card/index.tsx +0 -103
  338. package/src/CardHolder/index.tsx +0 -32
  339. package/src/Modal/index.tsx +0 -34
  340. package/src/assets/carlito-logo.svg +0 -10
  341. package/src/calendar-styles.css +0 -22
  342. package/src/index.module.css +0 -27
  343. package/src/index.tsx +0 -166
  344. package/src/types.ts +0 -8
  345. package/src/utils/index.tsx +0 -7
  346. package/tailwind.config.js +0 -13
  347. package/tsconfig.json +0 -26
  348. package/tsconfig.lib.json +0 -23
  349. package/tsconfig.spec.json +0 -20
package/dist/Carlito.ttf DELETED
Binary file
package/dist/Carlito.woff DELETED
Binary file
Binary file
@@ -1,128 +0,0 @@
1
- /* @preserve
2
- * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
3
- * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
4
- */
5
-
6
- /*!
7
- Copyright (c) 2018 Jed Watson.
8
- Licensed under the MIT License (MIT), see
9
- http://jedwatson.github.io/classnames
10
- */
11
-
12
- /*!
13
- * (C) Ionic http://ionicframework.com - MIT License
14
- */
15
-
16
- /*! *****************************************************************************
17
- Copyright (c) Microsoft Corporation.
18
-
19
- Permission to use, copy, modify, and/or distribute this software for any
20
- purpose with or without fee is hereby granted.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
- PERFORMANCE OF THIS SOFTWARE.
29
- ***************************************************************************** */
30
-
31
- /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
32
-
33
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
34
-
35
- /*! showdown v 1.9.1 - 02-11-2019 */
36
-
37
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
38
-
39
- /**
40
- * @license React
41
- * react-dom-client.production.js
42
- *
43
- * Copyright (c) Meta Platforms, Inc. and affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */
48
-
49
- /**
50
- * @license React
51
- * react-dom.production.js
52
- *
53
- * Copyright (c) Meta Platforms, Inc. and affiliates.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE file in the root directory of this source tree.
57
- */
58
-
59
- /**
60
- * @license React
61
- * react-jsx-runtime.production.js
62
- *
63
- * Copyright (c) Meta Platforms, Inc. and affiliates.
64
- *
65
- * This source code is licensed under the MIT license found in the
66
- * LICENSE file in the root directory of this source tree.
67
- */
68
-
69
- /**
70
- * @license React
71
- * react.production.js
72
- *
73
- * Copyright (c) Meta Platforms, Inc. and affiliates.
74
- *
75
- * This source code is licensed under the MIT license found in the
76
- * LICENSE file in the root directory of this source tree.
77
- */
78
-
79
- /**
80
- * @license React
81
- * scheduler.production.js
82
- *
83
- * Copyright (c) Meta Platforms, Inc. and affiliates.
84
- *
85
- * This source code is licensed under the MIT license found in the
86
- * LICENSE file in the root directory of this source tree.
87
- */
88
-
89
- /**
90
- * @license React
91
- * use-sync-external-store-shim.production.js
92
- *
93
- * Copyright (c) Meta Platforms, Inc. and affiliates.
94
- *
95
- * This source code is licensed under the MIT license found in the
96
- * LICENSE file in the root directory of this source tree.
97
- */
98
-
99
- /**
100
- * @licstart The following is the entire license notice for the
101
- * JavaScript code in this page
102
- *
103
- * Copyright 2022 Mozilla Foundation
104
- *
105
- * Licensed under the Apache License, Version 2.0 (the "License");
106
- * you may not use this file except in compliance with the License.
107
- * You may obtain a copy of the License at
108
- *
109
- * http://www.apache.org/licenses/LICENSE-2.0
110
- *
111
- * Unless required by applicable law or agreed to in writing, software
112
- * distributed under the License is distributed on an "AS IS" BASIS,
113
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
114
- * See the License for the specific language governing permissions and
115
- * limitations under the License.
116
- *
117
- * @licend The above is the entire license notice for the
118
- * JavaScript code in this page
119
- */
120
-
121
- /** @license React v16.13.1
122
- * react-is.production.min.js
123
- *
124
- * Copyright (c) Facebook, Inc. and its affiliates.
125
- *
126
- * This source code is licensed under the MIT license found in the
127
- * LICENSE file in the root directory of this source tree.
128
- */
@@ -1,128 +0,0 @@
1
- /* @preserve
2
- * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
3
- * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
4
- */
5
-
6
- /*!
7
- Copyright (c) 2018 Jed Watson.
8
- Licensed under the MIT License (MIT), see
9
- http://jedwatson.github.io/classnames
10
- */
11
-
12
- /*!
13
- * (C) Ionic http://ionicframework.com - MIT License
14
- */
15
-
16
- /*! *****************************************************************************
17
- Copyright (c) Microsoft Corporation.
18
-
19
- Permission to use, copy, modify, and/or distribute this software for any
20
- purpose with or without fee is hereby granted.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
- PERFORMANCE OF THIS SOFTWARE.
29
- ***************************************************************************** */
30
-
31
- /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
32
-
33
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
34
-
35
- /*! showdown v 1.9.1 - 02-11-2019 */
36
-
37
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
38
-
39
- /**
40
- * @license React
41
- * react-dom-client.production.js
42
- *
43
- * Copyright (c) Meta Platforms, Inc. and affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */
48
-
49
- /**
50
- * @license React
51
- * react-dom.production.js
52
- *
53
- * Copyright (c) Meta Platforms, Inc. and affiliates.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE file in the root directory of this source tree.
57
- */
58
-
59
- /**
60
- * @license React
61
- * react-jsx-runtime.production.js
62
- *
63
- * Copyright (c) Meta Platforms, Inc. and affiliates.
64
- *
65
- * This source code is licensed under the MIT license found in the
66
- * LICENSE file in the root directory of this source tree.
67
- */
68
-
69
- /**
70
- * @license React
71
- * react.production.js
72
- *
73
- * Copyright (c) Meta Platforms, Inc. and affiliates.
74
- *
75
- * This source code is licensed under the MIT license found in the
76
- * LICENSE file in the root directory of this source tree.
77
- */
78
-
79
- /**
80
- * @license React
81
- * scheduler.production.js
82
- *
83
- * Copyright (c) Meta Platforms, Inc. and affiliates.
84
- *
85
- * This source code is licensed under the MIT license found in the
86
- * LICENSE file in the root directory of this source tree.
87
- */
88
-
89
- /**
90
- * @license React
91
- * use-sync-external-store-shim.production.js
92
- *
93
- * Copyright (c) Meta Platforms, Inc. and affiliates.
94
- *
95
- * This source code is licensed under the MIT license found in the
96
- * LICENSE file in the root directory of this source tree.
97
- */
98
-
99
- /**
100
- * @licstart The following is the entire license notice for the
101
- * JavaScript code in this page
102
- *
103
- * Copyright 2022 Mozilla Foundation
104
- *
105
- * Licensed under the Apache License, Version 2.0 (the "License");
106
- * you may not use this file except in compliance with the License.
107
- * You may obtain a copy of the License at
108
- *
109
- * http://www.apache.org/licenses/LICENSE-2.0
110
- *
111
- * Unless required by applicable law or agreed to in writing, software
112
- * distributed under the License is distributed on an "AS IS" BASIS,
113
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
114
- * See the License for the specific language governing permissions and
115
- * limitations under the License.
116
- *
117
- * @licend The above is the entire license notice for the
118
- * JavaScript code in this page
119
- */
120
-
121
- /** @license React v16.13.1
122
- * react-is.production.min.js
123
- *
124
- * Copyright (c) Facebook, Inc. and its affiliates.
125
- *
126
- * This source code is licensed under the MIT license found in the
127
- * LICENSE file in the root directory of this source tree.
128
- */
Binary file
package/dist/layers.png DELETED
Binary file
Binary file
@@ -1,77 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Sample HTML Page</title>
5
- <script src="https://unpkg.com/bookito-widget@next"></script>
6
- </head>
7
- <body>
8
- <div style="margin: 20px auto; text-align: center">
9
- <h2>Bookito Example Website</h2>
10
- <div style="margin: 10px">
11
- <button
12
- id="open-modal-btn"
13
- style="border: 1px solid black; padding: 2px; border-radius: 5px"
14
- >
15
- Open Single Event Modal
16
- </button>
17
- </div>
18
- </div>
19
- <div id="modal-widget">
20
- <!-- Bookito widget will be inserted here -->
21
- </div>
22
- <bookito-widget
23
- auth-id="791"
24
- viewMode="Date"
25
- title="Experiences Today"
26
- language="de"
27
- ></bookito-widget>
28
- <!-- As Web Component - with Custom CSS -->
29
- <bookito-widget
30
- auth-id="138"
31
- title="Test Title"
32
- category-id="63cff0610eaa9adcb00ce39c"
33
- language="de"
34
- custom-css=".bookito-widget { background-color: #b1dde2ba; padding : 50px; border-radius : 70px}
35
- .bookito-widget__title {color : #3f51b5; margin-bottom : 20px} .bookito-form__duration {display : none}"
36
- ></bookito-widget>
37
-
38
- <script>
39
- window.addEventListener('DOMContentLoaded', (event) => {
40
- document.getElementById('open-modal-btn').addEventListener('click', () => {
41
- window.bookitoWidget.openBookitoModal({
42
- // Modal only
43
- container: '#modal-widget',
44
- eventId: '67ff9a092c11b3f754e53d3f',
45
- authId: '799',
46
- title: 'Experiences Today',
47
- language: 'de',
48
- });
49
- });
50
- if (window.bookitoWidget && typeof window.bookitoWidget.initialize === 'function') {
51
- // Mount using JavaScript API - with Custom CSS
52
- window.bookitoWidget.initialize({
53
- container: '#widget',
54
- authId: '138',
55
- title: 'Experiences Today',
56
- language: 'de',
57
- viewMode: 'List',
58
- customCss: `
59
- .bookito-widget { background-color: #b1dde2ba; padding : 50px; border-radius : 70px}
60
- .bookito-widget__title {color : #3f51b5; margin-bottom : 20px}`,
61
- });
62
- // Mount using JavaScript API - without Custom CSS
63
- window.bookitoWidget.initialize({
64
- container: '#widget-2',
65
- authId: '138',
66
- language: 'de',
67
- });
68
- } else {
69
- console.error(
70
- 'bookitoWidget is not loaded or initialize is not a function',
71
- window.bookitoWidget
72
- );
73
- }
74
- });
75
- </script>
76
- </body>
77
- </html>
package/index.html DELETED
@@ -1,92 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Sample HTML Page</title>
5
- <!-- <script src="https://unpkg.com/bookito-widget@next"></script>-->
6
- <script src="./dist/bookito-widget.window.js"></script>
7
- </head>
8
- <body>
9
- <div style="margin: 20px auto; text-align: center">
10
- <h2>Bookito Example Website</h2>
11
- <div style="margin: 10px">
12
- <button
13
- id="open-modal-btn"
14
- style="border: 1px solid black; padding: 2px; border-radius: 5px"
15
- >
16
- Open Single Event Modal
17
- </button>
18
- </div>
19
- </div>
20
-
21
- <bookito-widget
22
- auth-id="792"
23
- viewMode="Date"
24
- title="Experiences Today"
25
- language="de"
26
- ></bookito-widget>
27
-
28
- <div id="modal-widget">
29
- <!-- Bookito widget will be inserted here -->
30
- </div>
31
-
32
- <div id="widget">
33
- <!-- Bookito widget will be inserted here -->
34
- </div>
35
-
36
- <div id="widget-2">
37
- <!-- Bookito widget will be inserted here -->
38
- </div>
39
- <!-- As Web Component - with Custom CSS -->
40
- <bookito-widget
41
- auth-id="138"
42
- title="Test Title"
43
- category-id="63cff0610eaa9adcb00ce39c"
44
- language="de"
45
- custom-css=".bookito-widget { background-color: #b1dde2ba; padding : 50px; border-radius : 70px}
46
- .bookito-widget__title {color : #3f51b5; margin-bottom : 20px} .bookito-form__duration {display : none}"
47
- ></bookito-widget>
48
-
49
- <script>
50
- window.addEventListener('DOMContentLoaded', (event) => {
51
- document.getElementById('open-modal-btn').addEventListener('click', () => {
52
- window.bookitoWidget.openBookitoModal({
53
- // Modal only
54
- container: '#modal-widget',
55
- eventId: '67e6b4178402b46330fdf457',
56
- authId: '791',
57
- title: 'Experiences Today',
58
- language: 'de',
59
- customCss: `
60
- .bookito-form__duration { display : none }
61
- .bookito-widget__modal { ... }
62
- `,
63
- });
64
- });
65
- if (window.bookitoWidget && typeof window.bookitoWidget.initialize === 'function') {
66
- // Mount using JavaScript API - with Custom CSS
67
- window.bookitoWidget.initialize({
68
- container: '#widget',
69
- authId: '138',
70
- title: 'Experiences Today',
71
- language: 'de',
72
- viewMode: 'List',
73
- customCss: `
74
- .bookito-widget { background-color: #b1dde2ba; padding : 50px; border-radius : 70px}
75
- .bookito-widget__title {color : #3f51b5; margin-bottom : 20px}`,
76
- });
77
- // Mount using JavaScript API - without Custom CSS
78
- window.bookitoWidget.initialize({
79
- container: '#widget-2',
80
- authId: '138',
81
- language: 'de',
82
- });
83
- } else {
84
- console.error(
85
- 'bookitoWidget is not loaded or initialize is not a function',
86
- window.bookitoWidget
87
- );
88
- }
89
- });
90
- </script>
91
- </body>
92
- </html>
package/jest.config.ts DELETED
@@ -1,9 +0,0 @@
1
- /* eslint-disable */
2
- export default {
3
- displayName: '@carlito/api',
4
- preset: '../../../jest.preset.js',
5
- transform: {
6
- '^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/react/babel'] }],
7
- },
8
- moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
9
- };
package/postcss.config.js DELETED
@@ -1,3 +0,0 @@
1
- const createPostCssConfig = require('../../../custom-config/postcss.config');
2
-
3
- module.exports = createPostCssConfig(__dirname);
package/project.json DELETED
@@ -1,72 +0,0 @@
1
- {
2
- "name": "bookito-widget",
3
- "$schema": "../../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "libs/apps/bookito-widget/src",
5
- "projectType": "library",
6
- "tags": [],
7
- "targets": {
8
- "lint": {
9
- "executor": "@nx/linter:eslint",
10
- "outputs": ["{options.outputFile}"],
11
- "options": {
12
- "lintFilePatterns": [
13
- "libs/apps/bookito-widget/**/*.ts",
14
- "libs/apps/bookito-widget/**/*.tsx"
15
- ]
16
- }
17
- },
18
- "test": {
19
- "executor": "@nx/jest:jest",
20
- "outputs": ["{workspaceRoot}/coverage/libs/apps/bookito-widget"],
21
- "options": {
22
- "jestConfig": "libs/apps/bookito-widget/jest.config.ts"
23
- }
24
- },
25
- "bundle": {
26
- "executor": "@nx/webpack:webpack",
27
- "outputs": ["{options.outputPath}"],
28
- "options": {
29
- "libraryName": "bookito-widget",
30
- "libraryTargets": ["umd", "window"],
31
- "index": "",
32
- "tsConfig": "libs/apps/bookito-widget/tsconfig.json",
33
- "main": "libs/apps/bookito-widget/src/index.tsx",
34
- "outputPath": "libs/apps/bookito-widget/dist",
35
- "compiler": "babel",
36
- "optimization": true,
37
- "extractLicenses": true,
38
- "runtimeChunk": false,
39
- "vendorChunk": false,
40
- "generateIndexHtml": false,
41
- "commonChunk": false,
42
- "namedChunks": false,
43
- "webpackConfig": "custom-config/webpack-lib.config.js",
44
- "postcssConfig": "libs/apps/bookito-widget/postcss.config.js",
45
- "isolatedConfig": true
46
- }
47
- },
48
- "version": {
49
- "executor": "@jscutlery/semver:version",
50
- "options": {
51
- "postTargets": ["bookito-widget:publish-to-npm"],
52
- "push": true
53
- },
54
- "configurations": {
55
- "staging": {
56
- "releaseAs": "prerelease",
57
- "preid": "beta"
58
- }
59
- }
60
- },
61
- "publish-to-npm": {
62
- "executor": "nx:run-commands",
63
- "options": {
64
- "commands": [
65
- "echo 'Publishing bookito-widget to npm'",
66
- "echo $TAG",
67
- "cd libs/apps/bookito-widget && npm publish --registry=https://registry.npmjs.org/ --tag $TAG --force"
68
- ]
69
- }
70
- }
71
- }
72
- }
@@ -1,101 +0,0 @@
1
- import { getImageFormatUrl, useApp, useBookitoSettings } from '@carlito/api';
2
- import { LocalizedEventData, isEventBookable } from '@carlito/bookito-client';
3
- import { Trans } from 'react-i18next';
4
- import { BookingForm } from '../BookitoForm/NewBookingForm';
5
- import { BookitoWidgetViewMode, ResolvedOccurrence } from '../types';
6
- import { useMemo } from 'react';
7
-
8
- export type Props = {
9
- event: LocalizedEventData;
10
- date: Date;
11
- authId: string;
12
- availableOnDates: string[];
13
- isModalView?: boolean;
14
- viewMode?: BookitoWidgetViewMode;
15
- /** Server-resolved occurrence for `date` (resolveOccurrences=true). */
16
- resolvedOccurrence?: ResolvedOccurrence;
17
- };
18
-
19
- function BookitoEventDetail({
20
- event,
21
- authId,
22
- availableOnDates,
23
- date,
24
- isModalView = false,
25
- viewMode,
26
- resolvedOccurrence,
27
- }: Props) {
28
- const { description, bannerImg, title } = event;
29
- const { timezone } = useApp();
30
-
31
- const { bookitoSettings } = useBookitoSettings({ hotelId: authId });
32
- const { isBookable } = useMemo(
33
- () =>
34
- isEventBookable({
35
- event,
36
- onDate: date,
37
- settings: bookitoSettings,
38
- timezone,
39
- }),
40
- [bookitoSettings, date, event, timezone]
41
- );
42
-
43
- let isBookableEvent = isBookable;
44
-
45
- if (isModalView) {
46
- isBookableEvent = true;
47
- }
48
-
49
- const shouldPreselectDateInCalendar = viewMode ? viewMode === 'Date' : undefined;
50
-
51
- const bannerImgUrl = getImageFormatUrl(bannerImg);
52
-
53
- return (
54
- <div className="bookito-event-detail relative px-6 py-2 md:flex">
55
- <div className="my-4 md:sticky top-10 text-slate-500 text-lg leading-relaxed w-full lg:w-1/2">
56
- {bannerImgUrl && (
57
- <img
58
- src={bannerImgUrl}
59
- alt="event display img"
60
- className="rounded-lg object-fill w-full h-auto"
61
- />
62
- )}
63
- <h2 className="text-light-contrast mt-4 font-extrabold not-italic text-2xl md:hidden">
64
- {title}
65
- </h2>
66
- {isBookableEvent && description && (
67
- <div className="text-light-contrast mt-7 lg:mt-14">
68
- <h3 className="non-italic text-base lg:text-xl font-bold">
69
- <Trans i18nKey="description"></Trans>
70
- </h3>
71
- <p className="bookito-event-detail__description my-4 text-sm lg:text-base leading-relaxed">
72
- {description}
73
- </p>
74
- </div>
75
- )}
76
- </div>
77
- <div className="my-4 text-lg leading-relaxed w-full md:mx-8 lg:w-1/2">
78
- <h2 className="bookito-event-detail__title text-light-contrast mt-2 font-extrabold not-italic text-4xl hidden md:block">
79
- {title}
80
- </h2>
81
- {isBookableEvent ? (
82
- <BookingForm
83
- event={event}
84
- date={date}
85
- authId={authId}
86
- availableOnDates={availableOnDates}
87
- shouldPreselectDateInCalendar={shouldPreselectDateInCalendar ?? !isModalView}
88
- resolvedOccurrence={resolvedOccurrence}
89
- timezone={timezone}
90
- />
91
- ) : (
92
- <p className="bookito-event-detail__description text-sm lg:text-base leading-relaxed ">
93
- {description}
94
- </p>
95
- )}
96
- </div>
97
- </div>
98
- );
99
- }
100
-
101
- export default BookitoEventDetail;
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
-
3
- function ModalLoader() {
4
- return (
5
- <div className="animate-pulse relative px-6 py-2">
6
- <div className="my-4 text-slate-500 text-lg flex flex-col md:flex-row gap-x-10 w-full leading-relaxed">
7
- <div className={'bg-slate-200 w-full mb-10 md:w-1/2 aspect-video'}></div>
8
- <h5 className="flex-1 mb-10 text-2xl font-bold tracking-tight text-gray-50 dark:text-white">
9
- <div className="grid grid-cols-3 gap-4 mt-1">
10
- <div className="h-4 bg-slate-200 rounded col-span-2"></div>
11
- </div>
12
- <div className="grid grid-cols-1 md:grid-cols-3 gap-4 mt-2">
13
- <div className="h-4 bg-slate-200 rounded col-span-1"></div>
14
- </div>
15
- <div className="grid grid-cols-3 gap-4 mt-1">
16
- <div className="h-4 bg-slate-200 rounded col-span-2"></div>
17
- </div>
18
- <div className="grid grid-cols-3 gap-4 mt-2">
19
- <div className="h-4 bg-slate-200 rounded col-span-1"></div>
20
- </div>
21
- <div className="mt-10">
22
- <div className="grid grid-cols-3 gap-4 mt-1">
23
- <div className="h-4 bg-slate-200 rounded col-span-2"></div>
24
- </div>
25
- <div className="grid grid-cols-3 gap-4 mt-2">
26
- <div className="h-4 bg-slate-200 rounded col-span-1"></div>
27
- </div>
28
- </div>
29
- <div className="mt-20">
30
- <div className="grid grid-cols-3 gap-4 mt-1">
31
- <div className="h-4 bg-slate-200 rounded col-span-2"></div>
32
- </div>
33
- <div className="grid grid-cols-3 gap-4 mt-2">
34
- <div className="h-4 bg-slate-200 rounded col-span-1"></div>
35
- </div>
36
- </div>
37
- </h5>
38
- </div>
39
- </div>
40
- );
41
- }
42
-
43
- export default ModalLoader;