@lifesg/react-design-system 4.0.0-alpha.3 → 4.0.0-alpha.4

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 (1304) hide show
  1. package/accordion/accordion-item.styles.js +1 -1
  2. package/accordion/accordion-item.styles.js.map +1 -1
  3. package/accordion/{accordion-item.styles_kchcad.css → accordion-item.styles_1j4eb32.css} +2 -2
  4. package/accordion/accordion.styles.js +1 -1
  5. package/{cjs/accordion/accordion.styles_ijglff.css → accordion/accordion.styles_bzrfrs.css} +1 -1
  6. package/alert/alert.styles.js +1 -1
  7. package/alert/alert.styles.js.map +1 -1
  8. package/{cjs/alert/alert.styles_1ygel36.css → alert/alert.styles_patwo2.css} +4 -4
  9. package/badge/badge.js +1 -1
  10. package/badge/badge.js.map +1 -1
  11. package/badge/badge.styles.js +1 -1
  12. package/badge/badge.styles_1c3c6wj.css +16 -0
  13. package/badge/types.d.ts +1 -1
  14. package/box-container/box-container.styles.js +1 -1
  15. package/box-container/box-container.styles.js.map +1 -1
  16. package/box-container/{box-container.styles_5y84d5.css → box-container.styles_5t2j9k.css} +2 -2
  17. package/breadcrumb/breadcrumb.js +1 -1
  18. package/breadcrumb/breadcrumb.js.map +1 -1
  19. package/button/button.styles.js +1 -1
  20. package/button/button.styles.js.map +1 -1
  21. package/button/{button.styles_bcpkzm.css → button.styles_1pxy0co.css} +3 -3
  22. package/calendar/calendar.js +1 -1
  23. package/calendar/calendar.js.map +1 -1
  24. package/cjs/accordion/accordion-item.styles.js +1 -1
  25. package/cjs/accordion/accordion-item.styles.js.map +1 -1
  26. package/cjs/accordion/{accordion-item.styles_kchcad.css → accordion-item.styles_1j4eb32.css} +2 -2
  27. package/cjs/accordion/accordion.styles.js +1 -1
  28. package/{accordion/accordion.styles_ijglff.css → cjs/accordion/accordion.styles_bzrfrs.css} +1 -1
  29. package/cjs/alert/alert.styles.js +1 -1
  30. package/cjs/alert/alert.styles.js.map +1 -1
  31. package/{alert/alert.styles_1ygel36.css → cjs/alert/alert.styles_patwo2.css} +4 -4
  32. package/cjs/badge/badge.js +1 -1
  33. package/cjs/badge/badge.js.map +1 -1
  34. package/cjs/badge/badge.styles.js +1 -1
  35. package/cjs/badge/badge.styles_1c3c6wj.css +16 -0
  36. package/cjs/box-container/box-container.styles.js +1 -1
  37. package/cjs/box-container/box-container.styles.js.map +1 -1
  38. package/cjs/box-container/{box-container.styles_5y84d5.css → box-container.styles_5t2j9k.css} +2 -2
  39. package/cjs/breadcrumb/breadcrumb.js +1 -1
  40. package/cjs/breadcrumb/breadcrumb.js.map +1 -1
  41. package/cjs/button/button.styles.js +1 -1
  42. package/cjs/button/button.styles.js.map +1 -1
  43. package/cjs/button/{button.styles_bcpkzm.css → button.styles_1pxy0co.css} +3 -3
  44. package/cjs/calendar/calendar.js +1 -1
  45. package/cjs/calendar/calendar.js.map +1 -1
  46. package/cjs/countdown-timer/countdown-timer.styles.js +1 -1
  47. package/cjs/countdown-timer/{countdown-timer.styles_k50tkw.css → countdown-timer.styles_ipn1b0.css} +1 -1
  48. package/cjs/dashed-border/dashed-border.js +1 -1
  49. package/cjs/dashed-border/dashed-border.js.map +1 -1
  50. package/cjs/data-table/data-table.js +1 -1
  51. package/cjs/data-table/data-table.js.map +1 -1
  52. package/cjs/data-table/data-table.styles.js +1 -1
  53. package/cjs/data-table/{data-table.styles_1nj2uzq.css → data-table.styles_1iqq1g7.css} +1 -1
  54. package/cjs/date-input/date-input.js +1 -1
  55. package/cjs/date-input/date-input.js.map +1 -1
  56. package/cjs/date-navigator/date-navigator.styles.js +1 -1
  57. package/cjs/date-navigator/date-navigator.styles.js.map +1 -1
  58. package/cjs/date-navigator/date-navigator.styles_wokh56.css +4 -0
  59. package/cjs/divider/divider.js.map +1 -1
  60. package/cjs/e-signature/e-signature-canvas.js +1 -1
  61. package/cjs/e-signature/e-signature-canvas.js.map +1 -1
  62. package/cjs/e-signature/e-signature.js +1 -1
  63. package/cjs/e-signature/e-signature.js.map +1 -1
  64. package/cjs/e-signature/e-signature.styles.js +1 -168
  65. package/cjs/e-signature/e-signature.styles.js.map +1 -1
  66. package/cjs/e-signature/e-signature.styles_lukd9f.css +17 -0
  67. package/cjs/error-display/error-display-data.js +1 -1
  68. package/cjs/error-display/error-display-data.js.map +1 -1
  69. package/cjs/external/lodash/get.js +1 -1
  70. package/cjs/external/lodash/get.js.map +1 -1
  71. package/cjs/file-download/file-download.js +1 -1
  72. package/cjs/file-download/file-download.js.map +1 -1
  73. package/cjs/file-download/file-download.styles.js +1 -32
  74. package/cjs/file-download/file-download.styles.js.map +1 -1
  75. package/cjs/file-download/file-download.styles_iggk8q.css +8 -0
  76. package/cjs/file-download/file-list-card/file-list-card.js +1 -1
  77. package/cjs/file-download/file-list-card/file-list-card.js.map +1 -1
  78. package/cjs/file-download/file-list-card/file-list-card.styles.js +1 -177
  79. package/cjs/file-download/file-list-card/file-list-card.styles.js.map +1 -1
  80. package/cjs/file-download/file-list-card/file-list-card.styles_oom8ii.css +16 -0
  81. package/cjs/file-upload/file-list/file-list.js +2 -0
  82. package/cjs/file-upload/file-list/file-list.js.map +1 -0
  83. package/cjs/file-upload/file-list/file-list.styles.js +2 -0
  84. package/cjs/file-upload/file-list/file-list.styles.js.map +1 -0
  85. package/cjs/file-upload/file-list/file-list.styles_1ea12kj.css +3 -0
  86. package/cjs/file-upload/file-list-item/file-list-item-thumbnail.styles.js +1 -1
  87. package/cjs/file-upload/file-list-item/{file-list-item-thumbnail.styles_1vrh1ve.css → file-list-item-thumbnail.styles_1y4si19.css} +1 -1
  88. package/cjs/file-upload/file-upload.js +1 -1
  89. package/cjs/file-upload/file-upload.js.map +1 -1
  90. package/cjs/filter/addons/filter-item-checkbox.styles.js +1 -1
  91. package/cjs/filter/addons/filter-item-checkbox.styles.js.map +1 -1
  92. package/cjs/filter/addons/{filter-item-checkbox.styles_18l87i2.css → filter-item-checkbox.styles_7degw7.css} +1 -1
  93. package/cjs/filter/filter-badge.js +2 -0
  94. package/cjs/filter/filter-badge.js.map +1 -0
  95. package/cjs/filter/filter-item-page.js +1 -1
  96. package/cjs/filter/filter-item-page.js.map +1 -1
  97. package/cjs/filter/filter-item.styles.js +1 -1
  98. package/cjs/filter/filter-item.styles.js.map +1 -1
  99. package/{filter/filter-item.styles_1e3v6qq.css → cjs/filter/filter-item.styles_cphjnj.css} +2 -2
  100. package/cjs/filter/filter-modal.js +1 -1
  101. package/cjs/filter/filter-modal.js.map +1 -1
  102. package/cjs/filter/filter-modal.styles.js +1 -1
  103. package/cjs/filter/filter-modal.styles.js.map +1 -1
  104. package/cjs/filter/filter-modal.styles_qw3xlg.css +10 -0
  105. package/cjs/filter/filter-sidebar.js +1 -1
  106. package/cjs/filter/filter-sidebar.js.map +1 -1
  107. package/cjs/filter/filter-sidebar.styles.js +1 -1
  108. package/cjs/filter/filter-sidebar.styles.js.map +1 -1
  109. package/cjs/filter/filter-sidebar.styles_1otwpjl.css +5 -0
  110. package/cjs/filter/filter.styles.js +1 -1
  111. package/cjs/filter/filter.styles.js.map +1 -1
  112. package/cjs/filter/{filter.styles_2fmaok.css → filter.styles_1ykijwm.css} +1 -1
  113. package/cjs/form/form-label.styles.js +1 -1
  114. package/cjs/form/form-label.styles.js.map +1 -1
  115. package/cjs/form/form-label.styles_11r0652.css +6 -0
  116. package/cjs/form/form-wrapper.js +1 -1
  117. package/cjs/form/form-wrapper.js.map +1 -1
  118. package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.js +1 -1
  119. package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.js.map +1 -1
  120. package/cjs/image-button/image-button.styles.js +1 -1
  121. package/cjs/image-button/{image-button.styles_qtt605.css → image-button.styles_6n1qsr.css} +1 -1
  122. package/cjs/index.js +1 -1
  123. package/cjs/input-group/input-group-list-addon.js +1 -1
  124. package/cjs/input-group/input-group-list-addon.js.map +1 -1
  125. package/cjs/input-group/input-group.styles.js +1 -1
  126. package/{input-group/input-group.styles_fpy81r.css → cjs/input-group/input-group.styles_bqye6f.css} +1 -1
  127. package/cjs/input-multi-select/input-multi-select.js +1 -1
  128. package/cjs/input-multi-select/input-multi-select.js.map +1 -1
  129. package/cjs/input-nested-multi-select/input-nested-multi-select.js +1 -1
  130. package/cjs/input-nested-multi-select/input-nested-multi-select.js.map +1 -1
  131. package/cjs/input-nested-select/input-nested-select.js +1 -1
  132. package/cjs/input-nested-select/input-nested-select.js.map +1 -1
  133. package/cjs/input-range-select/input-range-select.js +1 -1
  134. package/cjs/input-range-select/input-range-select.js.map +1 -1
  135. package/cjs/input-select/input-select.js +1 -1
  136. package/cjs/input-select/input-select.js.map +1 -1
  137. package/cjs/input-textarea/textarea-counter.styles.js +1 -1
  138. package/cjs/input-textarea/textarea-counter.styles.js.map +1 -1
  139. package/cjs/input-textarea/textarea-counter.styles_1n3wsnv.css +1 -0
  140. package/cjs/input-textarea/textarea.styles.js +1 -1
  141. package/cjs/input-textarea/textarea.styles_22z4n3.css +5 -0
  142. package/cjs/language-switcher/dropdown-panel.styles.js +1 -1
  143. package/cjs/language-switcher/dropdown-panel.styles.js.map +1 -1
  144. package/cjs/language-switcher/{dropdown-panel.styles_1z0n7qq.css → dropdown-panel.styles_1qsjf8d.css} +1 -1
  145. package/cjs/language-switcher/dropdown-variant.js +1 -1
  146. package/cjs/language-switcher/dropdown-variant.js.map +1 -1
  147. package/cjs/language-switcher/dropdown-variant.styles.js +1 -1
  148. package/cjs/language-switcher/dropdown-variant.styles_1vrdfky.css +2 -0
  149. package/cjs/language-switcher/link-container-variant.styles.js +1 -1
  150. package/cjs/language-switcher/{link-container-variant.styles_1blx9qm.css → link-container-variant.styles_1iw6zux.css} +1 -1
  151. package/cjs/layout/col-div.js +1 -1
  152. package/cjs/layout/col-div.js.map +1 -1
  153. package/cjs/link-list/link-list.styles.js +1 -1
  154. package/cjs/link-list/link-list.styles.js.map +1 -1
  155. package/{link-list/link-list.styles_1g33nb4.css → cjs/link-list/link-list.styles_m57vks.css} +2 -2
  156. package/cjs/local-nav/local-nav-dropdown/local-nav-dropdown.styles.js +1 -1
  157. package/{local-nav/local-nav-dropdown/local-nav-dropdown.styles_ftv36t.css → cjs/local-nav/local-nav-dropdown/local-nav-dropdown.styles_uhd4xl.css} +1 -1
  158. package/cjs/markup/markup.js +1 -1
  159. package/cjs/markup/markup.js.map +1 -1
  160. package/cjs/markup/markup.style.js +1 -1
  161. package/cjs/markup/markup.style.js.map +1 -1
  162. package/cjs/masked-input/masked-input.styles.js +1 -1
  163. package/cjs/masked-input/masked-input.styles.js.map +1 -1
  164. package/{masked-input/masked-input.styles_4i1qsy.css → cjs/masked-input/masked-input.styles_1cm388a.css} +2 -2
  165. package/cjs/masthead/masthead.js +1 -1
  166. package/cjs/masthead/masthead.js.map +1 -1
  167. package/cjs/modal/modal-box.styles.js +1 -1
  168. package/cjs/modal/modal-box.styles.js.map +1 -1
  169. package/cjs/modal/modal-box.styles_y52cts.css +11 -0
  170. package/cjs/modal/modal.js +1 -1
  171. package/cjs/modal/modal.js.map +1 -1
  172. package/cjs/modal/modal.styles.js +1 -1
  173. package/cjs/modal/modal.styles.js.map +1 -1
  174. package/cjs/modal/{modal.styles_1sav73f.css → modal.styles_1lbblx6.css} +1 -1
  175. package/cjs/modal-v2/modal-v2.js +1 -1
  176. package/cjs/modal-v2/modal-v2.js.map +1 -1
  177. package/cjs/modal-v2/modal-v2.styles.js +1 -1
  178. package/cjs/modal-v2/modal-v2.styles.js.map +1 -1
  179. package/cjs/modal-v2/modal-v2.styles_a8gv5i.css +3 -0
  180. package/cjs/modal-v2/slots/card.js +1 -1
  181. package/cjs/modal-v2/slots/card.js.map +1 -1
  182. package/cjs/navbar/navbar-items.styles.js +1 -1
  183. package/cjs/navbar/navbar-items.styles.js.map +1 -1
  184. package/cjs/navbar/{navbar-items.styles_i9cunu.css → navbar-items.styles_1i3ltot.css} +7 -7
  185. package/cjs/navbar/navbar.js +1 -1
  186. package/cjs/navbar/navbar.js.map +1 -1
  187. package/cjs/notification-banner/notification-banner.styles.js +1 -1
  188. package/cjs/notification-banner/notification-banner.styles.js.map +1 -1
  189. package/{notification-banner/notification-banner.styles_130loac.css → cjs/notification-banner/notification-banner.styles_uxlysy.css} +2 -2
  190. package/cjs/otp-verification/contact-input-section.js +1 -1
  191. package/cjs/otp-verification/contact-input-section.js.map +1 -1
  192. package/cjs/otp-verification/contact-input-section.styles.js +2 -0
  193. package/cjs/otp-verification/contact-input-section.styles.js.map +1 -0
  194. package/cjs/otp-verification/contact-input-section.styles_odrjvt.css +14 -0
  195. package/cjs/otp-verification/otp-verification.js +1 -1
  196. package/cjs/otp-verification/otp-verification.js.map +1 -1
  197. package/cjs/otp-verification/otp-verification.styles.js +2 -0
  198. package/cjs/otp-verification/otp-verification.styles.js.map +1 -0
  199. package/cjs/otp-verification/otp-verification.styles_dg9bm8.css +1 -0
  200. package/cjs/otp-verification/thumbnail/email-thumbnail.js +1 -21
  201. package/cjs/otp-verification/thumbnail/email-thumbnail.js.map +1 -1
  202. package/cjs/otp-verification/thumbnail/phone-thumbnail.js +1 -17
  203. package/cjs/otp-verification/thumbnail/phone-thumbnail.js.map +1 -1
  204. package/cjs/otp-verification/thumbnail/thumbnail.styles.js +2 -0
  205. package/cjs/otp-verification/thumbnail/thumbnail.styles.js.map +1 -0
  206. package/cjs/otp-verification/thumbnail/thumbnail.styles_shqylh.css +3 -0
  207. package/cjs/otp-verification/verification-section.js +1 -1
  208. package/cjs/otp-verification/verification-section.js.map +1 -1
  209. package/cjs/otp-verification/verification-section.styles.js +2 -0
  210. package/cjs/otp-verification/verification-section.styles.js.map +1 -0
  211. package/cjs/otp-verification/verification-section.styles_x8jj.css +5 -0
  212. package/cjs/pagination/pagination.styles.js +1 -1
  213. package/cjs/pagination/pagination.styles.js.map +1 -1
  214. package/{pagination/pagination.styles_1u898rb.css → cjs/pagination/pagination.styles_6bcgva.css} +3 -3
  215. package/cjs/pill/pill.styles.js +1 -1
  216. package/{pill/pill.styles_1wiyl8.css → cjs/pill/pill.styles_xwrniu.css} +1 -1
  217. package/cjs/predictive-text-input/predictive-text-input.js +1 -1
  218. package/cjs/predictive-text-input/predictive-text-input.js.map +1 -1
  219. package/cjs/schedule/const.js +1 -1
  220. package/cjs/schedule/const.js.map +1 -1
  221. package/cjs/schedule/schedule-day-view/schedule-day-view.js +1 -1
  222. package/cjs/schedule/schedule-day-view/schedule-day-view.js.map +1 -1
  223. package/cjs/schedule/schedule-day-view/schedule-day-view.styles.js +1 -152
  224. package/cjs/schedule/schedule-day-view/schedule-day-view.styles.js.map +1 -1
  225. package/cjs/schedule/schedule-day-view/schedule-day-view.styles_8ti149.css +30 -0
  226. package/cjs/schedule/schedule-header/schedule-header.js +1 -1
  227. package/cjs/schedule/schedule-header/schedule-header.js.map +1 -1
  228. package/cjs/schedule/schedule-header/schedule-header.styles.js +2 -0
  229. package/cjs/schedule/schedule-header/schedule-header.styles.js.map +1 -0
  230. package/cjs/schedule/schedule-header/schedule-header.styles_1n2u5vj.css +6 -0
  231. package/cjs/schedule/schedule-slot-content/schedule-slot-content.js +2 -0
  232. package/cjs/schedule/schedule-slot-content/schedule-slot-content.js.map +1 -0
  233. package/cjs/schedule/schedule-slot-content/style-helper.js +2 -0
  234. package/cjs/schedule/schedule-slot-content/style-helper.js.map +1 -0
  235. package/cjs/schedule/schedule-week-view/schedule-week-view.js +1 -1
  236. package/cjs/schedule/schedule-week-view/schedule-week-view.js.map +1 -1
  237. package/cjs/schedule/schedule-week-view/schedule-week-view.styles.js +1 -74
  238. package/cjs/schedule/schedule-week-view/schedule-week-view.styles.js.map +1 -1
  239. package/cjs/schedule/schedule-week-view/schedule-week-view.styles_x7x50m.css +10 -0
  240. package/cjs/schedule/schedule-week-view/time-cell.js +1 -1
  241. package/cjs/schedule/schedule-week-view/time-cell.js.map +1 -1
  242. package/cjs/schedule/schedule-week-view/time-cell.styles.js +1 -34
  243. package/cjs/schedule/schedule-week-view/time-cell.styles.js.map +1 -1
  244. package/cjs/schedule/schedule-week-view/time-cell.styles_1sorjz8.css +14 -0
  245. package/cjs/schedule/schedule-week-view/week-view-utils.js +1 -1
  246. package/cjs/schedule/schedule-week-view/week-view-utils.js.map +1 -1
  247. package/cjs/schedule/schedule.js +1 -1
  248. package/cjs/schedule/schedule.js.map +1 -1
  249. package/cjs/schedule/schedule.styles.js +1 -26
  250. package/cjs/schedule/schedule.styles.js.map +1 -1
  251. package/cjs/schedule/schedule.styles_fdy5a1.css +5 -0
  252. package/cjs/schedule/shared/with-optional-popover.js +1 -5
  253. package/cjs/schedule/shared/with-optional-popover.js.map +1 -1
  254. package/cjs/schedule/shared/with-optional-popover.styles.js +2 -0
  255. package/cjs/schedule/shared/with-optional-popover.styles.js.map +1 -0
  256. package/cjs/schedule/shared/with-optional-popover.styles_7mv3p2.css +1 -0
  257. package/cjs/schedule/time-indicator/time-indicator.js +1 -1
  258. package/cjs/schedule/time-indicator/time-indicator.js.map +1 -1
  259. package/cjs/schedule/time-indicator/time-indicator.styles.js +1 -33
  260. package/cjs/schedule/time-indicator/time-indicator.styles.js.map +1 -1
  261. package/cjs/schedule/time-indicator/time-indicator.styles_1eaxyes.css +6 -0
  262. package/cjs/select-histogram/select-histogram.js +1 -1
  263. package/cjs/select-histogram/select-histogram.js.map +1 -1
  264. package/cjs/select-histogram/select-histogram.styles.js +1 -1
  265. package/cjs/select-histogram/select-histogram.styles.js.map +1 -1
  266. package/cjs/select-histogram/{select-histogram.styles_11916eo.css → select-histogram.styles_n260dy.css} +1 -1
  267. package/cjs/shared/dropdown-list/dropdown-label.js +1 -1
  268. package/cjs/shared/dropdown-list/dropdown-label.js.map +1 -1
  269. package/cjs/shared/dropdown-list/dropdown-label.styles.js +1 -1
  270. package/cjs/shared/dropdown-list/dropdown-label.styles.js.map +1 -1
  271. package/{shared/dropdown-list/dropdown-label.styles_1dwmd8f.css → cjs/shared/dropdown-list/dropdown-label.styles_mloii0.css} +4 -4
  272. package/cjs/shared/dropdown-list/dropdown-list.styles.js +1 -1
  273. package/cjs/shared/dropdown-list/dropdown-list.styles.js.map +1 -1
  274. package/{shared/dropdown-list/dropdown-list.styles_1kt4zhf.css → cjs/shared/dropdown-list/dropdown-list.styles_konwm.css} +4 -4
  275. package/cjs/shared/dropdown-list/dropdown-search.styles.js +1 -1
  276. package/cjs/shared/dropdown-list/dropdown-search.styles.js.map +1 -1
  277. package/{shared/dropdown-list/dropdown-search.styles_4r9oma.css → cjs/shared/dropdown-list/dropdown-search.styles_1hc1gkh.css} +2 -2
  278. package/cjs/shared/dropdown-list/expandable-element.js +1 -1
  279. package/cjs/shared/dropdown-list/expandable-element.js.map +1 -1
  280. package/cjs/shared/dropdown-list/expandable-element.styles.js +1 -1
  281. package/cjs/shared/dropdown-list/expandable-element.styles.js.map +1 -1
  282. package/cjs/shared/dropdown-list/expandable-element.styles_rkkvqr.css +5 -0
  283. package/cjs/shared/dropdown-wrapper/dropdown-wrapper.styles.js +1 -1
  284. package/cjs/shared/dropdown-wrapper/dropdown-wrapper.styles.js.map +1 -1
  285. package/cjs/shared/dropdown-wrapper/dropdown-wrapper.styles_15hwwoj.css +3 -0
  286. package/cjs/shared/hooks/useViewport.js +1 -1
  287. package/cjs/shared/hooks/useViewport.js.map +1 -1
  288. package/cjs/shared/input-wrapper/input-wrapper.styles.js +1 -1
  289. package/cjs/shared/input-wrapper/{input-wrapper.styles_19fpzb.css → input-wrapper.styles_je6maw.css} +2 -2
  290. package/cjs/shared/internal-calendar/calendar-manager.styles.js +1 -1
  291. package/cjs/shared/internal-calendar/{calendar-manager.styles_1q13ylk.css → calendar-manager.styles_1iuq5zw.css} +1 -1
  292. package/cjs/shared/internal-calendar/day-cell/day-cell.styles.js +1 -1
  293. package/cjs/shared/internal-calendar/day-cell/day-cell.styles.js.map +1 -1
  294. package/{shared/internal-calendar/day-cell/day-cell.styles_vazxvn.css → cjs/shared/internal-calendar/day-cell/day-cell.styles_1t5oqc1.css} +1 -1
  295. package/cjs/shared/internal-calendar/internal-calendar-month.styles.js +1 -1
  296. package/{shared/internal-calendar/internal-calendar-month.styles_1pk3ynj.css → cjs/shared/internal-calendar/internal-calendar-month.styles_14oh57f.css} +1 -1
  297. package/cjs/shared/internal-calendar/internal-calendar-year.styles.js +1 -1
  298. package/cjs/shared/internal-calendar/internal-calendar-year.styles.js.map +1 -1
  299. package/cjs/shared/internal-calendar/{internal-calendar-year.styles_1azy42u.css → internal-calendar-year.styles_therlc.css} +1 -1
  300. package/cjs/shared/internal-calendar/single/single-cell.js +1 -1
  301. package/cjs/shared/internal-calendar/single/single-cell.js.map +1 -1
  302. package/cjs/shared/internal-calendar/standard/standard-calendar-day-view.styles.js +1 -1
  303. package/{shared/internal-calendar/standard/standard-calendar-day-view.styles_1dbvup3.css → cjs/shared/internal-calendar/standard/standard-calendar-day-view.styles_1bw26au.css} +1 -1
  304. package/cjs/shared/standalone-date-input/standalone-date-input.js +1 -1
  305. package/cjs/shared/standalone-date-input/standalone-date-input.js.map +1 -1
  306. package/cjs/shared/standalone-date-input/standalone-date-input.styles.js +1 -1
  307. package/cjs/shared/standalone-date-input/standalone-date-input.styles.js.map +1 -1
  308. package/cjs/shared/standalone-date-input/standalone-date-input.styles_157qo89.css +15 -0
  309. package/cjs/shared/time-slot/time-slot.js +1 -1
  310. package/cjs/shared/time-slot/time-slot.js.map +1 -1
  311. package/cjs/shared/time-slot/time-slot.styles.js +1 -1
  312. package/cjs/shared/time-slot/time-slot.styles.js.map +1 -1
  313. package/cjs/shared/time-slot/time-slot.styles_18s0to7.css +29 -0
  314. package/cjs/sidenav/sidenav-drawer-item.styles.js +1 -1
  315. package/cjs/sidenav/sidenav-drawer-item.styles.js.map +1 -1
  316. package/cjs/sidenav/{sidenav-drawer-item.styles_yp8cga.css → sidenav-drawer-item.styles_1ljnyx2.css} +1 -1
  317. package/cjs/sidenav/sidenav-drawer-subitem.styles.js +1 -1
  318. package/cjs/sidenav/sidenav-drawer-subitem.styles.js.map +1 -1
  319. package/cjs/sidenav/sidenav-drawer-subitem.styles_2y58kf.css +1 -0
  320. package/cjs/sidenav/sidenav-item.styles.js +1 -1
  321. package/cjs/sidenav/sidenav-item.styles.js.map +1 -1
  322. package/cjs/sidenav/{sidenav-item.styles_1eew8px.css → sidenav-item.styles_lqw3kh.css} +2 -2
  323. package/cjs/smart-app-banner/smart-app-banner.styles.js +1 -1
  324. package/cjs/smart-app-banner/smart-app-banner.styles.js.map +1 -1
  325. package/cjs/smart-app-banner/{smart-app-banner.styles_m5dtgh.css → smart-app-banner.styles_15u6yv4.css} +2 -2
  326. package/cjs/tab/tab-link-chain.styles.js +1 -1
  327. package/cjs/tab/tab-link-chain.styles.js.map +1 -1
  328. package/cjs/tab/{tab-link-chain.styles_1nreqrp.css → tab-link-chain.styles_49got4.css} +2 -2
  329. package/cjs/tag/tag.style.js +1 -1
  330. package/cjs/tag/{tag.style_10tn8i.css → tag.style_d98c53.css} +2 -2
  331. package/cjs/text-list/text-list.styles.js +1 -1
  332. package/cjs/text-list/text-list.styles.js.map +1 -1
  333. package/cjs/text-list/text-list.styles_w3fvyt.css +16 -0
  334. package/cjs/theme/index.js +1 -1
  335. package/cjs/theme/theme-provider/hooks.js +1 -1
  336. package/cjs/theme/theme-provider/hooks.js.map +1 -1
  337. package/cjs/theme/tokens/colour.js +1 -1
  338. package/cjs/theme/tokens/colour.js.map +1 -1
  339. package/cjs/theme/tokens/font.js +1 -1
  340. package/cjs/theme/tokens/font.js.map +1 -1
  341. package/cjs/theme/types.js +1 -1
  342. package/cjs/theme/types.js.map +1 -1
  343. package/cjs/theme/utils/css-variable.js +1 -1
  344. package/cjs/theme/utils/css-variable.js.map +1 -1
  345. package/cjs/theme/utils/font.js +1 -1
  346. package/cjs/theme/utils/font.js.map +1 -1
  347. package/cjs/theme/utils/token-resolver.js +1 -1
  348. package/cjs/theme/utils/token-resolver.js.map +1 -1
  349. package/cjs/theme/utils/use-design-token.js +1 -1
  350. package/cjs/theme/utils/use-design-token.js.map +1 -1
  351. package/cjs/theme/utils/use-media-query.js +1 -1
  352. package/cjs/theme/utils/use-media-query.js.map +1 -1
  353. package/cjs/time-range-picker/combobox-picker/combobox-picker.js +1 -1
  354. package/cjs/time-range-picker/combobox-picker/combobox-picker.js.map +1 -1
  355. package/cjs/time-slot-bar-week/consts.js +2 -0
  356. package/cjs/time-slot-bar-week/consts.js.map +1 -0
  357. package/cjs/time-slot-bar-week/time-slot-bar-week-days.js +1 -1
  358. package/cjs/time-slot-bar-week/time-slot-bar-week-days.js.map +1 -1
  359. package/cjs/time-slot-bar-week/time-slot-bar-week-days.styles.js +2 -0
  360. package/cjs/time-slot-bar-week/time-slot-bar-week-days.styles.js.map +1 -0
  361. package/cjs/time-slot-bar-week/time-slot-bar-week-days.styles_evdvs9.css +17 -0
  362. package/cjs/time-slot-bar-week/time-slot-bar-week.js +1 -1
  363. package/cjs/time-slot-bar-week/time-slot-bar-week.js.map +1 -1
  364. package/cjs/time-slot-bar-week/time-slot-bar-week.styles.js +2 -0
  365. package/cjs/time-slot-bar-week/time-slot-bar-week.styles.js.map +1 -0
  366. package/cjs/time-slot-bar-week/time-slot-bar-week.styles_11ybf42.css +1 -0
  367. package/cjs/time-slot-bar-week/time-slot-cell.js +2 -0
  368. package/cjs/time-slot-bar-week/time-slot-cell.js.map +1 -0
  369. package/cjs/time-slot-week-view/time-slot-week-days.js +1 -1
  370. package/cjs/time-slot-week-view/time-slot-week-days.js.map +1 -1
  371. package/cjs/time-slot-week-view/time-slot-week-days.styles.js +2 -0
  372. package/cjs/time-slot-week-view/time-slot-week-days.styles.js.map +1 -0
  373. package/cjs/time-slot-week-view/time-slot-week-days.styles_1h21vyw.css +9 -0
  374. package/cjs/time-slot-week-view/time-slot-week-view.js +1 -1
  375. package/cjs/time-slot-week-view/time-slot-week-view.js.map +1 -1
  376. package/cjs/time-slot-week-view/time-slot-week-view.styles.js +1 -9
  377. package/cjs/time-slot-week-view/time-slot-week-view.styles.js.map +1 -1
  378. package/cjs/time-slot-week-view/time-slot-week-view.styles_gqgsw2.css +1 -0
  379. package/cjs/timeline/timeline.styles.js +1 -1
  380. package/{timeline/timeline.styles_1wcnzot.css → cjs/timeline/timeline.styles_1jxzik4.css} +1 -1
  381. package/cjs/timepicker/timepicker.js +1 -1
  382. package/cjs/timepicker/timepicker.js.map +1 -1
  383. package/cjs/timepicker/timepicker.styles.js +1 -1
  384. package/cjs/timepicker/timepicker.styles.js.map +1 -1
  385. package/cjs/timepicker/timepicker.styles_1jm33yw.css +1 -0
  386. package/cjs/toast/toast.styles.js +1 -1
  387. package/cjs/toast/toast.styles.js.map +1 -1
  388. package/cjs/toast/{toast.styles_ngrlup.css → toast.styles_1e0l60w.css} +1 -1
  389. package/cjs/toggle/toggle.styles.js +1 -1
  390. package/cjs/toggle/toggle.styles.js.map +1 -1
  391. package/{toggle/toggle.styles_1yzqsu.css → cjs/toggle/toggle.styles_1t5qrye.css} +5 -5
  392. package/cjs/typography/typography.js +1 -1
  393. package/cjs/typography/typography.js.map +1 -1
  394. package/cjs/typography/typography.styles.js +1 -1
  395. package/cjs/typography/typography.styles.js.map +1 -1
  396. package/cjs/typography/typography.styles_1155j4c.css +11 -0
  397. package/cjs/uneditable-section/section-item.styles.js +1 -1
  398. package/cjs/uneditable-section/section-item.styles.js.map +1 -1
  399. package/cjs/uneditable-section/{section-item.styles_1dfjzc4.css → section-item.styles_mwx8ht.css} +2 -2
  400. package/cjs/util/is-styled-components.js +2 -0
  401. package/cjs/util/is-styled-components.js.map +1 -0
  402. package/cjs/util/styling-helper.js +1 -1
  403. package/cjs/util/styling-helper.js.map +1 -1
  404. package/codemod-utils.d.ts +1 -0
  405. package/codemods/codemod-utils.ts +17 -0
  406. package/codemods/index.ts +231 -75
  407. package/codemods/migrate-popover/index.ts +267 -0
  408. package/codemods/run-codemod.js +6 -53
  409. package/codemods/run-codemod.js.map +1 -1
  410. package/codemods/run-codemod.ts +7 -54
  411. package/countdown-timer/countdown-timer.styles.js +1 -1
  412. package/countdown-timer/{countdown-timer.styles_k50tkw.css → countdown-timer.styles_ipn1b0.css} +1 -1
  413. package/dashed-border/dashed-border.js +1 -1
  414. package/dashed-border/dashed-border.js.map +1 -1
  415. package/data-table/data-table.js +1 -1
  416. package/data-table/data-table.js.map +1 -1
  417. package/data-table/data-table.styles.js +1 -1
  418. package/data-table/{data-table.styles_1nj2uzq.css → data-table.styles_1iqq1g7.css} +1 -1
  419. package/date-input/date-input.js +1 -1
  420. package/date-input/date-input.js.map +1 -1
  421. package/date-navigator/date-navigator.styles.js +1 -1
  422. package/date-navigator/date-navigator.styles.js.map +1 -1
  423. package/date-navigator/date-navigator.styles_wokh56.css +4 -0
  424. package/divider/divider.js.map +1 -1
  425. package/e-signature/e-signature-canvas.js +1 -1
  426. package/e-signature/e-signature-canvas.js.map +1 -1
  427. package/e-signature/e-signature.js +1 -1
  428. package/e-signature/e-signature.js.map +1 -1
  429. package/e-signature/e-signature.styles.d.ts +17 -45
  430. package/e-signature/e-signature.styles.js +1 -168
  431. package/e-signature/e-signature.styles.js.map +1 -1
  432. package/e-signature/e-signature.styles_lukd9f.css +17 -0
  433. package/error-display/error-display-data.js +1 -1
  434. package/error-display/error-display-data.js.map +1 -1
  435. package/external/lodash/get.js +1 -1
  436. package/external/lodash/get.js.map +1 -1
  437. package/file-download/file-download.js +1 -1
  438. package/file-download/file-download.js.map +1 -1
  439. package/file-download/file-download.styles.d.ts +8 -11
  440. package/file-download/file-download.styles.js +1 -32
  441. package/file-download/file-download.styles.js.map +1 -1
  442. package/file-download/file-download.styles_iggk8q.css +8 -0
  443. package/file-download/file-list-card/file-list-card.js +1 -1
  444. package/file-download/file-list-card/file-list-card.js.map +1 -1
  445. package/file-download/file-list-card/file-list-card.styles.d.ts +16 -64
  446. package/file-download/file-list-card/file-list-card.styles.js +1 -177
  447. package/file-download/file-list-card/file-list-card.styles.js.map +1 -1
  448. package/file-download/file-list-card/file-list-card.styles_oom8ii.css +16 -0
  449. package/file-upload/{file-list.d.ts → file-list/file-list.d.ts} +1 -1
  450. package/file-upload/file-list/file-list.js +2 -0
  451. package/file-upload/file-list/file-list.js.map +1 -0
  452. package/file-upload/file-list/file-list.styles.js +2 -0
  453. package/file-upload/file-list/file-list.styles.js.map +1 -0
  454. package/file-upload/file-list/file-list.styles_1ea12kj.css +3 -0
  455. package/file-upload/file-list/index.d.ts +1 -0
  456. package/file-upload/file-list-item/file-list-item-thumbnail.styles.js +1 -1
  457. package/file-upload/file-list-item/{file-list-item-thumbnail.styles_1vrh1ve.css → file-list-item-thumbnail.styles_1y4si19.css} +1 -1
  458. package/file-upload/file-upload.js +1 -1
  459. package/file-upload/file-upload.js.map +1 -1
  460. package/filter/addons/filter-item-checkbox.styles.js +1 -1
  461. package/filter/addons/filter-item-checkbox.styles.js.map +1 -1
  462. package/filter/addons/{filter-item-checkbox.styles_18l87i2.css → filter-item-checkbox.styles_7degw7.css} +1 -1
  463. package/filter/filter-badge.d.ts +5 -0
  464. package/filter/filter-badge.js +2 -0
  465. package/filter/filter-badge.js.map +1 -0
  466. package/filter/filter-item-page.d.ts +1 -1
  467. package/filter/filter-item-page.js +1 -1
  468. package/filter/filter-item-page.js.map +1 -1
  469. package/filter/filter-item.styles.js +1 -1
  470. package/filter/filter-item.styles.js.map +1 -1
  471. package/{cjs/filter/filter-item.styles_1e3v6qq.css → filter/filter-item.styles_cphjnj.css} +2 -2
  472. package/filter/filter-modal.d.ts +1 -1
  473. package/filter/filter-modal.js +1 -1
  474. package/filter/filter-modal.js.map +1 -1
  475. package/filter/filter-modal.styles.d.ts +2 -0
  476. package/filter/filter-modal.styles.js +1 -1
  477. package/filter/filter-modal.styles.js.map +1 -1
  478. package/filter/filter-modal.styles_qw3xlg.css +10 -0
  479. package/filter/filter-sidebar.d.ts +1 -1
  480. package/filter/filter-sidebar.js +1 -1
  481. package/filter/filter-sidebar.js.map +1 -1
  482. package/filter/filter-sidebar.styles.d.ts +1 -0
  483. package/filter/filter-sidebar.styles.js +1 -1
  484. package/filter/filter-sidebar.styles.js.map +1 -1
  485. package/filter/filter-sidebar.styles_1otwpjl.css +5 -0
  486. package/filter/filter.d.ts +3 -3
  487. package/filter/filter.styles.js +1 -1
  488. package/filter/filter.styles.js.map +1 -1
  489. package/filter/{filter.styles_2fmaok.css → filter.styles_1ykijwm.css} +1 -1
  490. package/filter/types.d.ts +2 -0
  491. package/form/form-label.styles.js +1 -1
  492. package/form/form-label.styles.js.map +1 -1
  493. package/form/form-label.styles_11r0652.css +6 -0
  494. package/form/form-wrapper.js +1 -1
  495. package/form/form-wrapper.js.map +1 -1
  496. package/fullscreen-image-carousel/fullscreen-image-carousel.js +1 -1
  497. package/fullscreen-image-carousel/fullscreen-image-carousel.js.map +1 -1
  498. package/image-button/image-button.styles.js +1 -1
  499. package/image-button/{image-button.styles_qtt605.css → image-button.styles_6n1qsr.css} +1 -1
  500. package/index.d.ts +0 -1
  501. package/index.js +1 -1
  502. package/input-group/input-group-list-addon.js +1 -1
  503. package/input-group/input-group-list-addon.js.map +1 -1
  504. package/input-group/input-group.styles.js +1 -1
  505. package/{cjs/input-group/input-group.styles_fpy81r.css → input-group/input-group.styles_bqye6f.css} +1 -1
  506. package/input-multi-select/input-multi-select.js +1 -1
  507. package/input-multi-select/input-multi-select.js.map +1 -1
  508. package/input-nested-multi-select/input-nested-multi-select.js +1 -1
  509. package/input-nested-multi-select/input-nested-multi-select.js.map +1 -1
  510. package/input-nested-select/input-nested-select.js +1 -1
  511. package/input-nested-select/input-nested-select.js.map +1 -1
  512. package/input-range-select/input-range-select.js +1 -1
  513. package/input-range-select/input-range-select.js.map +1 -1
  514. package/input-select/input-select.js +1 -1
  515. package/input-select/input-select.js.map +1 -1
  516. package/input-textarea/textarea-counter.styles.js +1 -1
  517. package/input-textarea/textarea-counter.styles.js.map +1 -1
  518. package/input-textarea/textarea-counter.styles_1n3wsnv.css +1 -0
  519. package/input-textarea/textarea.styles.js +1 -1
  520. package/input-textarea/textarea.styles_22z4n3.css +5 -0
  521. package/language-switcher/dropdown-panel.styles.js +1 -1
  522. package/language-switcher/dropdown-panel.styles.js.map +1 -1
  523. package/language-switcher/{dropdown-panel.styles_1z0n7qq.css → dropdown-panel.styles_1qsjf8d.css} +1 -1
  524. package/language-switcher/dropdown-variant.js +1 -1
  525. package/language-switcher/dropdown-variant.js.map +1 -1
  526. package/language-switcher/dropdown-variant.styles.js +1 -1
  527. package/language-switcher/dropdown-variant.styles_1vrdfky.css +2 -0
  528. package/language-switcher/link-container-variant.styles.js +1 -1
  529. package/language-switcher/{link-container-variant.styles_1blx9qm.css → link-container-variant.styles_1iw6zux.css} +1 -1
  530. package/layout/col-div.js +1 -1
  531. package/layout/col-div.js.map +1 -1
  532. package/layout/types.d.ts +8 -11
  533. package/link-list/link-list.styles.js +1 -1
  534. package/link-list/link-list.styles.js.map +1 -1
  535. package/{cjs/link-list/link-list.styles_1g33nb4.css → link-list/link-list.styles_m57vks.css} +2 -2
  536. package/local-nav/local-nav-dropdown/local-nav-dropdown.styles.js +1 -1
  537. package/{cjs/local-nav/local-nav-dropdown/local-nav-dropdown.styles_ftv36t.css → local-nav/local-nav-dropdown/local-nav-dropdown.styles_uhd4xl.css} +1 -1
  538. package/markup/markup.js +1 -1
  539. package/markup/markup.js.map +1 -1
  540. package/markup/markup.style.js +1 -1
  541. package/markup/markup.style.js.map +1 -1
  542. package/markup/types.d.ts +2 -1
  543. package/masked-input/masked-input.styles.js +1 -1
  544. package/masked-input/masked-input.styles.js.map +1 -1
  545. package/{cjs/masked-input/masked-input.styles_4i1qsy.css → masked-input/masked-input.styles_1cm388a.css} +2 -2
  546. package/masthead/masthead.js +1 -1
  547. package/masthead/masthead.js.map +1 -1
  548. package/modal/modal-box.styles.js +1 -1
  549. package/modal/modal-box.styles.js.map +1 -1
  550. package/modal/modal-box.styles_y52cts.css +11 -0
  551. package/modal/modal.js +1 -1
  552. package/modal/modal.js.map +1 -1
  553. package/modal/modal.styles.d.ts +4 -1
  554. package/modal/modal.styles.js +1 -1
  555. package/modal/modal.styles.js.map +1 -1
  556. package/modal/{modal.styles_1sav73f.css → modal.styles_1lbblx6.css} +1 -1
  557. package/modal-v2/modal-v2.js +1 -1
  558. package/modal-v2/modal-v2.js.map +1 -1
  559. package/modal-v2/modal-v2.styles.d.ts +0 -1
  560. package/modal-v2/modal-v2.styles.js +1 -1
  561. package/modal-v2/modal-v2.styles.js.map +1 -1
  562. package/modal-v2/modal-v2.styles_a8gv5i.css +3 -0
  563. package/modal-v2/slots/card.js +1 -1
  564. package/modal-v2/slots/card.js.map +1 -1
  565. package/navbar/navbar-items.styles.js +1 -1
  566. package/navbar/navbar-items.styles.js.map +1 -1
  567. package/navbar/{navbar-items.styles_i9cunu.css → navbar-items.styles_1i3ltot.css} +7 -7
  568. package/navbar/navbar.js +1 -1
  569. package/navbar/navbar.js.map +1 -1
  570. package/notification-banner/notification-banner.styles.js +1 -1
  571. package/notification-banner/notification-banner.styles.js.map +1 -1
  572. package/{cjs/notification-banner/notification-banner.styles_130loac.css → notification-banner/notification-banner.styles_uxlysy.css} +2 -2
  573. package/otp-verification/contact-input-section.js +1 -1
  574. package/otp-verification/contact-input-section.js.map +1 -1
  575. package/otp-verification/contact-input-section.styles.d.ts +14 -0
  576. package/otp-verification/contact-input-section.styles.js +2 -0
  577. package/otp-verification/contact-input-section.styles.js.map +1 -0
  578. package/otp-verification/contact-input-section.styles_odrjvt.css +14 -0
  579. package/otp-verification/otp-verification.js +1 -1
  580. package/otp-verification/otp-verification.js.map +1 -1
  581. package/otp-verification/otp-verification.styles.d.ts +1 -0
  582. package/otp-verification/otp-verification.styles.js +2 -0
  583. package/otp-verification/otp-verification.styles.js.map +1 -0
  584. package/otp-verification/otp-verification.styles_dg9bm8.css +1 -0
  585. package/otp-verification/thumbnail/email-thumbnail.d.ts +1 -3
  586. package/otp-verification/thumbnail/email-thumbnail.js +1 -21
  587. package/otp-verification/thumbnail/email-thumbnail.js.map +1 -1
  588. package/otp-verification/thumbnail/phone-thumbnail.d.ts +1 -3
  589. package/otp-verification/thumbnail/phone-thumbnail.js +1 -17
  590. package/otp-verification/thumbnail/phone-thumbnail.js.map +1 -1
  591. package/otp-verification/thumbnail/thumbnail.styles.d.ts +3 -0
  592. package/otp-verification/thumbnail/thumbnail.styles.js +2 -0
  593. package/otp-verification/thumbnail/thumbnail.styles.js.map +1 -0
  594. package/otp-verification/thumbnail/thumbnail.styles_shqylh.css +3 -0
  595. package/otp-verification/verification-section.js +1 -1
  596. package/otp-verification/verification-section.js.map +1 -1
  597. package/otp-verification/verification-section.styles.d.ts +5 -0
  598. package/otp-verification/verification-section.styles.js +2 -0
  599. package/otp-verification/verification-section.styles.js.map +1 -0
  600. package/otp-verification/verification-section.styles_x8jj.css +5 -0
  601. package/package.json +14 -9
  602. package/pagination/pagination.styles.js +1 -1
  603. package/pagination/pagination.styles.js.map +1 -1
  604. package/{cjs/pagination/pagination.styles_1u898rb.css → pagination/pagination.styles_6bcgva.css} +3 -3
  605. package/pill/pill.styles.js +1 -1
  606. package/{cjs/pill/pill.styles_1wiyl8.css → pill/pill.styles_xwrniu.css} +1 -1
  607. package/predictive-text-input/predictive-text-input.js +1 -1
  608. package/predictive-text-input/predictive-text-input.js.map +1 -1
  609. package/schedule/const.js +1 -1
  610. package/schedule/const.js.map +1 -1
  611. package/schedule/schedule-day-view/schedule-day-view.js +1 -1
  612. package/schedule/schedule-day-view/schedule-day-view.js.map +1 -1
  613. package/schedule/schedule-day-view/schedule-day-view.styles.d.ts +39 -99
  614. package/schedule/schedule-day-view/schedule-day-view.styles.js +1 -152
  615. package/schedule/schedule-day-view/schedule-day-view.styles.js.map +1 -1
  616. package/schedule/schedule-day-view/schedule-day-view.styles_8ti149.css +30 -0
  617. package/schedule/schedule-day-view/types.d.ts +2 -10
  618. package/schedule/schedule-header/schedule-header.js +1 -1
  619. package/schedule/schedule-header/schedule-header.js.map +1 -1
  620. package/schedule/schedule-header/schedule-header.styles.d.ts +7 -0
  621. package/schedule/schedule-header/schedule-header.styles.js +2 -0
  622. package/schedule/schedule-header/schedule-header.styles.js.map +1 -0
  623. package/schedule/schedule-header/schedule-header.styles_1n2u5vj.css +6 -0
  624. package/schedule/schedule-slot-content/index.d.ts +4 -0
  625. package/schedule/schedule-slot-content/schedule-slot-content.d.ts +21 -0
  626. package/schedule/schedule-slot-content/schedule-slot-content.js +2 -0
  627. package/schedule/schedule-slot-content/schedule-slot-content.js.map +1 -0
  628. package/schedule/schedule-slot-content/style-helper.d.ts +8 -0
  629. package/schedule/schedule-slot-content/style-helper.js +2 -0
  630. package/schedule/schedule-slot-content/style-helper.js.map +1 -0
  631. package/schedule/schedule-week-view/schedule-week-view.js +1 -1
  632. package/schedule/schedule-week-view/schedule-week-view.js.map +1 -1
  633. package/schedule/schedule-week-view/schedule-week-view.styles.d.ts +15 -32
  634. package/schedule/schedule-week-view/schedule-week-view.styles.js +1 -74
  635. package/schedule/schedule-week-view/schedule-week-view.styles.js.map +1 -1
  636. package/schedule/schedule-week-view/schedule-week-view.styles_x7x50m.css +10 -0
  637. package/schedule/schedule-week-view/time-cell.js +1 -1
  638. package/schedule/schedule-week-view/time-cell.js.map +1 -1
  639. package/schedule/schedule-week-view/time-cell.styles.d.ts +23 -14
  640. package/schedule/schedule-week-view/time-cell.styles.js +1 -34
  641. package/schedule/schedule-week-view/time-cell.styles.js.map +1 -1
  642. package/schedule/schedule-week-view/time-cell.styles_1sorjz8.css +14 -0
  643. package/schedule/schedule-week-view/types.d.ts +2 -15
  644. package/schedule/schedule-week-view/week-view-utils.js +1 -1
  645. package/schedule/schedule-week-view/week-view-utils.js.map +1 -1
  646. package/schedule/schedule.js +1 -1
  647. package/schedule/schedule.js.map +1 -1
  648. package/schedule/schedule.styles.d.ts +5 -8
  649. package/schedule/schedule.styles.js +1 -26
  650. package/schedule/schedule.styles.js.map +1 -1
  651. package/schedule/schedule.styles_fdy5a1.css +5 -0
  652. package/schedule/shared/with-optional-popover.d.ts +1 -1
  653. package/schedule/shared/with-optional-popover.js +1 -5
  654. package/schedule/shared/with-optional-popover.js.map +1 -1
  655. package/schedule/shared/with-optional-popover.styles.d.ts +1 -0
  656. package/schedule/shared/with-optional-popover.styles.js +2 -0
  657. package/schedule/shared/with-optional-popover.styles.js.map +1 -0
  658. package/schedule/shared/with-optional-popover.styles_7mv3p2.css +1 -0
  659. package/schedule/time-indicator/time-indicator.js +1 -1
  660. package/schedule/time-indicator/time-indicator.js.map +1 -1
  661. package/schedule/time-indicator/time-indicator.styles.d.ts +11 -28
  662. package/schedule/time-indicator/time-indicator.styles.js +1 -33
  663. package/schedule/time-indicator/time-indicator.styles.js.map +1 -1
  664. package/schedule/time-indicator/time-indicator.styles_1eaxyes.css +6 -0
  665. package/schedule/types.d.ts +10 -0
  666. package/select-histogram/select-histogram.js +1 -1
  667. package/select-histogram/select-histogram.js.map +1 -1
  668. package/select-histogram/select-histogram.styles.js +1 -1
  669. package/select-histogram/select-histogram.styles.js.map +1 -1
  670. package/select-histogram/{select-histogram.styles_11916eo.css → select-histogram.styles_n260dy.css} +1 -1
  671. package/shared/dropdown-list/dropdown-label.js +1 -1
  672. package/shared/dropdown-list/dropdown-label.js.map +1 -1
  673. package/shared/dropdown-list/dropdown-label.styles.js +1 -1
  674. package/shared/dropdown-list/dropdown-label.styles.js.map +1 -1
  675. package/{cjs/shared/dropdown-list/dropdown-label.styles_1dwmd8f.css → shared/dropdown-list/dropdown-label.styles_mloii0.css} +4 -4
  676. package/shared/dropdown-list/dropdown-list.styles.js +1 -1
  677. package/shared/dropdown-list/dropdown-list.styles.js.map +1 -1
  678. package/{cjs/shared/dropdown-list/dropdown-list.styles_1kt4zhf.css → shared/dropdown-list/dropdown-list.styles_konwm.css} +4 -4
  679. package/shared/dropdown-list/dropdown-search.styles.js +1 -1
  680. package/shared/dropdown-list/dropdown-search.styles.js.map +1 -1
  681. package/{cjs/shared/dropdown-list/dropdown-search.styles_4r9oma.css → shared/dropdown-list/dropdown-search.styles_1hc1gkh.css} +2 -2
  682. package/shared/dropdown-list/expandable-element.js +1 -1
  683. package/shared/dropdown-list/expandable-element.js.map +1 -1
  684. package/shared/dropdown-list/expandable-element.styles.d.ts +0 -1
  685. package/shared/dropdown-list/expandable-element.styles.js +1 -1
  686. package/shared/dropdown-list/expandable-element.styles.js.map +1 -1
  687. package/shared/dropdown-list/expandable-element.styles_rkkvqr.css +5 -0
  688. package/shared/dropdown-wrapper/dropdown-wrapper.styles.js +1 -1
  689. package/shared/dropdown-wrapper/dropdown-wrapper.styles.js.map +1 -1
  690. package/shared/dropdown-wrapper/dropdown-wrapper.styles_15hwwoj.css +3 -0
  691. package/shared/hooks/useViewport.d.ts +7 -2
  692. package/shared/hooks/useViewport.js +1 -1
  693. package/shared/hooks/useViewport.js.map +1 -1
  694. package/shared/input-wrapper/input-wrapper.styles.js +1 -1
  695. package/shared/input-wrapper/{input-wrapper.styles_19fpzb.css → input-wrapper.styles_je6maw.css} +2 -2
  696. package/shared/internal-calendar/calendar-manager.styles.js +1 -1
  697. package/shared/internal-calendar/{calendar-manager.styles_1q13ylk.css → calendar-manager.styles_1iuq5zw.css} +1 -1
  698. package/shared/internal-calendar/day-cell/day-cell.styles.js +1 -1
  699. package/shared/internal-calendar/day-cell/day-cell.styles.js.map +1 -1
  700. package/{cjs/shared/internal-calendar/day-cell/day-cell.styles_vazxvn.css → shared/internal-calendar/day-cell/day-cell.styles_1t5oqc1.css} +1 -1
  701. package/shared/internal-calendar/internal-calendar-month.styles.js +1 -1
  702. package/{cjs/shared/internal-calendar/internal-calendar-month.styles_1pk3ynj.css → shared/internal-calendar/internal-calendar-month.styles_14oh57f.css} +1 -1
  703. package/shared/internal-calendar/internal-calendar-year.styles.js +1 -1
  704. package/shared/internal-calendar/internal-calendar-year.styles.js.map +1 -1
  705. package/shared/internal-calendar/{internal-calendar-year.styles_1azy42u.css → internal-calendar-year.styles_therlc.css} +1 -1
  706. package/shared/internal-calendar/single/single-cell.js +1 -1
  707. package/shared/internal-calendar/single/single-cell.js.map +1 -1
  708. package/shared/internal-calendar/standard/standard-calendar-day-view.styles.js +1 -1
  709. package/{cjs/shared/internal-calendar/standard/standard-calendar-day-view.styles_1dbvup3.css → shared/internal-calendar/standard/standard-calendar-day-view.styles_1bw26au.css} +1 -1
  710. package/shared/standalone-date-input/standalone-date-input.js +1 -1
  711. package/shared/standalone-date-input/standalone-date-input.js.map +1 -1
  712. package/shared/standalone-date-input/standalone-date-input.styles.d.ts +2 -0
  713. package/shared/standalone-date-input/standalone-date-input.styles.js +1 -1
  714. package/shared/standalone-date-input/standalone-date-input.styles.js.map +1 -1
  715. package/shared/standalone-date-input/standalone-date-input.styles_157qo89.css +15 -0
  716. package/shared/time-slot/time-slot.d.ts +1 -0
  717. package/shared/time-slot/time-slot.js +1 -1
  718. package/shared/time-slot/time-slot.js.map +1 -1
  719. package/shared/time-slot/time-slot.styles.d.ts +2 -0
  720. package/shared/time-slot/time-slot.styles.js +1 -1
  721. package/shared/time-slot/time-slot.styles.js.map +1 -1
  722. package/shared/time-slot/time-slot.styles_18s0to7.css +29 -0
  723. package/sidenav/sidenav-drawer-item.styles.js +1 -1
  724. package/sidenav/sidenav-drawer-item.styles.js.map +1 -1
  725. package/sidenav/{sidenav-drawer-item.styles_yp8cga.css → sidenav-drawer-item.styles_1ljnyx2.css} +1 -1
  726. package/sidenav/sidenav-drawer-subitem.styles.js +1 -1
  727. package/sidenav/sidenav-drawer-subitem.styles.js.map +1 -1
  728. package/sidenav/sidenav-drawer-subitem.styles_2y58kf.css +1 -0
  729. package/sidenav/sidenav-item.styles.js +1 -1
  730. package/sidenav/sidenav-item.styles.js.map +1 -1
  731. package/sidenav/{sidenav-item.styles_1eew8px.css → sidenav-item.styles_lqw3kh.css} +2 -2
  732. package/smart-app-banner/smart-app-banner.styles.js +1 -1
  733. package/smart-app-banner/smart-app-banner.styles.js.map +1 -1
  734. package/smart-app-banner/{smart-app-banner.styles_m5dtgh.css → smart-app-banner.styles_15u6yv4.css} +2 -2
  735. package/tab/tab-link-chain.styles.js +1 -1
  736. package/tab/tab-link-chain.styles.js.map +1 -1
  737. package/tab/{tab-link-chain.styles_1nreqrp.css → tab-link-chain.styles_49got4.css} +2 -2
  738. package/tag/tag.style.js +1 -1
  739. package/tag/{tag.style_10tn8i.css → tag.style_d98c53.css} +2 -2
  740. package/text-list/text-list.styles.js +1 -1
  741. package/text-list/text-list.styles.js.map +1 -1
  742. package/text-list/text-list.styles_w3fvyt.css +16 -0
  743. package/theme/index.d.ts +4 -1
  744. package/theme/index.js +1 -1
  745. package/theme/styles/a11y-playground.css +30 -1
  746. package/theme/styles/bookingsg.css +30 -1
  747. package/theme/styles/careercompass.css +516 -0
  748. package/theme/styles/ccube.css +28 -0
  749. package/theme/styles/default.css +2 -1
  750. package/theme/styles/imda.css +30 -1
  751. package/theme/styles/lifesg.css +28 -0
  752. package/theme/styles/mylegacy.css +30 -1
  753. package/theme/styles/oneservice.css +28 -0
  754. package/theme/styles/pa.css +30 -1
  755. package/theme/styles/rbs.css +28 -0
  756. package/theme/styles/sgw-digital-lobby.css +32 -3
  757. package/theme/styles/smgs.css +516 -0
  758. package/theme/styles/spf.css +143 -114
  759. package/theme/styles/supportgowhere.css +30 -1
  760. package/theme/theme-provider/hooks.d.ts +2 -1
  761. package/theme/theme-provider/hooks.js +1 -1
  762. package/theme/theme-provider/hooks.js.map +1 -1
  763. package/theme/tokens/colour.d.ts +28 -0
  764. package/theme/tokens/colour.js +1 -1
  765. package/theme/tokens/colour.js.map +1 -1
  766. package/theme/tokens/font.d.ts +4 -2
  767. package/theme/tokens/font.js +1 -1
  768. package/theme/tokens/font.js.map +1 -1
  769. package/theme/types.d.ts +1 -1
  770. package/theme/types.js +1 -1
  771. package/theme/types.js.map +1 -1
  772. package/theme/utils/css-variable.d.ts +0 -5
  773. package/theme/utils/css-variable.js +1 -1
  774. package/theme/utils/css-variable.js.map +1 -1
  775. package/theme/utils/font.d.ts +2 -2
  776. package/theme/utils/font.js +1 -1
  777. package/theme/utils/font.js.map +1 -1
  778. package/theme/utils/token-resolver.js +1 -1
  779. package/theme/utils/token-resolver.js.map +1 -1
  780. package/theme/utils/use-design-token.js +1 -1
  781. package/theme/utils/use-design-token.js.map +1 -1
  782. package/theme/utils/use-media-query.d.ts +1 -2
  783. package/theme/utils/use-media-query.js +1 -1
  784. package/theme/utils/use-media-query.js.map +1 -1
  785. package/time-range-picker/combobox-picker/combobox-picker.js +1 -1
  786. package/time-range-picker/combobox-picker/combobox-picker.js.map +1 -1
  787. package/time-slot-bar-week/consts.d.ts +3 -0
  788. package/time-slot-bar-week/consts.js +2 -0
  789. package/time-slot-bar-week/consts.js.map +1 -0
  790. package/time-slot-bar-week/time-slot-bar-week-days.js +1 -1
  791. package/time-slot-bar-week/time-slot-bar-week-days.js.map +1 -1
  792. package/time-slot-bar-week/time-slot-bar-week-days.styles.d.ts +25 -0
  793. package/time-slot-bar-week/time-slot-bar-week-days.styles.js +2 -0
  794. package/time-slot-bar-week/time-slot-bar-week-days.styles.js.map +1 -0
  795. package/time-slot-bar-week/time-slot-bar-week-days.styles_evdvs9.css +17 -0
  796. package/time-slot-bar-week/time-slot-bar-week.js +1 -1
  797. package/time-slot-bar-week/time-slot-bar-week.js.map +1 -1
  798. package/time-slot-bar-week/time-slot-bar-week.styles.d.ts +1 -0
  799. package/time-slot-bar-week/time-slot-bar-week.styles.js +2 -0
  800. package/time-slot-bar-week/time-slot-bar-week.styles.js.map +1 -0
  801. package/time-slot-bar-week/time-slot-bar-week.styles_11ybf42.css +1 -0
  802. package/time-slot-bar-week/time-slot-cell.d.ts +28 -0
  803. package/time-slot-bar-week/time-slot-cell.js +2 -0
  804. package/time-slot-bar-week/time-slot-cell.js.map +1 -0
  805. package/time-slot-week-view/time-slot-week-days.js +1 -1
  806. package/time-slot-week-view/time-slot-week-days.js.map +1 -1
  807. package/time-slot-week-view/time-slot-week-days.styles.d.ts +14 -0
  808. package/time-slot-week-view/time-slot-week-days.styles.js +2 -0
  809. package/time-slot-week-view/time-slot-week-days.styles.js.map +1 -0
  810. package/time-slot-week-view/time-slot-week-days.styles_1h21vyw.css +9 -0
  811. package/time-slot-week-view/time-slot-week-view.js +1 -1
  812. package/time-slot-week-view/time-slot-week-view.js.map +1 -1
  813. package/time-slot-week-view/time-slot-week-view.styles.d.ts +1 -1
  814. package/time-slot-week-view/time-slot-week-view.styles.js +1 -9
  815. package/time-slot-week-view/time-slot-week-view.styles.js.map +1 -1
  816. package/time-slot-week-view/time-slot-week-view.styles_gqgsw2.css +1 -0
  817. package/timeline/timeline.styles.js +1 -1
  818. package/{cjs/timeline/timeline.styles_1wcnzot.css → timeline/timeline.styles_1jxzik4.css} +1 -1
  819. package/timepicker/timepicker.js +1 -1
  820. package/timepicker/timepicker.js.map +1 -1
  821. package/timepicker/timepicker.styles.js +1 -1
  822. package/timepicker/timepicker.styles.js.map +1 -1
  823. package/timepicker/timepicker.styles_1jm33yw.css +1 -0
  824. package/toast/toast.styles.js +1 -1
  825. package/toast/toast.styles.js.map +1 -1
  826. package/toast/{toast.styles_ngrlup.css → toast.styles_1e0l60w.css} +1 -1
  827. package/toggle/toggle.styles.js +1 -1
  828. package/toggle/toggle.styles.js.map +1 -1
  829. package/{cjs/toggle/toggle.styles_1yzqsu.css → toggle/toggle.styles_1t5qrye.css} +5 -5
  830. package/typography/index.js +1 -1
  831. package/typography/typography.js +1 -1
  832. package/typography/typography.js.map +1 -1
  833. package/typography/typography.styles.d.ts +2 -0
  834. package/typography/typography.styles.js +1 -1
  835. package/typography/typography.styles.js.map +1 -1
  836. package/typography/typography.styles_1155j4c.css +11 -0
  837. package/uneditable-section/section-item.styles.js +1 -1
  838. package/uneditable-section/section-item.styles.js.map +1 -1
  839. package/uneditable-section/{section-item.styles_1dfjzc4.css → section-item.styles_mwx8ht.css} +2 -2
  840. package/util/is-styled-components.d.ts +5 -0
  841. package/util/is-styled-components.js +2 -0
  842. package/util/is-styled-components.js.map +1 -0
  843. package/util/styling-helper.js +1 -1
  844. package/util/styling-helper.js.map +1 -1
  845. package/badge/badge.styles_1yrxocm.css +0 -16
  846. package/cjs/badge/badge.styles_1yrxocm.css +0 -16
  847. package/cjs/date-navigator/date-navigator.styles_1cotsgz.css +0 -4
  848. package/cjs/file-upload/file-list.js +0 -2
  849. package/cjs/file-upload/file-list.js.map +0 -1
  850. package/cjs/file-upload/file-list.styles.js +0 -2
  851. package/cjs/file-upload/file-list.styles.js.map +0 -1
  852. package/cjs/file-upload/file-list.styles_16vplxk.css +0 -3
  853. package/cjs/filter/filter-modal.styles_e0ev97.css +0 -8
  854. package/cjs/filter/filter-sidebar.styles_cwvqql.css +0 -4
  855. package/cjs/form/form-label.styles_rk98yd.css +0 -6
  856. package/cjs/input-textarea/textarea-counter.styles_adg5h1.css +0 -1
  857. package/cjs/input-textarea/textarea.styles_g0zgyq.css +0 -5
  858. package/cjs/language-switcher/dropdown-variant.styles_16c4wc1.css +0 -2
  859. package/cjs/markup/markup.utils.js +0 -2
  860. package/cjs/markup/markup.utils.js.map +0 -1
  861. package/cjs/modal/modal-box.styles_1xrlxhd.css +0 -2
  862. package/cjs/modal-v2/modal-v2.styles_1irpyi6.css +0 -3
  863. package/cjs/otp-verification/contact-input-section-styles.js +0 -115
  864. package/cjs/otp-verification/contact-input-section-styles.js.map +0 -1
  865. package/cjs/otp-verification/otp-verification-styles.js +0 -6
  866. package/cjs/otp-verification/otp-verification-styles.js.map +0 -1
  867. package/cjs/otp-verification/verification-section-styles.js +0 -27
  868. package/cjs/otp-verification/verification-section-styles.js.map +0 -1
  869. package/cjs/schedule/schedule-header/schedule-header.style.js +0 -38
  870. package/cjs/schedule/schedule-header/schedule-header.style.js.map +0 -1
  871. package/cjs/schedule/schedule-week-view/slot-content.js +0 -2
  872. package/cjs/schedule/schedule-week-view/slot-content.js.map +0 -1
  873. package/cjs/schedule/schedule-week-view/slot-content.styles.js +0 -40
  874. package/cjs/schedule/schedule-week-view/slot-content.styles.js.map +0 -1
  875. package/cjs/shared/dropdown-list/expandable-element.styles_5o9f9w.css +0 -6
  876. package/cjs/shared/dropdown-wrapper/dropdown-wrapper.styles_v10jbi.css +0 -3
  877. package/cjs/shared/standalone-date-input/standalone-date-input.styles_1m0da43.css +0 -13
  878. package/cjs/shared/styles/index.js +0 -2
  879. package/cjs/shared/styles/index.js.map +0 -1
  880. package/cjs/shared/time-slot/time-slot.styles_1r9na3f.css +0 -17
  881. package/cjs/sidenav/sidenav-drawer-subitem.styles_1ylzfn5.css +0 -1
  882. package/cjs/text-list/text-list.styles_1gohl3f.css +0 -16
  883. package/cjs/time-slot-bar-week/time-slot-bar-week-days.style.js +0 -104
  884. package/cjs/time-slot-bar-week/time-slot-bar-week-days.style.js.map +0 -1
  885. package/cjs/time-slot-bar-week/time-slot-bar-week.style.js +0 -10
  886. package/cjs/time-slot-bar-week/time-slot-bar-week.style.js.map +0 -1
  887. package/cjs/time-slot-week-view/time-slot-week-days.style.js +0 -59
  888. package/cjs/time-slot-week-view/time-slot-week-days.style.js.map +0 -1
  889. package/cjs/timepicker/timepicker.styles_zmkhl8.css +0 -1
  890. package/cjs/typography/typography.styles_1jqils.css +0 -9
  891. package/cjs/v3_theme/border/specs/default-border-set.js +0 -2
  892. package/cjs/v3_theme/border/specs/default-border-set.js.map +0 -1
  893. package/cjs/v3_theme/border/theme-helper.js +0 -2
  894. package/cjs/v3_theme/border/theme-helper.js.map +0 -1
  895. package/cjs/v3_theme/border-util/specs/default-border-util-set.js +0 -2
  896. package/cjs/v3_theme/border-util/specs/default-border-util-set.js.map +0 -1
  897. package/cjs/v3_theme/border-util/theme-helper.js +0 -2
  898. package/cjs/v3_theme/border-util/theme-helper.js.map +0 -1
  899. package/cjs/v3_theme/border-util/utils.js +0 -8
  900. package/cjs/v3_theme/border-util/utils.js.map +0 -1
  901. package/cjs/v3_theme/breakpoint/media-query-helper.js +0 -2
  902. package/cjs/v3_theme/breakpoint/media-query-helper.js.map +0 -1
  903. package/cjs/v3_theme/breakpoint/specs/default-breakpoint-set.js +0 -2
  904. package/cjs/v3_theme/breakpoint/specs/default-breakpoint-set.js.map +0 -1
  905. package/cjs/v3_theme/breakpoint/theme-helper.js +0 -2
  906. package/cjs/v3_theme/breakpoint/theme-helper.js.map +0 -1
  907. package/cjs/v3_theme/colour-primitive/specs/a11yplayground-colour-set.js +0 -2
  908. package/cjs/v3_theme/colour-primitive/specs/a11yplayground-colour-set.js.map +0 -1
  909. package/cjs/v3_theme/colour-primitive/specs/bookingsg-colour-set.js +0 -2
  910. package/cjs/v3_theme/colour-primitive/specs/bookingsg-colour-set.js.map +0 -1
  911. package/cjs/v3_theme/colour-primitive/specs/ccube-colour-set.js +0 -2
  912. package/cjs/v3_theme/colour-primitive/specs/ccube-colour-set.js.map +0 -1
  913. package/cjs/v3_theme/colour-primitive/specs/imda-colour-set.js +0 -2
  914. package/cjs/v3_theme/colour-primitive/specs/imda-colour-set.js.map +0 -1
  915. package/cjs/v3_theme/colour-primitive/specs/lifesg-colour-set.js +0 -2
  916. package/cjs/v3_theme/colour-primitive/specs/lifesg-colour-set.js.map +0 -1
  917. package/cjs/v3_theme/colour-primitive/specs/mylegacy-colour-set.js +0 -2
  918. package/cjs/v3_theme/colour-primitive/specs/mylegacy-colour-set.js.map +0 -1
  919. package/cjs/v3_theme/colour-primitive/specs/oneservice-colour-set.js +0 -2
  920. package/cjs/v3_theme/colour-primitive/specs/oneservice-colour-set.js.map +0 -1
  921. package/cjs/v3_theme/colour-primitive/specs/pa-colour-set.js +0 -2
  922. package/cjs/v3_theme/colour-primitive/specs/pa-colour-set.js.map +0 -1
  923. package/cjs/v3_theme/colour-primitive/specs/rbs-colour-set.js +0 -2
  924. package/cjs/v3_theme/colour-primitive/specs/rbs-colour-set.js.map +0 -1
  925. package/cjs/v3_theme/colour-primitive/specs/smgs-colour-set.js +0 -2
  926. package/cjs/v3_theme/colour-primitive/specs/smgs-colour-set.js.map +0 -1
  927. package/cjs/v3_theme/colour-primitive/specs/spf-colour-set.js +0 -2
  928. package/cjs/v3_theme/colour-primitive/specs/spf-colour-set.js.map +0 -1
  929. package/cjs/v3_theme/colour-primitive/specs/supportgowhere-colour-set.js +0 -2
  930. package/cjs/v3_theme/colour-primitive/specs/supportgowhere-colour-set.js.map +0 -1
  931. package/cjs/v3_theme/colour-primitive/theme-helper.js +0 -2
  932. package/cjs/v3_theme/colour-primitive/theme-helper.js.map +0 -1
  933. package/cjs/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.js +0 -2
  934. package/cjs/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.js.map +0 -1
  935. package/cjs/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.js +0 -2
  936. package/cjs/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.js.map +0 -1
  937. package/cjs/v3_theme/colour-semantic/specs/pa-semantic-tokens.js +0 -2
  938. package/cjs/v3_theme/colour-semantic/specs/pa-semantic-tokens.js.map +0 -1
  939. package/cjs/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.js +0 -2
  940. package/cjs/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.js.map +0 -1
  941. package/cjs/v3_theme/colour-semantic/theme-helper.js +0 -2
  942. package/cjs/v3_theme/colour-semantic/theme-helper.js.map +0 -1
  943. package/cjs/v3_theme/ds-theme-provider.js +0 -2
  944. package/cjs/v3_theme/ds-theme-provider.js.map +0 -1
  945. package/cjs/v3_theme/font/specs/a11yplayground-font-set.js +0 -2
  946. package/cjs/v3_theme/font/specs/a11yplayground-font-set.js.map +0 -1
  947. package/cjs/v3_theme/font/specs/bookingsg-font-set.js +0 -2
  948. package/cjs/v3_theme/font/specs/bookingsg-font-set.js.map +0 -1
  949. package/cjs/v3_theme/font/specs/default-font-set.js +0 -2
  950. package/cjs/v3_theme/font/specs/default-font-set.js.map +0 -1
  951. package/cjs/v3_theme/font/specs/imda-font-set.js +0 -2
  952. package/cjs/v3_theme/font/specs/imda-font-set.js.map +0 -1
  953. package/cjs/v3_theme/font/specs/oneservice-font-set.js +0 -2
  954. package/cjs/v3_theme/font/specs/oneservice-font-set.js.map +0 -1
  955. package/cjs/v3_theme/font/specs/pa-font-set.js +0 -2
  956. package/cjs/v3_theme/font/specs/pa-font-set.js.map +0 -1
  957. package/cjs/v3_theme/font/specs/smgs-font-set.js +0 -2
  958. package/cjs/v3_theme/font/specs/smgs-font-set.js.map +0 -1
  959. package/cjs/v3_theme/font/specs/spf-font-set.js +0 -2
  960. package/cjs/v3_theme/font/specs/spf-font-set.js.map +0 -1
  961. package/cjs/v3_theme/font/specs/supportgowhere-font-set.js +0 -2
  962. package/cjs/v3_theme/font/specs/supportgowhere-font-set.js.map +0 -1
  963. package/cjs/v3_theme/font/theme-helper.js +0 -2
  964. package/cjs/v3_theme/font/theme-helper.js.map +0 -1
  965. package/cjs/v3_theme/font/utils.js +0 -10
  966. package/cjs/v3_theme/font/utils.js.map +0 -1
  967. package/cjs/v3_theme/font-spec/specs/a11yplayground-font-spec-set.js +0 -2
  968. package/cjs/v3_theme/font-spec/specs/a11yplayground-font-spec-set.js.map +0 -1
  969. package/cjs/v3_theme/font-spec/specs/bookingsg-font-spec-set.js +0 -2
  970. package/cjs/v3_theme/font-spec/specs/bookingsg-font-spec-set.js.map +0 -1
  971. package/cjs/v3_theme/font-spec/specs/default-font-spec-set.js +0 -2
  972. package/cjs/v3_theme/font-spec/specs/default-font-spec-set.js.map +0 -1
  973. package/cjs/v3_theme/font-spec/specs/imda-font-spec-set.js +0 -2
  974. package/cjs/v3_theme/font-spec/specs/imda-font-spec-set.js.map +0 -1
  975. package/cjs/v3_theme/font-spec/specs/mylegacy-font-spec-set.js +0 -2
  976. package/cjs/v3_theme/font-spec/specs/mylegacy-font-spec-set.js.map +0 -1
  977. package/cjs/v3_theme/font-spec/specs/oneservice-font-spec-set.js +0 -2
  978. package/cjs/v3_theme/font-spec/specs/oneservice-font-spec-set.js.map +0 -1
  979. package/cjs/v3_theme/font-spec/specs/pa-font-spec-set.js +0 -2
  980. package/cjs/v3_theme/font-spec/specs/pa-font-spec-set.js.map +0 -1
  981. package/cjs/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.js +0 -2
  982. package/cjs/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.js.map +0 -1
  983. package/cjs/v3_theme/font-spec/specs/smgs-font-spec-set.js +0 -2
  984. package/cjs/v3_theme/font-spec/specs/smgs-font-spec-set.js.map +0 -1
  985. package/cjs/v3_theme/font-spec/specs/spf-font-spec-set.js +0 -2
  986. package/cjs/v3_theme/font-spec/specs/spf-font-spec-set.js.map +0 -1
  987. package/cjs/v3_theme/font-spec/specs/supportgowhere-font-spec-set.js +0 -2
  988. package/cjs/v3_theme/font-spec/specs/supportgowhere-font-spec-set.js.map +0 -1
  989. package/cjs/v3_theme/font-spec/theme-helper.js +0 -2
  990. package/cjs/v3_theme/font-spec/theme-helper.js.map +0 -1
  991. package/cjs/v3_theme/helpers.js +0 -2
  992. package/cjs/v3_theme/helpers.js.map +0 -1
  993. package/cjs/v3_theme/index.js +0 -2
  994. package/cjs/v3_theme/index.js.map +0 -1
  995. package/cjs/v3_theme/motion/specs/default-motion-set.js +0 -2
  996. package/cjs/v3_theme/motion/specs/default-motion-set.js.map +0 -1
  997. package/cjs/v3_theme/motion/theme-helper.js +0 -2
  998. package/cjs/v3_theme/motion/theme-helper.js.map +0 -1
  999. package/cjs/v3_theme/radius/specs/default-radius-set.js +0 -2
  1000. package/cjs/v3_theme/radius/specs/default-radius-set.js.map +0 -1
  1001. package/cjs/v3_theme/radius/specs/spf-radius-set.js +0 -2
  1002. package/cjs/v3_theme/radius/specs/spf-radius-set.js.map +0 -1
  1003. package/cjs/v3_theme/radius/theme-helper.js +0 -2
  1004. package/cjs/v3_theme/radius/theme-helper.js.map +0 -1
  1005. package/cjs/v3_theme/shadow/specs/default-shadow-set.js +0 -2
  1006. package/cjs/v3_theme/shadow/specs/default-shadow-set.js.map +0 -1
  1007. package/cjs/v3_theme/shadow/theme-helper.js +0 -2
  1008. package/cjs/v3_theme/shadow/theme-helper.js.map +0 -1
  1009. package/cjs/v3_theme/spacing/specs/default-spacing-set.js +0 -2
  1010. package/cjs/v3_theme/spacing/specs/default-spacing-set.js.map +0 -1
  1011. package/cjs/v3_theme/spacing/theme-helper.js +0 -2
  1012. package/cjs/v3_theme/spacing/theme-helper.js.map +0 -1
  1013. package/cjs/v3_theme/use-theme-mode.js +0 -2
  1014. package/cjs/v3_theme/use-theme-mode.js.map +0 -1
  1015. package/codemods/common.ts +0 -8
  1016. package/codemods/data.ts +0 -16
  1017. package/codemods/deprecate-v2-tokens/data.ts +0 -283
  1018. package/codemods/deprecate-v2-tokens/index.ts +0 -89
  1019. package/codemods/migrate-colour/data.ts +0 -95
  1020. package/codemods/migrate-colour/index.ts +0 -104
  1021. package/codemods/migrate-layout/data.ts +0 -5
  1022. package/codemods/migrate-layout/index.ts +0 -108
  1023. package/codemods/migrate-media-query/data.ts +0 -20
  1024. package/codemods/migrate-media-query/index.ts +0 -113
  1025. package/codemods/migrate-text/data.ts +0 -48
  1026. package/codemods/migrate-text/index.ts +0 -196
  1027. package/codemods/migrate-text-list/data.ts +0 -16
  1028. package/codemods/migrate-text-list/index.ts +0 -111
  1029. package/common.d.ts +0 -8
  1030. package/date-navigator/date-navigator.styles_1cotsgz.css +0 -4
  1031. package/deprecate-v2-tokens/data.d.ts +0 -8
  1032. package/file-upload/file-list.js +0 -2
  1033. package/file-upload/file-list.js.map +0 -1
  1034. package/file-upload/file-list.styles.js +0 -2
  1035. package/file-upload/file-list.styles.js.map +0 -1
  1036. package/file-upload/file-list.styles_16vplxk.css +0 -3
  1037. package/filter/filter-modal.styles_e0ev97.css +0 -8
  1038. package/filter/filter-sidebar.styles_cwvqql.css +0 -4
  1039. package/form/form-label.styles_rk98yd.css +0 -6
  1040. package/input-textarea/textarea-counter.styles_adg5h1.css +0 -1
  1041. package/input-textarea/textarea.styles_g0zgyq.css +0 -5
  1042. package/language-switcher/dropdown-variant.styles_16c4wc1.css +0 -2
  1043. package/markup/markup.utils.d.ts +0 -2
  1044. package/markup/markup.utils.js +0 -2
  1045. package/markup/markup.utils.js.map +0 -1
  1046. package/migrate-colour/data.d.ts +0 -270
  1047. package/migrate-colour/index.d.ts +0 -7
  1048. package/migrate-layout/data.d.ts +0 -5
  1049. package/migrate-layout/index.d.ts +0 -2
  1050. package/migrate-media-query/data.d.ts +0 -20
  1051. package/migrate-media-query/index.d.ts +0 -2
  1052. package/migrate-text/data.d.ts +0 -46
  1053. package/migrate-text/index.d.ts +0 -2
  1054. package/migrate-text-list/data.d.ts +0 -16
  1055. package/migrate-text-list/index.d.ts +0 -2
  1056. package/modal/modal-box.styles_1xrlxhd.css +0 -2
  1057. package/modal-v2/modal-v2.styles_1irpyi6.css +0 -3
  1058. package/otp-verification/contact-input-section-styles.d.ts +0 -14
  1059. package/otp-verification/contact-input-section-styles.js +0 -115
  1060. package/otp-verification/contact-input-section-styles.js.map +0 -1
  1061. package/otp-verification/otp-verification-styles.d.ts +0 -1
  1062. package/otp-verification/otp-verification-styles.js +0 -6
  1063. package/otp-verification/otp-verification-styles.js.map +0 -1
  1064. package/otp-verification/verification-section-styles.d.ts +0 -23
  1065. package/otp-verification/verification-section-styles.js +0 -27
  1066. package/otp-verification/verification-section-styles.js.map +0 -1
  1067. package/schedule/schedule-header/schedule-header.style.d.ts +0 -25
  1068. package/schedule/schedule-header/schedule-header.style.js +0 -38
  1069. package/schedule/schedule-header/schedule-header.style.js.map +0 -1
  1070. package/schedule/schedule-week-view/slot-content.d.ts +0 -8
  1071. package/schedule/schedule-week-view/slot-content.js +0 -2
  1072. package/schedule/schedule-week-view/slot-content.js.map +0 -1
  1073. package/schedule/schedule-week-view/slot-content.styles.d.ts +0 -27
  1074. package/schedule/schedule-week-view/slot-content.styles.js +0 -40
  1075. package/schedule/schedule-week-view/slot-content.styles.js.map +0 -1
  1076. package/schedule/shared/index.d.ts +0 -2
  1077. package/shared/dropdown-list/expandable-element.styles_5o9f9w.css +0 -6
  1078. package/shared/dropdown-wrapper/dropdown-wrapper.styles_v10jbi.css +0 -3
  1079. package/shared/standalone-date-input/standalone-date-input.styles_1m0da43.css +0 -13
  1080. package/shared/styles/index.js +0 -2
  1081. package/shared/styles/index.js.map +0 -1
  1082. package/shared/time-slot/time-slot.styles_1r9na3f.css +0 -17
  1083. package/sidenav/sidenav-drawer-subitem.styles_1ylzfn5.css +0 -1
  1084. package/text-list/text-list.styles_1gohl3f.css +0 -16
  1085. package/time-slot-bar-week/time-slot-bar-week-days.style.d.ts +0 -54
  1086. package/time-slot-bar-week/time-slot-bar-week-days.style.js +0 -104
  1087. package/time-slot-bar-week/time-slot-bar-week-days.style.js.map +0 -1
  1088. package/time-slot-bar-week/time-slot-bar-week.style.d.ts +0 -1
  1089. package/time-slot-bar-week/time-slot-bar-week.style.js +0 -10
  1090. package/time-slot-bar-week/time-slot-bar-week.style.js.map +0 -1
  1091. package/time-slot-week-view/time-slot-week-days.style.d.ts +0 -12
  1092. package/time-slot-week-view/time-slot-week-days.style.js +0 -59
  1093. package/time-slot-week-view/time-slot-week-days.style.js.map +0 -1
  1094. package/timepicker/timepicker.styles_zmkhl8.css +0 -1
  1095. package/typography/typography.styles_1jqils.css +0 -9
  1096. package/v3_theme/border/specs/default-border-set.d.ts +0 -2
  1097. package/v3_theme/border/specs/default-border-set.js +0 -2
  1098. package/v3_theme/border/specs/default-border-set.js.map +0 -1
  1099. package/v3_theme/border/theme-helper.d.ts +0 -10
  1100. package/v3_theme/border/theme-helper.js +0 -2
  1101. package/v3_theme/border/theme-helper.js.map +0 -1
  1102. package/v3_theme/border/types.d.ts +0 -12
  1103. package/v3_theme/border-util/specs/default-border-util-set.d.ts +0 -2
  1104. package/v3_theme/border-util/specs/default-border-util-set.js +0 -2
  1105. package/v3_theme/border-util/specs/default-border-util-set.js.map +0 -1
  1106. package/v3_theme/border-util/theme-helper.d.ts +0 -8
  1107. package/v3_theme/border-util/theme-helper.js +0 -2
  1108. package/v3_theme/border-util/theme-helper.js.map +0 -1
  1109. package/v3_theme/border-util/types.d.ts +0 -19
  1110. package/v3_theme/border-util/utils.d.ts +0 -11
  1111. package/v3_theme/border-util/utils.js +0 -8
  1112. package/v3_theme/border-util/utils.js.map +0 -1
  1113. package/v3_theme/breakpoint/media-query-helper.d.ts +0 -9
  1114. package/v3_theme/breakpoint/media-query-helper.js +0 -2
  1115. package/v3_theme/breakpoint/media-query-helper.js.map +0 -1
  1116. package/v3_theme/breakpoint/specs/default-breakpoint-set.d.ts +0 -2
  1117. package/v3_theme/breakpoint/specs/default-breakpoint-set.js +0 -2
  1118. package/v3_theme/breakpoint/specs/default-breakpoint-set.js.map +0 -1
  1119. package/v3_theme/breakpoint/theme-helper.d.ts +0 -39
  1120. package/v3_theme/breakpoint/theme-helper.js +0 -2
  1121. package/v3_theme/breakpoint/theme-helper.js.map +0 -1
  1122. package/v3_theme/breakpoint/types.d.ts +0 -41
  1123. package/v3_theme/colour-primitive/specs/a11yplayground-colour-set.d.ts +0 -2
  1124. package/v3_theme/colour-primitive/specs/a11yplayground-colour-set.js +0 -2
  1125. package/v3_theme/colour-primitive/specs/a11yplayground-colour-set.js.map +0 -1
  1126. package/v3_theme/colour-primitive/specs/bookingsg-colour-set.d.ts +0 -2
  1127. package/v3_theme/colour-primitive/specs/bookingsg-colour-set.js +0 -2
  1128. package/v3_theme/colour-primitive/specs/bookingsg-colour-set.js.map +0 -1
  1129. package/v3_theme/colour-primitive/specs/ccube-colour-set.d.ts +0 -2
  1130. package/v3_theme/colour-primitive/specs/ccube-colour-set.js +0 -2
  1131. package/v3_theme/colour-primitive/specs/ccube-colour-set.js.map +0 -1
  1132. package/v3_theme/colour-primitive/specs/imda-colour-set.d.ts +0 -2
  1133. package/v3_theme/colour-primitive/specs/imda-colour-set.js +0 -2
  1134. package/v3_theme/colour-primitive/specs/imda-colour-set.js.map +0 -1
  1135. package/v3_theme/colour-primitive/specs/lifesg-colour-set.d.ts +0 -2
  1136. package/v3_theme/colour-primitive/specs/lifesg-colour-set.js +0 -2
  1137. package/v3_theme/colour-primitive/specs/lifesg-colour-set.js.map +0 -1
  1138. package/v3_theme/colour-primitive/specs/mylegacy-colour-set.d.ts +0 -2
  1139. package/v3_theme/colour-primitive/specs/mylegacy-colour-set.js +0 -2
  1140. package/v3_theme/colour-primitive/specs/mylegacy-colour-set.js.map +0 -1
  1141. package/v3_theme/colour-primitive/specs/oneservice-colour-set.d.ts +0 -2
  1142. package/v3_theme/colour-primitive/specs/oneservice-colour-set.js +0 -2
  1143. package/v3_theme/colour-primitive/specs/oneservice-colour-set.js.map +0 -1
  1144. package/v3_theme/colour-primitive/specs/pa-colour-set.d.ts +0 -2
  1145. package/v3_theme/colour-primitive/specs/pa-colour-set.js +0 -2
  1146. package/v3_theme/colour-primitive/specs/pa-colour-set.js.map +0 -1
  1147. package/v3_theme/colour-primitive/specs/rbs-colour-set.d.ts +0 -2
  1148. package/v3_theme/colour-primitive/specs/rbs-colour-set.js +0 -2
  1149. package/v3_theme/colour-primitive/specs/rbs-colour-set.js.map +0 -1
  1150. package/v3_theme/colour-primitive/specs/smgs-colour-set.d.ts +0 -2
  1151. package/v3_theme/colour-primitive/specs/smgs-colour-set.js +0 -2
  1152. package/v3_theme/colour-primitive/specs/smgs-colour-set.js.map +0 -1
  1153. package/v3_theme/colour-primitive/specs/spf-colour-set.d.ts +0 -2
  1154. package/v3_theme/colour-primitive/specs/spf-colour-set.js +0 -2
  1155. package/v3_theme/colour-primitive/specs/spf-colour-set.js.map +0 -1
  1156. package/v3_theme/colour-primitive/specs/supportgowhere-colour-set.d.ts +0 -2
  1157. package/v3_theme/colour-primitive/specs/supportgowhere-colour-set.js +0 -2
  1158. package/v3_theme/colour-primitive/specs/supportgowhere-colour-set.js.map +0 -1
  1159. package/v3_theme/colour-primitive/theme-helper.d.ts +0 -10
  1160. package/v3_theme/colour-primitive/theme-helper.js +0 -2
  1161. package/v3_theme/colour-primitive/theme-helper.js.map +0 -1
  1162. package/v3_theme/colour-primitive/types.d.ts +0 -98
  1163. package/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.d.ts +0 -3
  1164. package/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.js +0 -2
  1165. package/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.js.map +0 -1
  1166. package/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.d.ts +0 -3
  1167. package/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.js +0 -2
  1168. package/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.js.map +0 -1
  1169. package/v3_theme/colour-semantic/specs/pa-semantic-tokens.d.ts +0 -2
  1170. package/v3_theme/colour-semantic/specs/pa-semantic-tokens.js +0 -2
  1171. package/v3_theme/colour-semantic/specs/pa-semantic-tokens.js.map +0 -1
  1172. package/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.d.ts +0 -3
  1173. package/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.js +0 -2
  1174. package/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.js.map +0 -1
  1175. package/v3_theme/colour-semantic/theme-helper.d.ts +0 -10
  1176. package/v3_theme/colour-semantic/theme-helper.js +0 -2
  1177. package/v3_theme/colour-semantic/theme-helper.js.map +0 -1
  1178. package/v3_theme/colour-semantic/types.d.ts +0 -123
  1179. package/v3_theme/components/specs/a11yplayground-component-token-set.d.ts +0 -2
  1180. package/v3_theme/components/specs/default-component-token-set.d.ts +0 -2
  1181. package/v3_theme/components/specs/lifesg-component-token-set.d.ts +0 -2
  1182. package/v3_theme/components/specs/pa-component-token-set.d.ts +0 -2
  1183. package/v3_theme/components/specs/smgs-component-token-set.d.ts +0 -2
  1184. package/v3_theme/components/specs/spf-component-token-set.d.ts +0 -2
  1185. package/v3_theme/components/theme-helper.d.ts +0 -17
  1186. package/v3_theme/components/types.d.ts +0 -44
  1187. package/v3_theme/ds-theme-provider.d.ts +0 -2
  1188. package/v3_theme/ds-theme-provider.js +0 -2
  1189. package/v3_theme/ds-theme-provider.js.map +0 -1
  1190. package/v3_theme/font/specs/a11yplayground-font-set.d.ts +0 -2
  1191. package/v3_theme/font/specs/a11yplayground-font-set.js +0 -2
  1192. package/v3_theme/font/specs/a11yplayground-font-set.js.map +0 -1
  1193. package/v3_theme/font/specs/bookingsg-font-set.d.ts +0 -2
  1194. package/v3_theme/font/specs/bookingsg-font-set.js +0 -2
  1195. package/v3_theme/font/specs/bookingsg-font-set.js.map +0 -1
  1196. package/v3_theme/font/specs/default-font-set.d.ts +0 -2
  1197. package/v3_theme/font/specs/default-font-set.js +0 -2
  1198. package/v3_theme/font/specs/default-font-set.js.map +0 -1
  1199. package/v3_theme/font/specs/imda-font-set.d.ts +0 -2
  1200. package/v3_theme/font/specs/imda-font-set.js +0 -2
  1201. package/v3_theme/font/specs/imda-font-set.js.map +0 -1
  1202. package/v3_theme/font/specs/oneservice-font-set.d.ts +0 -2
  1203. package/v3_theme/font/specs/oneservice-font-set.js +0 -2
  1204. package/v3_theme/font/specs/oneservice-font-set.js.map +0 -1
  1205. package/v3_theme/font/specs/pa-font-set.d.ts +0 -2
  1206. package/v3_theme/font/specs/pa-font-set.js +0 -2
  1207. package/v3_theme/font/specs/pa-font-set.js.map +0 -1
  1208. package/v3_theme/font/specs/smgs-font-set.d.ts +0 -2
  1209. package/v3_theme/font/specs/smgs-font-set.js +0 -2
  1210. package/v3_theme/font/specs/smgs-font-set.js.map +0 -1
  1211. package/v3_theme/font/specs/spf-font-set.d.ts +0 -2
  1212. package/v3_theme/font/specs/spf-font-set.js +0 -2
  1213. package/v3_theme/font/specs/spf-font-set.js.map +0 -1
  1214. package/v3_theme/font/specs/supportgowhere-font-set.d.ts +0 -2
  1215. package/v3_theme/font/specs/supportgowhere-font-set.js +0 -2
  1216. package/v3_theme/font/specs/supportgowhere-font-set.js.map +0 -1
  1217. package/v3_theme/font/theme-helper.d.ts +0 -7
  1218. package/v3_theme/font/theme-helper.js +0 -2
  1219. package/v3_theme/font/theme-helper.js.map +0 -1
  1220. package/v3_theme/font/types.d.ts +0 -54
  1221. package/v3_theme/font/utils.d.ts +0 -4
  1222. package/v3_theme/font/utils.js +0 -10
  1223. package/v3_theme/font/utils.js.map +0 -1
  1224. package/v3_theme/font-spec/specs/a11yplayground-font-spec-set.d.ts +0 -2
  1225. package/v3_theme/font-spec/specs/a11yplayground-font-spec-set.js +0 -2
  1226. package/v3_theme/font-spec/specs/a11yplayground-font-spec-set.js.map +0 -1
  1227. package/v3_theme/font-spec/specs/bookingsg-font-spec-set.d.ts +0 -2
  1228. package/v3_theme/font-spec/specs/bookingsg-font-spec-set.js +0 -2
  1229. package/v3_theme/font-spec/specs/bookingsg-font-spec-set.js.map +0 -1
  1230. package/v3_theme/font-spec/specs/default-font-spec-set.d.ts +0 -2
  1231. package/v3_theme/font-spec/specs/default-font-spec-set.js +0 -2
  1232. package/v3_theme/font-spec/specs/default-font-spec-set.js.map +0 -1
  1233. package/v3_theme/font-spec/specs/imda-font-spec-set.d.ts +0 -2
  1234. package/v3_theme/font-spec/specs/imda-font-spec-set.js +0 -2
  1235. package/v3_theme/font-spec/specs/imda-font-spec-set.js.map +0 -1
  1236. package/v3_theme/font-spec/specs/mylegacy-font-spec-set.d.ts +0 -2
  1237. package/v3_theme/font-spec/specs/mylegacy-font-spec-set.js +0 -2
  1238. package/v3_theme/font-spec/specs/mylegacy-font-spec-set.js.map +0 -1
  1239. package/v3_theme/font-spec/specs/oneservice-font-spec-set.d.ts +0 -2
  1240. package/v3_theme/font-spec/specs/oneservice-font-spec-set.js +0 -2
  1241. package/v3_theme/font-spec/specs/oneservice-font-spec-set.js.map +0 -1
  1242. package/v3_theme/font-spec/specs/pa-font-spec-set.d.ts +0 -2
  1243. package/v3_theme/font-spec/specs/pa-font-spec-set.js +0 -2
  1244. package/v3_theme/font-spec/specs/pa-font-spec-set.js.map +0 -1
  1245. package/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.d.ts +0 -2
  1246. package/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.js +0 -2
  1247. package/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.js.map +0 -1
  1248. package/v3_theme/font-spec/specs/smgs-font-spec-set.d.ts +0 -2
  1249. package/v3_theme/font-spec/specs/smgs-font-spec-set.js +0 -2
  1250. package/v3_theme/font-spec/specs/smgs-font-spec-set.js.map +0 -1
  1251. package/v3_theme/font-spec/specs/spf-font-spec-set.d.ts +0 -2
  1252. package/v3_theme/font-spec/specs/spf-font-spec-set.js +0 -2
  1253. package/v3_theme/font-spec/specs/spf-font-spec-set.js.map +0 -1
  1254. package/v3_theme/font-spec/specs/supportgowhere-font-spec-set.d.ts +0 -2
  1255. package/v3_theme/font-spec/specs/supportgowhere-font-spec-set.js +0 -2
  1256. package/v3_theme/font-spec/specs/supportgowhere-font-spec-set.js.map +0 -1
  1257. package/v3_theme/font-spec/theme-helper.d.ts +0 -6
  1258. package/v3_theme/font-spec/theme-helper.js +0 -2
  1259. package/v3_theme/font-spec/theme-helper.js.map +0 -1
  1260. package/v3_theme/font-spec/types.d.ts +0 -53
  1261. package/v3_theme/helpers.d.ts +0 -7
  1262. package/v3_theme/helpers.js +0 -2
  1263. package/v3_theme/helpers.js.map +0 -1
  1264. package/v3_theme/index.d.ts +0 -696
  1265. package/v3_theme/index.js +0 -2
  1266. package/v3_theme/index.js.map +0 -1
  1267. package/v3_theme/internal-types.d.ts +0 -4
  1268. package/v3_theme/motion/specs/default-motion-set.d.ts +0 -2
  1269. package/v3_theme/motion/specs/default-motion-set.js +0 -2
  1270. package/v3_theme/motion/specs/default-motion-set.js.map +0 -1
  1271. package/v3_theme/motion/theme-helper.d.ts +0 -6
  1272. package/v3_theme/motion/theme-helper.js +0 -2
  1273. package/v3_theme/motion/theme-helper.js.map +0 -1
  1274. package/v3_theme/motion/types.d.ts +0 -17
  1275. package/v3_theme/radius/specs/default-radius-set.d.ts +0 -2
  1276. package/v3_theme/radius/specs/default-radius-set.js +0 -2
  1277. package/v3_theme/radius/specs/default-radius-set.js.map +0 -1
  1278. package/v3_theme/radius/specs/spf-radius-set.d.ts +0 -2
  1279. package/v3_theme/radius/specs/spf-radius-set.js +0 -2
  1280. package/v3_theme/radius/specs/spf-radius-set.js.map +0 -1
  1281. package/v3_theme/radius/theme-helper.d.ts +0 -6
  1282. package/v3_theme/radius/theme-helper.js +0 -2
  1283. package/v3_theme/radius/theme-helper.js.map +0 -1
  1284. package/v3_theme/radius/types.d.ts +0 -13
  1285. package/v3_theme/shadow/specs/default-shadow-set.d.ts +0 -2
  1286. package/v3_theme/shadow/specs/default-shadow-set.js +0 -2
  1287. package/v3_theme/shadow/specs/default-shadow-set.js.map +0 -1
  1288. package/v3_theme/shadow/theme-helper.d.ts +0 -7
  1289. package/v3_theme/shadow/theme-helper.js +0 -2
  1290. package/v3_theme/shadow/theme-helper.js.map +0 -1
  1291. package/v3_theme/shadow/types.d.ts +0 -21
  1292. package/v3_theme/spacing/specs/default-spacing-set.d.ts +0 -2
  1293. package/v3_theme/spacing/specs/default-spacing-set.js +0 -2
  1294. package/v3_theme/spacing/specs/default-spacing-set.js.map +0 -1
  1295. package/v3_theme/spacing/theme-helper.d.ts +0 -6
  1296. package/v3_theme/spacing/theme-helper.js +0 -2
  1297. package/v3_theme/spacing/theme-helper.js.map +0 -1
  1298. package/v3_theme/spacing/types.d.ts +0 -26
  1299. package/v3_theme/types.d.ts +0 -78
  1300. package/v3_theme/use-theme-mode.d.ts +0 -4
  1301. package/v3_theme/use-theme-mode.js +0 -2
  1302. package/v3_theme/use-theme-mode.js.map +0 -1
  1303. /package/file-upload/{file-list.styles.d.ts → file-list/file-list.styles.d.ts} +0 -0
  1304. /package/{deprecate-v2-tokens → migrate-popover}/index.d.ts +0 -0
@@ -1,75 +1,2 @@
1
- "use strict";var e=require("styled-components"),r=require("../../typography/index.js"),i=require("../../v3_theme/index.js"),t=require("../const.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=o(e);const n=d.default.div`
2
- display: flex;
3
- justify-content: center;
4
- align-items: center;
5
- min-height: 25rem;
6
- height: 100%;
7
- border: ${i.V3_Border["width-010"]} ${i.V3_Border.solid} ${i.V3_Colour.border};
8
- border-radius: ${i.V3_Radius.md};
9
- background: ${i.V3_Colour.bg};
10
- `,l=d.default.div`
11
- display: grid;
12
- grid-template-columns: ${t.TIME_INDICATOR_WIDTH}px repeat(7, 1fr);
13
- max-height: ${t.HEADER_HEIGHT}px;
14
- `,a=d.default.div`
15
- min-width: ${t.TIME_INDICATOR_WIDTH}px;
16
- position: sticky;
17
- z-index: 2;
18
- `,p=d.default.div`
19
- display: grid;
20
- grid-template-columns: repeat(7, 1fr);
21
- grid-column-start: 2;
22
- grid-column-end: 9;
23
- `,s=d.default.div`
24
- display: flex;
25
- flex-direction: column;
26
- align-items: center;
27
- justify-content: flex-end;
28
- padding: ${i.V3_Spacing["spacing-24"]};
29
- color: ${i.V3_Colour["text-primary"]};
30
- `,u=d.default(r.Typography.BodyMD)`
31
- font-weight: ${i.V3_Font.Spec["weight-semibold"]};
32
- `,c=d.default.div`
33
- display: grid;
34
- grid-template-columns: ${t.TIME_INDICATOR_WIDTH}px repeat(7, 1fr);
35
- overflow-x: hidden;
36
- overflow-y: auto;
37
- flex: 1;
38
- height: 100%;
39
- border: ${i.V3_Border["width-010"]} ${i.V3_Border.solid} ${i.V3_Colour.border};
40
- `,g=d.default.div`
41
- grid-column-start: 2;
42
- grid-column-end: 9;
43
- display: grid;
44
- grid-template-columns: repeat(7, 1fr);
45
- min-width: max-content;
46
- `,x=d.default.div`
47
- position: absolute;
48
- width: 100%;
49
- height: 2px;
50
- background: ${i.V3_Colour["icon-primary"]};
51
- top: ${e=>e.$top}px;
52
- z-index: 2;
53
-
54
- &::before {
55
- content: "";
56
- position: absolute;
57
- left: -6px;
58
- top: -6px;
59
- width: ${i.V3_Spacing["spacing-12"]};
60
- height: ${i.V3_Spacing["spacing-12"]};
61
- border-radius: ${i.V3_Radius.full};
62
- background: ${i.V3_Colour["icon-primary"]};
63
- z-index: 1;
64
- }
65
- `,f=d.default.div`
66
- display: flex;
67
- position: relative;
68
- flex-direction: column;
69
- border-right: ${i.V3_Border["width-010"]} ${i.V3_Border.solid}
70
- ${i.V3_Colour.border};
71
- &:last-child {
72
- border-right: none;
73
- }
74
- `;exports.BlankCell=a,exports.BodyContainer=c,exports.Description=u,exports.HeaderContainer=l,exports.LoadingContainer=n,exports.ServiceContainer=p,exports.ServiceHeader=s,exports.SlotColumn=f,exports.SlotGrid=g,exports.Timeline=x;
1
+ "use strict";require("./schedule-week-view.styles_x7x50m.css");exports.blankCell="b155xk04",exports.bodyContainer="b16u8uwa",exports.description="dmchg65",exports.headerContainer="h1595692",exports.loadingContainer="lmprb8g",exports.serviceContainer="snwncax",exports.serviceHeader="s1u9fy4o",exports.slotColumn="sej7vmd",exports.slotGrid="s1w10b64",exports.timeline="tbbbluc",exports.tokens={timeline:{top:"--fds-internal-scheduleWeekView-timeline-top"}};
75
2
  //# sourceMappingURL=schedule-week-view.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schedule-week-view.styles.js","sources":["../../../../src/schedule/schedule-week-view/schedule-week-view.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { Typography } from \"../../typography\";\nimport {\n V3_Border,\n V3_Colour,\n V3_Font,\n V3_Radius,\n V3_Spacing,\n} from \"../../v3_theme\";\nimport { HEADER_HEIGHT, TIME_INDICATOR_WIDTH } from \"../const\";\n\n// =============================================================================\n// STYLE INTERFACES\n// =============================================================================\ninterface TimelineStyleProps {\n $top: number;\n}\n\n// =============================================================================\n// STYLING\n// =============================================================================\nexport const LoadingContainer = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 25rem;\n height: 100%;\n border: ${V3_Border[\"width-010\"]} ${V3_Border.solid} ${V3_Colour[\"border\"]};\n border-radius: ${V3_Radius[\"md\"]};\n background: ${V3_Colour[\"bg\"]};\n`;\n\nexport const HeaderContainer = styled.div`\n display: grid;\n grid-template-columns: ${TIME_INDICATOR_WIDTH}px repeat(7, 1fr);\n max-height: ${HEADER_HEIGHT}px;\n`;\n\nexport const BlankCell = styled.div`\n min-width: ${TIME_INDICATOR_WIDTH}px;\n position: sticky;\n z-index: 2;\n`;\n\nexport const ServiceContainer = styled.div`\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n grid-column-start: 2;\n grid-column-end: 9;\n`;\n\nexport const ServiceHeader = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n padding: ${V3_Spacing[\"spacing-24\"]};\n color: ${V3_Colour[\"text-primary\"]};\n`;\n\nexport const Description = styled(Typography.BodyMD)`\n font-weight: ${V3_Font.Spec[\"weight-semibold\"]};\n`;\n\nexport const BodyContainer = styled.div`\n display: grid;\n grid-template-columns: ${TIME_INDICATOR_WIDTH}px repeat(7, 1fr);\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n height: 100%;\n border: ${V3_Border[\"width-010\"]} ${V3_Border.solid} ${V3_Colour[\"border\"]};\n`;\nexport const SlotGrid = styled.div`\n grid-column-start: 2;\n grid-column-end: 9;\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n min-width: max-content;\n`;\n\nexport const Timeline = styled.div<TimelineStyleProps>`\n position: absolute;\n width: 100%;\n height: 2px;\n background: ${V3_Colour[\"icon-primary\"]};\n top: ${(props) => props.$top}px;\n z-index: 2;\n\n &::before {\n content: \"\";\n position: absolute;\n left: -6px;\n top: -6px;\n width: ${V3_Spacing[\"spacing-12\"]};\n height: ${V3_Spacing[\"spacing-12\"]};\n border-radius: ${V3_Radius[\"full\"]};\n background: ${V3_Colour[\"icon-primary\"]};\n z-index: 1;\n }\n`;\n\nexport const SlotColumn = styled.div`\n display: flex;\n position: relative;\n flex-direction: column;\n border-right: ${V3_Border[\"width-010\"]} ${V3_Border.solid}\n ${V3_Colour[\"border\"]};\n &:last-child {\n border-right: none;\n }\n`;\n"],"names":["LoadingContainer","styled","div","V3_Border","solid","V3_Colour","V3_Radius","HeaderContainer","TIME_INDICATOR_WIDTH","HEADER_HEIGHT","BlankCell","ServiceContainer","ServiceHeader","V3_Spacing","Description","Typography","BodyMD","V3_Font","Spec","BodyContainer","SlotGrid","Timeline","props","$top","SlotColumn"],"mappings":"wOAsBO,MAAMA,EAAmBC,EAAAA,QAAOC,GAAG;;;;;;cAM5BC,EAAAA,UAAU,gBAAgBA,EAAAA,UAAUC,SAASC,YAAkB;qBACxDC,EAAAA,UAAc;kBACjBD,EAAAA,UAAc;EAGnBE,EAAkBN,EAAAA,QAAOC,GAAG;;6BAEZM;kBACXC;EAGLC,EAAYT,EAAAA,QAAOC,GAAG;iBAClBM;;;EAKJG,EAAmBV,EAAAA,QAAOC,GAAG;;;;;EAO7BU,EAAgBX,EAAAA,QAAOC,GAAG;;;;;eAKxBW,EAAAA,WAAW;aACbR,EAAAA,UAAU;EAGVS,EAAcb,EAAAA,QAAOc,aAAWC,OAAO;mBACjCC,EAAAA,QAAQC,KAAK;EAGnBC,EAAgBlB,EAAAA,QAAOC,GAAG;;6BAEVM;;;;;cAKfL,EAAAA,UAAU,gBAAgBA,EAAAA,UAAUC,SAASC,YAAkB;EAEhEe,EAAWnB,EAAAA,QAAOC,GAAG;;;;;;EAQrBmB,EAAWpB,EAAAA,QAAOC,GAAuB;;;;kBAIpCG,EAAAA,UAAU;WAChBiB,GAAUA,EAAMC;;;;;;;;iBAQXV,EAAAA,WAAW;kBACVA,EAAAA,WAAW;yBACJP,EAAAA,UAAgB;sBACnBD,EAAAA,UAAU;;;EAKnBmB,EAAavB,EAAAA,QAAOC,GAAG;;;;oBAIhBC,EAAAA,UAAU,gBAAgBA,EAAAA,UAAUC;UAC9CC,EAAAA,UAAkB;;;;"}
1
+ {"version":3,"file":"schedule-week-view.styles.js","sources":["../../../../src/schedule/schedule-week-view/schedule-week-view.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Border, Colour, Font, Radius, Spacing } from \"../../theme\";\nimport { HEADER_HEIGHT, TIME_INDICATOR_WIDTH } from \"../const\";\n\n// =============================================================================\n// STYLING\n// =============================================================================\nexport const tokens = {\n timeline: {\n top: \"--fds-internal-scheduleWeekView-timeline-top\",\n },\n};\n\nexport const loadingContainer = css`\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 25rem;\n height: 100%;\n border: ${Border[\"width-010\"]} ${Border.solid} ${Colour[\"border\"]};\n border-radius: ${Radius[\"md\"]};\n background: ${Colour[\"bg\"]};\n`;\n\nexport const headerContainer = css`\n display: grid;\n grid-template-columns: ${TIME_INDICATOR_WIDTH}px repeat(7, 1fr);\n max-height: ${HEADER_HEIGHT}px;\n`;\n\nexport const blankCell = css`\n min-width: ${TIME_INDICATOR_WIDTH}px;\n position: sticky;\n z-index: 2;\n`;\n\nexport const serviceContainer = css`\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n grid-column-start: 2;\n grid-column-end: 9;\n`;\n\nexport const serviceHeader = css`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n padding: ${Spacing[\"spacing-24\"]};\n color: ${Colour[\"text-primary\"]};\n`;\n\nexport const description = css`\n font-weight: ${Font.Spec[\"weight-semibold\"]};\n`;\n\nexport const bodyContainer = css`\n display: grid;\n grid-template-columns: ${TIME_INDICATOR_WIDTH}px repeat(7, 1fr);\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n height: 100%;\n border: ${Border[\"width-010\"]} ${Border.solid} ${Colour[\"border\"]};\n`;\nexport const slotGrid = css`\n grid-column-start: 2;\n grid-column-end: 9;\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n min-width: max-content;\n`;\n\nexport const timeline = css`\n ${tokens.timeline.top}: 0px;\n position: absolute;\n width: 100%;\n height: 2px;\n background: ${Colour[\"icon-primary\"]};\n top: var(${tokens.timeline.top});\n z-index: 2;\n\n &::before {\n content: \"\";\n position: absolute;\n left: -6px;\n top: -6px;\n width: ${Spacing[\"spacing-12\"]};\n height: ${Spacing[\"spacing-12\"]};\n border-radius: ${Radius[\"full\"]};\n background: ${Colour[\"icon-primary\"]};\n z-index: 1;\n }\n`;\n\nexport const slotColumn = css`\n display: flex;\n position: relative;\n flex-direction: column;\n border-right: ${Border[\"width-010\"]} ${Border.solid} ${Colour[\"border\"]};\n &:last-child {\n border-right: none;\n }\n`;\n"],"names":["timeline","top"],"mappings":"4HA+BsB,iCA0BI,+BAJF,kCA5BI,oCAXC,mCAuBA,gCAOH,8BAoDH,2BA9BF,4BAQA,yBAlEC,CAClBA,SAAU,CACNC,IAAK"}
@@ -0,0 +1,10 @@
1
+ .lmprb8g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:25rem;height:100%;border:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);border-radius:var(--fds-radius-md);background:var(--fds-colour-bg);}
2
+ .h1595692{display:-ms-grid;display:grid;-ms-grid-columns:42px repeat(7, 1fr);grid-template-columns:42px repeat(7, 1fr);max-height:130px;}
3
+ .b155xk04{min-width:42px;position:-webkit-sticky;position:sticky;z-index:2;}
4
+ .snwncax{display:-ms-grid;display:grid;-ms-grid-columns:repeat(7, 1fr);grid-template-columns:repeat(7, 1fr);-ms-grid-column:2;grid-column-start:2;-ms-grid-row-span:7;grid-column-end:9;}
5
+ .s1u9fy4o{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;padding:var(--fds-spacing-24);color:var(--fds-colour-text-primary);}
6
+ .dmchg65{font-weight:var(--fds-font-weight-semibold);}
7
+ .b16u8uwa{display:-ms-grid;display:grid;-ms-grid-columns:42px repeat(7, 1fr);grid-template-columns:42px repeat(7, 1fr);overflow-x:hidden;overflow-y:auto;-webkit-flex:1;-ms-flex:1;flex:1;height:100%;border:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);}
8
+ .s1w10b64{-ms-grid-column:2;grid-column-start:2;-ms-grid-row-span:7;grid-column-end:9;display:-ms-grid;display:grid;-ms-grid-columns:repeat(7, 1fr);grid-template-columns:repeat(7, 1fr);min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content;}
9
+ .tbbbluc{--fds-internal-scheduleWeekView-timeline-top:0px;position:absolute;width:100%;height:2px;background:var(--fds-colour-icon-primary);top:var(--fds-internal-scheduleWeekView-timeline-top);z-index:2;}.tbbbluc::before{content:"";position:absolute;left:-6px;top:-6px;width:var(--fds-spacing-12);height:var(--fds-spacing-12);border-radius:var(--fds-radius-full);background:var(--fds-colour-icon-primary);z-index:1;}
10
+ .sej7vmd{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;border-right:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);}.sej7vmd:last-child{border-right:none;}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("../../util/time-helper.js");require("react");var i=require("../shared/utils.js"),r=require("../shared/with-optional-popover.js"),n=require("./slot-content.js"),l=require("./time-cell.styles.js"),s=require("./week-view-utils.js");exports.TimeCell=({dayDate:o,time:d,serviceData:a,slotLayoutMap:m,containerRef:u,blockedMessage:c,onClickHiddenSlots:h})=>{const v=t.TimeHelper.timeToMinutes(d),T=i.minutesToTime(v+30),p=s.getSlotsStartingInTimeCell(a,o,d,T),S=s.getSlotsInTimeCell(a,o,d,T),g=s.getMinimumWidthForCell(S,m),f=S.filter((e=>{const t=e.id,i=m[t];return(null==i?void 0:i.visible)||!1})),j=S.filter((e=>{const t=e.id,i=m[t];return!(null==i?void 0:i.visible)})),C=(()=>{const e=t.TimeHelper.timeToMinutes(d),r={start:i.minutesToTime(e),end:i.minutesToTime(e+15)},n={start:i.minutesToTime(e+15),end:i.minutesToTime(e+30)},l=j.filter((i=>{const r=t.TimeHelper.timeToMinutes(i.startTime),n=t.TimeHelper.timeToMinutes(i.endTime);return r<e+15&&n>e})),s=j.filter((i=>{const r=t.TimeHelper.timeToMinutes(i.startTime),n=t.TimeHelper.timeToMinutes(i.endTime);return r<e+30&&n>e+15})),o=Array.from(new Set(l.map((e=>e.serviceName)))),a=Array.from(new Set(s.map((e=>e.serviceName))));return!(o.length!==a.length||!o.every((e=>a.includes(e))))&&o.length>0?[{interval:{start:r.start,end:n.end},hiddenSlots:j,hiddenServices:o}]:[{interval:r,hiddenSlots:l,hiddenServices:o},{interval:n,hiddenSlots:s,hiddenServices:a}].filter((e=>e.hiddenServices.length>0))})(),M=s.calculateCellServiceLayout(f,j),$=g;return e.jsxs(l.SlotCell,{$dashed:d.endsWith(":00"),children:[M.visibleServices.map(((t,s)=>{const o=p.filter((e=>{const i=e.id,r=m[i];return e.serviceName===t&&(null==r?void 0:r.visible)})),a=s*$;return e.jsx(l.SlotColumnOverlay,{$actualWidthPercentage:$,$leftPosition:a,children:o.map(((t,l)=>((t,l,s)=>{const o={slot:t,column:s,offsetTop:i.calculateSlotOffset(t.startTime,d)};return e.jsx(r.WithOptionalPopover,{containerRef:u,customPopover:t.customPopover,children:e.jsx(n.SlotContent,{positionedSlot:o,blockedMessage:c})},`${t.id||l}-${l}`)})(t,l,s)))},t)})),C.length>0&&(0===C.length?null:e.jsx(l.SlotColumnOverlay,{$actualWidthPercentage:$,$leftPosition:3*$,children:C.map((t=>e.jsxs(l.HiddenColumns,{$heightPercentage:100/C.length,onClick:()=>{null==h||h(t.hiddenServices)},children:["+",t.hiddenServices.length]},`hidden-btn-${t.interval.start}-${t.interval.end}`)))},"hidden-slots-column"))]},d)};
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("clsx"),i=require("react");require("../../theme/theme-provider/index.js"),require("../../theme/theme-provider/context.js"),require("../../theme/tokens/border.js"),require("../../theme/tokens/colour.js"),require("../../theme/tokens/font.js"),require("../../theme/tokens/media-query.js");var n=require("../../theme/utils/use-apply-styles.js");require("../../theme/utils/use-media-query.js");var l=require("../../util/time-helper.js"),s=require("../shared/utils.js"),r=require("../schedule-slot-content/schedule-slot-content.js"),o=require("../shared/with-optional-popover.js"),a=require("./time-cell.styles.js"),c=require("./week-view-utils.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=u(t);const m=({actualWidthPercentage:t,leftPosition:l,children:s})=>{const r=i.useRef(null);return n.useApplyStyle(r,{[a.tokens.slotColumnOverlay.leftPosition]:`${l}`,[a.tokens.slotColumnOverlay.actualWidthPercentage]:`${t}`}),e.jsx("div",{className:a.slotColumnOverlay,ref:r,children:s})},h=({heightPercentage:t,onClick:l,children:s})=>{const r=i.useRef(null);return n.useApplyStyle(r,{[a.tokens.hiddenColumns.minHeight]:`${t}%`,[a.tokens.hiddenColumns.height]:`${t}%`}),e.jsx("button",{className:a.hiddenColumns,ref:r,onClick:l,type:"button",children:s})};exports.TimeCell=({dayDate:t,time:i,serviceData:n,slotLayoutMap:u,containerRef:v,blockedMessage:p,onClickHiddenSlots:T})=>{const C=l.TimeHelper.timeToMinutes(i),f=s.minutesToTime(C+30),j=c.getSlotsStartingInTimeCell(n,t,i,f),g=c.getSlotsInTimeCell(n,t,i,f),k=c.getMinimumWidthForCell(g,u),S=g.filter((e=>{const t=e.id,i=u[t];return(null==i?void 0:i.visible)||!1})),y=g.filter((e=>{const t=e.id,i=u[t];return!(null==i?void 0:i.visible)})),q=(e,t)=>y.filter((i=>{const n=l.TimeHelper.timeToMinutes(i.startTime),s=l.TimeHelper.timeToMinutes(i.endTime);return n<t&&s>e})),b=e=>Array.from(new Set(e.map((e=>e.serviceName)))),x=(()=>{const e=l.TimeHelper.timeToMinutes(i),t={start:s.minutesToTime(e),end:s.minutesToTime(e+15)},n={start:s.minutesToTime(e+15),end:s.minutesToTime(e+30)},r=q(e,e+15),o=q(e+15,e+30),a=b(r),c=b(o);return!(a.length!==c.length||!a.every((e=>c.includes(e))))&&a.length>0?[{interval:{start:t.start,end:n.end},hiddenSlots:y,hiddenServices:a}]:[{interval:t,hiddenSlots:r,hiddenServices:a},{interval:n,hiddenSlots:o,hiddenServices:c}].filter((e=>e.hiddenServices.length>0))})(),P=c.calculateCellServiceLayout(S,y),N=k;return e.jsxs("div",{className:d.default(a.slotCell,i.endsWith(":00")&&a.slotCellDashed),children:[P.visibleServices.map(((t,n)=>{const c=j.filter((e=>{const i=e.id,n=u[i];return e.serviceName===t&&(null==n?void 0:n.visible)})),d=n*N;return e.jsx(m,{actualWidthPercentage:N,leftPosition:d,children:c.map(((t,n)=>((t,n)=>{const c=s.calculateSlotOffset(t.startTime,i),u=l.TimeHelper.calculateDuration(t.startTime,t.endTime);return e.jsx(o.WithOptionalPopover,{containerRef:v,customPopover:t.customPopover,children:e.jsxs(r.ScheduleSlotContent,{slot:t,offsetTop:c,tokens:a.tokens.slotContentContainer,classNames:{container:a.slotContentContainer,blocked:a.slotContentContainerBlocked,available:a.slotContentContainerAvailable},clickable:!!t.onClick,children:[e.jsx("span",{className:a.slotServiceName,children:t.serviceName}),u>=30&&e.jsx("span",{className:a.slotAvailability,children:"blocked"===t.status?p:`${t.booked} / ${t.capacity}`})]})},`${t.id||n}-${n}`)})(t,n)))},t)})),x.length>0&&(0===x.length?null:e.jsx(m,{actualWidthPercentage:N,leftPosition:3*N,children:x.map((t=>e.jsxs(h,{heightPercentage:100/x.length,onClick:()=>{null==T||T(t.hiddenServices)},children:["+",t.hiddenServices.length]},`hidden-btn-${t.interval.start}-${t.interval.end}`)))},"hidden-slots-column"))]},i)};
2
2
  //# sourceMappingURL=time-cell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"time-cell.js","sources":["../../../../src/schedule/schedule-week-view/time-cell.tsx"],"sourcesContent":["import type { RefObject } from \"react\";\nimport type React from \"react\";\n\nimport { TimeHelper } from \"../../util/time-helper\";\nimport { calculateSlotOffset, minutesToTime } from \"../shared\";\nimport { WithOptionalPopover } from \"../shared/with-optional-popover\";\nimport type { ScheduleEntityProps } from \"../types\";\nimport { SlotContent } from \"./slot-content\";\nimport { HiddenColumns, SlotCell, SlotColumnOverlay } from \"./time-cell.styles\";\nimport type { SlotLayoutMap, SlotWithService } from \"./types\";\nimport {\n calculateCellServiceLayout,\n getMinimumWidthForCell,\n getSlotsInTimeCell,\n getSlotsStartingInTimeCell,\n} from \"./week-view-utils\";\n\ninterface TimeCellProps {\n dayDate: string;\n time: string;\n serviceData: ScheduleEntityProps[];\n slotLayoutMap: SlotLayoutMap;\n containerRef: RefObject<HTMLDivElement>;\n blockedMessage?: string;\n onClickHiddenSlots?: (hiddenServices: string[]) => void;\n}\n\nexport const TimeCell: React.FC<TimeCellProps> = ({\n dayDate,\n time,\n serviceData,\n slotLayoutMap,\n containerRef,\n blockedMessage,\n onClickHiddenSlots,\n}) => {\n // =============================================================================\n // COMPUTED VALUES\n // =============================================================================\n const timeMinutes = TimeHelper.timeToMinutes(time);\n const nextTime = minutesToTime(timeMinutes + 30);\n\n const slotsStartingInCell = getSlotsStartingInTimeCell(\n serviceData,\n dayDate,\n time,\n nextTime\n );\n\n const slotsInCell = getSlotsInTimeCell(\n serviceData,\n dayDate,\n time,\n nextTime\n );\n\n const minimumWidthForCell = getMinimumWidthForCell(\n slotsInCell,\n slotLayoutMap\n );\n\n // =============================================================================\n // SLOT FILTERING\n // =============================================================================\n // Filter slots based on visibility from slotLayoutMap\n const visibleOverlappingSlots = slotsInCell.filter((slot) => {\n const slotKey = slot.id;\n const slotLayout = slotLayoutMap[slotKey];\n return slotLayout?.visible || false;\n });\n\n const hiddenOverlappingSlots = slotsInCell.filter((slot) => {\n const slotKey = slot.id;\n const slotLayout = slotLayoutMap[slotKey];\n return !slotLayout?.visible;\n });\n\n // =============================================================================\n // HELPER FUNCTIONS\n // =============================================================================\n // Calculate 15-minute intervals within this 30-minute cell\n const calculateHiddenSlotsFor15MinIntervals = () => {\n const timeMinutes = TimeHelper.timeToMinutes(time);\n const firstInterval = {\n start: minutesToTime(timeMinutes),\n end: minutesToTime(timeMinutes + 15),\n };\n const secondInterval = {\n start: minutesToTime(timeMinutes + 15),\n end: minutesToTime(timeMinutes + 30),\n };\n\n // Get hidden slots for first 15-minute interval\n const hiddenSlotsFirstInterval = hiddenOverlappingSlots.filter(\n (slot) => {\n const slotStartMinutes = TimeHelper.timeToMinutes(\n slot.startTime\n );\n const slotEndMinutes = TimeHelper.timeToMinutes(slot.endTime);\n // Slot overlaps with first 15-minute interval\n return (\n slotStartMinutes < timeMinutes + 15 &&\n slotEndMinutes > timeMinutes\n );\n }\n );\n\n // Get hidden slots for second 15-minute interval\n const hiddenSlotsSecondInterval = hiddenOverlappingSlots.filter(\n (slot) => {\n const slotStartMinutes = TimeHelper.timeToMinutes(\n slot.startTime\n );\n const slotEndMinutes = TimeHelper.timeToMinutes(slot.endTime);\n // Slot overlaps with second 15-minute interval\n return (\n slotStartMinutes < timeMinutes + 30 &&\n slotEndMinutes > timeMinutes + 15\n );\n }\n );\n\n const firstIntervalServices = Array.from(\n new Set(hiddenSlotsFirstInterval.map((slot) => slot.serviceName))\n );\n const secondIntervalServices = Array.from(\n new Set(hiddenSlotsSecondInterval.map((slot) => slot.serviceName))\n );\n\n // Check if the services are different between intervals\n const servicesAreDifferent =\n firstIntervalServices.length !== secondIntervalServices.length ||\n !firstIntervalServices.every((service) =>\n secondIntervalServices.includes(service)\n );\n\n // If services are the same for both intervals, show only one button for the whole cell\n if (!servicesAreDifferent && firstIntervalServices.length > 0) {\n return [\n {\n interval: {\n start: firstInterval.start,\n end: secondInterval.end,\n },\n hiddenSlots: hiddenOverlappingSlots,\n hiddenServices: firstIntervalServices,\n },\n ];\n }\n\n // Otherwise, show separate buttons for each interval that has hidden services\n return [\n {\n interval: firstInterval,\n hiddenSlots: hiddenSlotsFirstInterval,\n hiddenServices: firstIntervalServices,\n },\n {\n interval: secondInterval,\n hiddenSlots: hiddenSlotsSecondInterval,\n hiddenServices: secondIntervalServices,\n },\n ].filter((intervalData) => intervalData.hiddenServices.length > 0);\n };\n\n const hiddenIntervals = calculateHiddenSlotsFor15MinIntervals();\n\n const cellServiceLayout = calculateCellServiceLayout(\n visibleOverlappingSlots,\n hiddenOverlappingSlots\n );\n\n const actualWidthPercentage = minimumWidthForCell;\n\n // =============================================================================\n // RENDER FUNCTIONS\n // =============================================================================\n const renderSlotWithPopover = (\n slot: SlotWithService,\n slotIndex: number,\n serviceIndex: number\n ) => {\n const offsetTop = calculateSlotOffset(slot.startTime, time);\n const positionedSlot = {\n slot,\n column: serviceIndex,\n offsetTop,\n };\n\n return (\n <WithOptionalPopover\n key={`${slot.id || slotIndex}-${slotIndex}`}\n containerRef={containerRef}\n customPopover={slot.customPopover}\n >\n <SlotContent\n positionedSlot={positionedSlot}\n blockedMessage={blockedMessage}\n />\n </WithOptionalPopover>\n );\n };\n\n const renderHiddenSlots = () => {\n if (hiddenIntervals.length === 0) return null;\n\n return (\n <SlotColumnOverlay\n key=\"hidden-slots-column\"\n $actualWidthPercentage={actualWidthPercentage}\n $leftPosition={3 * actualWidthPercentage}\n >\n {hiddenIntervals.map((intervalData) => (\n <HiddenColumns\n key={`hidden-btn-${intervalData.interval.start}-${intervalData.interval.end}`}\n $heightPercentage={100 / hiddenIntervals.length}\n onClick={() => {\n onClickHiddenSlots?.(intervalData.hiddenServices);\n }}\n >\n +{intervalData.hiddenServices.length}\n </HiddenColumns>\n ))}\n </SlotColumnOverlay>\n );\n };\n\n return (\n <SlotCell key={time} $dashed={time.endsWith(\":00\")}>\n {cellServiceLayout.visibleServices.map(\n (serviceName, serviceIndex) => {\n const serviceSlots = slotsStartingInCell.filter((slot) => {\n const slotKey = slot.id;\n const slotLayout = slotLayoutMap[slotKey];\n return (\n slot.serviceName === serviceName &&\n slotLayout?.visible\n );\n });\n\n const leftPosition = serviceIndex * actualWidthPercentage;\n\n return (\n <SlotColumnOverlay\n key={serviceName}\n $actualWidthPercentage={actualWidthPercentage}\n $leftPosition={leftPosition}\n >\n {serviceSlots.map((slot, slotIndex) =>\n renderSlotWithPopover(\n slot,\n slotIndex,\n serviceIndex\n )\n )}\n </SlotColumnOverlay>\n );\n }\n )}\n {hiddenIntervals.length > 0 && renderHiddenSlots()}\n </SlotCell>\n );\n};\n"],"names":["dayDate","time","serviceData","slotLayoutMap","containerRef","blockedMessage","onClickHiddenSlots","timeMinutes","TimeHelper","timeToMinutes","nextTime","minutesToTime","slotsStartingInCell","getSlotsStartingInTimeCell","slotsInCell","getSlotsInTimeCell","minimumWidthForCell","getMinimumWidthForCell","visibleOverlappingSlots","filter","slot","slotKey","id","slotLayout","visible","hiddenOverlappingSlots","hiddenIntervals","firstInterval","start","end","secondInterval","hiddenSlotsFirstInterval","slotStartMinutes","startTime","slotEndMinutes","endTime","hiddenSlotsSecondInterval","firstIntervalServices","Array","from","Set","map","serviceName","secondIntervalServices","length","every","service","includes","interval","hiddenSlots","hiddenServices","intervalData","calculateHiddenSlotsFor15MinIntervals","cellServiceLayout","calculateCellServiceLayout","actualWidthPercentage","_jsxs","SlotCell","$dashed","endsWith","children","visibleServices","serviceIndex","serviceSlots","leftPosition","_jsx","SlotColumnOverlay","$actualWidthPercentage","$leftPosition","slotIndex","positionedSlot","column","offsetTop","calculateSlotOffset","WithOptionalPopover","customPopover","SlotContent","renderSlotWithPopover","HiddenColumns","onClick"],"mappings":"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"}
1
+ {"version":3,"file":"time-cell.js","sources":["../../../../src/schedule/schedule-week-view/time-cell.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport type { RefObject } from \"react\";\nimport type React from \"react\";\nimport { useRef } from \"react\";\n\nimport { useApplyStyle } from \"../../theme\";\nimport { TimeHelper } from \"../../util/time-helper\";\nimport { calculateSlotOffset, minutesToTime } from \"../schedule-slot-content\";\nimport { ScheduleSlotContent } from \"../schedule-slot-content/schedule-slot-content\";\nimport { WithOptionalPopover } from \"../shared/with-optional-popover\";\nimport type { ScheduleEntityProps } from \"../types\";\nimport * as styles from \"./time-cell.styles\";\nimport type { SlotLayoutMap, SlotWithService } from \"./types\";\nimport {\n calculateCellServiceLayout,\n getMinimumWidthForCell,\n getSlotsInTimeCell,\n getSlotsStartingInTimeCell,\n} from \"./week-view-utils\";\n\ninterface TimeCellProps {\n dayDate: string;\n time: string;\n serviceData: ScheduleEntityProps[];\n slotLayoutMap: SlotLayoutMap;\n containerRef: RefObject<HTMLDivElement>;\n blockedMessage?: string;\n onClickHiddenSlots?: (hiddenServices: string[]) => void;\n}\n\ninterface SlotOverlayProps {\n actualWidthPercentage: number;\n leftPosition: number;\n children: React.ReactNode;\n}\n\nconst SlotOverlay = ({\n actualWidthPercentage,\n leftPosition,\n children,\n}: SlotOverlayProps) => {\n const overlayRef = useRef<HTMLDivElement>(null);\n\n useApplyStyle(overlayRef, {\n [styles.tokens.slotColumnOverlay.leftPosition]: `${leftPosition}`,\n [styles.tokens.slotColumnOverlay\n .actualWidthPercentage]: `${actualWidthPercentage}`,\n });\n\n return (\n <div className={styles.slotColumnOverlay} ref={overlayRef}>\n {children}\n </div>\n );\n};\n\ninterface HiddenColumnsButtonProps {\n heightPercentage: number;\n onClick: () => void;\n children: React.ReactNode;\n}\n\nconst HiddenColumnsButton = ({\n heightPercentage,\n onClick,\n children,\n}: HiddenColumnsButtonProps) => {\n const hiddenColumnsRef = useRef<HTMLButtonElement>(null);\n\n useApplyStyle(hiddenColumnsRef, {\n [styles.tokens.hiddenColumns.minHeight]: `${heightPercentage}%`,\n [styles.tokens.hiddenColumns.height]: `${heightPercentage}%`,\n });\n\n return (\n <button\n className={styles.hiddenColumns}\n ref={hiddenColumnsRef}\n onClick={onClick}\n type=\"button\"\n >\n {children}\n </button>\n );\n};\n\nexport const TimeCell: React.FC<TimeCellProps> = ({\n dayDate,\n time,\n serviceData,\n slotLayoutMap,\n containerRef,\n blockedMessage,\n onClickHiddenSlots,\n}) => {\n // =============================================================================\n // COMPUTED VALUES\n // =============================================================================\n const timeMinutes = TimeHelper.timeToMinutes(time);\n const nextTime = minutesToTime(timeMinutes + 30);\n\n const slotsStartingInCell = getSlotsStartingInTimeCell(\n serviceData,\n dayDate,\n time,\n nextTime\n );\n\n const slotsInCell = getSlotsInTimeCell(\n serviceData,\n dayDate,\n time,\n nextTime\n );\n\n const minimumWidthForCell = getMinimumWidthForCell(\n slotsInCell,\n slotLayoutMap\n );\n\n // =============================================================================\n // SLOT FILTERING\n // =============================================================================\n // Filter slots based on visibility from slotLayoutMap\n const visibleOverlappingSlots = slotsInCell.filter((slot) => {\n const slotKey = slot.id;\n const slotLayout = slotLayoutMap[slotKey];\n return slotLayout?.visible || false;\n });\n\n const hiddenOverlappingSlots = slotsInCell.filter((slot) => {\n const slotKey = slot.id;\n const slotLayout = slotLayoutMap[slotKey];\n return !slotLayout?.visible;\n });\n\n // =============================================================================\n // HELPER FUNCTIONS\n // =============================================================================\n const getHiddenSlotsInRange = (rangeStart: number, rangeEnd: number) => {\n return hiddenOverlappingSlots.filter((slot) => {\n const slotStartMinutes = TimeHelper.timeToMinutes(slot.startTime);\n const slotEndMinutes = TimeHelper.timeToMinutes(slot.endTime);\n\n return slotStartMinutes < rangeEnd && slotEndMinutes > rangeStart;\n });\n };\n\n const getHiddenServices = (slots: SlotWithService[]) => {\n return Array.from(new Set(slots.map((slot) => slot.serviceName)));\n };\n\n // Calculate 15-minute intervals within this 30-minute cell\n const calculateHiddenSlotsFor15MinIntervals = () => {\n const timeMinutes = TimeHelper.timeToMinutes(time);\n const firstInterval = {\n start: minutesToTime(timeMinutes),\n end: minutesToTime(timeMinutes + 15),\n };\n const secondInterval = {\n start: minutesToTime(timeMinutes + 15),\n end: minutesToTime(timeMinutes + 30),\n };\n\n // Get hidden slots for first 15-minute interval\n const hiddenSlotsFirstInterval = getHiddenSlotsInRange(\n // Slot overlaps with first 15-minute interval\n timeMinutes,\n timeMinutes + 15\n );\n // Get hidden slots for second 15-minute interval\n const hiddenSlotsSecondInterval = getHiddenSlotsInRange(\n // Slot overlaps with second 15-minute interval\n timeMinutes + 15,\n timeMinutes + 30\n );\n\n const firstIntervalServices = getHiddenServices(\n hiddenSlotsFirstInterval\n );\n const secondIntervalServices = getHiddenServices(\n hiddenSlotsSecondInterval\n );\n\n // Check if the services are different between intervals\n const servicesAreDifferent =\n firstIntervalServices.length !== secondIntervalServices.length ||\n !firstIntervalServices.every((service) =>\n secondIntervalServices.includes(service)\n );\n\n // If services are the same for both intervals, show only one button for the whole cell\n if (!servicesAreDifferent && firstIntervalServices.length > 0) {\n return [\n {\n interval: {\n start: firstInterval.start,\n end: secondInterval.end,\n },\n hiddenSlots: hiddenOverlappingSlots,\n hiddenServices: firstIntervalServices,\n },\n ];\n }\n\n // Otherwise, show separate buttons for each interval that has hidden services\n return [\n {\n interval: firstInterval,\n hiddenSlots: hiddenSlotsFirstInterval,\n hiddenServices: firstIntervalServices,\n },\n {\n interval: secondInterval,\n hiddenSlots: hiddenSlotsSecondInterval,\n hiddenServices: secondIntervalServices,\n },\n ].filter((intervalData) => intervalData.hiddenServices.length > 0);\n };\n\n const hiddenIntervals = calculateHiddenSlotsFor15MinIntervals();\n\n const cellServiceLayout = calculateCellServiceLayout(\n visibleOverlappingSlots,\n hiddenOverlappingSlots\n );\n\n const actualWidthPercentage = minimumWidthForCell;\n\n // =============================================================================\n // RENDER FUNCTIONS\n // =============================================================================\n const renderSlotWithPopover = (\n slot: SlotWithService,\n slotIndex: number\n ) => {\n const offsetTop = calculateSlotOffset(slot.startTime, time);\n const duration = TimeHelper.calculateDuration(\n slot.startTime,\n slot.endTime\n );\n\n return (\n <WithOptionalPopover\n key={`${slot.id || slotIndex}-${slotIndex}`}\n containerRef={containerRef}\n customPopover={slot.customPopover}\n >\n <ScheduleSlotContent\n slot={slot}\n offsetTop={offsetTop}\n tokens={styles.tokens.slotContentContainer}\n classNames={{\n container: styles.slotContentContainer,\n blocked: styles.slotContentContainerBlocked,\n available: styles.slotContentContainerAvailable,\n }}\n clickable={!!slot.onClick}\n >\n <span className={styles.slotServiceName}>\n {slot.serviceName}\n </span>\n {duration >= 30 && (\n <span className={styles.slotAvailability}>\n {slot.status === \"blocked\"\n ? blockedMessage\n : `${slot.booked} / ${slot.capacity}`}\n </span>\n )}\n </ScheduleSlotContent>\n </WithOptionalPopover>\n );\n };\n\n const renderHiddenSlots = () => {\n if (hiddenIntervals.length === 0) return null;\n\n return (\n <SlotOverlay\n key=\"hidden-slots-column\"\n actualWidthPercentage={actualWidthPercentage}\n leftPosition={3 * actualWidthPercentage}\n >\n {hiddenIntervals.map((intervalData) => (\n <HiddenColumnsButton\n key={`hidden-btn-${intervalData.interval.start}-${intervalData.interval.end}`}\n heightPercentage={100 / hiddenIntervals.length}\n onClick={() => {\n onClickHiddenSlots?.(intervalData.hiddenServices);\n }}\n >\n +{intervalData.hiddenServices.length}\n </HiddenColumnsButton>\n ))}\n </SlotOverlay>\n );\n };\n\n return (\n <div\n key={time}\n className={clsx(\n styles.slotCell,\n time.endsWith(\":00\") && styles.slotCellDashed\n )}\n >\n {cellServiceLayout.visibleServices.map(\n (serviceName, serviceIndex) => {\n const serviceSlots = slotsStartingInCell.filter((slot) => {\n const slotKey = slot.id;\n const slotLayout = slotLayoutMap[slotKey];\n return (\n slot.serviceName === serviceName &&\n slotLayout?.visible\n );\n });\n\n const leftPosition = serviceIndex * actualWidthPercentage;\n\n return (\n <SlotOverlay\n key={serviceName}\n actualWidthPercentage={actualWidthPercentage}\n leftPosition={leftPosition}\n >\n {serviceSlots.map((slot, slotIndex) =>\n renderSlotWithPopover(slot, slotIndex)\n )}\n </SlotOverlay>\n );\n }\n )}\n {hiddenIntervals.length > 0 && renderHiddenSlots()}\n </div>\n );\n};\n"],"names":["SlotOverlay","actualWidthPercentage","leftPosition","children","overlayRef","useRef","useApplyStyle","styles.tokens","slotColumnOverlay","_jsx","className","styles.slotColumnOverlay","ref","HiddenColumnsButton","heightPercentage","onClick","hiddenColumnsRef","hiddenColumns","minHeight","height","styles.hiddenColumns","type","dayDate","time","serviceData","slotLayoutMap","containerRef","blockedMessage","onClickHiddenSlots","timeMinutes","TimeHelper","timeToMinutes","nextTime","minutesToTime","slotsStartingInCell","getSlotsStartingInTimeCell","slotsInCell","getSlotsInTimeCell","minimumWidthForCell","getMinimumWidthForCell","visibleOverlappingSlots","filter","slot","slotKey","id","slotLayout","visible","hiddenOverlappingSlots","getHiddenSlotsInRange","rangeStart","rangeEnd","slotStartMinutes","startTime","slotEndMinutes","endTime","getHiddenServices","slots","Array","from","Set","map","serviceName","hiddenIntervals","firstInterval","start","end","secondInterval","hiddenSlotsFirstInterval","hiddenSlotsSecondInterval","firstIntervalServices","secondIntervalServices","length","every","service","includes","interval","hiddenSlots","hiddenServices","intervalData","calculateHiddenSlotsFor15MinIntervals","cellServiceLayout","calculateCellServiceLayout","_jsxs","clsx","styles.slotCell","endsWith","styles.slotCellDashed","visibleServices","serviceIndex","serviceSlots","slotIndex","offsetTop","calculateSlotOffset","duration","calculateDuration","WithOptionalPopover","customPopover","ScheduleSlotContent","tokens","slotContentContainer","classNames","container","styles.slotContentContainer","blocked","styles.slotContentContainerBlocked","available","styles.slotContentContainerAvailable","clickable","styles.slotServiceName","styles.slotAvailability","status","booked","capacity","renderSlotWithPopover"],"mappings":"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"}
@@ -1,35 +1,2 @@
1
- "use strict";var e=require("styled-components"),t=require("../../v3_theme/index.js"),o=require("../const.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(e);const n=i.default.div`
2
- min-height: ${o.CELL_HEIGHT}px;
3
- position: relative;
4
- border-bottom: ${t.V3_Border["width-010"]} solid ${t.V3_Colour.border};
5
- ${t=>t.$dashed&&e.css`
6
- border-bottom-style: dashed;
7
- `}
8
- cursor: pointer;
9
- `,s=i.default.div`
10
- position: absolute;
11
- top: 0;
12
- left: ${e=>`calc((100% - 14px) * ${e.$leftPosition} / 100)`};
13
- width: ${e=>`calc((100% - 14px) * ${e.$actualWidthPercentage} / 100)`};
14
- height: 100%;
15
- display: flex;
16
- flex-direction: column;
17
- overflow: visible;
18
- z-index: 1;
19
- `,l=i.default.button`
20
- background-color: unset;
21
- border: none;
22
- display: flex;
23
- align-items: center;
24
- justify-content: center;
25
- cursor: pointer;
26
- color: ${t.V3_Colour["text-primary"]};
27
- ${t.V3_Font["body-xs-semibold"]};
28
- min-height: ${e=>e.$heightPercentage?`${e.$heightPercentage}%`:`${o.CELL_HEIGHT}px`};
29
- height: ${e=>e.$heightPercentage?`${e.$heightPercentage}%`:"auto"};
30
- &:hover {
31
- border-radius: ${t.V3_Radius.sm};
32
- box-shadow: ${t.V3_Shadow["sm-subtle"]};
33
- }
34
- `;exports.HiddenColumns=l,exports.SlotCell=n,exports.SlotColumnOverlay=s;
1
+ "use strict";require("./time-cell.styles_1sorjz8.css");exports.hiddenColumns="h1h4fvzf",exports.slotAvailability="s1ndukd1",exports.slotCell="stpthki",exports.slotCellDashed="s16rvke",exports.slotColumnOverlay="s1dqpjs9",exports.slotContentContainer="s1o4jdyi",exports.slotContentContainerAvailable="s15inga4",exports.slotContentContainerBlocked="s25hl9",exports.slotServiceName="s14imce",exports.tokens={slotContentContainer:{height:"--fds-internal-scheduleWeekView-slotContentContainer-height",offsetTop:"--fds-internal-scheduleWeekView-slotContentContainer-offsetTop"},slotColumnOverlay:{leftPosition:"--fds-internal-scheduleWeekView-slotColumnOverlay-leftPosition",actualWidthPercentage:"--fds-internal-scheduleWeekView-slotColumnOverlay-actualWidthPercentage"},hiddenColumns:{minHeight:"--fds-internal-scheduleWeekView-hiddenColumns-minHeight",height:"--fds-internal-scheduleWeekView-hiddenColumns-height"}};
35
2
  //# sourceMappingURL=time-cell.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"time-cell.styles.js","sources":["../../../../src/schedule/schedule-week-view/time-cell.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport {\n V3_Border,\n V3_Colour,\n V3_Font,\n V3_Radius,\n V3_Shadow,\n} from \"../../v3_theme\";\nimport { CELL_HEIGHT } from \"../const\";\n\n// =============================================================================\n// STYLE INTERFACES\n// =============================================================================\ninterface SlotCellStyleProps {\n $dashed?: boolean;\n}\n\ninterface SlotColumnOverlayStyleProps {\n $actualWidthPercentage?: number;\n $leftPosition?: number;\n}\n\ninterface HiddenColumnsStyleProps {\n $heightPercentage?: number;\n}\n\n// =============================================================================\n// STYLING\n// =============================================================================\nexport const SlotCell = styled.div<SlotCellStyleProps>`\n min-height: ${CELL_HEIGHT}px;\n position: relative;\n border-bottom: ${V3_Border[\"width-010\"]} solid ${V3_Colour[\"border\"]};\n ${(props) =>\n props.$dashed &&\n css`\n border-bottom-style: dashed;\n `}\n cursor: pointer;\n`;\n\nexport const SlotColumnOverlay = styled.div<SlotColumnOverlayStyleProps>`\n position: absolute;\n top: 0;\n left: ${(props) => {\n return `calc((100% - 14px) * ${props.$leftPosition} / 100)`;\n }};\n width: ${(props) => {\n return `calc((100% - 14px) * ${props.$actualWidthPercentage} / 100)`;\n }};\n height: 100%;\n display: flex;\n flex-direction: column;\n overflow: visible;\n z-index: 1;\n`;\n\nexport const HiddenColumns = styled.button<HiddenColumnsStyleProps>`\n background-color: unset;\n border: none;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n color: ${V3_Colour[\"text-primary\"]};\n ${V3_Font[\"body-xs-semibold\"]};\n min-height: ${(props) =>\n props.$heightPercentage\n ? `${props.$heightPercentage}%`\n : `${CELL_HEIGHT}px`};\n height: ${(props) =>\n props.$heightPercentage ? `${props.$heightPercentage}%` : \"auto\"};\n &:hover {\n border-radius: ${V3_Radius[\"sm\"]};\n box-shadow: ${V3_Shadow[\"sm-subtle\"]};\n }\n`;\n"],"names":["SlotCell","styled","div","CELL_HEIGHT","V3_Border","V3_Colour","props","$dashed","css","SlotColumnOverlay","$leftPosition","$actualWidthPercentage","HiddenColumns","button","V3_Font","$heightPercentage","V3_Radius","V3_Shadow"],"mappings":"iMA8BO,MAAMA,EAAWC,EAAAA,QAAOC,GAAuB;kBACpCC;;qBAEGC,EAAAA,UAAU,sBAAsBC,EAAAA,UAAkB;MAChEC,GACCA,EAAMC,SACNC,KAAG;;;;EAMEC,EAAoBR,EAAAA,QAAOC,GAAgC;;;YAG3DI,GACE,wBAAwBA,EAAMI;aAE/BJ,GACC,wBAAwBA,EAAMK;;;;;;EAShCC,EAAgBX,EAAAA,QAAOY,MAA+B;;;;;;;aAOtDR,EAAAA,UAAU;MACjBS,EAAAA,QAAQ;kBACKR,GACXA,EAAMS,kBACA,GAAGT,EAAMS,qBACT,GAAGZ,EAAAA;cACFG,GACPA,EAAMS,kBAAoB,GAAGT,EAAMS,qBAAuB;;yBAEzCC,EAAAA,UAAc;sBACjBC,EAAAA,UAAU;;"}
1
+ {"version":3,"file":"time-cell.styles.js","sources":["../../../../src/schedule/schedule-week-view/time-cell.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Border, Colour, Font, Radius, Shadow } from \"../../theme\";\nimport { CELL_HEIGHT } from \"../const\";\n\n// =============================================================================\n// STYLING\n// =============================================================================\nexport const tokens = {\n slotContentContainer: {\n height: \"--fds-internal-scheduleWeekView-slotContentContainer-height\",\n offsetTop:\n \"--fds-internal-scheduleWeekView-slotContentContainer-offsetTop\",\n },\n slotColumnOverlay: {\n leftPosition:\n \"--fds-internal-scheduleWeekView-slotColumnOverlay-leftPosition\",\n actualWidthPercentage:\n \"--fds-internal-scheduleWeekView-slotColumnOverlay-actualWidthPercentage\",\n },\n hiddenColumns: {\n minHeight: \"--fds-internal-scheduleWeekView-hiddenColumns-minHeight\",\n height: \"--fds-internal-scheduleWeekView-hiddenColumns-height\",\n },\n};\n\nexport const slotContentContainer = css`\n ${tokens.slotContentContainer.height}: ${CELL_HEIGHT - 1}px;\n ${tokens.slotContentContainer.offsetTop}: 0px;\n\n overflow: hidden;\n width: calc(100% - 1px);\n padding: 4px;\n top: var(${tokens.slotContentContainer.offsetTop});\n ${Font[\"body-xs-semibold\"]};\n z-index: 1;\n height: var(${tokens.slotContentContainer.height});\n display: flex;\n flex-direction: column;\n position: absolute;\n border-radius: ${Radius[\"sm\"]};\n color: inherit;\n`;\n\nexport const slotContentContainerAvailable = css`\n border-left: ${Border[\"width-040\"]} solid ${Colour[\"icon-success\"]};\n`;\n\nexport const slotContentContainerBlocked = css`\n color: ${Colour[\"text-inverse\"]};\n`;\n\nexport const slotServiceName = css`\n ${Font[\"body-xs-regular\"]};\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n`;\n\nexport const slotAvailability = css`\n ${Font[\"body-xs-semibold\"]};\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n`;\n\nexport const slotCell = css`\n min-height: ${CELL_HEIGHT}px;\n position: relative;\n border-bottom: ${Border[\"width-010\"]} solid ${Colour[\"border\"]};\n cursor: pointer;\n`;\n\nexport const slotCellDashed = css`\n border-bottom-style: dashed;\n`;\n\nexport const slotColumnOverlay = css`\n ${tokens.slotColumnOverlay.leftPosition}: 0;\n ${tokens.slotColumnOverlay.actualWidthPercentage}: 100;\n position: absolute;\n top: 0;\n left: calc(\n (100% - 14px) * var(${tokens.slotColumnOverlay.leftPosition}) / 100\n );\n width: calc(\n (100% - 14px) * var(${tokens.slotColumnOverlay.actualWidthPercentage}) /\n 100\n );\n height: 100%;\n display: flex;\n flex-direction: column;\n overflow: visible;\n z-index: 1;\n`;\n\nexport const hiddenColumns = css`\n ${tokens.hiddenColumns.minHeight}: ${CELL_HEIGHT}px;\n ${tokens.hiddenColumns.height}: auto;\n background-color: unset;\n border: none;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n color: ${Colour[\"text-primary\"]};\n ${Font[\"body-xs-semibold\"]};\n min-height: var(${tokens.hiddenColumns.minHeight});\n height: var(${tokens.hiddenColumns.height});\n &:hover {\n border-radius: ${Radius[\"sm\"]};\n box-shadow: ${Shadow[\"sm-subtle\"]};\n }\n`;\n"],"names":["slotContentContainer","height","offsetTop","slotColumnOverlay","leftPosition","actualWidthPercentage","hiddenColumns","minHeight"],"mappings":"wHAkG0B,oCAtCG,4BAQR,iCAOM,oCAIG,wCArDG,iDAkBS,+CAIF,iCAIZ,yBA5CN,CAClBA,qBAAsB,CAClBC,OAAQ,8DACRC,UACI,kEAERC,kBAAmB,CACfC,aACI,iEACJC,sBACI,2EAERC,cAAe,CACXC,UAAW,0DACXN,OAAQ"}
@@ -0,0 +1,14 @@
1
+ .s1o4jdyi{--fds-internal-scheduleWeekView-slotContentContainer-height:47px;--fds-internal-scheduleWeekView-slotContentContainer-offsetTop:0px;overflow:hidden;width:calc(100% - 1px);padding:4px;top:var(--fds-internal-scheduleWeekView-slotContentContainer-offsetTop);font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-xs);font-weight:var(--fds-font-weight-semibold);line-height:var(--fds-font-body-lh-xs);letter-spacing:var(--fds-font-body-ls-xs);z-index:1;height:var(--fds-internal-scheduleWeekView-slotContentContainer-height);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:absolute;border-radius:var(--fds-radius-sm);color:inherit;}
2
+ .s15inga4{border-left:var(--fds-border-width-040) solid var(--fds-colour-icon-success);}
3
+ .s25hl9{color:var(--fds-colour-text-inverse);}
4
+ .s14imce{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-xs);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-xs);letter-spacing:var(--fds-font-body-ls-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;}
5
+ .s1ndukd1{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-xs);font-weight:var(--fds-font-weight-semibold);line-height:var(--fds-font-body-lh-xs);letter-spacing:var(--fds-font-body-ls-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;}
6
+ .stpthki{min-height:48px;position:relative;border-bottom:var(--fds-border-width-010) solid var(--fds-colour-border);cursor:pointer;}
7
+ .s16rvke{border-bottom-style:dashed;}
8
+ .s1dqpjs9{--fds-internal-scheduleWeekView-slotColumnOverlay-leftPosition:0;--fds-internal-scheduleWeekView-slotColumnOverlay-actualWidthPercentage:100;position:absolute;top:0;left:calc(
9
+ (100% - 14px) * var(--fds-internal-scheduleWeekView-slotColumnOverlay-leftPosition) / 100
10
+ );width:calc(
11
+ (100% - 14px) * var(--fds-internal-scheduleWeekView-slotColumnOverlay-actualWidthPercentage) /
12
+ 100
13
+ );height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:visible;z-index:1;}
14
+ .h1h4fvzf{--fds-internal-scheduleWeekView-hiddenColumns-minHeight:48px;--fds-internal-scheduleWeekView-hiddenColumns-height:auto;background-color:unset;border:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;cursor:pointer;color:var(--fds-colour-text-primary);font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-xs);font-weight:var(--fds-font-weight-semibold);line-height:var(--fds-font-body-lh-xs);letter-spacing:var(--fds-font-body-ls-xs);min-height:var(--fds-internal-scheduleWeekView-hiddenColumns-minHeight);height:var(--fds-internal-scheduleWeekView-hiddenColumns-height);}.h1h4fvzf:hover{border-radius:var(--fds-radius-sm);box-shadow:var(--fds-shadow-sm-subtle);}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../../util/time-helper.js");require("react");var t=require("../shared/utils.js");const s=(e,s,i,r)=>{const n=[];return e.forEach((e=>{if(e.slots){t.findSlotsInTimeRange(e.slots,i,r,s).forEach((t=>{n.push(Object.assign(Object.assign({},t),{serviceName:e.name}))}))}})),n};exports.calculateCellServiceLayout=(e,t)=>{const s=Array.from(new Set(e.map((e=>e.serviceName)))),i=Array.from(new Set(t.map((e=>e.serviceName))));return{allServices:[...s,...i],visibleServices:s,hiddenServices:i,totalServices:s.length+i.length,hasOverflow:i.length>0,totalColumns:i.length>0?4:s.length}},exports.calculateSlotWidths=(i,r,n)=>{const a={};return r.forEach((r=>{const c=r.format("YYYY-MM-DD");n.forEach((r=>{const n=e.TimeHelper.timeToMinutes(r),o=t.minutesToTime(n+30),l=s(i,c,r,o);l.forEach((e=>{const t=e.id;a[t]||(a[t]={date:c,serviceName:e.serviceName,startTime:e.startTime,endTime:e.endTime,visible:!0,width:100})}));const m=Array.from(new Set(l.map((e=>e.serviceName)))).slice(0,3);l.forEach((e=>{const t=e.id;m.includes(e.serviceName)||(a[t].visible=!1)}));const h=l.filter((e=>{const t=e.id;return a[t].visible})),u=new Set(h.map((e=>e.serviceName))).size,v=l.length>h.length?4:u,d=v>0?100/v:100;l.forEach((e=>{const t=e.id;a[t].width=Math.min(a[t].width,d)}))}))})),a},exports.getMinimumWidthForCell=(e,t)=>{let s=Number.MAX_SAFE_INTEGER;return e.forEach((e=>{const i=e.id,r=t[i];s=Math.min(s,r.width)})),s},exports.getSlotsInTimeCell=s,exports.getSlotsStartingInTimeCell=(e,s,i,r)=>{const n=[];return e.forEach((e=>{if(e.slots){t.findSlotsStartingInTimeRange(e.slots,i,r,s).forEach((t=>{n.push(Object.assign(Object.assign({},t),{serviceName:e.name}))}))}})),n};
1
+ "use strict";var e=require("../../util/time-helper.js");require("react");var r=require("../shared/utils.js");require("react/jsx-runtime"),require("clsx"),require("../../shared/time-slot/time-slot.js"),require("../../theme/theme-provider/index.js"),require("../../theme/theme-provider/context.js"),require("../../theme/tokens/border.js"),require("../../theme/tokens/colour.js"),require("../../theme/tokens/font.js"),require("../../theme/tokens/media-query.js"),require("../../util/calendar-helper.js"),require("../../external/dayjs/dayjs.min.js"),require("../../util/simple-id-generator.js"),require("../../util/string-helper.js"),require("@react-aria/live-announcer"),require("../../theme/utils/use-media-query.js");const t=(e,t,i,s)=>{const n=[];return e.forEach((e=>{if(e.slots){r.findSlotsInTimeRange(e.slots,i,s,t).forEach((r=>{n.push(Object.assign(Object.assign({},r),{serviceName:e.name}))}))}})),n};exports.calculateCellServiceLayout=(e,r)=>{const t=Array.from(new Set(e.map((e=>e.serviceName)))),i=Array.from(new Set(r.map((e=>e.serviceName))));return{allServices:[...t,...i],visibleServices:t,hiddenServices:i,totalServices:t.length+i.length,hasOverflow:i.length>0,totalColumns:i.length>0?4:t.length}},exports.calculateSlotWidths=(i,s,n)=>{const a={};return s.forEach((s=>{const o=s.format("YYYY-MM-DD");n.forEach((s=>{const n=e.TimeHelper.timeToMinutes(s),l=r.minutesToTime(n+30),c=t(i,o,s,l);c.forEach((e=>{const r=e.id;a[r]||(a[r]={date:o,serviceName:e.serviceName,startTime:e.startTime,endTime:e.endTime,visible:!0,width:100})}));const m=Array.from(new Set(c.map((e=>e.serviceName)))).slice(0,3);c.forEach((e=>{const r=e.id;m.includes(e.serviceName)||(a[r].visible=!1)}));const u=c.filter((e=>{const r=e.id;return a[r].visible})),h=new Set(u.map((e=>e.serviceName))).size,d=c.length>u.length?4:h,v=d>0?100/d:100;c.forEach((e=>{const r=e.id;a[r].width=Math.min(a[r].width,v)}))}))})),a},exports.getMinimumWidthForCell=(e,r)=>{let t=Number.MAX_SAFE_INTEGER;return e.forEach((e=>{const i=e.id,s=r[i];t=Math.min(t,s.width)})),t},exports.getSlotsInTimeCell=t,exports.getSlotsStartingInTimeCell=(e,t,i,s)=>{const n=[];return e.forEach((e=>{if(e.slots){r.findSlotsStartingInTimeRange(e.slots,i,s,t).forEach((r=>{n.push(Object.assign(Object.assign({},r),{serviceName:e.name}))}))}})),n};
2
2
  //# sourceMappingURL=week-view-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"week-view-utils.js","sources":["../../../../src/schedule/schedule-week-view/week-view-utils.ts"],"sourcesContent":["import type dayjs from \"dayjs\";\n\nimport { TimeHelper } from \"../../util/time-helper\";\nimport {\n findSlotsInTimeRange,\n findSlotsStartingInTimeRange,\n minutesToTime,\n} from \"../shared\";\nimport type { ScheduleEntityProps } from \"../types\";\nimport type { SlotLayoutMap, SlotWithService } from \"./types\";\n\n/**\n * Get all slots that START in a specific time cell\n */\nexport const getSlotsStartingInTimeCell = (\n serviceData: ScheduleEntityProps[],\n targetDate: string,\n cellStartTime: string,\n cellEndTime: string\n): SlotWithService[] => {\n const allSlots: SlotWithService[] = [];\n\n serviceData.forEach((service) => {\n if (service.slots) {\n const slotsInRange = findSlotsStartingInTimeRange(\n service.slots,\n cellStartTime,\n cellEndTime,\n targetDate\n );\n\n slotsInRange.forEach((slot) => {\n allSlots.push({\n ...slot,\n serviceName: service.name,\n });\n });\n }\n });\n\n return allSlots;\n};\n\n/**\n * Get all slots that OVERLAP with a specific time cell (for layout calculation)\n */\nexport const getSlotsInTimeCell = (\n serviceData: ScheduleEntityProps[],\n targetDate: string,\n cellStartTime: string,\n cellEndTime: string\n): SlotWithService[] => {\n const allSlots: SlotWithService[] = [];\n\n serviceData.forEach((service) => {\n if (service.slots) {\n const overlappingSlots = findSlotsInTimeRange(\n service.slots,\n cellStartTime,\n cellEndTime,\n targetDate\n );\n\n overlappingSlots.forEach((slot) => {\n allSlots.push({\n ...slot,\n serviceName: service.name,\n });\n });\n }\n });\n\n return allSlots;\n};\n\n/**\n * Calculate and update slot widths across all cells\n */\nexport const calculateSlotWidths = (\n serviceData: ScheduleEntityProps[],\n weekDays: dayjs.Dayjs[],\n timeSlots: string[]\n): SlotLayoutMap => {\n const slotLayoutMap: SlotLayoutMap = {};\n\n weekDays.forEach((day) => {\n const dayDate = day.format(\"YYYY-MM-DD\");\n timeSlots.forEach((time) => {\n const timeMinutes = TimeHelper.timeToMinutes(time);\n const nextTime = minutesToTime(timeMinutes + 30);\n const slotsInCell = getSlotsInTimeCell(\n serviceData,\n dayDate,\n time,\n nextTime\n );\n\n slotsInCell.forEach((slot) => {\n const slotKey = slot.id;\n if (!slotLayoutMap[slotKey]) {\n slotLayoutMap[slotKey] = {\n date: dayDate,\n serviceName: slot.serviceName,\n startTime: slot.startTime,\n endTime: slot.endTime,\n visible: true,\n width: 100,\n };\n }\n });\n\n const uniqueServices = Array.from(\n new Set(slotsInCell.map((slot) => slot.serviceName))\n );\n\n // Display at most 3 services, mark other slots as hidden\n const firstThreeServices = uniqueServices.slice(0, 3);\n slotsInCell.forEach((slot) => {\n const slotKey = slot.id;\n const isVisible = firstThreeServices.includes(slot.serviceName);\n if (!isVisible) {\n slotLayoutMap[slotKey].visible = false;\n }\n });\n\n // Calculate width based on visible services only\n const visibleSlots = slotsInCell.filter((slot) => {\n const slotKey = slot.id;\n return slotLayoutMap[slotKey].visible;\n });\n\n const visibleServices = new Set(\n visibleSlots.map((slot) => slot.serviceName)\n );\n const totalVisibleServices = visibleServices.size;\n const hasHiddenServices = slotsInCell.length > visibleSlots.length;\n const totalColumns = hasHiddenServices ? 4 : totalVisibleServices;\n const widthPercentage = totalColumns > 0 ? 100 / totalColumns : 100;\n\n // Update width for each slot in this cell (take minimum across all cells)\n slotsInCell.forEach((slot) => {\n const slotKey = slot.id;\n slotLayoutMap[slotKey].width = Math.min(\n slotLayoutMap[slotKey].width,\n widthPercentage\n );\n });\n });\n });\n\n return slotLayoutMap;\n};\n\n/**\n * Get minimum width for all slots overlapping a specific cell\n */\nexport const getMinimumWidthForCell = (\n slotsInCell: SlotWithService[],\n slotLayoutMap: SlotLayoutMap\n): number => {\n let minWidth = Number.MAX_SAFE_INTEGER;\n\n slotsInCell.forEach((slot) => {\n const slotKey = slot.id;\n const slotLayout = slotLayoutMap[slotKey];\n minWidth = Math.min(minWidth, slotLayout.width);\n });\n\n return minWidth;\n};\n\n/**\n * Calculate cell service layout information\n */\nexport const calculateCellServiceLayout = (\n visibleSlots: SlotWithService[],\n hiddenSlots: SlotWithService[]\n) => {\n const visibleServices = Array.from(\n new Set(visibleSlots.map((slot) => slot.serviceName))\n );\n const hiddenServices = Array.from(\n new Set(hiddenSlots.map((slot) => slot.serviceName))\n );\n\n return {\n allServices: [...visibleServices, ...hiddenServices],\n visibleServices,\n hiddenServices,\n totalServices: visibleServices.length + hiddenServices.length,\n hasOverflow: hiddenServices.length > 0,\n totalColumns: hiddenServices.length > 0 ? 4 : visibleServices.length,\n };\n};\n"],"names":["getSlotsInTimeCell","serviceData","targetDate","cellStartTime","cellEndTime","allSlots","forEach","service","slots","findSlotsInTimeRange","slot","push","Object","assign","serviceName","name","visibleSlots","hiddenSlots","visibleServices","Array","from","Set","map","hiddenServices","allServices","totalServices","length","hasOverflow","totalColumns","weekDays","timeSlots","slotLayoutMap","day","dayDate","format","time","timeMinutes","TimeHelper","timeToMinutes","nextTime","minutesToTime","slotsInCell","slotKey","id","date","startTime","endTime","visible","width","firstThreeServices","slice","includes","filter","totalVisibleServices","size","widthPercentage","Math","min","minWidth","Number","MAX_SAFE_INTEGER","slotLayout","findSlotsStartingInTimeRange"],"mappings":"6GAcO,MAgCMA,EAAqB,CAC9BC,EACAC,EACAC,EACAC,KAEA,MAAMC,EAA8B,GAoBpC,OAlBAJ,EAAYK,SAASC,IACjB,GAAIA,EAAQC,MAAO,CACUC,EAAAA,qBACrBF,EAAQC,MACRL,EACAC,EACAF,GAGaI,SAASI,IACtBL,EAASM,KAAIC,OAAAC,OAAAD,OAAAC,OAAA,GACNH,GAAI,CACPI,YAAaP,EAAQQ,OACvB,GAEV,KAGGV,CAAQ,qCAsGuB,CACtCW,EACAC,KAEA,MAAMC,EAAkBC,MAAMC,KAC1B,IAAIC,IAAIL,EAAaM,KAAKZ,GAASA,EAAKI,gBAEtCS,EAAiBJ,MAAMC,KACzB,IAAIC,IAAIJ,EAAYK,KAAKZ,GAASA,EAAKI,gBAG3C,MAAO,CACHU,YAAa,IAAIN,KAAoBK,GACrCL,kBACAK,iBACAE,cAAeP,EAAgBQ,OAASH,EAAeG,OACvDC,YAAaJ,EAAeG,OAAS,EACrCE,aAAcL,EAAeG,OAAS,EAAI,EAAIR,EAAgBQ,OACjE,8BAlH8B,CAC/BzB,EACA4B,EACAC,KAEA,MAAMC,EAA+B,CAAA,EAmErC,OAjEAF,EAASvB,SAAS0B,IACd,MAAMC,EAAUD,EAAIE,OAAO,cAC3BJ,EAAUxB,SAAS6B,IACf,MAAMC,EAAcC,EAAAA,WAAWC,cAAcH,GACvCI,EAAWC,EAAAA,cAAcJ,EAAc,IACvCK,EAAczC,EAChBC,EACAgC,EACAE,EACAI,GAGJE,EAAYnC,SAASI,IACjB,MAAMgC,EAAUhC,EAAKiC,GAChBZ,EAAcW,KACfX,EAAcW,GAAW,CACrBE,KAAMX,EACNnB,YAAaJ,EAAKI,YAClB+B,UAAWnC,EAAKmC,UAChBC,QAASpC,EAAKoC,QACdC,SAAS,EACTC,MAAO,KAEf,IAGJ,MAKMC,EALiB9B,MAAMC,KACzB,IAAIC,IAAIoB,EAAYnB,KAAKZ,GAASA,EAAKI,gBAIDoC,MAAM,EAAG,GACnDT,EAAYnC,SAASI,IACjB,MAAMgC,EAAUhC,EAAKiC,GACHM,EAAmBE,SAASzC,EAAKI,eAE/CiB,EAAcW,GAASK,SAAU,EACrC,IAIJ,MAAM/B,EAAeyB,EAAYW,QAAQ1C,IACrC,MAAMgC,EAAUhC,EAAKiC,GACrB,OAAOZ,EAAcW,GAASK,OAAO,IAMnCM,EAHkB,IAAIhC,IACxBL,EAAaM,KAAKZ,GAASA,EAAKI,eAESwC,KAEvC1B,EADoBa,EAAYf,OAASV,EAAaU,OACnB,EAAI2B,EACvCE,EAAkB3B,EAAe,EAAI,IAAMA,EAAe,IAGhEa,EAAYnC,SAASI,IACjB,MAAMgC,EAAUhC,EAAKiC,GACrBZ,EAAcW,GAASM,MAAQQ,KAAKC,IAChC1B,EAAcW,GAASM,MACvBO,EACH,GACH,GACJ,IAGCxB,CAAa,iCAMc,CAClCU,EACAV,KAEA,IAAI2B,EAAWC,OAAOC,iBAQtB,OANAnB,EAAYnC,SAASI,IACjB,MAAMgC,EAAUhC,EAAKiC,GACfkB,EAAa9B,EAAcW,GACjCgB,EAAWF,KAAKC,IAAIC,EAAUG,EAAWb,MAAM,IAG5CU,CAAQ,kEA1JuB,CACtCzD,EACAC,EACAC,EACAC,KAEA,MAAMC,EAA8B,GAoBpC,OAlBAJ,EAAYK,SAASC,IACjB,GAAIA,EAAQC,MAAO,CACMsD,EAAAA,6BACjBvD,EAAQC,MACRL,EACAC,EACAF,GAGSI,SAASI,IAClBL,EAASM,KAAIC,OAAAC,OAAAD,OAAAC,OAAA,GACNH,GAAI,CACPI,YAAaP,EAAQQ,OACvB,GAEV,KAGGV,CAAQ"}
1
+ {"version":3,"file":"week-view-utils.js","sources":["../../../../src/schedule/schedule-week-view/week-view-utils.ts"],"sourcesContent":["import type dayjs from \"dayjs\";\n\nimport { TimeHelper } from \"../../util/time-helper\";\nimport {\n findSlotsInTimeRange,\n findSlotsStartingInTimeRange,\n minutesToTime,\n} from \"../schedule-slot-content\";\nimport type { ScheduleEntityProps } from \"../types\";\nimport type { SlotLayoutMap, SlotWithService } from \"./types\";\n\n/**\n * Get all slots that START in a specific time cell\n */\nexport const getSlotsStartingInTimeCell = (\n serviceData: ScheduleEntityProps[],\n targetDate: string,\n cellStartTime: string,\n cellEndTime: string\n): SlotWithService[] => {\n const allSlots: SlotWithService[] = [];\n\n serviceData.forEach((service) => {\n if (service.slots) {\n const slotsInRange = findSlotsStartingInTimeRange(\n service.slots,\n cellStartTime,\n cellEndTime,\n targetDate\n );\n\n slotsInRange.forEach((slot) => {\n allSlots.push({\n ...slot,\n serviceName: service.name,\n });\n });\n }\n });\n\n return allSlots;\n};\n\n/**\n * Get all slots that OVERLAP with a specific time cell (for layout calculation)\n */\nexport const getSlotsInTimeCell = (\n serviceData: ScheduleEntityProps[],\n targetDate: string,\n cellStartTime: string,\n cellEndTime: string\n): SlotWithService[] => {\n const allSlots: SlotWithService[] = [];\n\n serviceData.forEach((service) => {\n if (service.slots) {\n const overlappingSlots = findSlotsInTimeRange(\n service.slots,\n cellStartTime,\n cellEndTime,\n targetDate\n );\n\n overlappingSlots.forEach((slot) => {\n allSlots.push({\n ...slot,\n serviceName: service.name,\n });\n });\n }\n });\n\n return allSlots;\n};\n\n/**\n * Calculate and update slot widths across all cells\n */\nexport const calculateSlotWidths = (\n serviceData: ScheduleEntityProps[],\n weekDays: dayjs.Dayjs[],\n timeSlots: string[]\n): SlotLayoutMap => {\n const slotLayoutMap: SlotLayoutMap = {};\n\n weekDays.forEach((day) => {\n const dayDate = day.format(\"YYYY-MM-DD\");\n timeSlots.forEach((time) => {\n const timeMinutes = TimeHelper.timeToMinutes(time);\n const nextTime = minutesToTime(timeMinutes + 30);\n const slotsInCell = getSlotsInTimeCell(\n serviceData,\n dayDate,\n time,\n nextTime\n );\n\n slotsInCell.forEach((slot) => {\n const slotKey = slot.id;\n if (!slotLayoutMap[slotKey]) {\n slotLayoutMap[slotKey] = {\n date: dayDate,\n serviceName: slot.serviceName,\n startTime: slot.startTime,\n endTime: slot.endTime,\n visible: true,\n width: 100,\n };\n }\n });\n\n const uniqueServices = Array.from(\n new Set(slotsInCell.map((slot) => slot.serviceName))\n );\n\n // Display at most 3 services, mark other slots as hidden\n const firstThreeServices = uniqueServices.slice(0, 3);\n slotsInCell.forEach((slot) => {\n const slotKey = slot.id;\n const isVisible = firstThreeServices.includes(slot.serviceName);\n if (!isVisible) {\n slotLayoutMap[slotKey].visible = false;\n }\n });\n\n // Calculate width based on visible services only\n const visibleSlots = slotsInCell.filter((slot) => {\n const slotKey = slot.id;\n return slotLayoutMap[slotKey].visible;\n });\n\n const visibleServices = new Set(\n visibleSlots.map((slot) => slot.serviceName)\n );\n const totalVisibleServices = visibleServices.size;\n const hasHiddenServices = slotsInCell.length > visibleSlots.length;\n const totalColumns = hasHiddenServices ? 4 : totalVisibleServices;\n const widthPercentage = totalColumns > 0 ? 100 / totalColumns : 100;\n\n // Update width for each slot in this cell (take minimum across all cells)\n slotsInCell.forEach((slot) => {\n const slotKey = slot.id;\n slotLayoutMap[slotKey].width = Math.min(\n slotLayoutMap[slotKey].width,\n widthPercentage\n );\n });\n });\n });\n\n return slotLayoutMap;\n};\n\n/**\n * Get minimum width for all slots overlapping a specific cell\n */\nexport const getMinimumWidthForCell = (\n slotsInCell: SlotWithService[],\n slotLayoutMap: SlotLayoutMap\n): number => {\n let minWidth = Number.MAX_SAFE_INTEGER;\n\n slotsInCell.forEach((slot) => {\n const slotKey = slot.id;\n const slotLayout = slotLayoutMap[slotKey];\n minWidth = Math.min(minWidth, slotLayout.width);\n });\n\n return minWidth;\n};\n\n/**\n * Calculate cell service layout information\n */\nexport const calculateCellServiceLayout = (\n visibleSlots: SlotWithService[],\n hiddenSlots: SlotWithService[]\n) => {\n const visibleServices = Array.from(\n new Set(visibleSlots.map((slot) => slot.serviceName))\n );\n const hiddenServices = Array.from(\n new Set(hiddenSlots.map((slot) => slot.serviceName))\n );\n\n return {\n allServices: [...visibleServices, ...hiddenServices],\n visibleServices,\n hiddenServices,\n totalServices: visibleServices.length + hiddenServices.length,\n hasOverflow: hiddenServices.length > 0,\n totalColumns: hiddenServices.length > 0 ? 4 : visibleServices.length,\n };\n};\n"],"names":["getSlotsInTimeCell","serviceData","targetDate","cellStartTime","cellEndTime","allSlots","forEach","service","slots","findSlotsInTimeRange","slot","push","Object","assign","serviceName","name","visibleSlots","hiddenSlots","visibleServices","Array","from","Set","map","hiddenServices","allServices","totalServices","length","hasOverflow","totalColumns","weekDays","timeSlots","slotLayoutMap","day","dayDate","format","time","timeMinutes","TimeHelper","timeToMinutes","nextTime","minutesToTime","slotsInCell","slotKey","id","date","startTime","endTime","visible","width","firstThreeServices","slice","includes","filter","totalVisibleServices","size","widthPercentage","Math","min","minWidth","Number","MAX_SAFE_INTEGER","slotLayout","findSlotsStartingInTimeRange"],"mappings":"4sBAcO,MAgCMA,EAAqB,CAC9BC,EACAC,EACAC,EACAC,KAEA,MAAMC,EAA8B,GAoBpC,OAlBAJ,EAAYK,SAASC,IACjB,GAAIA,EAAQC,MAAO,CACUC,EAAAA,qBACrBF,EAAQC,MACRL,EACAC,EACAF,GAGaI,SAASI,IACtBL,EAASM,KAAIC,OAAAC,OAAAD,OAAAC,OAAA,GACNH,GAAI,CACPI,YAAaP,EAAQQ,OACvB,GAEV,KAGGV,CAAQ,qCAsGuB,CACtCW,EACAC,KAEA,MAAMC,EAAkBC,MAAMC,KAC1B,IAAIC,IAAIL,EAAaM,KAAKZ,GAASA,EAAKI,gBAEtCS,EAAiBJ,MAAMC,KACzB,IAAIC,IAAIJ,EAAYK,KAAKZ,GAASA,EAAKI,gBAG3C,MAAO,CACHU,YAAa,IAAIN,KAAoBK,GACrCL,kBACAK,iBACAE,cAAeP,EAAgBQ,OAASH,EAAeG,OACvDC,YAAaJ,EAAeG,OAAS,EACrCE,aAAcL,EAAeG,OAAS,EAAI,EAAIR,EAAgBQ,OACjE,8BAlH8B,CAC/BzB,EACA4B,EACAC,KAEA,MAAMC,EAA+B,CAAA,EAmErC,OAjEAF,EAASvB,SAAS0B,IACd,MAAMC,EAAUD,EAAIE,OAAO,cAC3BJ,EAAUxB,SAAS6B,IACf,MAAMC,EAAcC,EAAAA,WAAWC,cAAcH,GACvCI,EAAWC,EAAAA,cAAcJ,EAAc,IACvCK,EAAczC,EAChBC,EACAgC,EACAE,EACAI,GAGJE,EAAYnC,SAASI,IACjB,MAAMgC,EAAUhC,EAAKiC,GAChBZ,EAAcW,KACfX,EAAcW,GAAW,CACrBE,KAAMX,EACNnB,YAAaJ,EAAKI,YAClB+B,UAAWnC,EAAKmC,UAChBC,QAASpC,EAAKoC,QACdC,SAAS,EACTC,MAAO,KAEf,IAGJ,MAKMC,EALiB9B,MAAMC,KACzB,IAAIC,IAAIoB,EAAYnB,KAAKZ,GAASA,EAAKI,gBAIDoC,MAAM,EAAG,GACnDT,EAAYnC,SAASI,IACjB,MAAMgC,EAAUhC,EAAKiC,GACHM,EAAmBE,SAASzC,EAAKI,eAE/CiB,EAAcW,GAASK,SAAU,EACrC,IAIJ,MAAM/B,EAAeyB,EAAYW,QAAQ1C,IACrC,MAAMgC,EAAUhC,EAAKiC,GACrB,OAAOZ,EAAcW,GAASK,OAAO,IAMnCM,EAHkB,IAAIhC,IACxBL,EAAaM,KAAKZ,GAASA,EAAKI,eAESwC,KAEvC1B,EADoBa,EAAYf,OAASV,EAAaU,OACnB,EAAI2B,EACvCE,EAAkB3B,EAAe,EAAI,IAAMA,EAAe,IAGhEa,EAAYnC,SAASI,IACjB,MAAMgC,EAAUhC,EAAKiC,GACrBZ,EAAcW,GAASM,MAAQQ,KAAKC,IAChC1B,EAAcW,GAASM,MACvBO,EACH,GACH,GACJ,IAGCxB,CAAa,iCAMc,CAClCU,EACAV,KAEA,IAAI2B,EAAWC,OAAOC,iBAQtB,OANAnB,EAAYnC,SAASI,IACjB,MAAMgC,EAAUhC,EAAKiC,GACfkB,EAAa9B,EAAcW,GACjCgB,EAAWF,KAAKC,IAAIC,EAAUG,EAAWb,MAAM,IAG5CU,CAAQ,kEA1JuB,CACtCzD,EACAC,EACAC,EACAC,KAEA,MAAMC,EAA8B,GAoBpC,OAlBAJ,EAAYK,SAASC,IACjB,GAAIA,EAAQC,MAAO,CACMsD,EAAAA,6BACjBvD,EAAQC,MACRL,EACAC,EACAF,GAGSI,SAASI,IAClBL,EAASM,KAAIC,OAAAC,OAAAD,OAAAC,OAAA,GACNH,GAAI,CACPI,YAAaP,EAAQQ,OACvB,GAEV,KAGGV,CAAQ"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../_virtual/_tslib.js"),i=require("react/jsx-runtime"),a=require("../external/lodash/lodash.js"),t=require("react");require("../theme/theme-provider/index.js"),require("../theme/theme-provider/context.js"),require("../theme/tokens/border.js"),require("../theme/tokens/colour.js"),require("../theme/tokens/font.js"),require("../theme/tokens/media-query.js"),require("../util/calendar-helper.js"),require("../external/dayjs/dayjs.min.js"),require("../util/simple-id-generator.js"),require("../util/string-helper.js"),require("@react-aria/live-announcer");var s=require("../theme/utils/use-media-query.js"),r=require("./schedule.styles.js"),l=require("./schedule-day-view/schedule-day-view.js"),n=require("./schedule-header/schedule-header.js"),o=require("./schedule-week-view/schedule-week-view.js");exports.Schedule=d=>{var{id:c,className:u,view:m="day",date:h,serviceData:y,loading:j=!1,minTime:C="00:00",maxTime:k="23:59",initialScrollTime:x=C,minDate:v,maxDate:S,emptyContentMessage:g,emptySlotPopover:D,onPreviousDayClick:p,onNextDayClick:q,onCalendarDateSelect:w,onTodayClick:T,onEmptySlotClick:b,blockedMessage:N,onClickHiddenSlots:M,"data-testid":f="schedule"}=d,P=e.__rest(d,["id","className","view","date","serviceData","loading","minTime","maxTime","initialScrollTime","minDate","maxDate","emptyContentMessage","emptySlotPopover","onPreviousDayClick","onNextDayClick","onCalendarDateSelect","onTodayClick","onEmptySlotClick","blockedMessage","onClickHiddenSlots","data-testid"]);const[E,H]=t.useState(m),O=s.useMaxWidthMediaQuery("lg"),R=O?"day":E,V=t.useRef(null),[_,A]=t.useState(0),W=0===y.length||a.lodashExports.isEmpty(y),$=t.useMemo((()=>y.map((e=>Object.assign(Object.assign({},e),{slots:e.slots.filter((e=>e.date===h))})))),[y,h]),B=O?$&&$.length>0?[$[_]]:[]:$;t.useEffect((()=>{A(0)}),[$]);const F=e=>{H(e)},Q=t.useCallback((()=>{null==T||T()}),[T]),z=t.useCallback((()=>{$&&A((e=>e<$.length-1?e+1:e))}),[$]),G=t.useCallback((()=>{A((e=>e>0?e-1:e))}),[]);return W?i.jsxs(r.Container,Object.assign({},P,{"data-testid":f,$loading:j,children:[i.jsx(n.ScheduleHeader,{"data-id":"schedule-header",date:h,view:R,minDate:v,maxDate:S,onPreviousDayClick:p,onNextDayClick:q,onCalendarDateSelect:w,onViewChange:F,onTodayClick:Q}),i.jsx(r.EmptyTableContainer,{className:"empty-container",children:i.jsx(r.NoResultsFound,{type:"no-item-found",description:g})})]})):i.jsxs(r.Container,Object.assign({id:c,className:u,$loading:j,"data-testid":f},P,{children:[i.jsx(n.ScheduleHeader,{"data-id":"schedule-header",date:h,view:R,minDate:v,maxDate:S,onPreviousDayClick:p,onNextDayClick:q,onCalendarDateSelect:w,onViewChange:F,onTodayClick:Q}),i.jsx(r.ScheduleBodyContainer,{ref:V,"data-id":"schedule-container",children:"day"===R?i.jsx(l.ScheduleDayView,{date:h,serviceData:B,loading:j,minTime:C,maxTime:k,initialScrollTime:x,emptySlotPopover:D,isMobile:O,onNextService:z,onPrevService:G,containerRef:V,showPrevArrow:O&&_>0,showNextArrow:O&&_<$.length-1,onEmptySlotClick:b,blockedMessage:N}):i.jsx(o.ScheduleWeekView,{date:h,serviceData:y,loading:j,minTime:C,maxTime:k,initialScrollTime:x,containerRef:V,blockedMessage:N,onClickHiddenSlots:M})})]}))};
1
+ "use strict";var e=require("../_virtual/_tslib.js"),i=require("react/jsx-runtime"),a=require("clsx"),t=require("../external/lodash/lodash.js"),r=require("react"),s=require("../error-display/error-display.js");require("../theme/theme-provider/index.js"),require("../theme/theme-provider/context.js"),require("../theme/tokens/border.js"),require("../theme/tokens/colour.js"),require("../theme/tokens/font.js"),require("../theme/tokens/media-query.js"),require("../util/calendar-helper.js"),require("../external/dayjs/dayjs.min.js"),require("../util/simple-id-generator.js"),require("../util/string-helper.js"),require("@react-aria/live-announcer");var l=require("../theme/utils/use-media-query.js"),n=require("./schedule.styles.js"),o=require("./schedule-day-view/schedule-day-view.js"),d=require("./schedule-header/schedule-header.js"),c=require("./schedule-week-view/schedule-week-view.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=u(a);exports.Schedule=a=>{var{id:u,className:h,view:y="day",date:j,serviceData:v,loading:k=!1,minTime:p="00:00",maxTime:x="23:59",initialScrollTime:C=p,minDate:q,maxDate:S,emptyContentMessage:g,emptySlotPopover:D,onPreviousDayClick:b,onNextDayClick:w,onCalendarDateSelect:f,onTodayClick:T,onEmptySlotClick:N,blockedMessage:M,onClickHiddenSlots:P,"data-testid":E="schedule"}=a,O=e.__rest(a,["id","className","view","date","serviceData","loading","minTime","maxTime","initialScrollTime","minDate","maxDate","emptyContentMessage","emptySlotPopover","onPreviousDayClick","onNextDayClick","onCalendarDateSelect","onTodayClick","onEmptySlotClick","blockedMessage","onClickHiddenSlots","data-testid"]);const[H,_]=r.useState(y),R=l.useMaxWidthMediaQuery("lg"),V=R?"day":H,A=r.useRef(null),[W,B]=r.useState(0),F=0===v.length||t.lodashExports.isEmpty(v),L=r.useMemo((()=>v.map((e=>Object.assign(Object.assign({},e),{slots:e.slots.filter((e=>e.date===j))})))),[v,j]);let Q=L;R&&(Q=L.length>0?[L[W]]:[]);const z=R&&W>0,G=R&&W<L.length-1;r.useEffect((()=>{B(0)}),[L]);const I=r.useCallback((()=>{null==T||T()}),[T]),J=r.useCallback((()=>{L&&B((e=>e<L.length-1?e+1:e))}),[L]),K=r.useCallback((()=>{B((e=>e>0?e-1:e))}),[]),U={date:j,loading:k,minTime:p,maxTime:x,initialScrollTime:C,containerRef:A,blockedMessage:M};return i.jsxs("div",Object.assign({id:u,className:m.default(n.container,k&&n.containerLoading,h),"data-testid":E},O,{children:[i.jsx(d.ScheduleHeader,{"data-id":"schedule-header",date:j,view:V,minDate:q,maxDate:S,onPreviousDayClick:b,onNextDayClick:w,onCalendarDateSelect:f,onViewChange:e=>{_(e)},onTodayClick:I}),F?i.jsx("div",{className:m.default(n.emptyTableContainer,"empty-container"),children:i.jsx(s.ErrorDisplay,{className:n.noResultsFound,type:"no-item-found",description:g})}):i.jsx("div",{className:n.scheduleBodyContainer,ref:A,"data-id":"schedule-container",children:"day"===V?i.jsx(o.ScheduleDayView,Object.assign({},U,{serviceData:Q,emptySlotPopover:D,isMobile:R,onNextService:J,onPrevService:K,showPrevArrow:z,showNextArrow:G,onEmptySlotClick:N})):i.jsx(c.ScheduleWeekView,Object.assign({},U,{serviceData:v,onClickHiddenSlots:P}))})]}))};
2
2
  //# sourceMappingURL=schedule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schedule.js","sources":["../../../src/schedule/schedule.tsx"],"sourcesContent":["import { isEmpty } from \"lodash\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { useMaxWidthMediaQuery } from \"../theme\";\nimport {\n Container,\n EmptyTableContainer,\n NoResultsFound,\n ScheduleBodyContainer,\n} from \"./schedule.styles\";\nimport { ScheduleDayView } from \"./schedule-day-view/schedule-day-view\";\nimport { ScheduleHeader } from \"./schedule-header/schedule-header\";\nimport { ScheduleWeekView } from \"./schedule-week-view/schedule-week-view\";\nimport type { ScheduleProps } from \"./types\";\n\nexport const Schedule = ({\n id,\n className,\n view = \"day\",\n date,\n serviceData,\n loading = false,\n minTime = \"00:00\",\n maxTime = \"23:59\",\n initialScrollTime = minTime,\n minDate,\n maxDate,\n emptyContentMessage,\n emptySlotPopover,\n onPreviousDayClick,\n onNextDayClick,\n onCalendarDateSelect,\n onTodayClick,\n onEmptySlotClick,\n blockedMessage,\n onClickHiddenSlots,\n \"data-testid\": testId = \"schedule\",\n ...otherProps\n}: ScheduleProps) => {\n // =============================================================================\n // CONST, STATE, REF\n // =============================================================================\n const [currentView, setCurrentView] = useState<\"day\" | \"week\">(view);\n const isSmallScreen = useMaxWidthMediaQuery(\"lg\");\n const effectiveView = isSmallScreen ? \"day\" : currentView;\n const contentContainerRef = useRef<HTMLDivElement>(null);\n const [visibleServiceIdx, setVisibleServiceIdx] = useState(0);\n const isEmptyContent = serviceData.length === 0 || isEmpty(serviceData);\n const filteredServiceData = useMemo(\n () =>\n serviceData.map((service) => ({\n ...service,\n slots: service.slots.filter((slot) => slot.date === date),\n })),\n [serviceData, date]\n );\n\n const visibleServiceData = isSmallScreen\n ? filteredServiceData && filteredServiceData.length > 0\n ? [filteredServiceData[visibleServiceIdx]]\n : []\n : filteredServiceData;\n\n useEffect(() => {\n setVisibleServiceIdx(0);\n }, [filteredServiceData]);\n\n // =============================================================================\n // EVENT HANDLERS\n // =============================================================================\n const handleViewChange = (newView: \"day\" | \"week\") => {\n setCurrentView(newView);\n };\n\n const handleTodayClick = useCallback(() => {\n onTodayClick?.();\n }, [onTodayClick]);\n\n const handleNextService = useCallback(() => {\n if (!filteredServiceData) return;\n setVisibleServiceIdx((idx) =>\n idx < filteredServiceData.length - 1 ? idx + 1 : idx\n );\n }, [filteredServiceData]);\n\n const handlePrevService = useCallback(() => {\n setVisibleServiceIdx((idx) => (idx > 0 ? idx - 1 : idx));\n }, []);\n // =============================================================================\n // RENDER FUNCTION\n // =============================================================================\n\n if (isEmptyContent) {\n return (\n <Container {...otherProps} data-testid={testId} $loading={loading}>\n <ScheduleHeader\n data-id=\"schedule-header\"\n date={date}\n view={effectiveView}\n minDate={minDate}\n maxDate={maxDate}\n onPreviousDayClick={onPreviousDayClick}\n onNextDayClick={onNextDayClick}\n onCalendarDateSelect={onCalendarDateSelect}\n onViewChange={handleViewChange}\n onTodayClick={handleTodayClick}\n />\n <EmptyTableContainer className=\"empty-container\">\n <NoResultsFound\n type=\"no-item-found\"\n description={emptyContentMessage}\n />\n </EmptyTableContainer>\n </Container>\n );\n }\n return (\n <Container\n id={id}\n className={className}\n $loading={loading}\n data-testid={testId}\n {...otherProps}\n >\n <ScheduleHeader\n data-id=\"schedule-header\"\n date={date}\n view={effectiveView}\n minDate={minDate}\n maxDate={maxDate}\n onPreviousDayClick={onPreviousDayClick}\n onNextDayClick={onNextDayClick}\n onCalendarDateSelect={onCalendarDateSelect}\n onViewChange={handleViewChange}\n onTodayClick={handleTodayClick}\n />\n\n <ScheduleBodyContainer\n ref={contentContainerRef}\n data-id=\"schedule-container\"\n >\n {effectiveView === \"day\" ? (\n <ScheduleDayView\n date={date}\n serviceData={visibleServiceData}\n loading={loading}\n minTime={minTime}\n maxTime={maxTime}\n initialScrollTime={initialScrollTime}\n emptySlotPopover={emptySlotPopover}\n isMobile={isSmallScreen}\n onNextService={handleNextService}\n onPrevService={handlePrevService}\n containerRef={contentContainerRef}\n showPrevArrow={isSmallScreen && visibleServiceIdx > 0}\n showNextArrow={\n isSmallScreen &&\n visibleServiceIdx < filteredServiceData.length - 1\n }\n onEmptySlotClick={onEmptySlotClick}\n blockedMessage={blockedMessage}\n />\n ) : (\n <ScheduleWeekView\n date={date}\n serviceData={serviceData}\n loading={loading}\n minTime={minTime}\n maxTime={maxTime}\n initialScrollTime={initialScrollTime}\n containerRef={contentContainerRef}\n blockedMessage={blockedMessage}\n onClickHiddenSlots={onClickHiddenSlots}\n />\n )}\n </ScheduleBodyContainer>\n </Container>\n );\n};\n"],"names":["_a","id","className","view","date","serviceData","loading","minTime","maxTime","initialScrollTime","minDate","maxDate","emptyContentMessage","emptySlotPopover","onPreviousDayClick","onNextDayClick","onCalendarDateSelect","onTodayClick","onEmptySlotClick","blockedMessage","onClickHiddenSlots","testId","otherProps","__rest","currentView","setCurrentView","useState","isSmallScreen","useMaxWidthMediaQuery","effectiveView","contentContainerRef","useRef","visibleServiceIdx","setVisibleServiceIdx","isEmptyContent","length","isEmpty","filteredServiceData","useMemo","map","service","slots","filter","slot","visibleServiceData","useEffect","handleViewChange","newView","handleTodayClick","useCallback","handleNextService","idx","handlePrevService","_jsxs","Container","Object","assign","$loading","_jsx","ScheduleHeader","onViewChange","EmptyTableContainer","children","NoResultsFound","type","description","ScheduleBodyContainer","ref","ScheduleDayView","isMobile","onNextService","onPrevService","containerRef","showPrevArrow","showNextArrow","ScheduleWeekView"],"mappings":"20BAeyBA,IAAA,IAAAC,GACrBA,EAAEC,UACFA,EAASC,KACTA,EAAO,MAAKC,KACZA,EAAIC,YACJA,EAAWC,QACXA,GAAU,EAAKC,QACfA,EAAU,QAAOC,QACjBA,EAAU,QAAOC,kBACjBA,EAAoBF,EAAOG,QAC3BA,EAAOC,QACPA,EAAOC,oBACPA,EAAmBC,iBACnBA,EAAgBC,mBAChBA,EAAkBC,eAClBA,EAAcC,qBACdA,EAAoBC,aACpBA,EAAYC,iBACZA,EAAgBC,eAChBA,EAAcC,mBACdA,EACA,cAAeC,EAAS,YAAUrB,EAC/BsB,EAAUC,EAAAA,OAAAvB,EAtBQ,CAAA,KAAA,YAAA,OAAA,OAAA,cAAA,UAAA,UAAA,UAAA,oBAAA,UAAA,UAAA,sBAAA,mBAAA,qBAAA,iBAAA,uBAAA,eAAA,mBAAA,iBAAA,qBAAA,gBA2BrB,MAAOwB,EAAaC,GAAkBC,EAAAA,SAAyBvB,GACzDwB,EAAgBC,EAAAA,sBAAsB,MACtCC,EAAgBF,EAAgB,MAAQH,EACxCM,EAAsBC,EAAAA,OAAuB,OAC5CC,EAAmBC,GAAwBP,EAAAA,SAAS,GACrDQ,EAAwC,IAAvB7B,EAAY8B,QAAgBC,EAAAA,cAAAA,QAAQ/B,GACrDgC,EAAsBC,EAAAA,SACxB,IACIjC,EAAYkC,KAAKC,kCACVA,GAAO,CACVC,MAAOD,EAAQC,MAAMC,QAAQC,GAASA,EAAKvC,OAASA,SAE5D,CAACC,EAAaD,IAGZwC,EAAqBjB,EACrBU,GAAuBA,EAAoBF,OAAS,EAChD,CAACE,EAAoBL,IACrB,GACJK,EAENQ,EAAAA,WAAU,KACNZ,EAAqB,EAAE,GACxB,CAACI,IAKJ,MAAMS,EAAoBC,IACtBtB,EAAesB,EAAQ,EAGrBC,EAAmBC,EAAAA,aAAY,KACjChC,SAAAA,GAAgB,GACjB,CAACA,IAEEiC,EAAoBD,EAAAA,aAAY,KAC7BZ,GACLJ,GAAsBkB,GAClBA,EAAMd,EAAoBF,OAAS,EAAIgB,EAAM,EAAIA,GACpD,GACF,CAACd,IAEEe,EAAoBH,EAAAA,aAAY,KAClChB,GAAsBkB,GAASA,EAAM,EAAIA,EAAM,EAAIA,GAAK,GACzD,IAKH,OAAIjB,EAEImB,OAACC,EAAAA,UAASC,OAAAC,OAAA,CAAA,EAAKlC,EAAU,CAAA,cAAeD,EAAMoC,SAAYnD,YACtDoD,EAAAA,IAACC,iBAAc,CAAA,UACH,kBACRvD,KAAMA,EACND,KAAM0B,EACNnB,QAASA,EACTC,QAASA,EACTG,mBAAoBA,EACpBC,eAAgBA,EAChBC,qBAAsBA,EACtB4C,aAAcd,EACd7B,aAAc+B,IAElBU,EAAAA,IAACG,EAAAA,oBAAmB,CAAC3D,UAAU,kBAAiB4D,SAC5CJ,MAACK,EAAAA,eAAc,CACXC,KAAK,gBACLC,YAAarD,UAO7ByC,EAAAA,KAACC,EAAAA,UAASC,OAAAC,OAAA,CACNvD,GAAIA,EACJC,UAAWA,EAASuD,SACVnD,EAAO,cACJe,GACTC,EAAU,CAAAwC,SAAA,CAEdJ,EAAAA,IAACC,iBAAc,CAAA,UACH,kBACRvD,KAAMA,EACND,KAAM0B,EACNnB,QAASA,EACTC,QAASA,EACTG,mBAAoBA,EACpBC,eAAgBA,EAChBC,qBAAsBA,EACtB4C,aAAcd,EACd7B,aAAc+B,IAGlBU,EAAAA,IAACQ,EAAAA,sBAAqB,CAClBC,IAAKrC,EAAmB,UAChB,qBAAoBgC,SAET,QAAlBjC,EACG6B,EAAAA,IAACU,kBAAe,CACZhE,KAAMA,EACNC,YAAauC,EACbtC,QAASA,EACTC,QAASA,EACTC,QAASA,EACTC,kBAAmBA,EACnBI,iBAAkBA,EAClBwD,SAAU1C,EACV2C,cAAepB,EACfqB,cAAenB,EACfoB,aAAc1C,EACd2C,cAAe9C,GAAiBK,EAAoB,EACpD0C,cACI/C,GACAK,EAAoBK,EAAoBF,OAAS,EAErDjB,iBAAkBA,EAClBC,eAAgBA,IAGpBuC,EAAAA,IAACiB,EAAAA,iBAAgB,CACbvE,KAAMA,EACNC,YAAaA,EACbC,QAASA,EACTC,QAASA,EACTC,QAASA,EACTC,kBAAmBA,EACnB+D,aAAc1C,EACdX,eAAgBA,EAChBC,mBAAoBA,SAIxB"}
1
+ {"version":3,"file":"schedule.js","sources":["../../../src/schedule/schedule.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { isEmpty } from \"lodash\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { ErrorDisplay } from \"../error-display\";\nimport { useMaxWidthMediaQuery } from \"../theme\";\nimport * as styles from \"./schedule.styles\";\nimport { ScheduleDayView } from \"./schedule-day-view/schedule-day-view\";\nimport { ScheduleHeader } from \"./schedule-header/schedule-header\";\nimport { ScheduleWeekView } from \"./schedule-week-view/schedule-week-view\";\nimport type { CommonScheduleViewProps, ScheduleProps } from \"./types\";\n\nexport const Schedule = ({\n id,\n className,\n view = \"day\",\n date,\n serviceData,\n loading = false,\n minTime = \"00:00\",\n maxTime = \"23:59\",\n initialScrollTime = minTime,\n minDate,\n maxDate,\n emptyContentMessage,\n emptySlotPopover,\n onPreviousDayClick,\n onNextDayClick,\n onCalendarDateSelect,\n onTodayClick,\n onEmptySlotClick,\n blockedMessage,\n onClickHiddenSlots,\n \"data-testid\": testId = \"schedule\",\n ...otherProps\n}: ScheduleProps) => {\n // =============================================================================\n // CONST, STATE, REF\n // =============================================================================\n const [currentView, setCurrentView] = useState<\"day\" | \"week\">(view);\n const isSmallScreen = useMaxWidthMediaQuery(\"lg\");\n const effectiveView = isSmallScreen ? \"day\" : currentView;\n const contentContainerRef = useRef<HTMLDivElement>(null);\n const [visibleServiceIdx, setVisibleServiceIdx] = useState(0);\n const isEmptyContent = serviceData.length === 0 || isEmpty(serviceData);\n const filteredServiceData = useMemo(\n () =>\n serviceData.map((service) => ({\n ...service,\n slots: service.slots.filter((slot) => slot.date === date),\n })),\n [serviceData, date]\n );\n let visibleServiceData = filteredServiceData;\n if (isSmallScreen) {\n visibleServiceData =\n filteredServiceData.length > 0\n ? [filteredServiceData[visibleServiceIdx]]\n : [];\n }\n const showPrevArrow = isSmallScreen && visibleServiceIdx > 0;\n const showNextArrow =\n isSmallScreen && visibleServiceIdx < filteredServiceData.length - 1;\n\n useEffect(() => {\n setVisibleServiceIdx(0);\n }, [filteredServiceData]);\n\n // =============================================================================\n // EVENT HANDLERS\n // =============================================================================\n const handleViewChange = (newView: \"day\" | \"week\") => {\n setCurrentView(newView);\n };\n\n const handleTodayClick = useCallback(() => {\n onTodayClick?.();\n }, [onTodayClick]);\n\n const handleNextService = useCallback(() => {\n if (!filteredServiceData) return;\n setVisibleServiceIdx((idx) =>\n idx < filteredServiceData.length - 1 ? idx + 1 : idx\n );\n }, [filteredServiceData]);\n\n const handlePrevService = useCallback(() => {\n setVisibleServiceIdx((idx) => (idx > 0 ? idx - 1 : idx));\n }, []);\n\n // =============================================================================\n // RENDER FUNCTION\n // =============================================================================\n\n const renderEmptyContent = () => (\n <div className={clsx(styles.emptyTableContainer, \"empty-container\")}>\n <ErrorDisplay\n className={styles.noResultsFound}\n type=\"no-item-found\"\n description={emptyContentMessage}\n />\n </div>\n );\n\n const commonScheduleViewProps: CommonScheduleViewProps = {\n date,\n loading,\n minTime,\n maxTime,\n initialScrollTime,\n containerRef: contentContainerRef,\n blockedMessage,\n };\n\n const renderScheduleView = () => (\n <div\n className={styles.scheduleBodyContainer}\n ref={contentContainerRef}\n data-id=\"schedule-container\"\n >\n {effectiveView === \"day\" ? (\n <ScheduleDayView\n {...commonScheduleViewProps}\n serviceData={visibleServiceData}\n emptySlotPopover={emptySlotPopover}\n isMobile={isSmallScreen}\n onNextService={handleNextService}\n onPrevService={handlePrevService}\n showPrevArrow={showPrevArrow}\n showNextArrow={showNextArrow}\n onEmptySlotClick={onEmptySlotClick}\n />\n ) : (\n <ScheduleWeekView\n {...commonScheduleViewProps}\n serviceData={serviceData}\n onClickHiddenSlots={onClickHiddenSlots}\n />\n )}\n </div>\n );\n\n return (\n <div\n id={id}\n className={clsx(\n styles.container,\n loading && styles.containerLoading,\n className\n )}\n data-testid={testId}\n {...otherProps}\n >\n <ScheduleHeader\n data-id=\"schedule-header\"\n date={date}\n view={effectiveView}\n minDate={minDate}\n maxDate={maxDate}\n onPreviousDayClick={onPreviousDayClick}\n onNextDayClick={onNextDayClick}\n onCalendarDateSelect={onCalendarDateSelect}\n onViewChange={handleViewChange}\n onTodayClick={handleTodayClick}\n />\n\n {isEmptyContent ? renderEmptyContent() : renderScheduleView()}\n </div>\n );\n};\n"],"names":["_a","id","className","view","date","serviceData","loading","minTime","maxTime","initialScrollTime","minDate","maxDate","emptyContentMessage","emptySlotPopover","onPreviousDayClick","onNextDayClick","onCalendarDateSelect","onTodayClick","onEmptySlotClick","blockedMessage","onClickHiddenSlots","testId","otherProps","__rest","currentView","setCurrentView","useState","isSmallScreen","useMaxWidthMediaQuery","effectiveView","contentContainerRef","useRef","visibleServiceIdx","setVisibleServiceIdx","isEmptyContent","length","isEmpty","filteredServiceData","useMemo","map","service","slots","filter","slot","visibleServiceData","showPrevArrow","showNextArrow","useEffect","handleTodayClick","useCallback","handleNextService","idx","handlePrevService","commonScheduleViewProps","containerRef","_jsxs","Object","assign","clsx","styles.container","styles.containerLoading","children","_jsx","ScheduleHeader","onViewChange","newView","styles.emptyTableContainer","ErrorDisplay","styles.noResultsFound","type","description","styles.scheduleBodyContainer","ref","ScheduleDayView","isMobile","onNextService","onPrevService","ScheduleWeekView"],"mappings":"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"}
@@ -1,27 +1,2 @@
1
- "use strict";var r=require("styled-components"),e=require("../error-display/error-display.js"),o=require("../v3_theme/index.js"),i=require("./const.js");function d(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var t=d(r);const a=t.default.div`
2
- min-width: 320px;
3
- max-width: 90vw;
4
- box-sizing: border-box;
5
- ${e=>{if(e.$loading)return r.css`
6
- &:hover {
7
- cursor: not-allowed;
8
- }
9
- `}}
10
- `,n=t.default.div`
11
- height: 100%;
12
- position: relative;
13
- overflow: hidden;
14
- `,s=t.default.div`
15
- display: grid;
16
- overflow: auto;
17
- position: relative;
18
- grid-template-columns: ${i.MIN_COLUMN_WIDTH}px auto;
19
- border: ${o.V3_Border["width-010"]} ${o.V3_Border.solid} ${o.V3_Colour.border};
20
- border-radius: ${o.V3_Radius.md};
21
- background: ${o.V3_Colour.bg};
22
- `,l=t.default(e.ErrorDisplay)`
23
- grid-column: 1 / -1;
24
- grid-row: 2;
25
- padding: ${o.V3_Spacing["spacing-72"]} 0;
26
- `;exports.Container=a,exports.EmptyTableContainer=s,exports.NoResultsFound=l,exports.ScheduleBodyContainer=n;
1
+ "use strict";require("./schedule.styles_fdy5a1.css");exports.container="c1340rqu",exports.containerLoading="c1hp3fsj",exports.emptyTableContainer="e1b7vyxh",exports.noResultsFound="niqne7l",exports.scheduleBodyContainer="s1kpvet5";
27
2
  //# sourceMappingURL=schedule.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schedule.styles.js","sources":["../../../src/schedule/schedule.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { ErrorDisplay } from \"../error-display\";\nimport { V3_Border, V3_Colour, V3_Radius, V3_Spacing } from \"../v3_theme\";\nimport { MIN_COLUMN_WIDTH } from \"./const\";\n\n// =============================================================================\n// STYLING\n// =============================================================================\ninterface ScheduleProps {\n $loading: boolean | undefined;\n}\n\nexport const Container = styled.div<ScheduleProps>`\n min-width: 320px;\n max-width: 90vw;\n box-sizing: border-box;\n ${(props) => {\n if (props.$loading) {\n return css`\n &:hover {\n cursor: not-allowed;\n }\n `;\n }\n }}\n`;\n\nexport const ScheduleBodyContainer = styled.div`\n height: 100%;\n position: relative;\n overflow: hidden;\n`;\n\nexport const EmptyTableContainer = styled.div`\n display: grid;\n overflow: auto;\n position: relative;\n grid-template-columns: ${MIN_COLUMN_WIDTH}px auto;\n border: ${V3_Border[\"width-010\"]} ${V3_Border.solid} ${V3_Colour[\"border\"]};\n border-radius: ${V3_Radius[\"md\"]};\n background: ${V3_Colour[\"bg\"]};\n`;\n\nexport const NoResultsFound = styled(ErrorDisplay)`\n grid-column: 1 / -1;\n grid-row: 2;\n padding: ${V3_Spacing[\"spacing-72\"]} 0;\n`;\n"],"names":["Container","styled","div","props","$loading","css","ScheduleBodyContainer","EmptyTableContainer","MIN_COLUMN_WIDTH","V3_Border","solid","V3_Colour","V3_Radius","NoResultsFound","ErrorDisplay","V3_Spacing"],"mappings":"4OAaO,MAAMA,EAAYC,EAAAA,QAAOC,GAAkB;;;;MAI3CC,IACC,GAAIA,EAAMC,SACN,OAAOC,KAAG;;;;aAKd;EAIKC,EAAwBL,EAAAA,QAAOC,GAAG;;;;EAMlCK,EAAsBN,EAAAA,QAAOC,GAAG;;;;6BAIhBM;cACfC,EAAAA,UAAU,gBAAgBA,EAAAA,UAAUC,SAASC,YAAkB;qBACxDC,EAAAA,UAAc;kBACjBD,EAAAA,UAAc;EAGnBE,EAAiBZ,EAAAA,QAAOa,EAAAA,aAAa;;;eAGnCC,EAAAA,WAAW;"}
1
+ {"version":3,"file":"schedule.styles.js","sources":["../../../src/schedule/schedule.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Border, Colour, Radius, Spacing } from \"../theme\";\nimport { MIN_COLUMN_WIDTH } from \"./const\";\n\nexport const container = css`\n min-width: 320px;\n max-width: 90vw;\n box-sizing: border-box;\n`;\n\nexport const containerLoading = css`\n &:hover {\n cursor: not-allowed;\n }\n`;\n\nexport const scheduleBodyContainer = css`\n height: 100%;\n position: relative;\n overflow: hidden;\n`;\n\nexport const emptyTableContainer = css`\n display: grid;\n overflow: auto;\n position: relative;\n grid-template-columns: ${MIN_COLUMN_WIDTH}px auto;\n border: ${Border[\"width-010\"]} ${Border.solid} ${Colour[\"border\"]};\n border-radius: ${Radius[\"md\"]};\n background: ${Colour[\"bg\"]};\n`;\n\nexport const noResultsFound = css`\n grid-column: 1 / -1;\n grid-row: 2;\n padding: ${Spacing[\"spacing-72\"]} 0;\n`;\n"],"names":[],"mappings":"+FAKsB,oCAMO,uCAYG,kCAUL,wCAhBO"}
@@ -0,0 +1,5 @@
1
+ .c1340rqu{min-width:320px;max-width:90vw;box-sizing:border-box;}
2
+ .c1hp3fsj:hover{cursor:not-allowed;}
3
+ .s1kpvet5{height:100%;position:relative;overflow:hidden;}
4
+ .e1b7vyxh{display:-ms-grid;display:grid;overflow:auto;position:relative;-ms-grid-columns:280px auto;grid-template-columns:280px auto;border:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);border-radius:var(--fds-radius-md);background:var(--fds-colour-bg);}
5
+ .niqne7l{-ms-grid-column:1/-1;grid-column:1/-1;-ms-grid-row:2;grid-row:2;padding:var(--fds-spacing-72) 0;}
@@ -1,6 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("styled-components");require("../../_virtual/_tslib.js"),require("clsx"),require("react"),require("../../theme/theme-provider/context.js"),require("../../typography/typography.js"),require("../../card/card.styles_1gh9gs3.css"),require("../../markup/markup.js"),require("../../modal-v2/index.js"),require("../../theme/theme-provider/index.js"),require("../../theme/tokens/border.js"),require("../../theme/tokens/colour.js"),require("../../theme/tokens/font.js"),require("../../theme/tokens/media-query.js"),require("../../util/calendar-helper.js"),require("../../external/dayjs/dayjs.min.js"),require("../../util/simple-id-generator.js"),require("../../util/string-helper.js"),require("@react-aria/live-announcer"),require("../../theme/utils/use-media-query.js"),require("../../popover/popover.styles_ujnf0h.css");var t=require("../../popover/popover-trigger.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("../../popover/popover-inline/popover-inline.styles_bkopnt.css");const o=i(r).default(t.PopoverTrigger)`
2
- width: 100%;
3
- display: flex;
4
- flex-direction: column;
5
- `;exports.WithOptionalPopover=({containerRef:r,children:t,customPopover:i})=>{if(!i)return t;const s={position:"bottom-start",rootNode:r,customOffset:i.offset,children:t,trigger:i.trigger,delay:i.delay,popoverContent:i.content};return e.jsx(o,Object.assign({zIndex:2},s))};
1
+ "use strict";var e=require("react/jsx-runtime");require("../../_virtual/_tslib.js"),require("clsx"),require("react"),require("../../theme/theme-provider/context.js"),require("../../typography/typography.js"),require("../../card/card.styles_1gh9gs3.css"),require("../../markup/markup.js"),require("../../modal-v2/index.js"),require("../../theme/theme-provider/index.js"),require("../../theme/tokens/border.js"),require("../../theme/tokens/colour.js"),require("../../theme/tokens/font.js"),require("../../theme/tokens/media-query.js"),require("../../util/calendar-helper.js"),require("../../external/dayjs/dayjs.min.js"),require("../../util/simple-id-generator.js"),require("../../util/string-helper.js"),require("@react-aria/live-announcer"),require("../../theme/utils/use-media-query.js"),require("../../popover/popover.styles_ujnf0h.css");var r=require("../../popover/popover-trigger.js");require("../../popover/popover-inline/popover-inline.styles_bkopnt.css");var t=require("./with-optional-popover.styles.js");exports.WithOptionalPopover=({containerRef:i,children:o,customPopover:s})=>{if(!s)return o;const u={position:"bottom-start",rootNode:i,customOffset:s.offset,children:o,trigger:s.trigger,delay:s.delay,popoverContent:s.content};return e.jsx(r.PopoverTrigger,Object.assign({className:t.popoverTrigger,zIndex:2},u))};
6
2
  //# sourceMappingURL=with-optional-popover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"with-optional-popover.js","sources":["../../../../src/schedule/shared/with-optional-popover.tsx"],"sourcesContent":["import type { RefObject } from \"react\";\nimport styled from \"styled-components\";\n\nimport type { PopoverTriggerProps } from \"../../popover\";\nimport { PopoverTrigger } from \"../../popover\";\nimport type { SchedulePopoverProps } from \"../types\";\n\ninterface ConditionalCellWrapperProps {\n containerRef: RefObject<HTMLDivElement>;\n children: JSX.Element;\n customPopover?: SchedulePopoverProps | undefined;\n}\n\nconst StyledPopoverTrigger = styled(PopoverTrigger)`\n width: 100%;\n display: flex;\n flex-direction: column;\n`;\n\nexport const WithOptionalPopover = ({\n containerRef,\n children,\n customPopover,\n}: ConditionalCellWrapperProps) => {\n if (!customPopover) {\n return children;\n }\n\n const popoverTriggerProps: PopoverTriggerProps = {\n position: \"bottom-start\",\n rootNode: containerRef,\n customOffset: customPopover.offset,\n children: children,\n trigger: customPopover.trigger,\n delay: customPopover.delay,\n popoverContent: customPopover.content,\n };\n\n return <StyledPopoverTrigger zIndex={2} {...popoverTriggerProps} />;\n};\n"],"names":["StyledPopoverTrigger","styled","PopoverTrigger","containerRef","children","customPopover","popoverTriggerProps","position","rootNode","customOffset","offset","trigger","delay","popoverContent","content","_jsx","Object","assign","zIndex"],"mappings":"2kCAaA,MAAMA,OAAuBC,QAAOC,EAAAA,eAAe;;;;8BAMhB,EAC/BC,eACAC,WACAC,oBAEA,IAAKA,EACD,OAAOD,EAGX,MAAME,EAA2C,CAC7CC,SAAU,eACVC,SAAUL,EACVM,aAAcJ,EAAcK,OAC5BN,SAAUA,EACVO,QAASN,EAAcM,QACvBC,MAAOP,EAAcO,MACrBC,eAAgBR,EAAcS,SAGlC,OAAOC,EAAAA,IAACf,EAAoBgB,OAAAC,OAAA,CAACC,OAAQ,GAAOZ,GAAuB"}
1
+ {"version":3,"file":"with-optional-popover.js","sources":["../../../../src/schedule/shared/with-optional-popover.tsx"],"sourcesContent":["import type { RefObject } from \"react\";\n\nimport type { PopoverTriggerProps } from \"../../popover\";\nimport { PopoverTrigger } from \"../../popover\";\nimport type { SchedulePopoverProps } from \"../types\";\nimport * as styles from \"./with-optional-popover.styles\";\n\ninterface ConditionalCellWrapperProps {\n containerRef: RefObject<HTMLDivElement>;\n children: JSX.Element;\n customPopover?: SchedulePopoverProps;\n}\n\nexport const WithOptionalPopover = ({\n containerRef,\n children,\n customPopover,\n}: ConditionalCellWrapperProps) => {\n if (!customPopover) {\n return children;\n }\n\n const popoverTriggerProps: PopoverTriggerProps = {\n position: \"bottom-start\",\n rootNode: containerRef,\n customOffset: customPopover.offset,\n children: children,\n trigger: customPopover.trigger,\n delay: customPopover.delay,\n popoverContent: customPopover.content,\n };\n\n return (\n <PopoverTrigger\n className={styles.popoverTrigger}\n zIndex={2}\n {...popoverTriggerProps}\n />\n );\n};\n"],"names":["containerRef","children","customPopover","popoverTriggerProps","position","rootNode","customOffset","offset","trigger","delay","popoverContent","content","_jsx","PopoverTrigger","Object","assign","className","styles.popoverTrigger","zIndex"],"mappings":"mjCAamC,EAC/BA,eACAC,WACAC,oBAEA,IAAKA,EACD,OAAOD,EAGX,MAAME,EAA2C,CAC7CC,SAAU,eACVC,SAAUL,EACVM,aAAcJ,EAAcK,OAC5BN,SAAUA,EACVO,QAASN,EAAcM,QACvBC,MAAOP,EAAcO,MACrBC,eAAgBR,EAAcS,SAGlC,OACIC,MAACC,EAAAA,eAAcC,OAAAC,OAAA,CACXC,UAAWC,EAAAA,eACXC,OAAQ,GACJf,GACN"}
@@ -0,0 +1,2 @@
1
+ "use strict";require("./with-optional-popover.styles_7mv3p2.css");exports.popoverTrigger="p1gm2ee7";
2
+ //# sourceMappingURL=with-optional-popover.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-optional-popover.styles.js","sources":["../../../../src/schedule/shared/with-optional-popover.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nexport const popoverTrigger = css`\n width: 100%;\n display: flex;\n flex-direction: column;\n`;\n"],"names":[],"mappings":"wHAE2B"}
@@ -0,0 +1 @@
1
+ .p1gm2ee7{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),i=require("../../util/time-helper.js"),r=require("./time-indicator.styles.js");exports.TimeIndicator=({minTime:n,maxTime:m,format:s="24hr",timelineOffset:t=null,isWeekView:l=!1})=>{const u=i.TimeHelper.generateTimings(30,s,n,m).filter((e=>e.includes(":00")));return e.jsxs(r.TimeColumnWrapper,{children:[null!==t&&e.jsx(r.TimelineCircle,{$top:t,$isWeekView:l}),e.jsx(r.TimeColumn,{children:u.map((i=>{const{hour:m,ampm:s}=function(e){const[i]=e.split(":").map(Number);return{hour:i%12==0?12:i%12,ampm:i<12?"am":"pm"}}(i),t=i===n;return e.jsx(r.TimeLabel,{children:!t&&e.jsxs(e.Fragment,{children:[e.jsx(r.HourDisplay,{children:m}),e.jsx("span",{children:s})]})},i)}))})]})};
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("clsx"),i=require("react");require("../../theme/theme-provider/index.js"),require("../../theme/theme-provider/context.js"),require("../../theme/tokens/border.js"),require("../../theme/tokens/colour.js"),require("../../theme/tokens/font.js"),require("../../theme/tokens/media-query.js");var t=require("../../theme/utils/use-apply-styles.js");require("../../theme/utils/use-media-query.js");var s=require("../../typography/index.js"),l=require("../../util/time-helper.js"),n=require("./time-indicator.styles.js");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=m(r);exports.TimeIndicator=({minTime:r,maxTime:m,format:a="24hr",timelineOffset:o=null,isWeekView:c=!1})=>{const p=l.TimeHelper.generateTimings(30,a,r,m).filter((e=>e.includes(":00"))),d=i.useRef(null);return t.useApplyStyle(d,{[n.tokens.timelineCircle.offset]:null===o?null:`${o}px`}),e.jsxs("div",{className:n.timeColumnWrapper,children:[null!==o&&e.jsx("div",{className:u.default(n.timelineCircle,c&&n.timelineCircleWeekView),ref:d}),e.jsx("div",{className:n.timeColumn,children:p.map((i=>{const{hour:t,ampm:l}=function(e){const[r]=e.split(":").map(Number);return{hour:r%12==0?12:r%12,ampm:r<12?"am":"pm"}}(i),m=i===r;return e.jsx(s.Typography.BodySM,{className:n.timeLabel,children:!m&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:n.hourDisplay,children:t}),e.jsx("span",{children:l})]})},i)}))})]})};
2
2
  //# sourceMappingURL=time-indicator.js.map