@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 +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":["TimeCell","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","_jsx","SlotColumnOverlay","$actualWidthPercentage","$leftPosition","slotIndex","positionedSlot","column","offsetTop","calculateSlotOffset","WithOptionalPopover","customPopover","SlotContent","renderSlotWithPopover","HiddenColumns","onClick"],"mappings":"mjBA2BaA,EAAoC,EAC7CC,UACAC,OACAC,cACAC,gBACAC,eACAC,iBACAC,yBAKA,MAAMC,EAAcC,EAAWC,cAAcR,GACvCS,EAAWC,EAAcJ,EAAc,IAEvCK,EAAsBC,EACxBX,EACAF,EACAC,EACAS,GAGEI,EAAcC,EAChBb,EACAF,EACAC,EACAS,GAGEM,EAAsBC,EACxBH,EACAX,GAOEe,EAA0BJ,EAAYK,QAAQC,IAChD,MAAMC,EAAUD,EAAKE,GACfC,EAAapB,EAAckB,GACjC,OAAOE,aAAU,EAAVA,EAAYC,WAAW,CAAK,IAGjCC,EAAyBX,EAAYK,QAAQC,IAC/C,MAAMC,EAAUD,EAAKE,GACfC,EAAapB,EAAckB,GACjC,QAAQE,eAAAA,EAAYC,QAAO,IA2FzBE,EApFwC,MAC1C,MAAMnB,EAAcC,EAAWC,cAAcR,GACvC0B,EAAgB,CAClBC,MAAOjB,EAAcJ,GACrBsB,IAAKlB,EAAcJ,EAAc,KAE/BuB,EAAiB,CACnBF,MAAOjB,EAAcJ,EAAc,IACnCsB,IAAKlB,EAAcJ,EAAc,KAI/BwB,EAA2BN,EAAuBN,QACnDC,IACG,MAAMY,EAAmBxB,EAAWC,cAChCW,EAAKa,WAEHC,EAAiB1B,EAAWC,cAAcW,EAAKe,SAErD,OACIH,EAAmBzB,EAAc,IACjC2B,EAAiB3B,CAAW,IAMlC6B,EAA4BX,EAAuBN,QACpDC,IACG,MAAMY,EAAmBxB,EAAWC,cAChCW,EAAKa,WAEHC,EAAiB1B,EAAWC,cAAcW,EAAKe,SAErD,OACIH,EAAmBzB,EAAc,IACjC2B,EAAiB3B,EAAc,EAAE,IAKvC8B,EAAwBC,MAAMC,KAChC,IAAIC,IAAIT,EAAyBU,KAAKrB,GAASA,EAAKsB,gBAElDC,EAAyBL,MAAMC,KACjC,IAAIC,IAAIJ,EAA0BK,KAAKrB,GAASA,EAAKsB,gBAWzD,QANIL,EAAsBO,SAAWD,EAAuBC,SACvDP,EAAsBQ,OAAOC,GAC1BH,EAAuBI,SAASD,OAIXT,EAAsBO,OAAS,EACjD,CACH,CACII,SAAU,CACNpB,MAAOD,EAAcC,MACrBC,IAAKC,EAAeD,KAExBoB,YAAaxB,EACbyB,eAAgBb,IAMrB,CACH,CACIW,SAAUrB,EACVsB,YAAalB,EACbmB,eAAgBb,GAEpB,CACIW,SAAUlB,EACVmB,YAAab,EACbc,eAAgBP,IAEtBxB,QAAQgC,GAAiBA,EAAaD,eAAeN,OAAS,GAAE,EAG9CQ,GAElBC,EAAoBC,EACtBpC,EACAO,GAGE8B,EAAwBvC,EAuD9B,OACIwC,EAACC,EAAQ,CAAAC,QAAqBzD,EAAK0D,SAAS,OAAMC,SAAA,CAC7CP,EAAkBQ,gBAAgBpB,KAC/B,CAACC,EAAaoB,KACV,MAAMC,EAAenD,EAAoBO,QAAQC,IAC7C,MAAMC,EAAUD,EAAKE,GACfC,EAAapB,EAAckB,GACjC,OACID,EAAKsB,cAAgBA,IACrBnB,aAAU,EAAVA,EAAYC,QAAO,IAM3B,OACIwC,EAACC,EAAiB,CAAAC,uBAEUX,EAAqBY,cALhCL,EAAeP,EAMDK,SAE1BG,EAAatB,KAAI,CAACrB,EAAMgD,IAvEnB,EAC1BhD,EACAgD,EACAN,KAEA,MACMO,EAAiB,CACnBjD,OACAkD,OAAQR,EACRS,UAJcC,EAAoBpD,EAAKa,UAAWhC,IAOtD,OACI+D,EAACS,EAAmB,CAEhBrE,aAAcA,EACdsE,cAAetD,EAAKsD,cAAad,SAEjCI,EAACW,EAAW,CACRN,eAAgBA,EAChBhE,eAAgBA,KANf,GAAGe,EAAKE,IAAM8C,KAAaA,IAQd,EAkDFQ,CACIxD,EACAgD,EACAN,MARHpB,EAWW,IAI/BhB,EAAgBkB,OAAS,IAvDC,IAA3BlB,EAAgBkB,OAAqB,KAGrCoB,EAACC,EAAiB,CAAAC,uBAEUX,EAAqBY,cAC9B,EAAIZ,EAAqBK,SAEvClC,EAAgBe,KAAKU,GAClBK,EAACqB,qBAEsB,IAAMnD,EAAgBkB,OACzCkC,QAAS,KACLxE,SAAAA,EAAqB6C,EAAaD,eAAe,EACpDU,SAAA,CAAA,IAECT,EAAaD,eAAeN,SANzB,cAAcO,EAAaH,SAASpB,SAASuB,EAAaH,SAASnB,UAN5E,0BAoBG5B,EAgCJ"}
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","TimeCell","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":"uoCAoCA,MAAMA,EAAc,EAChBC,wBACAC,eACAC,eAEA,MAAMC,EAAaC,EAAuB,MAQ1C,OANAC,EAAcF,EAAY,CACtB,CAACG,EAAcC,kBAAkBN,cAAe,GAAGA,IACnD,CAACK,EAAcC,kBACVP,uBAAwB,GAAGA,MAIhCQ,EAAA,MAAA,CAAKC,UAAWC,EAA0BC,IAAKR,EAAUD,SACpDA,GACC,EAURU,EAAsB,EACxBC,mBACAC,UACAZ,eAEA,MAAMa,EAAmBX,EAA0B,MAOnD,OALAC,EAAcU,EAAkB,CAC5B,CAACT,EAAcU,cAAcC,WAAY,GAAGJ,KAC5C,CAACP,EAAcU,cAAcE,QAAS,GAAGL,OAIzCL,YACIC,UAAWU,EACXR,IAAKI,EACLD,QAASA,EACTM,KAAK,SAAQlB,SAEZA,GACI,EAIJmB,EAAoC,EAC7CC,UACAC,OACAC,cACAC,gBACAC,eACAC,iBACAC,yBAKA,MAAMC,EAAcC,EAAWC,cAAcR,GACvCS,EAAWC,EAAcJ,EAAc,IAEvCK,EAAsBC,EACxBX,EACAF,EACAC,EACAS,GAGEI,EAAcC,EAChBb,EACAF,EACAC,EACAS,GAGEM,EAAsBC,EACxBH,EACAX,GAOEe,EAA0BJ,EAAYK,QAAQC,IAChD,MAAMC,EAAUD,EAAKE,GACfC,EAAapB,EAAckB,GACjC,OAAOE,aAAU,EAAVA,EAAYC,WAAW,CAAK,IAGjCC,EAAyBX,EAAYK,QAAQC,IAC/C,MAAMC,EAAUD,EAAKE,GACfC,EAAapB,EAAckB,GACjC,QAAQE,eAAAA,EAAYC,QAAO,IAMzBE,EAAwB,CAACC,EAAoBC,IACxCH,EAAuBN,QAAQC,IAClC,MAAMS,EAAmBrB,EAAWC,cAAcW,EAAKU,WACjDC,EAAiBvB,EAAWC,cAAcW,EAAKY,SAErD,OAAOH,EAAmBD,GAAYG,EAAiBJ,CAAU,IAInEM,EAAqBC,GAChBC,MAAMC,KAAK,IAAIC,IAAIH,EAAMI,KAAKlB,GAASA,EAAKmB,gBAuEjDC,EAnEwC,MAC1C,MAAMjC,EAAcC,EAAWC,cAAcR,GACvCwC,EAAgB,CAClBC,MAAO/B,EAAcJ,GACrBoC,IAAKhC,EAAcJ,EAAc,KAE/BqC,EAAiB,CACnBF,MAAO/B,EAAcJ,EAAc,IACnCoC,IAAKhC,EAAcJ,EAAc,KAI/BsC,EAA2BnB,EAE7BnB,EACAA,EAAc,IAGZuC,EAA4BpB,EAE9BnB,EAAc,GACdA,EAAc,IAGZwC,EAAwBd,EAC1BY,GAEEG,EAAyBf,EAC3Ba,GAWJ,QANIC,EAAsBE,SAAWD,EAAuBC,SACvDF,EAAsBG,OAAOC,GAC1BH,EAAuBI,SAASD,OAIXJ,EAAsBE,OAAS,EACjD,CACH,CACII,SAAU,CACNX,MAAOD,EAAcC,MACrBC,IAAKC,EAAeD,KAExBW,YAAa7B,EACb8B,eAAgBR,IAMrB,CACH,CACIM,SAAUZ,EACVa,YAAaT,EACbU,eAAgBR,GAEpB,CACIM,SAAUT,EACVU,YAAaR,EACbS,eAAgBP,IAEtB7B,QAAQqC,GAAiBA,EAAaD,eAAeN,OAAS,GAAE,EAG9CQ,GAElBC,EAAoBC,EACtBzC,EACAO,GAGE/C,EAAwBsC,EAuE9B,OACI4C,EAAA,MAAA,CAEIzE,UAAW0E,EACPC,EACA7D,EAAK8D,SAAS,QAAUC,GAC3BpF,SAAA,CAEA8E,EAAkBO,gBAAgB3B,KAC/B,CAACC,EAAa2B,KACV,MAAMC,EAAevD,EAAoBO,QAAQC,IAC7C,MAAMC,EAAUD,EAAKE,GACfC,EAAapB,EAAckB,GACjC,OACID,EAAKmB,cAAgBA,IACrBhB,aAAU,EAAVA,EAAYC,QAAO,IAM3B,OACItC,EAACT,EAAW,CAERC,sBAAuBA,EACvBC,aANauF,EAAexF,EAMFE,SAEzBuF,EAAa7B,KAAI,CAAClB,EAAMgD,IA7FnB,EAC1BhD,EACAgD,KAEA,MAAMC,EAAYC,EAAoBlD,EAAKU,UAAW7B,GAChDsE,EAAW/D,EAAWgE,kBACxBpD,EAAKU,UACLV,EAAKY,SAGT,OACI9C,EAACuF,EAAmB,CAEhBrE,aAAcA,EACdsE,cAAetD,EAAKsD,cAAa9F,SAEjCgF,EAACe,EAAmB,CAChBvD,KAAMA,EACNiD,UAAWA,EACXO,OAAQ5F,EAAc6F,qBACtBC,WAAY,CACRC,UAAWC,EACXC,QAASC,EACTC,UAAWC,GAEfC,YAAajE,EAAK5B,QAAOZ,SAAA,CAEzBM,EAAA,OAAA,CAAMC,UAAWmG,EAAsB1G,SAClCwC,EAAKmB,cAETgC,GAAY,IACTrF,UAAMC,UAAWoG,EAAuB3G,SACnB,YAAhBwC,EAAKoE,OACAnF,EACA,GAAGe,EAAKqE,YAAYrE,EAAKsE,iBAtBtC,GAAGtE,EAAKE,IAAM8C,KAAaA,IA0Bd,EAwDFuB,CAAsBvE,EAAMgD,MAL3B7B,EAOK,IAIzBC,EAAgBS,OAAS,IAzDC,IAA3BT,EAAgBS,OAAqB,KAGrC/D,EAACT,EAAW,CAERC,sBAAuBA,EACvBC,aAAc,EAAID,WAEjB8D,EAAgBF,KAAKkB,GAClBI,EAACtE,GAEGC,iBAAkB,IAAMiD,EAAgBS,OACxCzD,QAAS,KACLc,SAAAA,EAAqBkD,EAAaD,eAAe,EACpD3E,SAAA,CAAA,IAEC4E,EAAaD,eAAeN,SANzB,cAAcO,EAAaH,SAASX,SAASc,EAAaH,SAASV,UAN5E,0BAqBH1C,EAiCH"}
@@ -1,14 +1,23 @@
1
- interface SlotCellStyleProps {
2
- $dashed?: boolean;
3
- }
4
- interface SlotColumnOverlayStyleProps {
5
- $actualWidthPercentage?: number;
6
- $leftPosition?: number;
7
- }
8
- interface HiddenColumnsStyleProps {
9
- $heightPercentage?: number;
10
- }
11
- export declare const SlotCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$dashed"> & SlotCellStyleProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$dashed"> & SlotCellStyleProps, never>>> & string;
12
- export declare const SlotColumnOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof SlotColumnOverlayStyleProps> & SlotColumnOverlayStyleProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof SlotColumnOverlayStyleProps> & SlotColumnOverlayStyleProps, never>>> & string;
13
- export declare const HiddenColumns: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$heightPercentage"> & HiddenColumnsStyleProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$heightPercentage"> & HiddenColumnsStyleProps, never>>> & string;
14
- export {};
1
+ export declare const tokens: {
2
+ slotContentContainer: {
3
+ height: string;
4
+ offsetTop: string;
5
+ };
6
+ slotColumnOverlay: {
7
+ leftPosition: string;
8
+ actualWidthPercentage: string;
9
+ };
10
+ hiddenColumns: {
11
+ minHeight: string;
12
+ height: string;
13
+ };
14
+ };
15
+ export declare const slotContentContainer: import("@linaria/core").LinariaClassName;
16
+ export declare const slotContentContainerAvailable: import("@linaria/core").LinariaClassName;
17
+ export declare const slotContentContainerBlocked: import("@linaria/core").LinariaClassName;
18
+ export declare const slotServiceName: import("@linaria/core").LinariaClassName;
19
+ export declare const slotAvailability: import("@linaria/core").LinariaClassName;
20
+ export declare const slotCell: import("@linaria/core").LinariaClassName;
21
+ export declare const slotCellDashed: import("@linaria/core").LinariaClassName;
22
+ export declare const slotColumnOverlay: import("@linaria/core").LinariaClassName;
23
+ export declare const hiddenColumns: import("@linaria/core").LinariaClassName;
@@ -1,35 +1,2 @@
1
- import e,{css as t}from"styled-components";import{V3_Border as o,V3_Colour as i,V3_Font as r,V3_Radius as n,V3_Shadow as s}from"../../v3_theme/index.js";import{CELL_HEIGHT as d}from"../const.js";const h=e.div`
2
- min-height: ${d}px;
3
- position: relative;
4
- border-bottom: ${o["width-010"]} solid ${i.border};
5
- ${e=>e.$dashed&&t`
6
- border-bottom-style: dashed;
7
- `}
8
- cursor: pointer;
9
- `,$=e.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
- `,c=e.button`
20
- background-color: unset;
21
- border: none;
22
- display: flex;
23
- align-items: center;
24
- justify-content: center;
25
- cursor: pointer;
26
- color: ${i["text-primary"]};
27
- ${r["body-xs-semibold"]};
28
- min-height: ${e=>e.$heightPercentage?`${e.$heightPercentage}%`:`${d}px`};
29
- height: ${e=>e.$heightPercentage?`${e.$heightPercentage}%`:"auto"};
30
- &:hover {
31
- border-radius: ${n.sm};
32
- box-shadow: ${s["sm-subtle"]};
33
- }
34
- `;export{c as HiddenColumns,h as SlotCell,$ as SlotColumnOverlay};
1
+ import"./time-cell.styles_1sorjz8.css";const e={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"}},t="s1o4jdyi",n="s15inga4",s="s25hl9",i="s14imce",l="s1ndukd1",o="stpthki",h="s16rvke",d="s1dqpjs9",a="h1h4fvzf";export{a as hiddenColumns,l as slotAvailability,o as slotCell,h as slotCellDashed,d as slotColumnOverlay,t as slotContentContainer,n as slotContentContainerAvailable,s as slotContentContainerBlocked,i as slotServiceName,e as tokens};
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":"mMA8BO,MAAMA,EAAWC,EAAOC,GAAuB;kBACpCC;;qBAEGC,EAAU,sBAAsBC,EAAkB;MAChEC,GACCA,EAAMC,SACNC,CAAG;;;;EAMEC,EAAoBR,EAAOC,GAAgC;;;YAG3DI,GACE,wBAAwBA,EAAMI;aAE/BJ,GACC,wBAAwBA,EAAMK;;;;;;EAShCC,EAAgBX,EAAOY,MAA+B;;;;;;;aAOtDR,EAAU;MACjBS,EAAQ;kBACKR,GACXA,EAAMS,kBACA,GAAGT,EAAMS,qBACT,GAAGZ;cACFG,GACPA,EAAMS,kBAAoB,GAAGT,EAAMS,qBAAuB;;yBAEzCC,EAAc;sBACjBC,EAAU;;"}
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":["tokens","slotContentContainer","height","offsetTop","slotColumnOverlay","leftPosition","actualWidthPercentage","hiddenColumns","minHeight","slotContentContainerAvailable","slotContentContainerBlocked","slotServiceName","slotAvailability","slotCell","slotCellDashed"],"mappings":"kFAQO,MAAMA,EAAS,CAClBC,qBAAsB,CAClBC,OAAQ,8DACRC,UACI,kEAERC,kBAAmB,CACfC,aACI,iEACJC,sBACI,2EAERC,cAAe,CACXC,UAAW,0DACXN,OAAQ,yDAIHD,EAAoB,WAkBpBQ,EAA6B,WAI7BC,EAA2B,SAI3BC,EAAe,UAQfC,EAAgB,WAQhBC,EAAQ,UAORC,EAAc,UAIdV,EAAiB,WAmBjBG,EAAa"}
@@ -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,15 +1,7 @@
1
- import type { RefObject } from "react";
2
- import type { ScheduleEntityProps, ScheduleSlotProps } from "../types";
3
- export interface ScheduleWeekViewProps {
4
- date: string;
1
+ import type { CommonScheduleViewProps, ScheduleEntityProps, ScheduleSlotProps } from "../types";
2
+ export interface ScheduleWeekViewProps extends CommonScheduleViewProps {
5
3
  serviceData: ScheduleEntityProps[];
6
- loading: boolean;
7
- minTime: string;
8
- maxTime: string;
9
- initialScrollTime?: string | undefined;
10
4
  onSlotClick?: (data: ScheduleSlotProps, e: React.MouseEvent) => void | undefined;
11
- containerRef: RefObject<HTMLDivElement>;
12
- blockedMessage?: string | undefined;
13
5
  onClickHiddenSlots?: (hiddenServices: string[]) => void | undefined;
14
6
  }
15
7
  /**
@@ -19,11 +11,6 @@ export interface ScheduleWeekViewProps {
19
11
  export interface SlotWithService extends ScheduleSlotProps {
20
12
  serviceName: string;
21
13
  }
22
- export interface PositionedSlot {
23
- slot: SlotWithService;
24
- column: number;
25
- offsetTop: number;
26
- }
27
14
  interface SlotLayoutInfo {
28
15
  date: string;
29
16
  serviceName: string;
@@ -1,2 +1,2 @@
1
- import{TimeHelper as e}from"../../util/time-helper.js";import"react";import{minutesToTime as t,findSlotsInTimeRange as s,findSlotsStartingInTimeRange as r}from"../shared/utils.js";const i=(e,t,s,i)=>{const n=[];return e.forEach((e=>{if(e.slots){r(e.slots,s,i,t).forEach((t=>{n.push(Object.assign(Object.assign({},t),{serviceName:e.name}))}))}})),n},n=(e,t,r,i)=>{const n=[];return e.forEach((e=>{if(e.slots){s(e.slots,r,i,t).forEach((t=>{n.push(Object.assign(Object.assign({},t),{serviceName:e.name}))}))}})),n},a=(s,r,i)=>{const a={};return r.forEach((r=>{const c=r.format("YYYY-MM-DD");i.forEach((r=>{const i=e.timeToMinutes(r),o=t(i+30),m=n(s,c,r,o);m.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 h=Array.from(new Set(m.map((e=>e.serviceName)))).slice(0,3);m.forEach((e=>{const t=e.id;h.includes(e.serviceName)||(a[t].visible=!1)}));const l=m.filter((e=>{const t=e.id;return a[t].visible})),f=new Set(l.map((e=>e.serviceName))).size,v=m.length>l.length?4:f,d=v>0?100/v:100;m.forEach((e=>{const t=e.id;a[t].width=Math.min(a[t].width,d)}))}))})),a},c=(e,t)=>{let s=Number.MAX_SAFE_INTEGER;return e.forEach((e=>{const r=e.id,i=t[r];s=Math.min(s,i.width)})),s},o=(e,t)=>{const s=Array.from(new Set(e.map((e=>e.serviceName)))),r=Array.from(new Set(t.map((e=>e.serviceName))));return{allServices:[...s,...r],visibleServices:s,hiddenServices:r,totalServices:s.length+r.length,hasOverflow:r.length>0,totalColumns:r.length>0?4:s.length}};export{o as calculateCellServiceLayout,a as calculateSlotWidths,c as getMinimumWidthForCell,n as getSlotsInTimeCell,i as getSlotsStartingInTimeCell};
1
+ import{TimeHelper as e}from"../../util/time-helper.js";import"react";import{minutesToTime as t,findSlotsInTimeRange as r,findSlotsStartingInTimeRange as i}from"../shared/utils.js";import"react/jsx-runtime";import"clsx";import"../../shared/time-slot/time-slot.js";import"../../theme/theme-provider/index.js";import"../../theme/theme-provider/context.js";import"../../theme/tokens/border.js";import"../../theme/tokens/colour.js";import"../../theme/tokens/font.js";import"../../theme/tokens/media-query.js";import"../../util/calendar-helper.js";import"../../external/dayjs/dayjs.min.js";import"../../util/simple-id-generator.js";import"../../util/string-helper.js";import"@react-aria/live-announcer";import"../../theme/utils/use-media-query.js";const s=(e,t,r,s)=>{const o=[];return e.forEach((e=>{if(e.slots){i(e.slots,r,s,t).forEach((t=>{o.push(Object.assign(Object.assign({},t),{serviceName:e.name}))}))}})),o},o=(e,t,i,s)=>{const o=[];return e.forEach((e=>{if(e.slots){r(e.slots,i,s,t).forEach((t=>{o.push(Object.assign(Object.assign({},t),{serviceName:e.name}))}))}})),o},m=(r,i,s)=>{const m={};return i.forEach((i=>{const n=i.format("YYYY-MM-DD");s.forEach((i=>{const s=e.timeToMinutes(i),a=t(s+30),c=o(r,n,i,a);c.forEach((e=>{const t=e.id;m[t]||(m[t]={date:n,serviceName:e.serviceName,startTime:e.startTime,endTime:e.endTime,visible:!0,width:100})}));const l=Array.from(new Set(c.map((e=>e.serviceName)))).slice(0,3);c.forEach((e=>{const t=e.id;l.includes(e.serviceName)||(m[t].visible=!1)}));const h=c.filter((e=>{const t=e.id;return m[t].visible})),p=new Set(h.map((e=>e.serviceName))).size,d=c.length>h.length?4:p,u=d>0?100/d:100;c.forEach((e=>{const t=e.id;m[t].width=Math.min(m[t].width,u)}))}))})),m},n=(e,t)=>{let r=Number.MAX_SAFE_INTEGER;return e.forEach((e=>{const i=e.id,s=t[i];r=Math.min(r,s.width)})),r},a=(e,t)=>{const r=Array.from(new Set(e.map((e=>e.serviceName)))),i=Array.from(new Set(t.map((e=>e.serviceName))));return{allServices:[...r,...i],visibleServices:r,hiddenServices:i,totalServices:r.length+i.length,hasOverflow:i.length>0,totalColumns:i.length>0?4:r.length}};export{a as calculateCellServiceLayout,m as calculateSlotWidths,n as getMinimumWidthForCell,o as getSlotsInTimeCell,s as getSlotsStartingInTimeCell};
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":["getSlotsStartingInTimeCell","serviceData","targetDate","cellStartTime","cellEndTime","allSlots","forEach","service","slots","findSlotsStartingInTimeRange","slot","push","Object","assign","serviceName","name","getSlotsInTimeCell","findSlotsInTimeRange","calculateSlotWidths","weekDays","timeSlots","slotLayoutMap","day","dayDate","format","time","timeMinutes","TimeHelper","timeToMinutes","nextTime","minutesToTime","slotsInCell","slotKey","id","date","startTime","endTime","visible","width","firstThreeServices","Array","from","Set","map","slice","includes","visibleSlots","filter","totalVisibleServices","size","totalColumns","length","widthPercentage","Math","min","getMinimumWidthForCell","minWidth","Number","MAX_SAFE_INTEGER","slotLayout","calculateCellServiceLayout","hiddenSlots","visibleServices","hiddenServices","allServices","totalServices","hasOverflow"],"mappings":"oLAcO,MAAMA,EAA6B,CACtCC,EACAC,EACAC,EACAC,KAEA,MAAMC,EAA8B,GAoBpC,OAlBAJ,EAAYK,SAASC,IACjB,GAAIA,EAAQC,MAAO,CACMC,EACjBF,EAAQC,MACRL,EACAC,EACAF,GAGSI,SAASI,IAClBL,EAASM,KAAIC,OAAAC,OAAAD,OAAAC,OAAA,GACNH,GAAI,CACPI,YAAaP,EAAQQ,OACvB,GAEV,KAGGV,CAAQ,EAMNW,EAAqB,CAC9Bf,EACAC,EACAC,EACAC,KAEA,MAAMC,EAA8B,GAoBpC,OAlBAJ,EAAYK,SAASC,IACjB,GAAIA,EAAQC,MAAO,CACUS,EACrBV,EAAQC,MACRL,EACAC,EACAF,GAGaI,SAASI,IACtBL,EAASM,KAAIC,OAAAC,OAAAD,OAAAC,OAAA,GACNH,GAAI,CACPI,YAAaP,EAAQQ,OACvB,GAEV,KAGGV,CAAQ,EAMNa,EAAsB,CAC/BjB,EACAkB,EACAC,KAEA,MAAMC,EAA+B,CAAA,EAmErC,OAjEAF,EAASb,SAASgB,IACd,MAAMC,EAAUD,EAAIE,OAAO,cAC3BJ,EAAUd,SAASmB,IACf,MAAMC,EAAcC,EAAWC,cAAcH,GACvCI,EAAWC,EAAcJ,EAAc,IACvCK,EAAcf,EAChBf,EACAsB,EACAE,EACAI,GAGJE,EAAYzB,SAASI,IACjB,MAAMsB,EAAUtB,EAAKuB,GAChBZ,EAAcW,KACfX,EAAcW,GAAW,CACrBE,KAAMX,EACNT,YAAaJ,EAAKI,YAClBqB,UAAWzB,EAAKyB,UAChBC,QAAS1B,EAAK0B,QACdC,SAAS,EACTC,MAAO,KAEf,IAGJ,MAKMC,EALiBC,MAAMC,KACzB,IAAIC,IAAIX,EAAYY,KAAKjC,GAASA,EAAKI,gBAID8B,MAAM,EAAG,GACnDb,EAAYzB,SAASI,IACjB,MAAMsB,EAAUtB,EAAKuB,GACHM,EAAmBM,SAASnC,EAAKI,eAE/CO,EAAcW,GAASK,SAAU,EACrC,IAIJ,MAAMS,EAAef,EAAYgB,QAAQrC,IACrC,MAAMsB,EAAUtB,EAAKuB,GACrB,OAAOZ,EAAcW,GAASK,OAAO,IAMnCW,EAHkB,IAAIN,IACxBI,EAAaH,KAAKjC,GAASA,EAAKI,eAESmC,KAEvCC,EADoBnB,EAAYoB,OAASL,EAAaK,OACnB,EAAIH,EACvCI,EAAkBF,EAAe,EAAI,IAAMA,EAAe,IAGhEnB,EAAYzB,SAASI,IACjB,MAAMsB,EAAUtB,EAAKuB,GACrBZ,EAAcW,GAASM,MAAQe,KAAKC,IAChCjC,EAAcW,GAASM,MACvBc,EACH,GACH,GACJ,IAGC/B,CAAa,EAMXkC,EAAyB,CAClCxB,EACAV,KAEA,IAAImC,EAAWC,OAAOC,iBAQtB,OANA3B,EAAYzB,SAASI,IACjB,MAAMsB,EAAUtB,EAAKuB,GACf0B,EAAatC,EAAcW,GACjCwB,EAAWH,KAAKC,IAAIE,EAAUG,EAAWrB,MAAM,IAG5CkB,CAAQ,EAMNI,EAA6B,CACtCd,EACAe,KAEA,MAAMC,EAAkBtB,MAAMC,KAC1B,IAAIC,IAAII,EAAaH,KAAKjC,GAASA,EAAKI,gBAEtCiD,EAAiBvB,MAAMC,KACzB,IAAIC,IAAImB,EAAYlB,KAAKjC,GAASA,EAAKI,gBAG3C,MAAO,CACHkD,YAAa,IAAIF,KAAoBC,GACrCD,kBACAC,iBACAE,cAAeH,EAAgBX,OAASY,EAAeZ,OACvDe,YAAaH,EAAeZ,OAAS,EACrCD,aAAca,EAAeZ,OAAS,EAAI,EAAIW,EAAgBX,OACjE"}
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":["getSlotsStartingInTimeCell","serviceData","targetDate","cellStartTime","cellEndTime","allSlots","forEach","service","slots","findSlotsStartingInTimeRange","slot","push","Object","assign","serviceName","name","getSlotsInTimeCell","findSlotsInTimeRange","calculateSlotWidths","weekDays","timeSlots","slotLayoutMap","day","dayDate","format","time","timeMinutes","TimeHelper","timeToMinutes","nextTime","minutesToTime","slotsInCell","slotKey","id","date","startTime","endTime","visible","width","firstThreeServices","Array","from","Set","map","slice","includes","visibleSlots","filter","totalVisibleServices","size","totalColumns","length","widthPercentage","Math","min","getMinimumWidthForCell","minWidth","Number","MAX_SAFE_INTEGER","slotLayout","calculateCellServiceLayout","hiddenSlots","visibleServices","hiddenServices","allServices","totalServices","hasOverflow"],"mappings":"suBAcO,MAAMA,EAA6B,CACtCC,EACAC,EACAC,EACAC,KAEA,MAAMC,EAA8B,GAoBpC,OAlBAJ,EAAYK,SAASC,IACjB,GAAIA,EAAQC,MAAO,CACMC,EACjBF,EAAQC,MACRL,EACAC,EACAF,GAGSI,SAASI,IAClBL,EAASM,KAAIC,OAAAC,OAAAD,OAAAC,OAAA,GACNH,GAAI,CACPI,YAAaP,EAAQQ,OACvB,GAEV,KAGGV,CAAQ,EAMNW,EAAqB,CAC9Bf,EACAC,EACAC,EACAC,KAEA,MAAMC,EAA8B,GAoBpC,OAlBAJ,EAAYK,SAASC,IACjB,GAAIA,EAAQC,MAAO,CACUS,EACrBV,EAAQC,MACRL,EACAC,EACAF,GAGaI,SAASI,IACtBL,EAASM,KAAIC,OAAAC,OAAAD,OAAAC,OAAA,GACNH,GAAI,CACPI,YAAaP,EAAQQ,OACvB,GAEV,KAGGV,CAAQ,EAMNa,EAAsB,CAC/BjB,EACAkB,EACAC,KAEA,MAAMC,EAA+B,CAAA,EAmErC,OAjEAF,EAASb,SAASgB,IACd,MAAMC,EAAUD,EAAIE,OAAO,cAC3BJ,EAAUd,SAASmB,IACf,MAAMC,EAAcC,EAAWC,cAAcH,GACvCI,EAAWC,EAAcJ,EAAc,IACvCK,EAAcf,EAChBf,EACAsB,EACAE,EACAI,GAGJE,EAAYzB,SAASI,IACjB,MAAMsB,EAAUtB,EAAKuB,GAChBZ,EAAcW,KACfX,EAAcW,GAAW,CACrBE,KAAMX,EACNT,YAAaJ,EAAKI,YAClBqB,UAAWzB,EAAKyB,UAChBC,QAAS1B,EAAK0B,QACdC,SAAS,EACTC,MAAO,KAEf,IAGJ,MAKMC,EALiBC,MAAMC,KACzB,IAAIC,IAAIX,EAAYY,KAAKjC,GAASA,EAAKI,gBAID8B,MAAM,EAAG,GACnDb,EAAYzB,SAASI,IACjB,MAAMsB,EAAUtB,EAAKuB,GACHM,EAAmBM,SAASnC,EAAKI,eAE/CO,EAAcW,GAASK,SAAU,EACrC,IAIJ,MAAMS,EAAef,EAAYgB,QAAQrC,IACrC,MAAMsB,EAAUtB,EAAKuB,GACrB,OAAOZ,EAAcW,GAASK,OAAO,IAMnCW,EAHkB,IAAIN,IACxBI,EAAaH,KAAKjC,GAASA,EAAKI,eAESmC,KAEvCC,EADoBnB,EAAYoB,OAASL,EAAaK,OACnB,EAAIH,EACvCI,EAAkBF,EAAe,EAAI,IAAMA,EAAe,IAGhEnB,EAAYzB,SAASI,IACjB,MAAMsB,EAAUtB,EAAKuB,GACrBZ,EAAcW,GAASM,MAAQe,KAAKC,IAChCjC,EAAcW,GAASM,MACvBc,EACH,GACH,GACJ,IAGC/B,CAAa,EAMXkC,EAAyB,CAClCxB,EACAV,KAEA,IAAImC,EAAWC,OAAOC,iBAQtB,OANA3B,EAAYzB,SAASI,IACjB,MAAMsB,EAAUtB,EAAKuB,GACf0B,EAAatC,EAAcW,GACjCwB,EAAWH,KAAKC,IAAIE,EAAUG,EAAWrB,MAAM,IAG5CkB,CAAQ,EAMNI,EAA6B,CACtCd,EACAe,KAEA,MAAMC,EAAkBtB,MAAMC,KAC1B,IAAIC,IAAII,EAAaH,KAAKjC,GAASA,EAAKI,gBAEtCiD,EAAiBvB,MAAMC,KACzB,IAAIC,IAAImB,EAAYlB,KAAKjC,GAASA,EAAKI,gBAG3C,MAAO,CACHkD,YAAa,IAAIF,KAAoBC,GACrCD,kBACAC,iBACAE,cAAeH,EAAgBX,OAASY,EAAeZ,OACvDe,YAAaH,EAAeZ,OAAS,EACrCD,aAAca,EAAeZ,OAAS,EAAI,EAAIW,EAAgBX,OACjE"}
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"../_virtual/_tslib.js";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{l as a}from"../external/lodash/lodash.js";import{useState as o,useRef as l,useMemo as n,useEffect as s,useCallback as r}from"react";import"../theme/theme-provider/index.js";import"../theme/theme-provider/context.js";import"../theme/tokens/border.js";import"../theme/tokens/colour.js";import"../theme/tokens/font.js";import"../theme/tokens/media-query.js";import"../util/calendar-helper.js";import"../external/dayjs/dayjs.min.js";import"../util/simple-id-generator.js";import"../util/string-helper.js";import"@react-aria/live-announcer";import{useMaxWidthMediaQuery as m}from"../theme/utils/use-media-query.js";import{Container as d,EmptyTableContainer as c,NoResultsFound as p,ScheduleBodyContainer as h}from"./schedule.styles.js";import{ScheduleDayView as y}from"./schedule-day-view/schedule-day-view.js";import{ScheduleHeader as u}from"./schedule-header/schedule-header.js";import{ScheduleWeekView as k}from"./schedule-week-view/schedule-week-view.js";const v=v=>{var{id:C,className:g,view:j="day",date:D,serviceData:x,loading:S=!1,minTime:w="00:00",maxTime:T="23:59",initialScrollTime:f=w,minDate:b,maxDate:N,emptyContentMessage:P,emptySlotPopover:M,onPreviousDayClick:E,onNextDayClick:O,onCalendarDateSelect:H,onTodayClick:q,onEmptySlotClick:A,blockedMessage:R,onClickHiddenSlots:V,"data-testid":$="schedule"}=v,_=e(v,["id","className","view","date","serviceData","loading","minTime","maxTime","initialScrollTime","minDate","maxDate","emptyContentMessage","emptySlotPopover","onPreviousDayClick","onNextDayClick","onCalendarDateSelect","onTodayClick","onEmptySlotClick","blockedMessage","onClickHiddenSlots","data-testid"]);const[z,B]=o(j),F=m("lg"),G=F?"day":z,I=l(null),[J,K]=o(0),L=0===x.length||a.isEmpty(x),Q=n((()=>x.map((e=>Object.assign(Object.assign({},e),{slots:e.slots.filter((e=>e.date===D))})))),[x,D]),U=F?Q&&Q.length>0?[Q[J]]:[]:Q;s((()=>{K(0)}),[Q]);const W=e=>{B(e)},X=r((()=>{null==q||q()}),[q]),Y=r((()=>{Q&&K((e=>e<Q.length-1?e+1:e))}),[Q]),Z=r((()=>{K((e=>e>0?e-1:e))}),[]);return t(d,L?Object.assign({},_,{"data-testid":$,$loading:S,children:[i(u,{"data-id":"schedule-header",date:D,view:G,minDate:b,maxDate:N,onPreviousDayClick:E,onNextDayClick:O,onCalendarDateSelect:H,onViewChange:W,onTodayClick:X}),i(c,{className:"empty-container",children:i(p,{type:"no-item-found",description:P})})]}):Object.assign({id:C,className:g,$loading:S,"data-testid":$},_,{children:[i(u,{"data-id":"schedule-header",date:D,view:G,minDate:b,maxDate:N,onPreviousDayClick:E,onNextDayClick:O,onCalendarDateSelect:H,onViewChange:W,onTodayClick:X}),i(h,{ref:I,"data-id":"schedule-container",children:"day"===G?i(y,{date:D,serviceData:U,loading:S,minTime:w,maxTime:T,initialScrollTime:f,emptySlotPopover:M,isMobile:F,onNextService:Y,onPrevService:Z,containerRef:I,showPrevArrow:F&&J>0,showNextArrow:F&&J<Q.length-1,onEmptySlotClick:A,blockedMessage:R}):i(k,{date:D,serviceData:x,loading:S,minTime:w,maxTime:T,initialScrollTime:f,containerRef:I,blockedMessage:R,onClickHiddenSlots:V})})]}))};export{v as Schedule};
1
+ import{__rest as e}from"../_virtual/_tslib.js";import{jsxs as t,jsx as i}from"react/jsx-runtime";import o from"clsx";import{l as a}from"../external/lodash/lodash.js";import{useState as s,useRef as r,useMemo as l,useEffect as n,useCallback as m}from"react";import{ErrorDisplay as d}from"../error-display/error-display.js";import"../theme/theme-provider/index.js";import"../theme/theme-provider/context.js";import"../theme/tokens/border.js";import"../theme/tokens/colour.js";import"../theme/tokens/font.js";import"../theme/tokens/media-query.js";import"../util/calendar-helper.js";import"../external/dayjs/dayjs.min.js";import"../util/simple-id-generator.js";import"../util/string-helper.js";import"@react-aria/live-announcer";import{useMaxWidthMediaQuery as c}from"../theme/utils/use-media-query.js";import{container as p,containerLoading as h,noResultsFound as y,emptyTableContainer as u,scheduleBodyContainer as v}from"./schedule.styles.js";import{ScheduleDayView as j}from"./schedule-day-view/schedule-day-view.js";import{ScheduleHeader as k}from"./schedule-header/schedule-header.js";import{ScheduleWeekView as g}from"./schedule-week-view/schedule-week-view.js";const C=C=>{var{id:D,className:x,view:S="day",date:f,serviceData:w,loading:T=!1,minTime:b="00:00",maxTime:N="23:59",initialScrollTime:P=b,minDate:M,maxDate:O,emptyContentMessage:E,emptySlotPopover:H,onPreviousDayClick:q,onNextDayClick:A,onCalendarDateSelect:_,onTodayClick:R,onEmptySlotClick:V,blockedMessage:z,onClickHiddenSlots:B,"data-testid":F="schedule"}=C,G=e(C,["id","className","view","date","serviceData","loading","minTime","maxTime","initialScrollTime","minDate","maxDate","emptyContentMessage","emptySlotPopover","onPreviousDayClick","onNextDayClick","onCalendarDateSelect","onTodayClick","onEmptySlotClick","blockedMessage","onClickHiddenSlots","data-testid"]);const[I,J]=s(S),K=c("lg"),L=K?"day":I,Q=r(null),[U,W]=s(0),X=0===w.length||a.isEmpty(w),Y=l((()=>w.map((e=>Object.assign(Object.assign({},e),{slots:e.slots.filter((e=>e.date===f))})))),[w,f]);let Z=Y;K&&(Z=Y.length>0?[Y[U]]:[]);const $=K&&U>0,ee=K&&U<Y.length-1;n((()=>{W(0)}),[Y]);const te=m((()=>{null==R||R()}),[R]),ie=m((()=>{Y&&W((e=>e<Y.length-1?e+1:e))}),[Y]),oe=m((()=>{W((e=>e>0?e-1:e))}),[]),ae={date:f,loading:T,minTime:b,maxTime:N,initialScrollTime:P,containerRef:Q,blockedMessage:z};return t("div",Object.assign({id:D,className:o(p,T&&h,x),"data-testid":F},G,{children:[i(k,{"data-id":"schedule-header",date:f,view:L,minDate:M,maxDate:O,onPreviousDayClick:q,onNextDayClick:A,onCalendarDateSelect:_,onViewChange:e=>{J(e)},onTodayClick:te}),i("div",X?{className:o(u,"empty-container"),children:i(d,{className:y,type:"no-item-found",description:E})}:{className:v,ref:Q,"data-id":"schedule-container",children:"day"===L?i(j,Object.assign({},ae,{serviceData:Z,emptySlotPopover:H,isMobile:K,onNextService:ie,onPrevService:oe,showPrevArrow:$,showNextArrow:ee,onEmptySlotClick:V})):i(g,Object.assign({},ae,{serviceData:w,onClickHiddenSlots:B}))})]}))};export{C as Schedule};
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":["Schedule","_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":"kiCAeO,MAAMA,EAAYC,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,EAAAvB,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,EAAyBvB,GACzDwB,EAAgBC,EAAsB,MACtCC,EAAgBF,EAAgB,MAAQH,EACxCM,EAAsBC,EAAuB,OAC5CC,EAAmBC,GAAwBP,EAAS,GACrDQ,EAAwC,IAAvB7B,EAAY8B,QAAgBC,EAAAA,QAAQ/B,GACrDgC,EAAsBC,GACxB,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,GAAU,KACNZ,EAAqB,EAAE,GACxB,CAACI,IAKJ,MAAMS,EAAoBC,IACtBtB,EAAesB,EAAQ,EAGrBC,EAAmBC,GAAY,KACjChC,SAAAA,GAAgB,GACjB,CAACA,IAEEiC,EAAoBD,GAAY,KAC7BZ,GACLJ,GAAsBkB,GAClBA,EAAMd,EAAoBF,OAAS,EAAIgB,EAAM,EAAIA,GACpD,GACF,CAACd,IAEEe,EAAoBH,GAAY,KAClChB,GAAsBkB,GAASA,EAAM,EAAIA,EAAM,EAAIA,GAAK,GACzD,IAKH,OAEQE,EAACC,EAFLpB,EAEcqB,OAAAC,OAAA,CAAA,EAAKlC,EAAU,CAAA,cAAeD,EAAMoC,SAAYnD,YACtDoD,EAACC,EAAc,CAAA,UACH,kBACRvD,KAAMA,EACND,KAAM0B,EACNnB,QAASA,EACTC,QAASA,EACTG,mBAAoBA,EACpBC,eAAgBA,EAChBC,qBAAsBA,EACtB4C,aAAcd,EACd7B,aAAc+B,IAElBU,EAACG,EAAmB,CAAC3D,UAAU,kBAAiB4D,SAC5CJ,EAACK,EAAc,CACXC,KAAK,gBACLC,YAAarD,SAOnB2C,OAAAC,OAAA,CACNvD,GAAIA,EACJC,UAAWA,EAASuD,SACVnD,EAAO,cACJe,GACTC,EAAU,CAAAwC,SAAA,CAEdJ,EAACC,EAAc,CAAA,UACH,kBACRvD,KAAMA,EACND,KAAM0B,EACNnB,QAASA,EACTC,QAASA,EACTG,mBAAoBA,EACpBC,eAAgBA,EAChBC,qBAAsBA,EACtB4C,aAAcd,EACd7B,aAAc+B,IAGlBU,EAACQ,EAAqB,CAClBC,IAAKrC,EAAmB,UAChB,qBAAoBgC,SAET,QAAlBjC,EACG6B,EAACU,EAAe,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,EAACiB,EAAgB,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":["Schedule","_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":"6oCAYO,MAAMA,EAAYC,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,EAAAvB,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,EAAyBvB,GACzDwB,EAAgBC,EAAsB,MACtCC,EAAgBF,EAAgB,MAAQH,EACxCM,EAAsBC,EAAuB,OAC5CC,EAAmBC,GAAwBP,EAAS,GACrDQ,EAAwC,IAAvB7B,EAAY8B,QAAgBC,EAAAA,QAAQ/B,GACrDgC,EAAsBC,GACxB,IACIjC,EAAYkC,KAAKC,kCACVA,GAAO,CACVC,MAAOD,EAAQC,MAAMC,QAAQC,GAASA,EAAKvC,OAASA,SAE5D,CAACC,EAAaD,IAElB,IAAIwC,EAAqBP,EACrBV,IACAiB,EACIP,EAAoBF,OAAS,EACvB,CAACE,EAAoBL,IACrB,IAEd,MAAMa,EAAgBlB,GAAiBK,EAAoB,EACrDc,GACFnB,GAAiBK,EAAoBK,EAAoBF,OAAS,EAEtEY,GAAU,KACNd,EAAqB,EAAE,GACxB,CAACI,IAKJ,MAIMW,GAAmBC,GAAY,KACjChC,SAAAA,GAAgB,GACjB,CAACA,IAEEiC,GAAoBD,GAAY,KAC7BZ,GACLJ,GAAsBkB,GAClBA,EAAMd,EAAoBF,OAAS,EAAIgB,EAAM,EAAIA,GACpD,GACF,CAACd,IAEEe,GAAoBH,GAAY,KAClChB,GAAsBkB,GAASA,EAAM,EAAIA,EAAM,EAAIA,GAAK,GACzD,IAgBGE,GAAmD,CACrDjD,OACAE,UACAC,UACAC,UACAC,oBACA6C,aAAcxB,EACdX,kBA+BJ,OACIoC,EAAA,MAAAC,OAAAC,OAAA,CACIxD,GAAIA,EACJC,UAAWwD,EACPC,EACArD,GAAWsD,EACX1D,GACH,cACYmB,GACTC,EAAU,CAAAuC,SAAA,CAEdC,EAACC,EAAc,CAAA,UACH,kBACR3D,KAAMA,EACND,KAAM0B,EACNnB,QAASA,EACTC,QAASA,EACTG,mBAAoBA,EACpBC,eAAgBA,EAChBC,qBAAsBA,EACtBgD,aA3FcC,IACtBxC,EAAewC,EAAQ,EA2FfhD,aAAc+B,KApEtBc,EAAA,MAuEK5B,EAvEL,CAAKhC,UAAWwD,EAAKQ,EAA4B,mBAAkBL,SAC/DC,EAACK,GACGjE,UAAWkE,EACXC,KAAK,gBACLC,YAAa1D,MAiBjBV,UAAWqE,EACXC,IAAK1C,EAAmB,UAChB,qBAAoB+B,SAET,QAAlBhC,EACGiC,EAACW,mBACOpB,GAAuB,CAC3BhD,YAAauC,EACb/B,iBAAkBA,EAClB6D,SAAU/C,EACVgD,cAAezB,GACf0B,cAAexB,GACfP,cAAeA,EACfC,cAAeA,GACf5B,iBAAkBA,KAGtB4C,EAACe,EAAgBrB,OAAAC,OAAA,CAAA,EACTJ,IACJhD,YAAaA,EACbe,mBAAoBA,UA+B1B"}
@@ -1,8 +1,5 @@
1
- interface ScheduleProps {
2
- $loading: boolean | undefined;
3
- }
4
- export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$loading"> & ScheduleProps, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$loading"> & ScheduleProps, never>>> & string;
5
- export declare const ScheduleBodyContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
6
- export declare const EmptyTableContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
7
- export declare const NoResultsFound: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("..").ErrorDisplayProps, never> & Partial<Pick<import("..").ErrorDisplayProps, never>>> & string & Omit<({ type, img, title, description, actionButton, additionalProps, imageOnly, illustrationScheme, className, ...otherProps }: import("..").ErrorDisplayProps) => import("react/jsx-runtime").JSX.Element | null, keyof import("react").Component<any, {}, any>>;
8
- export {};
1
+ export declare const container: import("@linaria/core").LinariaClassName;
2
+ export declare const containerLoading: import("@linaria/core").LinariaClassName;
3
+ export declare const scheduleBodyContainer: import("@linaria/core").LinariaClassName;
4
+ export declare const emptyTableContainer: import("@linaria/core").LinariaClassName;
5
+ export declare const noResultsFound: import("@linaria/core").LinariaClassName;
@@ -1,27 +1,2 @@
1
- import o,{css as r}from"styled-components";import{ErrorDisplay as i}from"../error-display/error-display.js";import{V3_Border as d,V3_Colour as e,V3_Radius as t,V3_Spacing as n}from"../v3_theme/index.js";import{MIN_COLUMN_WIDTH as s}from"./const.js";const m=o.div`
2
- min-width: 320px;
3
- max-width: 90vw;
4
- box-sizing: border-box;
5
- ${o=>{if(o.$loading)return r`
6
- &:hover {
7
- cursor: not-allowed;
8
- }
9
- `}}
10
- `,p=o.div`
11
- height: 100%;
12
- position: relative;
13
- overflow: hidden;
14
- `,a=o.div`
15
- display: grid;
16
- overflow: auto;
17
- position: relative;
18
- grid-template-columns: ${s}px auto;
19
- border: ${d["width-010"]} ${d.solid} ${e.border};
20
- border-radius: ${t.md};
21
- background: ${e.bg};
22
- `,l=o(i)`
23
- grid-column: 1 / -1;
24
- grid-row: 2;
25
- padding: ${n["spacing-72"]} 0;
26
- `;export{m as Container,a as EmptyTableContainer,l as NoResultsFound,p as ScheduleBodyContainer};
1
+ import"./schedule.styles_fdy5a1.css";const e="c1340rqu",s="c1hp3fsj",c="s1kpvet5",t="e1b7vyxh",h="niqne7l";export{e as container,s as containerLoading,t as emptyTableContainer,h as noResultsFound,c as scheduleBodyContainer};
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":"yPAaO,MAAMA,EAAYC,EAAOC,GAAkB;;;;MAI3CC,IACC,GAAIA,EAAMC,SACN,OAAOC,CAAG;;;;aAKd;EAIKC,EAAwBL,EAAOC,GAAG;;;;EAMlCK,EAAsBN,EAAOC,GAAG;;;;6BAIhBM;cACfC,EAAU,gBAAgBA,EAAUC,SAASC,EAAkB;qBACxDC,EAAc;kBACjBD,EAAc;EAGnBE,EAAiBZ,EAAOa,EAAa;;;eAGnCC,EAAW;"}
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":["container","containerLoading","scheduleBodyContainer","emptyTableContainer","noResultsFound"],"mappings":"6DAKO,MAAMA,EAAS,WAMTC,EAAgB,WAMhBC,EAAqB,WAMrBC,EAAmB,WAUnBC,EAAc"}
@@ -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;}
@@ -3,7 +3,7 @@ import type { SchedulePopoverProps } from "../types";
3
3
  interface ConditionalCellWrapperProps {
4
4
  containerRef: RefObject<HTMLDivElement>;
5
5
  children: JSX.Element;
6
- customPopover?: SchedulePopoverProps | undefined;
6
+ customPopover?: SchedulePopoverProps;
7
7
  }
8
8
  export declare const WithOptionalPopover: ({ containerRef, children, customPopover, }: ConditionalCellWrapperProps) => JSX.Element;
9
9
  export {};
@@ -1,6 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import t from"styled-components";import"../../_virtual/_tslib.js";import"clsx";import"react";import"../../theme/theme-provider/context.js";import"../../typography/typography.js";import"../../card/card.styles_1gh9gs3.css";import"../../markup/markup.js";import"../../modal-v2/index.js";import"../../theme/theme-provider/index.js";import"../../theme/tokens/border.js";import"../../theme/tokens/colour.js";import"../../theme/tokens/font.js";import"../../theme/tokens/media-query.js";import"../../util/calendar-helper.js";import"../../external/dayjs/dayjs.min.js";import"../../util/simple-id-generator.js";import"../../util/string-helper.js";import"@react-aria/live-announcer";import"../../theme/utils/use-media-query.js";import"../../popover/popover.styles_ujnf0h.css";import{PopoverTrigger as o}from"../../popover/popover-trigger.js";import"../../popover/popover-inline/popover-inline.styles_bkopnt.css";const r=t(o)`
2
- width: 100%;
3
- display: flex;
4
- flex-direction: column;
5
- `,i=({containerRef:t,children:o,customPopover:i})=>{if(!i)return o;const p={position:"bottom-start",rootNode:t,customOffset:i.offset,children:o,trigger:i.trigger,delay:i.delay,popoverContent:i.content};return e(r,Object.assign({zIndex:2},p))};export{i as WithOptionalPopover};
1
+ import{jsx as t}from"react/jsx-runtime";import"../../_virtual/_tslib.js";import"clsx";import"react";import"../../theme/theme-provider/context.js";import"../../typography/typography.js";import"../../card/card.styles_1gh9gs3.css";import"../../markup/markup.js";import"../../modal-v2/index.js";import"../../theme/theme-provider/index.js";import"../../theme/tokens/border.js";import"../../theme/tokens/colour.js";import"../../theme/tokens/font.js";import"../../theme/tokens/media-query.js";import"../../util/calendar-helper.js";import"../../external/dayjs/dayjs.min.js";import"../../util/simple-id-generator.js";import"../../util/string-helper.js";import"@react-aria/live-announcer";import"../../theme/utils/use-media-query.js";import"../../popover/popover.styles_ujnf0h.css";import{PopoverTrigger as e}from"../../popover/popover-trigger.js";import"../../popover/popover-inline/popover-inline.styles_bkopnt.css";import{popoverTrigger as o}from"./with-optional-popover.styles.js";const r=({containerRef:r,children:i,customPopover:p})=>{if(!p)return i;const s={position:"bottom-start",rootNode:r,customOffset:p.offset,children:i,trigger:p.trigger,delay:p.delay,popoverContent:p.content};return t(e,Object.assign({className:o,zIndex:2},s))};export{r as WithOptionalPopover};
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","WithOptionalPopover","containerRef","children","customPopover","popoverTriggerProps","position","rootNode","customOffset","offset","trigger","delay","popoverContent","content","_jsx","Object","assign","zIndex"],"mappings":"88BAaA,MAAMA,EAAuBC,EAAOC,EAAe;;;;EAMtCC,EAAsB,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,EAAChB,EAAoBiB,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":["WithOptionalPopover","containerRef","children","customPopover","popoverTriggerProps","position","rootNode","customOffset","offset","trigger","delay","popoverContent","content","_jsx","PopoverTrigger","Object","assign","className","styles.popoverTrigger","zIndex"],"mappings":"g/BAaO,MAAMA,EAAsB,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,OACIC,EAACC,EAAcC,OAAAC,OAAA,CACXC,UAAWC,EACXC,OAAQ,GACJf,GACN"}
@@ -0,0 +1 @@
1
+ export declare const popoverTrigger: import("@linaria/core").LinariaClassName;
@@ -0,0 +1,2 @@
1
+ import"./with-optional-popover.styles_7mv3p2.css";const e="p1gm2ee7";export{e as popoverTrigger};
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":["popoverTrigger"],"mappings":"iFAEO,MAAMA,EAAc"}
@@ -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
- import{jsxs as e,jsx as i,Fragment as r}from"react/jsx-runtime";import{TimeHelper as t}from"../../util/time-helper.js";import{TimeColumnWrapper as m,TimelineCircle as n,TimeColumn as l,TimeLabel as o,HourDisplay as s}from"./time-indicator.styles.js";const c=({minTime:c,maxTime:p,format:u="24hr",timelineOffset:a=null,isWeekView:h=!1})=>{const d=t.generateTimings(30,u,c,p).filter((e=>e.includes(":00")));return e(m,{children:[null!==a&&i(n,{$top:a,$isWeekView:h}),i(l,{children:d.map((t=>{const{hour:m,ampm:n}=function(e){const[i]=e.split(":").map(Number);return{hour:i%12==0?12:i%12,ampm:i<12?"am":"pm"}}(t);return i(o,{children:!(t===c)&&e(r,{children:[i(s,{children:m}),i("span",{children:n})]})},t)}))})]})};export{c as TimeIndicator};
1
+ import{jsxs as e,jsx as t,Fragment as m}from"react/jsx-runtime";import r from"clsx";import{useRef as i}from"react";import"../../theme/theme-provider/index.js";import"../../theme/theme-provider/context.js";import"../../theme/tokens/border.js";import"../../theme/tokens/colour.js";import"../../theme/tokens/font.js";import"../../theme/tokens/media-query.js";import{useApplyStyle as s}from"../../theme/utils/use-apply-styles.js";import"../../theme/utils/use-media-query.js";import{Typography as o}from"../../typography/index.js";import{TimeHelper as n}from"../../util/time-helper.js";import{tokens as l,timeColumnWrapper as p,timelineCircle as a,timelineCircleWeekView as c,timeColumn as u,timeLabel as h,hourDisplay as d}from"./time-indicator.styles.js";const f=({minTime:f,maxTime:j,format:x="24hr",timelineOffset:y=null,isWeekView:N=!1})=>{const k=n.generateTimings(30,x,f,j).filter((e=>e.includes(":00"))),v=i(null);return s(v,{[l.timelineCircle.offset]:null===y?null:`${y}px`}),e("div",{className:p,children:[null!==y&&t("div",{className:r(a,N&&c),ref:v}),t("div",{className:u,children:k.map((r=>{const{hour:i,ampm:s}=function(e){const[t]=e.split(":").map(Number);return{hour:t%12==0?12:t%12,ampm:t<12?"am":"pm"}}(r),n=r===f;return t(o.BodySM,{className:h,children:!n&&e(m,{children:[t("span",{className:d,children:i}),t("span",{children:s})]})},r)}))})]})};export{f as TimeIndicator};
2
2
  //# sourceMappingURL=time-indicator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"time-indicator.js","sources":["../../../src/schedule/time-indicator/time-indicator.tsx"],"sourcesContent":["import { TimeHelper } from \"../../util/time-helper\";\nimport {\n HourDisplay,\n TimeColumn,\n TimeColumnWrapper,\n TimeLabel,\n TimelineCircle,\n} from \"./time-indicator.styles\";\n\ninterface TimeSlotTimeIndicatorProps {\n minTime: string;\n maxTime: string;\n format: \"12hr\" | \"24hr\";\n timelineOffset?: number | null;\n isWeekView?: boolean;\n}\nfunction formatHourLabel(time: string) {\n const [h] = time.split(\":\").map(Number);\n const ampm = h < 12 ? \"am\" : \"pm\";\n const hour = h % 12 === 0 ? 12 : h % 12;\n return { hour, ampm };\n}\n\nexport const TimeIndicator = ({\n minTime,\n maxTime,\n format = \"24hr\",\n timelineOffset = null,\n isWeekView = false,\n}: TimeSlotTimeIndicatorProps) => {\n const timeSlots = TimeHelper.generateTimings(30, format, minTime, maxTime);\n const hourLabels = timeSlots.filter((t) => t.includes(\":00\"));\n return (\n <TimeColumnWrapper>\n {timelineOffset !== null && (\n <TimelineCircle\n $top={timelineOffset}\n $isWeekView={isWeekView}\n />\n )}\n <TimeColumn>\n {hourLabels.map((time) => {\n const { hour, ampm } = formatHourLabel(time);\n const isFirstSlot = time === minTime;\n return (\n <TimeLabel key={time}>\n {!isFirstSlot && (\n <>\n <HourDisplay>{hour}</HourDisplay>\n <span>{ampm}</span>\n </>\n )}\n </TimeLabel>\n );\n })}\n </TimeColumn>\n </TimeColumnWrapper>\n );\n};\n"],"names":["TimeIndicator","minTime","maxTime","format","timelineOffset","isWeekView","hourLabels","TimeHelper","generateTimings","filter","t","includes","_jsxs","TimeColumnWrapper","children","_jsx","TimelineCircle","$top","$isWeekView","TimeColumn","map","time","hour","ampm","h","split","Number","formatHourLabel","TimeLabel","_Fragment","HourDisplay"],"mappings":"gQAuBaA,EAAgB,EACzBC,UACAC,UACAC,SAAS,OACTC,iBAAiB,KACjBC,cAAa,MAEb,MACMC,EADYC,EAAWC,gBAAgB,GAAIL,EAAQF,EAASC,GACrCO,QAAQC,GAAMA,EAAEC,SAAS,SACtD,OACIC,EAACC,EAAiB,CAAAC,SAAA,CACM,OAAnBV,GACGW,EAACC,EAAc,CAAAC,KACLb,EAAcc,YACPb,IAGrBU,EAACI,EAAU,CAAAL,SACNR,EAAWc,KAAKC,IACb,MAAMC,KAAEA,EAAIC,KAAEA,GA1BlC,SAAyBF,GACrB,MAAOG,GAAKH,EAAKI,MAAM,KAAKL,IAAIM,QAGhC,MAAO,CAAEJ,KADIE,EAAI,IAAO,EAAI,GAAKA,EAAI,GACtBD,KAFFC,EAAI,GAAK,KAAO,KAGjC,CAqB2CG,CAAgBN,GAEvC,OACIN,EAACa,EAAS,CAAAd,WAFMO,IAASpB,IAIjBW,EAAAiB,EAAA,CAAAf,SAAA,CACIC,EAACe,EAAW,CAAAhB,SAAEQ,IACdP,EAAA,OAAA,CAAAD,SAAOS,QAJHF,EAOJ,QAIR"}
1
+ {"version":3,"file":"time-indicator.js","sources":["../../../src/schedule/time-indicator/time-indicator.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { useRef } from \"react\";\n\nimport { useApplyStyle } from \"../../theme\";\nimport { Typography } from \"../../typography\";\nimport { TimeHelper } from \"../../util/time-helper\";\nimport * as styles from \"./time-indicator.styles\";\n\ninterface TimeSlotTimeIndicatorProps {\n minTime: string;\n maxTime: string;\n format: \"12hr\" | \"24hr\";\n timelineOffset?: number | null;\n isWeekView?: boolean;\n}\nfunction formatHourLabel(time: string) {\n const [h] = time.split(\":\").map(Number);\n const ampm = h < 12 ? \"am\" : \"pm\";\n const hour = h % 12 === 0 ? 12 : h % 12;\n return { hour, ampm };\n}\n\nexport const TimeIndicator = ({\n minTime,\n maxTime,\n format = \"24hr\",\n timelineOffset = null,\n isWeekView = false,\n}: TimeSlotTimeIndicatorProps) => {\n const timeSlots = TimeHelper.generateTimings(30, format, minTime, maxTime);\n const hourLabels = timeSlots.filter((t) => t.includes(\":00\"));\n const timelineCircleRef = useRef<HTMLDivElement>(null);\n\n useApplyStyle(timelineCircleRef, {\n [styles.tokens.timelineCircle.offset]:\n timelineOffset === null ? null : `${timelineOffset}px`,\n });\n\n return (\n <div className={styles.timeColumnWrapper}>\n {timelineOffset !== null && (\n <div\n className={clsx(\n styles.timelineCircle,\n isWeekView && styles.timelineCircleWeekView\n )}\n ref={timelineCircleRef}\n />\n )}\n <div className={styles.timeColumn}>\n {hourLabels.map((time) => {\n const { hour, ampm } = formatHourLabel(time);\n const isFirstSlot = time === minTime;\n return (\n <Typography.BodySM\n className={styles.timeLabel}\n key={time}\n >\n {!isFirstSlot && (\n <>\n <span className={styles.hourDisplay}>\n {hour}\n </span>\n <span>{ampm}</span>\n </>\n )}\n </Typography.BodySM>\n );\n })}\n </div>\n </div>\n );\n};\n"],"names":["TimeIndicator","minTime","maxTime","format","timelineOffset","isWeekView","hourLabels","TimeHelper","generateTimings","filter","t","includes","timelineCircleRef","useRef","useApplyStyle","styles.tokens","timelineCircle","offset","_jsxs","className","styles.timeColumnWrapper","children","_jsx","clsx","styles.timelineCircle","styles.timelineCircleWeekView","ref","styles.timeColumn","map","time","hour","ampm","h","split","Number","formatHourLabel","isFirstSlot","Typography","BodySM","styles.timeLabel","_Fragment","styles.hourDisplay"],"mappings":"svBAsBaA,EAAgB,EACzBC,UACAC,UACAC,SAAS,OACTC,iBAAiB,KACjBC,cAAa,MAEb,MACMC,EADYC,EAAWC,gBAAgB,GAAIL,EAAQF,EAASC,GACrCO,QAAQC,GAAMA,EAAEC,SAAS,SAChDC,EAAoBC,EAAuB,MAOjD,OALAC,EAAcF,EAAmB,CAC7B,CAACG,EAAcC,eAAeC,QACP,OAAnBb,EAA0B,KAAO,GAAGA,QAIxCc,SAAKC,UAAWC,EAAwBC,SAAA,CAChB,OAAnBjB,GACGkB,EAAA,MAAA,CACIH,UAAWI,EACPC,EACAnB,GAAcoB,GAElBC,IAAKd,IAGbU,EAAA,MAAA,CAAKH,UAAWQ,EAAiBN,SAC5Bf,EAAWsB,KAAKC,IACb,MAAMC,KAAEA,EAAIC,KAAEA,GApClC,SAAyBF,GACrB,MAAOG,GAAKH,EAAKI,MAAM,KAAKL,IAAIM,QAGhC,MAAO,CAAEJ,KADIE,EAAI,IAAO,EAAI,GAAKA,EAAI,GACtBD,KAFFC,EAAI,GAAK,KAAO,KAGjC,CA+B2CG,CAAgBN,GACjCO,EAAcP,IAAS5B,EAC7B,OACIqB,EAACe,EAAWC,QACRnB,UAAWoB,EAAgBlB,UAGzBe,GACElB,EAAAsB,EAAA,CAAAnB,SAAA,CACIC,EAAA,OAAA,CAAMH,UAAWsB,EAAkBpB,SAC9BS,IAELR,EAAA,OAAA,CAAAD,SAAOU,QAPVF,EAUW,QAI9B"}