@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-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":["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","isFirstSlot","TimeLabel","_Fragment","HourDisplay"],"mappings":"qJAuB6B,EACzBA,UACAC,UACAC,SAAS,OACTC,iBAAiB,KACjBC,cAAa,MAEb,MACMC,EADYC,EAAAA,WAAWC,gBAAgB,GAAIL,EAAQF,EAASC,GACrCO,QAAQC,GAAMA,EAAEC,SAAS,SACtD,OACIC,EAAAA,KAACC,oBAAiB,CAAAC,SAAA,CACM,OAAnBV,GACGW,EAAAA,IAACC,iBAAc,CAAAC,KACLb,EAAcc,YACPb,IAGrBU,MAACI,EAAAA,WAAU,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,GACjCO,EAAcP,IAASpB,EAC7B,OACIc,MAACc,EAAAA,UAAS,CAAAf,UACJc,GACEhB,EAAAA,KAAAkB,WAAA,CAAAhB,SAAA,CACIC,EAAAA,IAACgB,EAAAA,YAAW,CAAAjB,SAAEQ,IACdP,EAAAA,IAAA,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":["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":"kqBAsB6B,EACzBA,UACAC,UACAC,SAAS,OACTC,iBAAiB,KACjBC,cAAa,MAEb,MACMC,EADYC,EAAAA,WAAWC,gBAAgB,GAAIL,EAAQF,EAASC,GACrCO,QAAQC,GAAMA,EAAEC,SAAS,SAChDC,EAAoBC,EAAAA,OAAuB,MAOjD,OALAC,EAAAA,cAAcF,EAAmB,CAC7B,CAACG,EAAAA,OAAcC,eAAeC,QACP,OAAnBb,EAA0B,KAAO,GAAGA,QAIxCc,EAAAA,YAAKC,UAAWC,EAAAA,kBAAwBC,SAAA,CAChB,OAAnBjB,GACGkB,EAAAA,IAAA,MAAA,CACIH,UAAWI,EAAAA,QACPC,EAAAA,eACAnB,GAAcoB,EAAAA,wBAElBC,IAAKd,IAGbU,EAAAA,IAAA,MAAA,CAAKH,UAAWQ,EAAAA,WAAiBN,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,EAAAA,IAACe,EAAAA,WAAWC,QACRnB,UAAWoB,EAAAA,UAAgBlB,UAGzBe,GACElB,EAAAA,KAAAsB,EAAAA,SAAA,CAAAnB,SAAA,CACIC,EAAAA,IAAA,OAAA,CAAMH,UAAWsB,EAAAA,YAAkBpB,SAC9BS,IAELR,EAAAA,IAAA,OAAA,CAAAD,SAAOU,QAPVF,EAUW,QAI9B"}
@@ -1,34 +1,2 @@
1
- "use strict";var e=require("styled-components"),i=require("../../typography/index.js"),o=require("../../v3_theme/index.js"),t=require("../const.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(e);const l=n.default.div`
2
- position: sticky;
3
- z-index: 3;
4
- `,p=n.default.div`
5
- display: flex;
6
- flex-direction: column;
7
- min-width: ${t.TIME_INDICATOR_WIDTH}px;
8
- background: ${o.V3_Colour.bg};
9
- border-right: ${o.V3_Border["width-010"]} ${o.V3_Border.solid}
10
- ${o.V3_Colour.border};
11
- `,d=n.default(i.Typography.BodySM)`
12
- min-height: ${2*t.CELL_HEIGHT}px; /* 2 slots */
13
- display: flex;
14
- flex-direction: column;
15
- align-items: flex-end;
16
- color: ${o.V3_Colour["text-subtler"]};
17
- padding-right: ${o.V3_Spacing["spacing-8"]};
18
- font-weight: ${o.V3_Font.Spec["weight-bold"]};
19
- position: relative;
20
- `,s=n.default.span`
21
- position: absolute;
22
- top: -18px;
23
- `,a=n.default.div`
24
- position: absolute;
25
- right: -6px;
26
- top: ${e=>e.$top-6}px;
27
- width: ${o.V3_Spacing["spacing-12"]};
28
- height: ${o.V3_Spacing["spacing-12"]};
29
- border-radius: ${o.V3_Radius.full};
30
- background: ${o.V3_Colour["icon-primary"]};
31
- z-index: 4;
32
- display: ${e=>e.$isWeekView?"none":"block"};
33
- `;exports.HourDisplay=s,exports.TimeColumn=p,exports.TimeColumnWrapper=l,exports.TimeLabel=d,exports.TimelineCircle=a;
1
+ "use strict";require("./time-indicator.styles_1eaxyes.css");exports.hourDisplay="h1y5vs3p",exports.timeColumn="twl5iae",exports.timeColumnWrapper="t1by6gzt",exports.timeLabel="t1eau6os",exports.timelineCircle="t1juq8yz",exports.timelineCircleWeekView="t1wl3tbi",exports.tokens={timelineCircle:{offset:"--fds-internal-schedule-timeIndicator-timelineCircle-top"}};
34
2
  //# sourceMappingURL=time-indicator.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"time-indicator.styles.js","sources":["../../../../src/schedule/time-indicator/time-indicator.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { Typography } from \"../../typography\";\nimport {\n V3_Border,\n V3_Colour,\n V3_Font,\n V3_Radius,\n V3_Spacing,\n} from \"../../v3_theme\";\nimport { CELL_HEIGHT, TIME_INDICATOR_WIDTH } from \"../const\";\n\n// =============================================================================\n// STYLE INTERFACES\n// =============================================================================\ninterface TimelineCircleStyleProps {\n $top: number;\n $isWeekView: boolean;\n}\n\n// =============================================================================\n// STYLING\n// =============================================================================\nexport const TimeColumnWrapper = styled.div`\n position: sticky;\n z-index: 3;\n`;\n\nexport const TimeColumn = styled.div`\n display: flex;\n flex-direction: column;\n min-width: ${TIME_INDICATOR_WIDTH}px;\n background: ${V3_Colour[\"bg\"]};\n border-right: ${V3_Border[\"width-010\"]} ${V3_Border.solid}\n ${V3_Colour[\"border\"]};\n`;\n\nexport const TimeLabel = styled(Typography.BodySM)`\n min-height: ${CELL_HEIGHT * 2}px; /* 2 slots */\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n color: ${V3_Colour[\"text-subtler\"]};\n padding-right: ${V3_Spacing[\"spacing-8\"]};\n font-weight: ${V3_Font.Spec[\"weight-bold\"]};\n position: relative;\n`;\nexport const HourDisplay = styled.span`\n position: absolute;\n top: -18px;\n`;\n\nexport const TimelineCircle = styled.div<TimelineCircleStyleProps>`\n position: absolute;\n right: -6px;\n top: ${(props) => props.$top - 6}px;\n width: ${V3_Spacing[\"spacing-12\"]};\n height: ${V3_Spacing[\"spacing-12\"]};\n border-radius: ${V3_Radius[\"full\"]};\n background: ${V3_Colour[\"icon-primary\"]};\n z-index: 4;\n display: ${(props) => (props.$isWeekView ? \"none\" : \"block\")};\n`;\n"],"names":["TimeColumnWrapper","styled","div","TimeColumn","TIME_INDICATOR_WIDTH","V3_Colour","V3_Border","solid","TimeLabel","Typography","BodySM","CELL_HEIGHT","V3_Spacing","V3_Font","Spec","HourDisplay","span","TimelineCircle","props","$top","V3_Radius","$isWeekView"],"mappings":"wOAuBO,MAAMA,EAAoBC,EAAAA,QAAOC,GAAG;;;EAK9BC,EAAaF,EAAAA,QAAOC,GAAG;;;iBAGnBE;kBACCC,EAAAA,UAAc;oBACZC,EAAAA,UAAU,gBAAgBA,EAAAA,UAAUC;UAC9CF,EAAAA,UAAkB;EAGfG,EAAYP,EAAAA,QAAOQ,aAAWC,OAAO;kBAClB,EAAdC,EAAAA;;;;aAILN,EAAAA,UAAU;qBACFO,EAAAA,WAAW;mBACbC,EAAAA,QAAQC,KAAK;;EAGnBC,EAAcd,EAAAA,QAAOe,IAAI;;;EAKzBC,EAAiBhB,EAAAA,QAAOC,GAA6B;;;WAGtDgB,GAAUA,EAAMC,KAAO;aACtBP,EAAAA,WAAW;cACVA,EAAAA,WAAW;qBACJQ,EAAAA,UAAgB;kBACnBf,EAAAA,UAAU;;eAEZa,GAAWA,EAAMG,YAAc,OAAS;"}
1
+ {"version":3,"file":"time-indicator.styles.js","sources":["../../../../src/schedule/time-indicator/time-indicator.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Border, Colour, Font, Radius, Spacing } from \"../../theme\";\nimport { CELL_HEIGHT, TIME_INDICATOR_WIDTH } from \"../const\";\n\n// =============================================================================\n// STYLING\n// =============================================================================\nexport const tokens = {\n timelineCircle: {\n offset: \"--fds-internal-schedule-timeIndicator-timelineCircle-top\",\n },\n};\n\nexport const timeColumnWrapper = css`\n position: sticky;\n z-index: 3;\n`;\n\nexport const timeColumn = css`\n display: flex;\n flex-direction: column;\n min-width: ${TIME_INDICATOR_WIDTH}px;\n background: ${Colour[\"bg\"]};\n border-right: ${Border[\"width-010\"]} ${Border.solid} ${Colour[\"border\"]};\n`;\n\nexport const timeLabel = css`\n min-height: ${CELL_HEIGHT * 2}px; /* 2 slots */\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n color: ${Colour[\"text-subtler\"]};\n padding-right: ${Spacing[\"spacing-8\"]};\n font-weight: ${Font.Spec[\"weight-bold\"]};\n position: relative;\n`;\nexport const hourDisplay = css`\n position: absolute;\n top: -18px;\n`;\n\nexport const timelineCircle = css`\n ${tokens.timelineCircle.offset}: 0px;\n position: absolute;\n right: -6px;\n top: calc(var(${tokens.timelineCircle.offset}) - 6px);\n width: ${Spacing[\"spacing-12\"]};\n height: ${Spacing[\"spacing-12\"]};\n border-radius: ${Radius[\"full\"]};\n background: ${Colour[\"icon-primary\"]};\n z-index: 4;\n`;\n\nexport const timelineCircleWeekView = css`\n display: none;\n`;\n"],"names":["timelineCircle","offset"],"mappings":"uHAqCwB,8BAlBD,oCALO,6BAaR,kCAeK,0CAYQ,0BA9Cb,CAClBA,eAAgB,CACZC,OAAQ"}
@@ -0,0 +1,6 @@
1
+ .t1by6gzt{position:-webkit-sticky;position:sticky;z-index:3;}
2
+ .twl5iae{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;min-width:42px;background:var(--fds-colour-bg);border-right:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);}
3
+ .t1eau6os{min-height:96px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-end;-webkit-box-align:flex-end;-ms-flex-align:flex-end;align-items:flex-end;color:var(--fds-colour-text-subtler);padding-right:var(--fds-spacing-8);font-weight:var(--fds-font-weight-bold);position:relative;}
4
+ .h1y5vs3p{position:absolute;top:-18px;}
5
+ .t1juq8yz{--fds-internal-schedule-timeIndicator-timelineCircle-top:0px;position:absolute;right:-6px;top:calc(var(--fds-internal-schedule-timeIndicator-timelineCircle-top) - 6px);width:var(--fds-spacing-12);height:var(--fds-spacing-12);border-radius:var(--fds-radius-full);background:var(--fds-colour-icon-primary);z-index:4;}
6
+ .t1wl3tbi{display:none;}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../_virtual/_tslib.js"),r=require("react/jsx-runtime"),a=require("clsx"),s=require("react"),i=require("../histogram-slider/histogram-slider.js");require("../theme/theme-provider/index.js"),require("../theme/theme-provider/context.js"),require("../theme/tokens/border.js"),require("../theme/tokens/colour.js"),require("../theme/tokens/font.js"),require("../theme/tokens/media-query.js"),require("../util/calendar-helper.js"),require("../external/dayjs/dayjs.min.js");var n=require("../util/simple-id-generator.js");require("../util/string-helper.js"),require("@react-aria/live-announcer"),require("../theme/utils/use-media-query.js"),require("../shared/dropdown-list/dropdown-label.styles_1dwmd8f.css"),require("../shared/dropdown-list/dropdown-list.js");var l=require("../shared/dropdown-list/dropdown-list-state.js"),t=require("../shared/dropdown-list/expandable-element.js");require("@lifesg/react-icons/caret-right"),require("@lifesg/react-icons/exclamation-circle-fill"),require("@lifesg/react-icons/minus-square-fill"),require("@lifesg/react-icons/square"),require("@lifesg/react-icons/square-tick-fill"),require("@lifesg/react-icons/tick"),require("react-virtuoso"),require("../markup/markup.js"),require("../shared/component-loading-spinner/component-loading-spinner.styles_15eq02i.css");var d=require("../shared/dropdown-wrapper/element-with-dropdown.js"),o=require("../shared/input-wrapper/input-wrapper.js");require("../shared/dropdown-list/dropdown-list.styles_1kt4zhf.css"),require("../shared/dropdown-list/dropdown-search.js"),require("../shared/dropdown-list/nested-dropdown-list.styles_wdhxoe.css"),require("immer"),require("../external/lodash/_getTag.js"),require("../external/lodash/isArguments.js"),require("../external/lodash/_baseGetTag.js"),require("../external/lodash/isBuffer.js"),require("../external/lodash/isTypedArray.js"),require("../external/lodash/_Stack.js"),require("../external/lodash/_SetCache.js"),require("../external/lodash/_equalByTag.js"),require("../shared/dropdown-list/virtuoso-components.js");var u=require("../shared/dropdown-wrapper/dropdown-wrapper.styles.js"),c=require("../typography/index.js"),p=require("./select-histogram.styles.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=h(a);exports.SelectHistogram=a=>{var{alignment:h="left",className:g,disabled:q,dropdownZIndex:j,error:b,histogramSlider:f,id:x,"aria-labelledby":w,"aria-describedby":y,"aria-invalid":v,onBlur:_,onChange:T,onChangeEnd:C,optionTruncationType:S="end",placeholder:L="Select",rangeLabelPrefix:k,rangeLabelSuffix:A,readOnly:E,renderRangeLabel:I,value:N,dropdownRootNode:R}=a,O=e.__rest(a,["alignment","className","disabled","dropdownZIndex","error","histogramSlider","id","aria-labelledby","aria-describedby","aria-invalid","onBlur","onChange","onChangeEnd","optionTruncationType","placeholder","rangeLabelPrefix","rangeLabelSuffix","readOnly","renderRangeLabel","value","dropdownRootNode"]);const{interval:B,bins:H=[],renderEmptyView:P,ariaLabels:D}=f,G=H.map((e=>e.minValue)),M=Math.min(...G),[F,V]=s.useState(se()),[Z,W]=s.useState(!1),[z,$]=s.useState(!1),J=n.useId(),K=s.useRef(null),Q=s.useRef(null),U=s.useRef(null),X=O["data-testid"]||"select-histogram";s.useEffect((()=>{N!==F&&V(se())}),[N]);const Y=e=>{V(e),null==T||T(e)},ee=e=>{V(e),null==C||C(e)},re=()=>{z||Z||$(!0)},ae=e=>{z&&!Z&&K.current&&!K.current.contains(e.relatedTarget)&&($(!1),null==_||_())};function se(){return null!=N?N:[M,M+B]}const ie=e=>I?I(e):r.jsxs(c.Typography.BodyBL,{children:[k,e,A]});return r.jsx(l.DropdownListState,{children:r.jsx(d.ElementWithDropdown,{enabled:!E&&!q,isOpen:Z,renderElement:()=>r.jsx(o.InputBox,{className:g,"data-testid":X,id:x,ref:K,tabIndex:-1,onFocus:re,onBlur:ae,focused:z,disabled:q,readOnly:E,error:b,children:r.jsx(t.ExpandableElement,{ref:Q,disabled:q,expanded:Z,listboxId:J,popupRole:"dialog",readOnly:E,variant:"default","aria-labelledby":w,"aria-describedby":y,"aria-invalid":v,children:r.jsx("div",{className:u.labelContainer,ref:U,"data-disabled":q||void 0,children:G&&0!==G.length?r.jsxs("div",{className:p.label,children:[ie(F[0]),r.jsx("div",{className:p.separator,children:"-"}),ie(F[1])]}):r.jsx("div",{className:m.default(p.placeholderLabel,"middle"!==S&&p.placeholderLabelTruncateEnd),children:L})})})}),renderDropdown:({elementWidth:e,styles:a,setFloatingRef:s,getFloatingProps:n})=>r.jsx("div",Object.assign({className:p.histogramSliderDropdownContainer,style:Object.assign(Object.assign({},a),{width:e}),ref:s,"data-testid":`${X}-dropdown`},n(),{children:r.jsx(i.HistogramSlider,{interval:B,value:F,bins:H,onChange:Y,onChangeEnd:ee,showRangeLabels:!1,renderEmptyView:P,ariaLabels:D})})),onOpen:()=>{W(!0)},onClose:()=>{W(!1)},onDismiss:()=>{var e;null===(e=Q.current)||void 0===e||e.focus(),W(!1)},clickToToggle:!0,offset:8,alignment:h,fitAvailableHeight:!0,customZIndex:j,rootNode:R})})};
1
+ "use strict";var e=require("../_virtual/_tslib.js"),r=require("react/jsx-runtime"),a=require("clsx"),s=require("react"),i=require("../histogram-slider/histogram-slider.js");require("../theme/theme-provider/index.js"),require("../theme/theme-provider/context.js"),require("../theme/tokens/border.js"),require("../theme/tokens/colour.js"),require("../theme/tokens/font.js"),require("../theme/tokens/media-query.js"),require("../util/calendar-helper.js"),require("../external/dayjs/dayjs.min.js");var n=require("../util/simple-id-generator.js");require("../util/string-helper.js"),require("@react-aria/live-announcer"),require("../theme/utils/use-media-query.js"),require("../shared/dropdown-list/dropdown-label.styles_mloii0.css"),require("../shared/dropdown-list/dropdown-list.js");var l=require("../shared/dropdown-list/dropdown-list-state.js"),t=require("../shared/dropdown-list/expandable-element.js");require("@lifesg/react-icons/caret-right"),require("@lifesg/react-icons/exclamation-circle-fill"),require("@lifesg/react-icons/minus-square-fill"),require("@lifesg/react-icons/square"),require("@lifesg/react-icons/square-tick-fill"),require("@lifesg/react-icons/tick"),require("react-virtuoso"),require("../markup/markup.js"),require("../shared/component-loading-spinner/component-loading-spinner.styles_15eq02i.css");var d=require("../shared/dropdown-wrapper/element-with-dropdown.js"),o=require("../shared/input-wrapper/input-wrapper.js");require("../shared/dropdown-list/dropdown-list.styles_konwm.css"),require("../shared/dropdown-list/dropdown-search.js"),require("../shared/dropdown-list/nested-dropdown-list.styles_wdhxoe.css"),require("immer"),require("../external/lodash/_getTag.js"),require("../external/lodash/isArguments.js"),require("../external/lodash/_baseGetTag.js"),require("../external/lodash/isBuffer.js"),require("../external/lodash/isTypedArray.js"),require("../external/lodash/_Stack.js"),require("../external/lodash/_SetCache.js"),require("../external/lodash/_equalByTag.js"),require("../shared/dropdown-list/virtuoso-components.js");var u=require("../shared/dropdown-wrapper/dropdown-wrapper.styles.js"),c=require("../typography/index.js"),p=require("./select-histogram.styles.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=h(a);exports.SelectHistogram=a=>{var{alignment:h="left",className:g,disabled:q,dropdownZIndex:j,error:b,histogramSlider:f,id:x,"aria-labelledby":w,"aria-describedby":y,"aria-invalid":v,onBlur:_,onChange:T,onChangeEnd:C,optionTruncationType:S="end",placeholder:L="Select",rangeLabelPrefix:k,rangeLabelSuffix:A,readOnly:E,renderRangeLabel:I,value:N,dropdownRootNode:R}=a,O=e.__rest(a,["alignment","className","disabled","dropdownZIndex","error","histogramSlider","id","aria-labelledby","aria-describedby","aria-invalid","onBlur","onChange","onChangeEnd","optionTruncationType","placeholder","rangeLabelPrefix","rangeLabelSuffix","readOnly","renderRangeLabel","value","dropdownRootNode"]);const{interval:B,bins:H=[],renderEmptyView:P,ariaLabels:D}=f,G=H.map((e=>e.minValue)),M=Math.min(...G),[F,V]=s.useState(se()),[Z,W]=s.useState(!1),[$,z]=s.useState(!1),J=n.useId(),K=s.useRef(null),Q=s.useRef(null),U=s.useRef(null),X=O["data-testid"]||"select-histogram";s.useEffect((()=>{N!==F&&V(se())}),[N]);const Y=e=>{V(e),null==T||T(e)},ee=e=>{V(e),null==C||C(e)},re=()=>{$||Z||z(!0)},ae=e=>{$&&!Z&&K.current&&!K.current.contains(e.relatedTarget)&&(z(!1),null==_||_())};function se(){return null!=N?N:[M,M+B]}const ie=e=>I?I(e):r.jsxs(c.Typography.BodyBL,{children:[k,e,A]});return r.jsx(l.DropdownListState,{children:r.jsx(d.ElementWithDropdown,{enabled:!E&&!q,isOpen:Z,renderElement:()=>r.jsx(o.InputBox,{className:g,"data-testid":X,id:x,ref:K,tabIndex:-1,onFocus:re,onBlur:ae,focused:$,disabled:q,readOnly:E,error:b,children:r.jsx(t.ExpandableElement,{ref:Q,disabled:q,expanded:Z,listboxId:J,popupRole:"dialog",readOnly:E,variant:"default","aria-labelledby":w,"aria-describedby":y,"aria-invalid":v,children:r.jsx("div",{className:u.labelContainer,ref:U,"data-disabled":q||void 0,children:G&&0!==G.length?r.jsxs("div",{className:p.label,children:[ie(F[0]),r.jsx("div",{className:p.separator,children:"-"}),ie(F[1])]}):r.jsx("div",{className:m.default(p.placeholderLabel,"middle"!==S&&p.placeholderLabelTruncateEnd),children:L})})})}),renderDropdown:({elementWidth:e,styles:a,setFloatingRef:s,getFloatingProps:n})=>r.jsx("div",Object.assign({className:p.histogramSliderDropdownContainer,style:Object.assign(Object.assign({},a),{width:e}),ref:s,"data-testid":`${X}-dropdown`},n(),{children:r.jsx(i.HistogramSlider,{interval:B,value:F,bins:H,onChange:Y,onChangeEnd:ee,showRangeLabels:!1,renderEmptyView:P,ariaLabels:D})})),onOpen:()=>{W(!0)},onClose:()=>{W(!1)},onDismiss:()=>{var e;null===(e=Q.current)||void 0===e||e.focus(),W(!1)},clickToToggle:!0,offset:8,alignment:h,fitAvailableHeight:!0,customZIndex:j,rootNode:R})})};
2
2
  //# sourceMappingURL=select-histogram.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-histogram.js","sources":["../../../src/select-histogram/select-histogram.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport { HistogramSlider } from \"../histogram-slider\";\nimport { DropdownListState, ExpandableElement } from \"../shared/dropdown-list\";\nimport type { DropdownRenderProps } from \"../shared/dropdown-wrapper\";\nimport { ElementWithDropdown } from \"../shared/dropdown-wrapper\";\nimport * as dropdownWrapperStyles from \"../shared/dropdown-wrapper/dropdown-wrapper.styles\";\nimport { InputBox } from \"../shared/input-wrapper\";\nimport { Typography } from \"../typography\";\nimport { useId } from \"../util\";\nimport * as styles from \"./select-histogram.styles\";\nimport type { SelectHistogramProps } from \"./types\";\n\nexport const SelectHistogram = ({\n alignment = \"left\",\n className,\n disabled,\n dropdownZIndex,\n error,\n histogramSlider,\n id,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-invalid\": ariaInvalid,\n onBlur,\n onChange,\n onChangeEnd,\n optionTruncationType = \"end\",\n placeholder = \"Select\",\n rangeLabelPrefix,\n rangeLabelSuffix,\n readOnly,\n renderRangeLabel,\n value,\n dropdownRootNode,\n ...otherProps\n}: SelectHistogramProps): JSX.Element => {\n const {\n interval,\n bins = [],\n renderEmptyView,\n ariaLabels,\n } = histogramSlider;\n // =============================================================================\n // CONST, STATE\n // =============================================================================\n const values = bins.map((item) => item.minValue);\n const minValue = Math.min(...values);\n const [selection, setSelection] = useState<[number, number]>(\n initSelection()\n );\n const [showOptions, setShowOptions] = useState<boolean>(false);\n const [focused, setFocused] = useState<boolean>(false);\n const internalId = useId();\n\n const nodeRef = useRef<HTMLDivElement>(null);\n const selectorRef = useRef<HTMLButtonElement>(null);\n const labelContainerRef = useRef<HTMLDivElement>(null);\n\n const testId = otherProps[\"data-testid\"] || \"select-histogram\";\n // =========================================================================\n // EFFECTS\n // =========================================================================\n useEffect(() => {\n if (value !== selection) {\n setSelection(initSelection());\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value]);\n\n // =============================================================================\n // EVENT HANDLERS\n // =============================================================================\n const handleOpen = () => {\n setShowOptions(true);\n };\n\n const handleClose = () => {\n setShowOptions(false);\n };\n\n const handleDismiss = () => {\n selectorRef.current?.focus();\n setShowOptions(false);\n };\n\n const onSliderChange = (values: [number, number]) => {\n setSelection(values);\n onChange?.(values);\n };\n\n const onSliderChangeEnd = (values: [number, number]) => {\n setSelection(values);\n onChangeEnd?.(values);\n };\n\n const handleNodeFocus = () => {\n if (!focused && !showOptions) {\n setFocused(true);\n }\n };\n\n const handleNodeBlur = (e: React.FocusEvent) => {\n if (\n focused &&\n !showOptions &&\n nodeRef.current &&\n !nodeRef.current.contains(e.relatedTarget as Node)\n ) {\n setFocused(false);\n onBlur?.();\n }\n };\n // =============================================================================\n // HELPER FUNCTIONS\n // =============================================================================\n function initSelection(): [number, number] {\n return value ?? [minValue, minValue + interval];\n }\n\n // =============================================================================\n // RENDER FUNCTIONS\n // =============================================================================\n const renderSelector = (value: number) => {\n if (renderRangeLabel) {\n return renderRangeLabel(value);\n }\n\n return (\n <Typography.BodyBL>\n {rangeLabelPrefix}\n {value}\n {rangeLabelSuffix}\n </Typography.BodyBL>\n );\n };\n\n const getDisplayValue = () => {\n return !values || values.length === 0 ? (\n <div\n className={clsx(\n styles.placeholderLabel,\n optionTruncationType !== \"middle\" &&\n styles.placeholderLabelTruncateEnd\n )}\n >\n {placeholder}\n </div>\n ) : (\n <div className={styles.label}>\n {renderSelector(selection[0])}\n <div className={styles.separator}>-</div>\n {renderSelector(selection[1])}\n </div>\n );\n };\n\n const renderSelectorContent = () => (\n <div\n className={dropdownWrapperStyles.labelContainer}\n ref={labelContainerRef}\n data-disabled={disabled || undefined}\n >\n {getDisplayValue()}\n </div>\n );\n\n const renderElement = () => {\n return (\n <InputBox\n className={className}\n data-testid={testId}\n id={id}\n ref={nodeRef}\n tabIndex={-1}\n onFocus={handleNodeFocus}\n onBlur={handleNodeBlur}\n focused={focused}\n disabled={disabled}\n readOnly={readOnly}\n error={error}\n >\n <ExpandableElement\n ref={selectorRef}\n disabled={disabled}\n expanded={showOptions}\n listboxId={internalId}\n popupRole=\"dialog\"\n readOnly={readOnly}\n variant=\"default\"\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n aria-invalid={ariaInvalid}\n >\n {renderSelectorContent()}\n </ExpandableElement>\n </InputBox>\n );\n };\n\n const renderDropdown = ({\n elementWidth,\n styles: floatingStyles,\n setFloatingRef,\n getFloatingProps,\n }: DropdownRenderProps) => (\n <div\n className={styles.histogramSliderDropdownContainer}\n style={{ ...floatingStyles, width: elementWidth }}\n ref={setFloatingRef}\n data-testid={`${testId}-dropdown`}\n {...getFloatingProps()}\n >\n <HistogramSlider\n interval={interval}\n value={selection}\n bins={bins}\n onChange={onSliderChange}\n onChangeEnd={onSliderChangeEnd}\n showRangeLabels={false}\n renderEmptyView={renderEmptyView}\n ariaLabels={ariaLabels}\n />\n </div>\n );\n\n return (\n <DropdownListState>\n <ElementWithDropdown\n enabled={!readOnly && !disabled}\n isOpen={showOptions}\n renderElement={renderElement}\n renderDropdown={renderDropdown}\n onOpen={handleOpen}\n onClose={handleClose}\n onDismiss={handleDismiss}\n clickToToggle\n offset={8}\n alignment={alignment}\n fitAvailableHeight\n customZIndex={dropdownZIndex}\n rootNode={dropdownRootNode}\n />\n </DropdownListState>\n );\n};\n"],"names":["_a","alignment","className","disabled","dropdownZIndex","error","histogramSlider","id","ariaLabelledBy","ariaDescribedBy","ariaInvalid","onBlur","onChange","onChangeEnd","optionTruncationType","placeholder","rangeLabelPrefix","rangeLabelSuffix","readOnly","renderRangeLabel","value","dropdownRootNode","otherProps","__rest","interval","bins","renderEmptyView","ariaLabels","values","map","item","minValue","Math","min","selection","setSelection","useState","initSelection","showOptions","setShowOptions","focused","setFocused","internalId","useId","nodeRef","useRef","selectorRef","labelContainerRef","testId","useEffect","onSliderChange","onSliderChangeEnd","handleNodeFocus","handleNodeBlur","e","current","contains","relatedTarget","renderSelector","_jsxs","Typography","BodyBL","children","_jsx","DropdownListState","ElementWithDropdown","enabled","isOpen","renderElement","InputBox","ref","tabIndex","onFocus","ExpandableElement","expanded","listboxId","popupRole","variant","dropdownWrapperStyles.labelContainer","undefined","length","styles.label","styles.separator","clsx","styles.placeholderLabel","styles.placeholderLabelTruncateEnd","renderDropdown","elementWidth","styles","floatingStyles","setFloatingRef","getFloatingProps","Object","assign","styles.histogramSliderDropdownContainer","style","width","HistogramSlider","showRangeLabels","onOpen","onClose","onDismiss","focus","clickToToggle","offset","fitAvailableHeight","customZIndex","rootNode"],"mappings":"w0EAcgCA,QAAAC,UAC5BA,EAAY,OAAMC,UAClBA,EAASC,SACTA,EAAQC,eACRA,EAAcC,MACdA,EAAKC,gBACLA,EAAeC,GACfA,EACA,kBAAmBC,EACnB,mBAAoBC,EACpB,eAAgBC,EAAWC,OAC3BA,EAAMC,SACNA,EAAQC,YACRA,EAAWC,qBACXA,EAAuB,MAAKC,YAC5BA,EAAc,SAAQC,iBACtBA,EAAgBC,iBAChBA,EAAgBC,SAChBA,EAAQC,iBACRA,EAAgBC,MAChBA,EAAKC,iBACLA,GAAgBrB,EACbsB,EAAUC,SAAAvB,EAtBe,CAAA,YAAA,YAAA,WAAA,iBAAA,QAAA,kBAAA,KAAA,kBAAA,mBAAA,eAAA,SAAA,WAAA,cAAA,uBAAA,cAAA,mBAAA,mBAAA,WAAA,mBAAA,QAAA,qBAwB5B,MAAMwB,SACFA,EAAQC,KACRA,EAAO,GAAEC,gBACTA,EAAeC,WACfA,GACArB,EAIEsB,EAASH,EAAKI,KAAKC,GAASA,EAAKC,WACjCA,EAAWC,KAAKC,OAAOL,IACtBM,EAAWC,GAAgBC,EAAAA,SAC9BC,OAEGC,EAAaC,GAAkBH,EAAAA,UAAkB,IACjDI,EAASC,GAAcL,EAAAA,UAAkB,GAC1CM,EAAaC,EAAAA,QAEbC,EAAUC,EAAAA,OAAuB,MACjCC,EAAcD,EAAAA,OAA0B,MACxCE,EAAoBF,EAAAA,OAAuB,MAE3CG,EAAS1B,EAAW,gBAAkB,mBAI5C2B,EAAAA,WAAU,KACF7B,IAAUc,GACVC,EAAaE,KACjB,GAED,CAACjB,IAKJ,MAaM8B,EAAkBtB,IACpBO,EAAaP,GACbhB,SAAAA,EAAWgB,EAAO,EAGhBuB,GAAqBvB,IACvBO,EAAaP,GACbf,SAAAA,EAAce,EAAO,EAGnBwB,GAAkB,KACfZ,GAAYF,GACbG,GAAW,EACf,EAGEY,GAAkBC,IAEhBd,IACCF,GACDM,EAAQW,UACPX,EAAQW,QAAQC,SAASF,EAAEG,iBAE5BhB,GAAW,GACX9B,SAAAA,IACJ,EAKJ,SAAS0B,KACL,OAAOjB,QAAAA,EAAS,CAACW,EAAUA,EAAWP,EAC1C,CAKA,MAAMkC,GAAkBtC,GAChBD,EACOA,EAAiBC,GAIxBuC,EAAAA,KAACC,aAAWC,OAAM,CAAAC,SAAA,CACb9C,EACAI,EACAH,KA8Fb,OACI8C,EAAAA,IAACC,EAAAA,kBAAiB,CAAAF,SACdC,EAAAA,IAACE,EAAAA,oBAAmB,CAChBC,SAAUhD,IAAaf,EACvBgE,OAAQ7B,EACR8B,cAhEU,IAEdL,MAACM,EAAAA,UACGnE,UAAWA,EAAS,cACP8C,EACbzC,GAAIA,EACJ+D,IAAK1B,EACL2B,UAAU,EACVC,QAASpB,GACTzC,OAAQ0C,GACRb,QAASA,EACTrC,SAAUA,EACVe,SAAUA,EACVb,MAAOA,WAEP0D,MAACU,EAAAA,mBACGH,IAAKxB,EACL3C,SAAUA,EACVuE,SAAUpC,EACVqC,UAAWjC,EACXkC,UAAU,SACV1D,SAAUA,EACV2D,QAAQ,UAAS,kBACArE,qBACCC,EAAe,eACnBC,EAAWoD,SAlCrCC,EAAAA,IAAA,MAAA,CACI7D,UAAW4E,EAAAA,eACXR,IAAKvB,EAAiB,gBACP5C,QAAY4E,EAASjB,SAvBhClC,GAA4B,IAAlBA,EAAOoD,OAWrBrB,EAAAA,KAAA,MAAA,CAAKzD,UAAW+E,EAAAA,MAAYnB,SAAA,CACvBJ,GAAexB,EAAU,IAC1B6B,EAAAA,IAAA,MAAA,CAAK7D,UAAWgF,EAAAA,UAAgBpB,SAAA,MAC/BJ,GAAexB,EAAU,OAb9B6B,EAAAA,IAAA,MAAA,CACI7D,UAAWiF,EAAAA,QACPC,EAAAA,iBACyB,WAAzBtE,GACIuE,EAAAA,sCAGPtE,UAsFDuE,eAhCW,EACnBC,eACAC,OAAQC,EACRC,iBACAC,sBAEA5B,EAAAA,IAAA,MAAA6B,OAAAC,OAAA,CACI3F,UAAW4F,mCACXC,qCAAYN,GAAc,CAAEO,MAAOT,IACnCjB,IAAKoB,EAAc,cACN,GAAG1C,cACZ2C,IAAkB,CAAA7B,SAEtBC,EAAAA,IAACkC,EAAAA,gBAAe,CACZzE,SAAUA,EACVJ,MAAOc,EACPT,KAAMA,EACNb,SAAUsC,EACVrC,YAAasC,GACb+C,iBAAiB,EACjBxE,gBAAiBA,EACjBC,WAAYA,OAYZwE,OAhKO,KACf5D,GAAe,EAAK,EAgKZ6D,QA7JQ,KAChB7D,GAAe,EAAM,EA6Jb8D,UA1JU,WACC,QAAnBrG,EAAA8C,EAAYS,eAAO,IAAAvD,GAAAA,EAAEsG,QACrB/D,GAAe,EAAM,EAyJbgE,eAAa,EACbC,OAAQ,EACRvG,UAAWA,EACXwG,oBAAkB,EAClBC,aAActG,EACduG,SAAUtF,KAEE"}
1
+ {"version":3,"file":"select-histogram.js","sources":["../../../src/select-histogram/select-histogram.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport { HistogramSlider } from \"../histogram-slider\";\nimport { DropdownListState, ExpandableElement } from \"../shared/dropdown-list\";\nimport type { DropdownRenderProps } from \"../shared/dropdown-wrapper\";\nimport { ElementWithDropdown } from \"../shared/dropdown-wrapper\";\nimport * as dropdownWrapperStyles from \"../shared/dropdown-wrapper/dropdown-wrapper.styles\";\nimport { InputBox } from \"../shared/input-wrapper\";\nimport { Typography } from \"../typography\";\nimport { useId } from \"../util\";\nimport * as styles from \"./select-histogram.styles\";\nimport type { SelectHistogramProps } from \"./types\";\n\nexport const SelectHistogram = ({\n alignment = \"left\",\n className,\n disabled,\n dropdownZIndex,\n error,\n histogramSlider,\n id,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-invalid\": ariaInvalid,\n onBlur,\n onChange,\n onChangeEnd,\n optionTruncationType = \"end\",\n placeholder = \"Select\",\n rangeLabelPrefix,\n rangeLabelSuffix,\n readOnly,\n renderRangeLabel,\n value,\n dropdownRootNode,\n ...otherProps\n}: SelectHistogramProps): JSX.Element => {\n const {\n interval,\n bins = [],\n renderEmptyView,\n ariaLabels,\n } = histogramSlider;\n // =============================================================================\n // CONST, STATE\n // =============================================================================\n const values = bins.map((item) => item.minValue);\n const minValue = Math.min(...values);\n const [selection, setSelection] = useState<[number, number]>(\n initSelection()\n );\n const [showOptions, setShowOptions] = useState<boolean>(false);\n const [focused, setFocused] = useState<boolean>(false);\n const internalId = useId();\n\n const nodeRef = useRef<HTMLDivElement>(null);\n const selectorRef = useRef<HTMLButtonElement>(null);\n const labelContainerRef = useRef<HTMLDivElement>(null);\n\n const testId = otherProps[\"data-testid\"] || \"select-histogram\";\n // =========================================================================\n // EFFECTS\n // =========================================================================\n useEffect(() => {\n if (value !== selection) {\n setSelection(initSelection());\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value]);\n\n // =============================================================================\n // EVENT HANDLERS\n // =============================================================================\n const handleOpen = () => {\n setShowOptions(true);\n };\n\n const handleClose = () => {\n setShowOptions(false);\n };\n\n const handleDismiss = () => {\n selectorRef.current?.focus();\n setShowOptions(false);\n };\n\n const onSliderChange = (values: [number, number]) => {\n setSelection(values);\n onChange?.(values);\n };\n\n const onSliderChangeEnd = (values: [number, number]) => {\n setSelection(values);\n onChangeEnd?.(values);\n };\n\n const handleNodeFocus = () => {\n if (!focused && !showOptions) {\n setFocused(true);\n }\n };\n\n const handleNodeBlur = (e: React.FocusEvent) => {\n if (\n focused &&\n !showOptions &&\n nodeRef.current &&\n !nodeRef.current.contains(e.relatedTarget as Node)\n ) {\n setFocused(false);\n onBlur?.();\n }\n };\n // =============================================================================\n // HELPER FUNCTIONS\n // =============================================================================\n function initSelection(): [number, number] {\n return value ?? [minValue, minValue + interval];\n }\n\n // =============================================================================\n // RENDER FUNCTIONS\n // =============================================================================\n const renderSelector = (value: number) => {\n if (renderRangeLabel) {\n return renderRangeLabel(value);\n }\n\n return (\n <Typography.BodyBL>\n {rangeLabelPrefix}\n {value}\n {rangeLabelSuffix}\n </Typography.BodyBL>\n );\n };\n\n const getDisplayValue = () => {\n return !values || values.length === 0 ? (\n <div\n className={clsx(\n styles.placeholderLabel,\n optionTruncationType !== \"middle\" &&\n styles.placeholderLabelTruncateEnd\n )}\n >\n {placeholder}\n </div>\n ) : (\n <div className={styles.label}>\n {renderSelector(selection[0])}\n <div className={styles.separator}>-</div>\n {renderSelector(selection[1])}\n </div>\n );\n };\n\n const renderSelectorContent = () => (\n <div\n className={dropdownWrapperStyles.labelContainer}\n ref={labelContainerRef}\n data-disabled={disabled || undefined}\n >\n {getDisplayValue()}\n </div>\n );\n\n const renderElement = () => {\n return (\n <InputBox\n className={className}\n data-testid={testId}\n id={id}\n ref={nodeRef}\n tabIndex={-1}\n onFocus={handleNodeFocus}\n onBlur={handleNodeBlur}\n focused={focused}\n disabled={disabled}\n readOnly={readOnly}\n error={error}\n >\n <ExpandableElement\n ref={selectorRef}\n disabled={disabled}\n expanded={showOptions}\n listboxId={internalId}\n popupRole=\"dialog\"\n readOnly={readOnly}\n variant=\"default\"\n aria-labelledby={ariaLabelledBy}\n aria-describedby={ariaDescribedBy}\n aria-invalid={ariaInvalid}\n >\n {renderSelectorContent()}\n </ExpandableElement>\n </InputBox>\n );\n };\n\n const renderDropdown = ({\n elementWidth,\n styles: floatingStyles,\n setFloatingRef,\n getFloatingProps,\n }: DropdownRenderProps) => (\n <div\n className={styles.histogramSliderDropdownContainer}\n style={{ ...floatingStyles, width: elementWidth }}\n ref={setFloatingRef}\n data-testid={`${testId}-dropdown`}\n {...getFloatingProps()}\n >\n <HistogramSlider\n interval={interval}\n value={selection}\n bins={bins}\n onChange={onSliderChange}\n onChangeEnd={onSliderChangeEnd}\n showRangeLabels={false}\n renderEmptyView={renderEmptyView}\n ariaLabels={ariaLabels}\n />\n </div>\n );\n\n return (\n <DropdownListState>\n <ElementWithDropdown\n enabled={!readOnly && !disabled}\n isOpen={showOptions}\n renderElement={renderElement}\n renderDropdown={renderDropdown}\n onOpen={handleOpen}\n onClose={handleClose}\n onDismiss={handleDismiss}\n clickToToggle\n offset={8}\n alignment={alignment}\n fitAvailableHeight\n customZIndex={dropdownZIndex}\n rootNode={dropdownRootNode}\n />\n </DropdownListState>\n );\n};\n"],"names":["_a","alignment","className","disabled","dropdownZIndex","error","histogramSlider","id","ariaLabelledBy","ariaDescribedBy","ariaInvalid","onBlur","onChange","onChangeEnd","optionTruncationType","placeholder","rangeLabelPrefix","rangeLabelSuffix","readOnly","renderRangeLabel","value","dropdownRootNode","otherProps","__rest","interval","bins","renderEmptyView","ariaLabels","values","map","item","minValue","Math","min","selection","setSelection","useState","initSelection","showOptions","setShowOptions","focused","setFocused","internalId","useId","nodeRef","useRef","selectorRef","labelContainerRef","testId","useEffect","onSliderChange","onSliderChangeEnd","handleNodeFocus","handleNodeBlur","e","current","contains","relatedTarget","renderSelector","_jsxs","Typography","BodyBL","children","_jsx","DropdownListState","ElementWithDropdown","enabled","isOpen","renderElement","InputBox","ref","tabIndex","onFocus","ExpandableElement","expanded","listboxId","popupRole","variant","dropdownWrapperStyles.labelContainer","undefined","length","styles.label","styles.separator","clsx","styles.placeholderLabel","styles.placeholderLabelTruncateEnd","renderDropdown","elementWidth","styles","floatingStyles","setFloatingRef","getFloatingProps","Object","assign","styles.histogramSliderDropdownContainer","style","width","HistogramSlider","showRangeLabels","onOpen","onClose","onDismiss","focus","clickToToggle","offset","fitAvailableHeight","customZIndex","rootNode"],"mappings":"q0EAcgCA,QAAAC,UAC5BA,EAAY,OAAMC,UAClBA,EAASC,SACTA,EAAQC,eACRA,EAAcC,MACdA,EAAKC,gBACLA,EAAeC,GACfA,EACA,kBAAmBC,EACnB,mBAAoBC,EACpB,eAAgBC,EAAWC,OAC3BA,EAAMC,SACNA,EAAQC,YACRA,EAAWC,qBACXA,EAAuB,MAAKC,YAC5BA,EAAc,SAAQC,iBACtBA,EAAgBC,iBAChBA,EAAgBC,SAChBA,EAAQC,iBACRA,EAAgBC,MAChBA,EAAKC,iBACLA,GAAgBrB,EACbsB,EAAUC,SAAAvB,EAtBe,CAAA,YAAA,YAAA,WAAA,iBAAA,QAAA,kBAAA,KAAA,kBAAA,mBAAA,eAAA,SAAA,WAAA,cAAA,uBAAA,cAAA,mBAAA,mBAAA,WAAA,mBAAA,QAAA,qBAwB5B,MAAMwB,SACFA,EAAQC,KACRA,EAAO,GAAEC,gBACTA,EAAeC,WACfA,GACArB,EAIEsB,EAASH,EAAKI,KAAKC,GAASA,EAAKC,WACjCA,EAAWC,KAAKC,OAAOL,IACtBM,EAAWC,GAAgBC,EAAAA,SAC9BC,OAEGC,EAAaC,GAAkBH,EAAAA,UAAkB,IACjDI,EAASC,GAAcL,EAAAA,UAAkB,GAC1CM,EAAaC,EAAAA,QAEbC,EAAUC,EAAAA,OAAuB,MACjCC,EAAcD,EAAAA,OAA0B,MACxCE,EAAoBF,EAAAA,OAAuB,MAE3CG,EAAS1B,EAAW,gBAAkB,mBAI5C2B,EAAAA,WAAU,KACF7B,IAAUc,GACVC,EAAaE,KACjB,GAED,CAACjB,IAKJ,MAaM8B,EAAkBtB,IACpBO,EAAaP,GACbhB,SAAAA,EAAWgB,EAAO,EAGhBuB,GAAqBvB,IACvBO,EAAaP,GACbf,SAAAA,EAAce,EAAO,EAGnBwB,GAAkB,KACfZ,GAAYF,GACbG,GAAW,EACf,EAGEY,GAAkBC,IAEhBd,IACCF,GACDM,EAAQW,UACPX,EAAQW,QAAQC,SAASF,EAAEG,iBAE5BhB,GAAW,GACX9B,SAAAA,IACJ,EAKJ,SAAS0B,KACL,OAAOjB,QAAAA,EAAS,CAACW,EAAUA,EAAWP,EAC1C,CAKA,MAAMkC,GAAkBtC,GAChBD,EACOA,EAAiBC,GAIxBuC,EAAAA,KAACC,aAAWC,OAAM,CAAAC,SAAA,CACb9C,EACAI,EACAH,KA8Fb,OACI8C,EAAAA,IAACC,EAAAA,kBAAiB,CAAAF,SACdC,EAAAA,IAACE,EAAAA,oBAAmB,CAChBC,SAAUhD,IAAaf,EACvBgE,OAAQ7B,EACR8B,cAhEU,IAEdL,MAACM,EAAAA,UACGnE,UAAWA,EAAS,cACP8C,EACbzC,GAAIA,EACJ+D,IAAK1B,EACL2B,UAAU,EACVC,QAASpB,GACTzC,OAAQ0C,GACRb,QAASA,EACTrC,SAAUA,EACVe,SAAUA,EACVb,MAAOA,WAEP0D,MAACU,EAAAA,mBACGH,IAAKxB,EACL3C,SAAUA,EACVuE,SAAUpC,EACVqC,UAAWjC,EACXkC,UAAU,SACV1D,SAAUA,EACV2D,QAAQ,UAAS,kBACArE,qBACCC,EAAe,eACnBC,EAAWoD,SAlCrCC,EAAAA,IAAA,MAAA,CACI7D,UAAW4E,EAAAA,eACXR,IAAKvB,EAAiB,gBACP5C,QAAY4E,EAASjB,SAvBhClC,GAA4B,IAAlBA,EAAOoD,OAWrBrB,EAAAA,KAAA,MAAA,CAAKzD,UAAW+E,EAAAA,MAAYnB,SAAA,CACvBJ,GAAexB,EAAU,IAC1B6B,EAAAA,IAAA,MAAA,CAAK7D,UAAWgF,EAAAA,UAAgBpB,SAAA,MAC/BJ,GAAexB,EAAU,OAb9B6B,EAAAA,IAAA,MAAA,CACI7D,UAAWiF,EAAAA,QACPC,EAAAA,iBACyB,WAAzBtE,GACIuE,EAAAA,sCAGPtE,UAsFDuE,eAhCW,EACnBC,eACAC,OAAQC,EACRC,iBACAC,sBAEA5B,EAAAA,IAAA,MAAA6B,OAAAC,OAAA,CACI3F,UAAW4F,mCACXC,qCAAYN,GAAc,CAAEO,MAAOT,IACnCjB,IAAKoB,EAAc,cACN,GAAG1C,cACZ2C,IAAkB,CAAA7B,SAEtBC,EAAAA,IAACkC,EAAAA,gBAAe,CACZzE,SAAUA,EACVJ,MAAOc,EACPT,KAAMA,EACNb,SAAUsC,EACVrC,YAAasC,GACb+C,iBAAiB,EACjBxE,gBAAiBA,EACjBC,WAAYA,OAYZwE,OAhKO,KACf5D,GAAe,EAAK,EAgKZ6D,QA7JQ,KAChB7D,GAAe,EAAM,EA6Jb8D,UA1JU,WACC,QAAnBrG,EAAA8C,EAAYS,eAAO,IAAAvD,GAAAA,EAAEsG,QACrB/D,GAAe,EAAM,EAyJbgE,eAAa,EACbC,OAAQ,EACRvG,UAAWA,EACXwG,oBAAkB,EAClBC,aAActG,EACduG,SAAUtF,KAEE"}
@@ -1,2 +1,2 @@
1
- "use strict";require("./select-histogram.styles_11916eo.css");exports.histogramSliderDropdownContainer="h1snxaxy",exports.label="l1e4uw6e",exports.placeholderLabel="p11079xa",exports.placeholderLabelTruncateEnd="p1bydnw6",exports.separator="s134rtp9";
1
+ "use strict";require("./select-histogram.styles_n260dy.css");exports.histogramSliderDropdownContainer="h1snxaxy",exports.label="l1e4uw6e",exports.placeholderLabel="p11079xa",exports.placeholderLabelTruncateEnd="p1bydnw6",exports.separator="s134rtp9";
2
2
  //# sourceMappingURL=select-histogram.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-histogram.styles.js","sources":["../../../src/select-histogram/select-histogram.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { lineClampCss } from \"../shared/styles\";\nimport {\n Border,\n Breakpoint,\n Colour,\n Font,\n MediaQuery,\n Radius,\n Spacing,\n} from \"../theme\";\n\nexport const histogramSliderDropdownContainer = css`\n overflow: hidden;\n border: ${Border[\"width-010\"]} ${Border[\"solid\"]} ${Colour[\"border\"]};\n border-radius: ${Radius[\"sm\"]};\n background: ${Colour[\"bg\"]};\n padding: ${Spacing[\"spacing-16\"]};\n min-width: 23rem;\n\n ${MediaQuery.MaxWidth.sm} {\n min-width: unset;\n width: calc(100vw - ${Breakpoint[\"sm-margin\"]} * 2);\n }\n\n ${MediaQuery.MaxWidth.xs} {\n width: calc(100vw - ${Breakpoint[\"xs-margin\"]} * 2);\n }\n\n ${MediaQuery.MaxWidth.xxs} {\n width: calc(100vw - ${Breakpoint[\"xxs-margin\"]} * 2);\n }\n`;\n\nexport const label = css`\n display: flex;\n align-items: baseline;\n`;\n\nexport const separator = css`\n margin: 0 0.5rem;\n color: ${Colour[\"text\"]};\n`;\n\nexport const placeholderLabel = css`\n ${Font[\"body-baseline-regular\"]}\n text-align: left;\n overflow: hidden;\n color: ${Colour[\"text-subtler\"]};\n`;\n\nexport const placeholderLabelTruncateEnd = css`\n ${lineClampCss(1)}\n`;\n"],"names":[],"mappings":"uIAa6C,yBAsB3B,oCAUW,+CAOW,6BAZlB"}
1
+ {"version":3,"file":"select-histogram.styles.js","sources":["../../../src/select-histogram/select-histogram.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { lineClampCss } from \"../shared/styles\";\nimport {\n Border,\n Breakpoint,\n Colour,\n Font,\n MediaQuery,\n Radius,\n Spacing,\n} from \"../theme\";\n\nexport const histogramSliderDropdownContainer = css`\n overflow: hidden;\n border: ${Border[\"width-010\"]} ${Border[\"solid\"]} ${Colour[\"border\"]};\n border-radius: ${Radius[\"sm\"]};\n background: ${Colour[\"bg\"]};\n padding: ${Spacing[\"spacing-16\"]};\n min-width: 23rem;\n\n ${MediaQuery.MaxWidth.sm} {\n min-width: unset;\n width: calc(100vw - ${Breakpoint[\"sm-margin\"]} * 2);\n }\n\n ${MediaQuery.MaxWidth.xs} {\n width: calc(100vw - ${Breakpoint[\"xs-margin\"]} * 2);\n }\n\n ${MediaQuery.MaxWidth.xxs} {\n width: calc(100vw - ${Breakpoint[\"xxs-margin\"]} * 2);\n }\n`;\n\nexport const label = css`\n display: flex;\n align-items: baseline;\n`;\n\nexport const separator = css`\n margin: 0 0.5rem;\n color: ${Colour[\"text\"]};\n`;\n\nexport const placeholderLabel = css`\n ${Font[\"body-baseline-regular\"]}\n text-align: left;\n overflow: hidden;\n color: ${Colour[\"text-subtler\"]};\n`;\n\nexport const placeholderLabelTruncateEnd = css`\n ${lineClampCss(1)}\n`;\n"],"names":[],"mappings":"sIAa6C,yBAsB3B,oCAUW,+CAOW,6BAZlB"}
@@ -1,5 +1,5 @@
1
1
  .h1snxaxy{overflow:hidden;border:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);border-radius:var(--fds-radius-sm);background:var(--fds-colour-bg);padding:var(--fds-spacing-16);min-width:23rem;}:where(body.fds-breakpoint-sm-max) .h1snxaxy{min-width:unset;width:calc(100vw - var(--fds-breakpoint-margin-sm) * 2);}:where(body.fds-breakpoint-xs-max) .h1snxaxy{width:calc(100vw - var(--fds-breakpoint-margin-xs) * 2);}:where(body.fds-breakpoint-xxs-max) .h1snxaxy{width:calc(100vw - var(--fds-breakpoint-margin-xxs) * 2);}
2
2
  .l1e4uw6e{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:baseline;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;}
3
3
  .s134rtp9{margin:0 0.5rem;color:var(--fds-colour-text);}
4
- .p11079xa{font-family:var(--fds-font-family);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);text-align:left;overflow:hidden;color:var(--fds-colour-text-subtler);}
4
+ .p11079xa{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);text-align:left;overflow:hidden;color:var(--fds-colour-text-subtler);}
5
5
  .p1bydnw6{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("clsx"),t=require("react"),i=require("../../external/react-resize-detector/build/index.esm.js");require("../../theme/theme-provider/index.js"),require("../../theme/theme-provider/context.js"),require("../../theme/tokens/border.js"),require("../../theme/tokens/colour.js");var n=require("../../theme/tokens/font.js");require("../../theme/tokens/media-query.js");var l=require("../../theme/utils/use-apply-styles.js");require("../../theme/utils/use-media-query.js");var a=require("../../util/string-helper.js"),s=require("./dropdown-label.styles.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=d(r);exports.DropdownLabel=({bold:r,displayType:d="inline",label:c,searchTerm:o,maxLines:m=2,selected:x,disabled:y,sublabel:p,truncationType:h="middle",variant:b="default"})=>{const f="small"===b?n.Font.Spec["body-size-md"]:n.Font.Spec["body-size-baseline"],T=n.Font.Spec["font-family"],{ref:j,width:q}=i.useResizeDetector(),S=t.useRef(null),L=t.useRef(null);l.useApplyStyle(S,{[s.tokens.primaryText.maxLines]:String(m)}),l.useApplyStyle(L,{[s.tokens.secondaryText.maxLines]:String(m)});const v=t.useCallback((e=>{if("inline"!==d||!q)return!1;return a.StringHelper.getTextWidth(e,`${f} '${T}'`)>q-50}),[q,d,f,T]),g=t.useMemo((()=>v(c)),[v,c]),N=t.useMemo((()=>p&&v(p)),[v,p]),k="middle"===h&&(g||N)?"next-line":d,F=r=>{if(!o)return r;const t=o.toLowerCase().trim(),i=r.toLowerCase().indexOf(t),n=i+o.length;return-1===i?r:e.jsxs(e.Fragment,{children:[c.slice(0,i),e.jsx("span",{className:s.matchedText,children:c.slice(i,n)}),c.slice(n)]})},w=r=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:u.default(s.baseTruncateStyle,s.truncateFirstLine,1===m&&s.truncateLineSingle),"aria-hidden":!0,children:F(r)}),e.jsx("div",{className:u.default(s.baseTruncateStyle,s.truncateSecondLine,1===m&&s.truncateLineSingle),"aria-hidden":!0,children:F(r)})]});return e.jsxs("div",{ref:j,className:u.default(s.label,"small"===b&&s.labelVariantSmall,"next-line"===k&&s.labelNextLine),children:[e.jsx("div",{ref:S,"aria-label":c,className:u.default(s.primaryText,r&&s.primaryTextBold,y&&s.primaryTextDisabled,!y&&x&&s.primaryTextSelected,"inline"===k&&s.primaryTextLabelInline,"end"===h&&s.primaryTextTruncateEnd),children:"middle"===h&&g?w(c):F(c)}),p&&e.jsx("div",{ref:L,"aria-label":p,className:u.default(s.secondaryText,"inline"===k&&s.secondaryTextLabelInline,"end"===h&&s.secondaryTextTruncateEnd,"next-line"===d?s.secondaryTextNextLine:s.secondaryTextInline),children:"middle"===h&&N?w(p):p})]})};
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("clsx"),t=require("react"),i=require("../../external/react-resize-detector/build/index.esm.js");require("../../theme/theme-provider/index.js"),require("../../theme/theme-provider/context.js"),require("../../theme/tokens/border.js"),require("../../theme/tokens/colour.js");var n=require("../../theme/tokens/font.js");require("../../theme/tokens/media-query.js");var l=require("../../theme/utils/use-apply-styles.js");require("../../theme/utils/use-media-query.js");var a=require("../../util/string-helper.js"),s=require("./dropdown-label.styles.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=d(r);exports.DropdownLabel=({bold:r,displayType:d="inline",label:c,searchTerm:o,maxLines:m=2,selected:x,disabled:y,sublabel:p,truncationType:h="middle",variant:b="default"})=>{const f="small"===b?n.Font.Spec["body-size-md"]:n.Font.Spec["body-size-baseline"],T=n.Font.Spec["font-family-body"],{ref:j,width:q}=i.useResizeDetector(),S=t.useRef(null),L=t.useRef(null);l.useApplyStyle(S,{[s.tokens.primaryText.maxLines]:String(m)}),l.useApplyStyle(L,{[s.tokens.secondaryText.maxLines]:String(m)});const v=t.useCallback((e=>{if("inline"!==d||!q)return!1;return a.StringHelper.getTextWidth(e,`${f} '${T}'`)>q-50}),[q,d,f,T]),g=t.useMemo((()=>v(c)),[v,c]),N=t.useMemo((()=>p&&v(p)),[v,p]),k="middle"===h&&(g||N)?"next-line":d,F=r=>{if(!o)return r;const t=o.toLowerCase().trim(),i=r.toLowerCase().indexOf(t),n=i+o.length;return-1===i?r:e.jsxs(e.Fragment,{children:[c.slice(0,i),e.jsx("span",{className:s.matchedText,children:c.slice(i,n)}),c.slice(n)]})},w=r=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:u.default(s.baseTruncateStyle,s.truncateFirstLine,1===m&&s.truncateLineSingle),"aria-hidden":!0,children:F(r)}),e.jsx("div",{className:u.default(s.baseTruncateStyle,s.truncateSecondLine,1===m&&s.truncateLineSingle),"aria-hidden":!0,children:F(r)})]});return e.jsxs("div",{ref:j,className:u.default(s.label,"small"===b&&s.labelVariantSmall,"next-line"===k&&s.labelNextLine),children:[e.jsx("div",{ref:S,"aria-label":c,className:u.default(s.primaryText,r&&s.primaryTextBold,y&&s.primaryTextDisabled,!y&&x&&s.primaryTextSelected,"inline"===k&&s.primaryTextLabelInline,"end"===h&&s.primaryTextTruncateEnd),children:"middle"===h&&g?w(c):F(c)}),p&&e.jsx("div",{ref:L,"aria-label":p,className:u.default(s.secondaryText,"inline"===k&&s.secondaryTextLabelInline,"end"===h&&s.secondaryTextTruncateEnd,"next-line"===d?s.secondaryTextNextLine:s.secondaryTextInline),children:"middle"===h&&N?w(p):p})]})};
2
2
  //# sourceMappingURL=dropdown-label.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-label.js","sources":["../../../../src/shared/dropdown-list/dropdown-label.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { useCallback, useMemo, useRef } from \"react\";\nimport { useResizeDetector } from \"react-resize-detector\";\n\nimport { Font } from \"../../theme\";\nimport { useApplyStyle } from \"../../theme/utils/use-apply-styles\";\nimport { StringHelper } from \"../../util/string-helper\";\nimport * as styles from \"./dropdown-label.styles\";\nimport type { DropdownVariantType, LabelDisplayType } from \"./types\";\n\ninterface DropdownLabelProps {\n bold?: boolean | undefined;\n displayType?: LabelDisplayType | undefined;\n label: string;\n maxLines?: number | undefined;\n searchTerm?: string | undefined;\n selected?: boolean | undefined;\n disabled?: boolean | undefined;\n sublabel?: string | undefined;\n truncationType?: \"middle\" | \"end\" | undefined;\n variant?: DropdownVariantType | undefined;\n}\n\nexport const DropdownLabel = ({\n bold,\n displayType = \"inline\",\n label,\n searchTerm,\n maxLines = 2,\n selected,\n disabled,\n sublabel,\n truncationType = \"middle\",\n variant = \"default\",\n}: DropdownLabelProps): JSX.Element => {\n const fontSize =\n variant === \"small\"\n ? Font.Spec[\"body-size-md\"]\n : Font.Spec[\"body-size-baseline\"];\n const fontFamily = Font.Spec[\"font-family\"];\n const { ref, width } = useResizeDetector();\n\n const primaryTextRef = useRef<HTMLDivElement>(null);\n const secondaryTextRef = useRef<HTMLDivElement>(null);\n\n useApplyStyle(primaryTextRef, {\n [styles.tokens.primaryText.maxLines]: String(maxLines),\n });\n\n useApplyStyle(secondaryTextRef, {\n [styles.tokens.secondaryText.maxLines]: String(maxLines),\n });\n\n // =========================================================================\n // HELPER FUNCTIONS\n // =========================================================================\n const hasExceededContainer = useCallback(\n (displayText: string) => {\n if (displayType !== \"inline\" || !width) {\n return false;\n }\n\n // best-effort attempt to check if multi-line text will overflow,\n // rendering an actual element in the DOM might be more accurate\n // but might not be performant for large lists\n const textWidth = StringHelper.getTextWidth(\n displayText,\n `${fontSize} '${fontFamily}'`\n );\n\n // there's less space than expected due to word breaks, so an\n // arbitary offset is applied\n return textWidth > width - 50;\n },\n [width, displayType, fontSize, fontFamily]\n );\n\n // =========================================================================\n // CONST, STATE, REFS\n // =========================================================================\n const shouldTruncateTitle = useMemo(\n () => hasExceededContainer(label),\n [hasExceededContainer, label]\n );\n const shouldTruncateLabel = useMemo(\n () => sublabel && hasExceededContainer(sublabel),\n [hasExceededContainer, sublabel]\n );\n\n // css cannot truncate inline elements so force the display to render\n // them separately\n const itemDisplayType =\n truncationType === \"middle\" &&\n (shouldTruncateTitle || shouldTruncateLabel)\n ? \"next-line\"\n : displayType;\n\n // =========================================================================\n // RENDER FUNCTIONS\n // =========================================================================\n const renderMatchInBold = (displayText: string) => {\n if (!searchTerm) {\n return displayText;\n }\n\n const match = searchTerm.toLowerCase().trim();\n const startIndex = displayText.toLowerCase().indexOf(match);\n const endIndex = startIndex + searchTerm.length;\n\n if (startIndex === -1) {\n return displayText;\n }\n\n return (\n <>\n {label.slice(0, startIndex)}\n <span className={styles.matchedText}>\n {label.slice(startIndex, endIndex)}\n </span>\n {label.slice(endIndex)}\n </>\n );\n };\n\n const renderTruncatedText = (displayText: string): JSX.Element => {\n return (\n <>\n <div\n className={clsx(\n styles.baseTruncateStyle,\n styles.truncateFirstLine,\n maxLines === 1 && styles.truncateLineSingle\n )}\n aria-hidden\n >\n {renderMatchInBold(displayText)}\n </div>\n <div\n className={clsx(\n styles.baseTruncateStyle,\n styles.truncateSecondLine,\n maxLines === 1 && styles.truncateLineSingle\n )}\n aria-hidden\n >\n {renderMatchInBold(displayText)}\n </div>\n </>\n );\n };\n\n return (\n <div\n ref={ref}\n className={clsx(\n styles.label,\n variant === \"small\" && styles.labelVariantSmall,\n itemDisplayType === \"next-line\" && styles.labelNextLine\n )}\n >\n <div\n ref={primaryTextRef}\n aria-label={label}\n className={clsx(\n styles.primaryText,\n bold && styles.primaryTextBold,\n disabled && styles.primaryTextDisabled,\n !disabled && selected && styles.primaryTextSelected,\n itemDisplayType === \"inline\" &&\n styles.primaryTextLabelInline,\n truncationType === \"end\" && styles.primaryTextTruncateEnd\n )}\n >\n {truncationType === \"middle\" && shouldTruncateTitle\n ? renderTruncatedText(label)\n : renderMatchInBold(label)}\n </div>\n {sublabel && (\n <div\n ref={secondaryTextRef}\n aria-label={sublabel}\n className={clsx(\n styles.secondaryText,\n itemDisplayType === \"inline\" &&\n styles.secondaryTextLabelInline,\n truncationType === \"end\" &&\n styles.secondaryTextTruncateEnd,\n displayType === \"next-line\"\n ? styles.secondaryTextNextLine\n : styles.secondaryTextInline\n )}\n >\n {truncationType === \"middle\" && shouldTruncateLabel\n ? renderTruncatedText(sublabel)\n : sublabel}\n </div>\n )}\n </div>\n );\n};\n"],"names":["bold","displayType","label","searchTerm","maxLines","selected","disabled","sublabel","truncationType","variant","fontSize","Font","Spec","fontFamily","ref","width","useResizeDetector","primaryTextRef","useRef","secondaryTextRef","useApplyStyle","styles.tokens","primaryText","String","secondaryText","hasExceededContainer","useCallback","displayText","StringHelper","getTextWidth","shouldTruncateTitle","useMemo","shouldTruncateLabel","itemDisplayType","renderMatchInBold","match","toLowerCase","trim","startIndex","indexOf","endIndex","length","_jsxs","_Fragment","children","slice","_jsx","className","styles.matchedText","renderTruncatedText","clsx","styles.baseTruncateStyle","styles.truncateFirstLine","styles.truncateLineSingle","styles.truncateSecondLine","styles.label","styles.labelVariantSmall","styles.labelNextLine","styles.primaryText","styles.primaryTextBold","styles.primaryTextDisabled","styles.primaryTextSelected","styles.primaryTextLabelInline","styles.primaryTextTruncateEnd","styles.secondaryText","styles.secondaryTextLabelInline","styles.secondaryTextTruncateEnd","styles.secondaryTextNextLine","styles.secondaryTextInline"],"mappings":"wsBAuB6B,EACzBA,OACAC,cAAc,SACdC,QACAC,aACAC,WAAW,EACXC,WACAC,WACAC,WACAC,iBAAiB,SACjBC,UAAU,cAEV,MAAMC,EACU,UAAZD,EACME,EAAAA,KAAKC,KAAK,gBACVD,EAAAA,KAAKC,KAAK,sBACdC,EAAaF,EAAAA,KAAKC,KAAK,gBACvBE,IAAEA,EAAGC,MAAEA,GAAUC,sBAEjBC,EAAiBC,EAAAA,OAAuB,MACxCC,EAAmBD,EAAAA,OAAuB,MAEhDE,EAAAA,cAAcH,EAAgB,CAC1B,CAACI,EAAAA,OAAcC,YAAYlB,UAAWmB,OAAOnB,KAGjDgB,EAAAA,cAAcD,EAAkB,CAC5B,CAACE,EAAAA,OAAcG,cAAcpB,UAAWmB,OAAOnB,KAMnD,MAAMqB,EAAuBC,eACxBC,IACG,GAAoB,WAAhB1B,IAA6Bc,EAC7B,OAAO,EAaX,OAPkBa,eAAaC,aAC3BF,EACA,GAAGjB,MAAaG,MAKDE,EAAQ,EAAE,GAEjC,CAACA,EAAOd,EAAaS,EAAUG,IAM7BiB,EAAsBC,EAAAA,SACxB,IAAMN,EAAqBvB,IAC3B,CAACuB,EAAsBvB,IAErB8B,EAAsBD,WACxB,IAAMxB,GAAYkB,EAAqBlB,IACvC,CAACkB,EAAsBlB,IAKrB0B,EACiB,WAAnBzB,IACCsB,GAAuBE,GAClB,YACA/B,EAKJiC,EAAqBP,IACvB,IAAKxB,EACD,OAAOwB,EAGX,MAAMQ,EAAQhC,EAAWiC,cAAcC,OACjCC,EAAaX,EAAYS,cAAcG,QAAQJ,GAC/CK,EAAWF,EAAanC,EAAWsC,OAEzC,OAAmB,IAAfH,EACOX,EAIPe,OAAAC,EAAAA,SAAA,CAAAC,SAAA,CACK1C,EAAM2C,MAAM,EAAGP,GAChBQ,EAAAA,IAAA,OAAA,CAAMC,UAAWC,EAAAA,YAAkBJ,SAC9B1C,EAAM2C,MAAMP,EAAYE,KAE5BtC,EAAM2C,MAAML,KACd,EAILS,EAAuBtB,GAErBe,EAAAA,KAAAC,EAAAA,SAAA,CAAAC,SAAA,CACIE,EAAAA,IAAA,MAAA,CACIC,UAAWG,EAAAA,QACPC,EAAAA,kBACAC,oBACa,IAAbhD,GAAkBiD,EAAAA,oBACrB,eAAA,EAAAT,SAGAV,EAAkBP,KAEvBmB,EAAAA,IAAA,MAAA,CACIC,UAAWG,EAAAA,QACPC,EAAAA,kBACAG,EAAAA,mBACa,IAAblD,GAAkBiD,EAAAA,oBACrB,eAAA,EAAAT,SAGAV,EAAkBP,QAMnC,OACIe,EAAAA,KAAA,MAAA,CACI5B,IAAKA,EACLiC,UAAWG,EAAAA,QACPK,EAAAA,MACY,UAAZ9C,GAAuB+C,EAAAA,kBACH,cAApBvB,GAAmCwB,EAAAA,eACtCb,SAAA,CAEDE,EAAAA,WACIhC,IAAKG,EAAc,aACPf,EACZ6C,UAAWG,EAAAA,QACPQ,cACA1D,GAAQ2D,EAAAA,gBACRrD,GAAYsD,EAAAA,qBACXtD,GAAYD,GAAYwD,EAAAA,oBACL,WAApB5B,GACI6B,EAAAA,uBACe,QAAnBtD,GAA4BuD,EAAAA,wBAC/BnB,SAEmB,WAAnBpC,GAA+BsB,EAC1BmB,EAAoB/C,GACpBgC,EAAkBhC,KAE3BK,GACGuC,EAAAA,IAAA,MAAA,CACIhC,IAAKK,EAAgB,aACTZ,EACZwC,UAAWG,EAAAA,QACPc,EAAAA,cACoB,WAApB/B,GACIgC,EAAAA,yBACe,QAAnBzD,GACI0D,EAAAA,yBACY,cAAhBjE,EACMkE,EAAAA,sBACAC,EAAAA,8BAGU,WAAnB5D,GAA+BwB,EAC1BiB,EAAoB1C,GACpBA,MAGZ"}
1
+ {"version":3,"file":"dropdown-label.js","sources":["../../../../src/shared/dropdown-list/dropdown-label.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { useCallback, useMemo, useRef } from \"react\";\nimport { useResizeDetector } from \"react-resize-detector\";\n\nimport { Font } from \"../../theme\";\nimport { useApplyStyle } from \"../../theme/utils/use-apply-styles\";\nimport { StringHelper } from \"../../util/string-helper\";\nimport * as styles from \"./dropdown-label.styles\";\nimport type { DropdownVariantType, LabelDisplayType } from \"./types\";\n\ninterface DropdownLabelProps {\n bold?: boolean | undefined;\n displayType?: LabelDisplayType | undefined;\n label: string;\n maxLines?: number | undefined;\n searchTerm?: string | undefined;\n selected?: boolean | undefined;\n disabled?: boolean | undefined;\n sublabel?: string | undefined;\n truncationType?: \"middle\" | \"end\" | undefined;\n variant?: DropdownVariantType | undefined;\n}\n\nexport const DropdownLabel = ({\n bold,\n displayType = \"inline\",\n label,\n searchTerm,\n maxLines = 2,\n selected,\n disabled,\n sublabel,\n truncationType = \"middle\",\n variant = \"default\",\n}: DropdownLabelProps): JSX.Element => {\n const fontSize =\n variant === \"small\"\n ? Font.Spec[\"body-size-md\"]\n : Font.Spec[\"body-size-baseline\"];\n const fontFamily = Font.Spec[\"font-family-body\"];\n const { ref, width } = useResizeDetector();\n\n const primaryTextRef = useRef<HTMLDivElement>(null);\n const secondaryTextRef = useRef<HTMLDivElement>(null);\n\n useApplyStyle(primaryTextRef, {\n [styles.tokens.primaryText.maxLines]: String(maxLines),\n });\n\n useApplyStyle(secondaryTextRef, {\n [styles.tokens.secondaryText.maxLines]: String(maxLines),\n });\n\n // =========================================================================\n // HELPER FUNCTIONS\n // =========================================================================\n const hasExceededContainer = useCallback(\n (displayText: string) => {\n if (displayType !== \"inline\" || !width) {\n return false;\n }\n\n // best-effort attempt to check if multi-line text will overflow,\n // rendering an actual element in the DOM might be more accurate\n // but might not be performant for large lists\n const textWidth = StringHelper.getTextWidth(\n displayText,\n `${fontSize} '${fontFamily}'`\n );\n\n // there's less space than expected due to word breaks, so an\n // arbitary offset is applied\n return textWidth > width - 50;\n },\n [width, displayType, fontSize, fontFamily]\n );\n\n // =========================================================================\n // CONST, STATE, REFS\n // =========================================================================\n const shouldTruncateTitle = useMemo(\n () => hasExceededContainer(label),\n [hasExceededContainer, label]\n );\n const shouldTruncateLabel = useMemo(\n () => sublabel && hasExceededContainer(sublabel),\n [hasExceededContainer, sublabel]\n );\n\n // css cannot truncate inline elements so force the display to render\n // them separately\n const itemDisplayType =\n truncationType === \"middle\" &&\n (shouldTruncateTitle || shouldTruncateLabel)\n ? \"next-line\"\n : displayType;\n\n // =========================================================================\n // RENDER FUNCTIONS\n // =========================================================================\n const renderMatchInBold = (displayText: string) => {\n if (!searchTerm) {\n return displayText;\n }\n\n const match = searchTerm.toLowerCase().trim();\n const startIndex = displayText.toLowerCase().indexOf(match);\n const endIndex = startIndex + searchTerm.length;\n\n if (startIndex === -1) {\n return displayText;\n }\n\n return (\n <>\n {label.slice(0, startIndex)}\n <span className={styles.matchedText}>\n {label.slice(startIndex, endIndex)}\n </span>\n {label.slice(endIndex)}\n </>\n );\n };\n\n const renderTruncatedText = (displayText: string): JSX.Element => {\n return (\n <>\n <div\n className={clsx(\n styles.baseTruncateStyle,\n styles.truncateFirstLine,\n maxLines === 1 && styles.truncateLineSingle\n )}\n aria-hidden\n >\n {renderMatchInBold(displayText)}\n </div>\n <div\n className={clsx(\n styles.baseTruncateStyle,\n styles.truncateSecondLine,\n maxLines === 1 && styles.truncateLineSingle\n )}\n aria-hidden\n >\n {renderMatchInBold(displayText)}\n </div>\n </>\n );\n };\n\n return (\n <div\n ref={ref}\n className={clsx(\n styles.label,\n variant === \"small\" && styles.labelVariantSmall,\n itemDisplayType === \"next-line\" && styles.labelNextLine\n )}\n >\n <div\n ref={primaryTextRef}\n aria-label={label}\n className={clsx(\n styles.primaryText,\n bold && styles.primaryTextBold,\n disabled && styles.primaryTextDisabled,\n !disabled && selected && styles.primaryTextSelected,\n itemDisplayType === \"inline\" &&\n styles.primaryTextLabelInline,\n truncationType === \"end\" && styles.primaryTextTruncateEnd\n )}\n >\n {truncationType === \"middle\" && shouldTruncateTitle\n ? renderTruncatedText(label)\n : renderMatchInBold(label)}\n </div>\n {sublabel && (\n <div\n ref={secondaryTextRef}\n aria-label={sublabel}\n className={clsx(\n styles.secondaryText,\n itemDisplayType === \"inline\" &&\n styles.secondaryTextLabelInline,\n truncationType === \"end\" &&\n styles.secondaryTextTruncateEnd,\n displayType === \"next-line\"\n ? styles.secondaryTextNextLine\n : styles.secondaryTextInline\n )}\n >\n {truncationType === \"middle\" && shouldTruncateLabel\n ? renderTruncatedText(sublabel)\n : sublabel}\n </div>\n )}\n </div>\n );\n};\n"],"names":["bold","displayType","label","searchTerm","maxLines","selected","disabled","sublabel","truncationType","variant","fontSize","Font","Spec","fontFamily","ref","width","useResizeDetector","primaryTextRef","useRef","secondaryTextRef","useApplyStyle","styles.tokens","primaryText","String","secondaryText","hasExceededContainer","useCallback","displayText","StringHelper","getTextWidth","shouldTruncateTitle","useMemo","shouldTruncateLabel","itemDisplayType","renderMatchInBold","match","toLowerCase","trim","startIndex","indexOf","endIndex","length","_jsxs","_Fragment","children","slice","_jsx","className","styles.matchedText","renderTruncatedText","clsx","styles.baseTruncateStyle","styles.truncateFirstLine","styles.truncateLineSingle","styles.truncateSecondLine","styles.label","styles.labelVariantSmall","styles.labelNextLine","styles.primaryText","styles.primaryTextBold","styles.primaryTextDisabled","styles.primaryTextSelected","styles.primaryTextLabelInline","styles.primaryTextTruncateEnd","styles.secondaryText","styles.secondaryTextLabelInline","styles.secondaryTextTruncateEnd","styles.secondaryTextNextLine","styles.secondaryTextInline"],"mappings":"wsBAuB6B,EACzBA,OACAC,cAAc,SACdC,QACAC,aACAC,WAAW,EACXC,WACAC,WACAC,WACAC,iBAAiB,SACjBC,UAAU,cAEV,MAAMC,EACU,UAAZD,EACME,EAAAA,KAAKC,KAAK,gBACVD,EAAAA,KAAKC,KAAK,sBACdC,EAAaF,EAAAA,KAAKC,KAAK,qBACvBE,IAAEA,EAAGC,MAAEA,GAAUC,sBAEjBC,EAAiBC,EAAAA,OAAuB,MACxCC,EAAmBD,EAAAA,OAAuB,MAEhDE,EAAAA,cAAcH,EAAgB,CAC1B,CAACI,EAAAA,OAAcC,YAAYlB,UAAWmB,OAAOnB,KAGjDgB,EAAAA,cAAcD,EAAkB,CAC5B,CAACE,EAAAA,OAAcG,cAAcpB,UAAWmB,OAAOnB,KAMnD,MAAMqB,EAAuBC,eACxBC,IACG,GAAoB,WAAhB1B,IAA6Bc,EAC7B,OAAO,EAaX,OAPkBa,eAAaC,aAC3BF,EACA,GAAGjB,MAAaG,MAKDE,EAAQ,EAAE,GAEjC,CAACA,EAAOd,EAAaS,EAAUG,IAM7BiB,EAAsBC,EAAAA,SACxB,IAAMN,EAAqBvB,IAC3B,CAACuB,EAAsBvB,IAErB8B,EAAsBD,WACxB,IAAMxB,GAAYkB,EAAqBlB,IACvC,CAACkB,EAAsBlB,IAKrB0B,EACiB,WAAnBzB,IACCsB,GAAuBE,GAClB,YACA/B,EAKJiC,EAAqBP,IACvB,IAAKxB,EACD,OAAOwB,EAGX,MAAMQ,EAAQhC,EAAWiC,cAAcC,OACjCC,EAAaX,EAAYS,cAAcG,QAAQJ,GAC/CK,EAAWF,EAAanC,EAAWsC,OAEzC,OAAmB,IAAfH,EACOX,EAIPe,OAAAC,EAAAA,SAAA,CAAAC,SAAA,CACK1C,EAAM2C,MAAM,EAAGP,GAChBQ,EAAAA,IAAA,OAAA,CAAMC,UAAWC,EAAAA,YAAkBJ,SAC9B1C,EAAM2C,MAAMP,EAAYE,KAE5BtC,EAAM2C,MAAML,KACd,EAILS,EAAuBtB,GAErBe,EAAAA,KAAAC,EAAAA,SAAA,CAAAC,SAAA,CACIE,EAAAA,IAAA,MAAA,CACIC,UAAWG,EAAAA,QACPC,EAAAA,kBACAC,oBACa,IAAbhD,GAAkBiD,EAAAA,oBACrB,eAAA,EAAAT,SAGAV,EAAkBP,KAEvBmB,EAAAA,IAAA,MAAA,CACIC,UAAWG,EAAAA,QACPC,EAAAA,kBACAG,EAAAA,mBACa,IAAblD,GAAkBiD,EAAAA,oBACrB,eAAA,EAAAT,SAGAV,EAAkBP,QAMnC,OACIe,EAAAA,KAAA,MAAA,CACI5B,IAAKA,EACLiC,UAAWG,EAAAA,QACPK,EAAAA,MACY,UAAZ9C,GAAuB+C,EAAAA,kBACH,cAApBvB,GAAmCwB,EAAAA,eACtCb,SAAA,CAEDE,EAAAA,WACIhC,IAAKG,EAAc,aACPf,EACZ6C,UAAWG,EAAAA,QACPQ,cACA1D,GAAQ2D,EAAAA,gBACRrD,GAAYsD,EAAAA,qBACXtD,GAAYD,GAAYwD,EAAAA,oBACL,WAApB5B,GACI6B,EAAAA,uBACe,QAAnBtD,GAA4BuD,EAAAA,wBAC/BnB,SAEmB,WAAnBpC,GAA+BsB,EAC1BmB,EAAoB/C,GACpBgC,EAAkBhC,KAE3BK,GACGuC,EAAAA,IAAA,MAAA,CACIhC,IAAKK,EAAgB,aACTZ,EACZwC,UAAWG,EAAAA,QACPc,EAAAA,cACoB,WAApB/B,GACIgC,EAAAA,yBACe,QAAnBzD,GACI0D,EAAAA,yBACY,cAAhBjE,EACMkE,EAAAA,sBACAC,EAAAA,8BAGU,WAAnB5D,GAA+BwB,EAC1BiB,EAAoB1C,GACpBA,MAGZ"}
@@ -1,2 +1,2 @@
1
- "use strict";require("./dropdown-label.styles_1dwmd8f.css");exports.baseTruncateStyle="b1tiox0q",exports.label="lkpcujm",exports.labelNextLine="l5tt4mi",exports.labelVariantSmall="l4129ag",exports.matchedText="m7dzxku",exports.primaryText="pi58ntt",exports.primaryTextBold="p1wtg030",exports.primaryTextDisabled="pp0vhoy",exports.primaryTextLabelInline="p1nofioz",exports.primaryTextSelected="p4cirxp",exports.primaryTextTruncateEnd="przdrhy",exports.secondaryText="s3fwc7p",exports.secondaryTextInline="swx1e24",exports.secondaryTextLabelInline="s1kq4iiq",exports.secondaryTextNextLine="s132gi2y",exports.secondaryTextTruncateEnd="s1jjyg61",exports.tokens={primaryText:{maxLines:"--fds-internal-dropdownLabel-primaryText-maxLines"},secondaryText:{maxLines:"--fds-internal-dropdownLabel-secondaryText-maxLines"}},exports.truncateFirstLine="t1y8fzo0",exports.truncateLineSingle="tgn5sfi",exports.truncateSecondLine="t18n9ljk";
1
+ "use strict";require("./dropdown-label.styles_mloii0.css");exports.baseTruncateStyle="b1tiox0q",exports.label="lkpcujm",exports.labelNextLine="l5tt4mi",exports.labelVariantSmall="l4129ag",exports.matchedText="m7dzxku",exports.primaryText="pi58ntt",exports.primaryTextBold="p1wtg030",exports.primaryTextDisabled="pp0vhoy",exports.primaryTextLabelInline="p1nofioz",exports.primaryTextSelected="p4cirxp",exports.primaryTextTruncateEnd="przdrhy",exports.secondaryText="s3fwc7p",exports.secondaryTextInline="swx1e24",exports.secondaryTextLabelInline="s1kq4iiq",exports.secondaryTextNextLine="s132gi2y",exports.secondaryTextTruncateEnd="s1jjyg61",exports.tokens={primaryText:{maxLines:"--fds-internal-dropdownLabel-primaryText-maxLines"},secondaryText:{maxLines:"--fds-internal-dropdownLabel-secondaryText-maxLines"}},exports.truncateFirstLine="t1y8fzo0",exports.truncateLineSingle="tgn5sfi",exports.truncateSecondLine="t18n9ljk";
2
2
  //# sourceMappingURL=dropdown-label.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-label.styles.js","sources":["../../../../src/shared/dropdown-list/dropdown-label.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Colour, Font } from \"../../theme\";\nimport { lineClampDynamicCss } from \"../styles\";\n\nexport const tokens = {\n primaryText: {\n maxLines: \"--fds-internal-dropdownLabel-primaryText-maxLines\",\n },\n secondaryText: {\n maxLines: \"--fds-internal-dropdownLabel-secondaryText-maxLines\",\n },\n};\n\n// =============================================================================\n// STYLING\n// =============================================================================\n\n// -----------------------------------------------------------------------------\n// PRIMARY TEXT\n// -----------------------------------------------------------------------------\nexport const primaryText = css`\n font-weight: ${Font.Spec[\"weight-regular\"]};\n color: ${Colour[\"text\"]};\n width: 100%;\n overflow-wrap: break-word;\n`;\n\nexport const primaryTextBold = css`\n font-weight: ${Font.Spec[\"weight-semibold\"]};\n`;\n\nexport const primaryTextSelected = css`\n color: ${Colour[\"text-selected\"]};\n`;\n\nexport const primaryTextDisabled = css`\n color: ${Colour[\"text-disabled\"]};\n`;\n\nexport const primaryTextLabelInline = css`\n display: inline;\n`;\n\nexport const primaryTextTruncateEnd = css`\n ${tokens.primaryText.maxLines}: 2;\n ${lineClampDynamicCss(tokens.primaryText.maxLines)}\n`;\n\n// -----------------------------------------------------------------------------\n// SECONDARY TEXT\n// -----------------------------------------------------------------------------\nexport const secondaryText = css`\n color: ${Colour[\"text-subtlest\"]};\n width: 100%;\n overflow-wrap: break-word;\n`;\n\nexport const secondaryTextNextLine = css`\n ${Font[\"body-md-semibold\"]}\n`;\n\nexport const secondaryTextInline = css`\n ${Font[\"body-baseline-regular\"]}\n`;\n\nexport const secondaryTextLabelInline = css`\n display: inline;\n margin-left: 0.5rem;\n`;\n\nexport const secondaryTextTruncateEnd = css`\n ${tokens.secondaryText.maxLines}: 2;\n ${lineClampDynamicCss(tokens.secondaryText.maxLines)}\n`;\n\n// -----------------------------------------------------------------------------\n// MATCHED TEXT\n// -----------------------------------------------------------------------------\nexport const matchedText = css`\n font-weight: ${Font.Spec[\"weight-semibold\"]};\n`;\n\n// -----------------------------------------------------------------------------\n// LABEL\n// -----------------------------------------------------------------------------\nexport const label = css`\n text-align: left;\n width: 100%;\n overflow: hidden;\n overflow-wrap: break-word;\n ${Font[\"body-baseline-regular\"]}\n`;\n\nexport const labelVariantSmall = css`\n ${Font[\"body-md-regular\"]}\n`;\n\nexport const labelNextLine = css`\n display: flex;\n flex-direction: column;\n`;\n\n// -----------------------------------------------------------------------------\n// TRUNCATION\n// -----------------------------------------------------------------------------\nexport const baseTruncateStyle = css`\n display: inline-block;\n width: 100%;\n height: 1lh;\n overflow: hidden;\n`;\n\nexport const truncateFirstLine = css`\n word-break: break-all;\n`;\n\nexport const truncateSecondLine = css`\n text-overflow: ellipsis;\n white-space: nowrap;\n direction: rtl;\n text-align: right;\n`;\n\nexport const truncateLineSingle = css`\n width: 50%;\n`;\n"],"names":["primaryText","maxLines","secondaryText"],"mappings":"0HA0G8B,yBApBZ,gCAYQ,oCAJI,8BAfN,8BA1DA,kCAOI,uCAQI,yCAIG,uCARH,yCAYG,gCAQT,sCAUM,2CAIK,yCARH,4CAaG,0BAlEf,CAClBA,YAAa,CACTC,SAAU,qDAEdC,cAAe,CACXD,SAAU,kFAuGY,sCAWC,qCAPA"}
1
+ {"version":3,"file":"dropdown-label.styles.js","sources":["../../../../src/shared/dropdown-list/dropdown-label.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Colour, Font } from \"../../theme\";\nimport { lineClampDynamicCss } from \"../styles\";\n\nexport const tokens = {\n primaryText: {\n maxLines: \"--fds-internal-dropdownLabel-primaryText-maxLines\",\n },\n secondaryText: {\n maxLines: \"--fds-internal-dropdownLabel-secondaryText-maxLines\",\n },\n};\n\n// =============================================================================\n// STYLING\n// =============================================================================\n\n// -----------------------------------------------------------------------------\n// PRIMARY TEXT\n// -----------------------------------------------------------------------------\nexport const primaryText = css`\n font-weight: ${Font.Spec[\"weight-regular\"]};\n color: ${Colour[\"text\"]};\n width: 100%;\n overflow-wrap: break-word;\n`;\n\nexport const primaryTextBold = css`\n font-weight: ${Font.Spec[\"weight-semibold\"]};\n`;\n\nexport const primaryTextSelected = css`\n color: ${Colour[\"text-selected\"]};\n`;\n\nexport const primaryTextDisabled = css`\n color: ${Colour[\"text-disabled\"]};\n`;\n\nexport const primaryTextLabelInline = css`\n display: inline;\n`;\n\nexport const primaryTextTruncateEnd = css`\n ${tokens.primaryText.maxLines}: 2;\n ${lineClampDynamicCss(tokens.primaryText.maxLines)}\n`;\n\n// -----------------------------------------------------------------------------\n// SECONDARY TEXT\n// -----------------------------------------------------------------------------\nexport const secondaryText = css`\n color: ${Colour[\"text-subtlest\"]};\n width: 100%;\n overflow-wrap: break-word;\n`;\n\nexport const secondaryTextNextLine = css`\n ${Font[\"body-md-semibold\"]}\n`;\n\nexport const secondaryTextInline = css`\n ${Font[\"body-baseline-regular\"]}\n`;\n\nexport const secondaryTextLabelInline = css`\n display: inline;\n margin-left: 0.5rem;\n`;\n\nexport const secondaryTextTruncateEnd = css`\n ${tokens.secondaryText.maxLines}: 2;\n ${lineClampDynamicCss(tokens.secondaryText.maxLines)}\n`;\n\n// -----------------------------------------------------------------------------\n// MATCHED TEXT\n// -----------------------------------------------------------------------------\nexport const matchedText = css`\n font-weight: ${Font.Spec[\"weight-semibold\"]};\n`;\n\n// -----------------------------------------------------------------------------\n// LABEL\n// -----------------------------------------------------------------------------\nexport const label = css`\n text-align: left;\n width: 100%;\n overflow: hidden;\n overflow-wrap: break-word;\n ${Font[\"body-baseline-regular\"]}\n`;\n\nexport const labelVariantSmall = css`\n ${Font[\"body-md-regular\"]}\n`;\n\nexport const labelNextLine = css`\n display: flex;\n flex-direction: column;\n`;\n\n// -----------------------------------------------------------------------------\n// TRUNCATION\n// -----------------------------------------------------------------------------\nexport const baseTruncateStyle = css`\n display: inline-block;\n width: 100%;\n height: 1lh;\n overflow: hidden;\n`;\n\nexport const truncateFirstLine = css`\n word-break: break-all;\n`;\n\nexport const truncateSecondLine = css`\n text-overflow: ellipsis;\n white-space: nowrap;\n direction: rtl;\n text-align: right;\n`;\n\nexport const truncateLineSingle = css`\n width: 50%;\n`;\n"],"names":["primaryText","maxLines","secondaryText"],"mappings":"yHA0G8B,yBApBZ,gCAYQ,oCAJI,8BAfN,8BA1DA,kCAOI,uCAQI,yCAIG,uCARH,yCAYG,gCAQT,sCAUM,2CAIK,yCARH,4CAaG,0BAlEf,CAClBA,YAAa,CACTC,SAAU,qDAEdC,cAAe,CACXD,SAAU,kFAuGY,sCAWC,qCAPA"}
@@ -5,13 +5,13 @@
5
5
  .p1nofioz{display:inline;}
6
6
  .przdrhy{--fds-internal-dropdownLabel-primaryText-maxLines:2;--fds-internal-dropdownLabel-primaryText-maxLines:initial;display:-webkit-box;-webkit-line-clamp:var(--fds-internal-dropdownLabel-primaryText-maxLines);-webkit-box-orient:vertical;overflow:hidden;}
7
7
  .s3fwc7p{color:var(--fds-colour-text-subtlest);width:100%;overflow-wrap:break-word;}
8
- .s132gi2y{font-family:var(--fds-font-family);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-md);font-weight:var(--fds-font-weight-semibold);line-height:var(--fds-font-body-lh-md);letter-spacing:var(--fds-font-body-ls-md);}
9
- .swx1e24{font-family:var(--fds-font-family);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);}
8
+ .s132gi2y{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-md);font-weight:var(--fds-font-weight-semibold);line-height:var(--fds-font-body-lh-md);letter-spacing:var(--fds-font-body-ls-md);}
9
+ .swx1e24{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);}
10
10
  .s1kq4iiq{display:inline;margin-left:0.5rem;}
11
11
  .s1jjyg61{--fds-internal-dropdownLabel-secondaryText-maxLines:2;--fds-internal-dropdownLabel-secondaryText-maxLines:initial;display:-webkit-box;-webkit-line-clamp:var(--fds-internal-dropdownLabel-secondaryText-maxLines);-webkit-box-orient:vertical;overflow:hidden;}
12
12
  .m7dzxku{font-weight:var(--fds-font-weight-semibold);}
13
- .lkpcujm{text-align:left;width:100%;overflow:hidden;overflow-wrap:break-word;font-family:var(--fds-font-family);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);}
14
- .l4129ag{font-family:var(--fds-font-family);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-md);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-md);letter-spacing:var(--fds-font-body-ls-md);}
13
+ .lkpcujm{text-align:left;width:100%;overflow:hidden;overflow-wrap:break-word;font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);}
14
+ .l4129ag{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-md);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-md);letter-spacing:var(--fds-font-body-ls-md);}
15
15
  .l5tt4mi{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
16
16
  .b1tiox0q{display:inline-block;width:100%;height:1lh;overflow:hidden;}
17
17
  .t1y8fzo0{word-break:break-all;}
@@ -1,2 +1,2 @@
1
- "use strict";require("./dropdown-list.styles_1kt4zhf.css");exports.baseButton="b51546q",exports.baseCheckboxIndicatorStyle="bswyxh7",exports.baseIndicatorStyle="b3myji2",exports.checkboxDisabledIndicator="cxvb3yc",exports.checkboxSelectedIndicator="c1kods4c",exports.checkboxUnselectedIndicator="c2iuhda",exports.container="c1wprmqt",exports.containerVariantSmall="cv4jfw8",exports.labelIcon="l9eregy",exports.list="llrkh2h",exports.listItem="lsgm7b1",exports.listItemActive="l1sloxru",exports.listItemActiveSelected="lp7vqom",exports.listItemDisabled="l1li8r4s",exports.noResultDescContainer="n1mo99ai",exports.resultStateContainer="rlpycri",exports.selectAllButton="s5v4wu0",exports.selectAllContainer="s1gfnl3t",exports.selectedIndicator="s1bv8amb",exports.spinner="smon6ho",exports.tokens={containerWidth:"--fds-internal-dropdownList-containerWidth"},exports.tryAgainButton="t14h29ix";
1
+ "use strict";require("./dropdown-list.styles_konwm.css");exports.baseButton="b51546q",exports.baseCheckboxIndicatorStyle="bswyxh7",exports.baseIndicatorStyle="b3myji2",exports.checkboxDisabledIndicator="cxvb3yc",exports.checkboxSelectedIndicator="c1kods4c",exports.checkboxUnselectedIndicator="c2iuhda",exports.container="c1wprmqt",exports.containerVariantSmall="cv4jfw8",exports.labelIcon="l9eregy",exports.list="llrkh2h",exports.listItem="lsgm7b1",exports.listItemActive="l1sloxru",exports.listItemActiveSelected="lp7vqom",exports.listItemDisabled="l1li8r4s",exports.noResultDescContainer="n1mo99ai",exports.resultStateContainer="rlpycri",exports.selectAllButton="s5v4wu0",exports.selectAllContainer="s1gfnl3t",exports.selectedIndicator="s1bv8amb",exports.spinner="smon6ho",exports.tokens={containerWidth:"--fds-internal-dropdownList-containerWidth"},exports.tryAgainButton="t14h29ix";
2
2
  //# sourceMappingURL=dropdown-list.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-list.styles.js","sources":["../../../../src/shared/dropdown-list/dropdown-list.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport {\n Border,\n Breakpoint,\n Colour,\n Font,\n MediaQuery,\n Radius,\n Spacing,\n} from \"../../theme\";\nimport * as elementWithDropdownStyles from \"../dropdown-wrapper/element-with-dropdown.styles\";\n\nexport type ContainerWidthType = \"default\" | \"custom\" | \"match\";\n\nexport const tokens = {\n availableWidth: \"--fds-internal-dropdownList-container-availableWidth\",\n containerWidth: \"--fds-internal-dropdownList-containerWidth\",\n xSpacing: \"--fds-internal-dropdownList-container-xSpacing\",\n} as const;\n\n// -----------------------------------------------------------------------------\n// MAIN STYLES\n// -----------------------------------------------------------------------------\nexport const container = css`\n ${Font[\"body-baseline-regular\"]}\n border: ${Border[\"width-010\"]} ${Border[\"solid\"]} ${Colour[\"border\"]};\n border-radius: ${Radius[\"sm\"]};\n background: ${Colour[\"bg\"]};\n\n ${tokens.xSpacing}: 0px;\n ${tokens.availableWidth}: calc(\n 100vw - var(${tokens.xSpacing}) * 2\n );\n\n ${MediaQuery.MaxWidth.sm} {\n ${tokens.xSpacing}: ${Breakpoint[\"sm-margin\"]};\n max-height: 15rem;\n }\n\n ${MediaQuery.MaxWidth.xs} {\n ${tokens.xSpacing}: ${Breakpoint[\"xs-margin\"]};\n }\n\n ${MediaQuery.MaxWidth.xxs} {\n ${tokens.xSpacing}: ${Breakpoint[\"xxs-margin\"]};\n }\n\n &[data-width-type=\"default\"] {\n min-width: min(23rem, var(${tokens.availableWidth}));\n }\n\n &[data-width-type=\"custom\"] {\n width: var(${tokens.containerWidth});\n }\n\n &[data-width-type=\"match\"] {\n width: var(${tokens.containerWidth});\n min-width: min(23rem, var(${tokens.availableWidth}));\n }\n\n max-height: min(\n 27rem,\n var(${elementWithDropdownStyles.tokens.availableHeight}, 9999px)\n );\n overflow: hidden;\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 14px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background: ${Colour[\"bg-inverse-subtlest\"]};\n border: 5px solid transparent;\n border-radius: ${Radius[\"full\"]};\n background-clip: padding-box;\n }\n`;\n\nexport const containerVariantSmall = css`\n ${Font[\"body-md-regular\"]}\n`;\n\nexport const list = css`\n background: transparent;\n padding: ${Spacing[\"spacing-8\"]};\n`;\n\n// -----------------------------------------------------------------------------\n// LIST ITEM STYLES\n// -----------------------------------------------------------------------------\nexport const listItem = css`\n display: flex;\n align-items: flex-start;\n gap: ${Spacing[\"spacing-8\"]};\n padding: ${Spacing[\"spacing-12\"]} ${Spacing[\"spacing-8\"]};\n cursor: pointer;\n border: none;\n border-radius: ${Radius[\"none\"]};\n outline: none;\n`;\n\nexport const listItemActive = css`\n background: ${Colour[\"bg-hover-subtle\"]};\n`;\n\nexport const listItemActiveSelected = css`\n background: ${Colour[\"bg-hover\"]};\n`;\n\nexport const listItemDisabled = css`\n cursor: not-allowed;\n`;\n\nexport const baseIndicatorStyle = css`\n flex-shrink: 0;\n height: 1lh;\n width: 1rem;\n`;\n\nexport const selectedIndicator = css`\n color: ${Colour[\"icon-selected\"]};\n`;\n\nexport const baseCheckboxIndicatorStyle = css`\n flex-shrink: 0;\n height: 1lh;\n width: 1lh;\n`;\n\nexport const checkboxSelectedIndicator = css`\n color: ${Colour[\"icon-selected\"]};\n`;\n\nexport const checkboxUnselectedIndicator = css`\n color: ${Colour[\"icon-primary-subtlest\"]};\n`;\n\nexport const checkboxDisabledIndicator = css`\n color: ${Colour[\"icon-disabled-subtle\"]};\n`;\n\n// -----------------------------------------------------------------------------\n// ELEMENT STYLES\n// -----------------------------------------------------------------------------\nexport const selectAllContainer = css`\n width: 100%;\n display: flex;\n justify-content: flex-end;\n`;\n\nexport const baseButton = css`\n cursor: pointer;\n overflow: hidden;\n color: ${Colour[\"text-primary\"]};\n font-size: inherit;\n`;\n\nexport const selectAllButton = css`\n ${Font[\"body-md-semibold\"]}\n padding: ${Spacing[\"spacing-8\"]};\n`;\n\nexport const tryAgainButton = css`\n ${Font[\"body-baseline-semibold\"]}\n`;\n\nexport const resultStateContainer = css`\n width: 100%;\n display: flex;\n padding: ${Spacing[\"spacing-12\"]} ${Spacing[\"spacing-16\"]};\n align-items: center;\n color: ${Colour[\"text\"]};\n`;\n\nexport const labelIcon = css`\n margin-right: ${Spacing[\"spacing-4\"]};\n color: ${Colour[\"icon-error\"]};\n height: 1em;\n width: 1em;\n`;\n\nexport const spinner = css`\n margin-right: ${Spacing[\"spacing-8\"]};\n color: ${Colour[\"icon\"]};\n`;\n\nexport const noResultDescContainer = css`\n color: ${Colour[\"text-subtle\"]};\n padding: 0 ${Spacing[\"spacing-16\"]};\n padding-bottom: ${Spacing[\"spacing-12\"]};\n`;\n"],"names":["containerWidth"],"mappings":"kHA4JuB,6CA3BgB,qCAVR,4CAwBO,4CARA,+CAIE,4BAnHlB,yCA4DY,4BAgGZ,uBA5FL,2BAQI,iCAWM,0CAIQ,mCAIN,yCA6EK,wCApBD,kCATL,qCAbG,qCAzBD,2BA8DV,yBA5KE,CAElBA,eAAgB,qEAuJO"}
1
+ {"version":3,"file":"dropdown-list.styles.js","sources":["../../../../src/shared/dropdown-list/dropdown-list.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport {\n Border,\n Breakpoint,\n Colour,\n Font,\n MediaQuery,\n Radius,\n Spacing,\n} from \"../../theme\";\nimport * as elementWithDropdownStyles from \"../dropdown-wrapper/element-with-dropdown.styles\";\n\nexport type ContainerWidthType = \"default\" | \"custom\" | \"match\";\n\nexport const tokens = {\n availableWidth: \"--fds-internal-dropdownList-container-availableWidth\",\n containerWidth: \"--fds-internal-dropdownList-containerWidth\",\n xSpacing: \"--fds-internal-dropdownList-container-xSpacing\",\n} as const;\n\n// -----------------------------------------------------------------------------\n// MAIN STYLES\n// -----------------------------------------------------------------------------\nexport const container = css`\n ${Font[\"body-baseline-regular\"]}\n border: ${Border[\"width-010\"]} ${Border[\"solid\"]} ${Colour[\"border\"]};\n border-radius: ${Radius[\"sm\"]};\n background: ${Colour[\"bg\"]};\n\n ${tokens.xSpacing}: 0px;\n ${tokens.availableWidth}: calc(\n 100vw - var(${tokens.xSpacing}) * 2\n );\n\n ${MediaQuery.MaxWidth.sm} {\n ${tokens.xSpacing}: ${Breakpoint[\"sm-margin\"]};\n max-height: 15rem;\n }\n\n ${MediaQuery.MaxWidth.xs} {\n ${tokens.xSpacing}: ${Breakpoint[\"xs-margin\"]};\n }\n\n ${MediaQuery.MaxWidth.xxs} {\n ${tokens.xSpacing}: ${Breakpoint[\"xxs-margin\"]};\n }\n\n &[data-width-type=\"default\"] {\n min-width: min(23rem, var(${tokens.availableWidth}));\n }\n\n &[data-width-type=\"custom\"] {\n width: var(${tokens.containerWidth});\n }\n\n &[data-width-type=\"match\"] {\n width: var(${tokens.containerWidth});\n min-width: min(23rem, var(${tokens.availableWidth}));\n }\n\n max-height: min(\n 27rem,\n var(${elementWithDropdownStyles.tokens.availableHeight}, 9999px)\n );\n overflow: hidden;\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 14px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background: ${Colour[\"bg-inverse-subtlest\"]};\n border: 5px solid transparent;\n border-radius: ${Radius[\"full\"]};\n background-clip: padding-box;\n }\n`;\n\nexport const containerVariantSmall = css`\n ${Font[\"body-md-regular\"]}\n`;\n\nexport const list = css`\n background: transparent;\n padding: ${Spacing[\"spacing-8\"]};\n`;\n\n// -----------------------------------------------------------------------------\n// LIST ITEM STYLES\n// -----------------------------------------------------------------------------\nexport const listItem = css`\n display: flex;\n align-items: flex-start;\n gap: ${Spacing[\"spacing-8\"]};\n padding: ${Spacing[\"spacing-12\"]} ${Spacing[\"spacing-8\"]};\n cursor: pointer;\n border: none;\n border-radius: ${Radius[\"none\"]};\n outline: none;\n`;\n\nexport const listItemActive = css`\n background: ${Colour[\"bg-hover-subtle\"]};\n`;\n\nexport const listItemActiveSelected = css`\n background: ${Colour[\"bg-hover\"]};\n`;\n\nexport const listItemDisabled = css`\n cursor: not-allowed;\n`;\n\nexport const baseIndicatorStyle = css`\n flex-shrink: 0;\n height: 1lh;\n width: 1rem;\n`;\n\nexport const selectedIndicator = css`\n color: ${Colour[\"icon-selected\"]};\n`;\n\nexport const baseCheckboxIndicatorStyle = css`\n flex-shrink: 0;\n height: 1lh;\n width: 1lh;\n`;\n\nexport const checkboxSelectedIndicator = css`\n color: ${Colour[\"icon-selected\"]};\n`;\n\nexport const checkboxUnselectedIndicator = css`\n color: ${Colour[\"icon-primary-subtlest\"]};\n`;\n\nexport const checkboxDisabledIndicator = css`\n color: ${Colour[\"icon-disabled-subtle\"]};\n`;\n\n// -----------------------------------------------------------------------------\n// ELEMENT STYLES\n// -----------------------------------------------------------------------------\nexport const selectAllContainer = css`\n width: 100%;\n display: flex;\n justify-content: flex-end;\n`;\n\nexport const baseButton = css`\n cursor: pointer;\n overflow: hidden;\n color: ${Colour[\"text-primary\"]};\n font-size: inherit;\n`;\n\nexport const selectAllButton = css`\n ${Font[\"body-md-semibold\"]}\n padding: ${Spacing[\"spacing-8\"]};\n`;\n\nexport const tryAgainButton = css`\n ${Font[\"body-baseline-semibold\"]}\n`;\n\nexport const resultStateContainer = css`\n width: 100%;\n display: flex;\n padding: ${Spacing[\"spacing-12\"]} ${Spacing[\"spacing-16\"]};\n align-items: center;\n color: ${Colour[\"text\"]};\n`;\n\nexport const labelIcon = css`\n margin-right: ${Spacing[\"spacing-4\"]};\n color: ${Colour[\"icon-error\"]};\n height: 1em;\n width: 1em;\n`;\n\nexport const spinner = css`\n margin-right: ${Spacing[\"spacing-8\"]};\n color: ${Colour[\"icon\"]};\n`;\n\nexport const noResultDescContainer = css`\n color: ${Colour[\"text-subtle\"]};\n padding: 0 ${Spacing[\"spacing-16\"]};\n padding-bottom: ${Spacing[\"spacing-12\"]};\n`;\n"],"names":["containerWidth"],"mappings":"gHA4JuB,6CA3BgB,qCAVR,4CAwBO,4CARA,+CAIE,4BAnHlB,yCA4DY,4BAgGZ,uBA5FL,2BAQI,iCAWM,0CAIQ,mCAIN,yCA6EK,wCApBD,kCATL,qCAbG,qCAzBD,2BA8DV,yBA5KE,CAElBA,eAAgB,qEAuJO"}
@@ -1,10 +1,10 @@
1
- .c1wprmqt{font-family:var(--fds-font-family);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);border:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);border-radius:var(--fds-radius-sm);background:var(--fds-colour-bg);--fds-internal-dropdownList-container-xSpacing:0px;--fds-internal-dropdownList-container-availableWidth:calc(
1
+ .c1wprmqt{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);border:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);border-radius:var(--fds-radius-sm);background:var(--fds-colour-bg);--fds-internal-dropdownList-container-xSpacing:0px;--fds-internal-dropdownList-container-availableWidth:calc(
2
2
  100vw - var(--fds-internal-dropdownList-container-xSpacing) * 2
3
3
  );max-height:min(
4
4
  27rem,
5
5
  var(--fds-internal-dropdownWrapper-availableHeight, 9999px)
6
6
  );overflow:hidden;overflow-y:auto;}:where(body.fds-breakpoint-sm-max) .c1wprmqt{--fds-internal-dropdownList-container-xSpacing:var(--fds-breakpoint-margin-sm);max-height:15rem;}:where(body.fds-breakpoint-xs-max) .c1wprmqt{--fds-internal-dropdownList-container-xSpacing:var(--fds-breakpoint-margin-xs);}:where(body.fds-breakpoint-xxs-max) .c1wprmqt{--fds-internal-dropdownList-container-xSpacing:var(--fds-breakpoint-margin-xxs);}.c1wprmqt[data-width-type="default"]{min-width:min(23rem, var(--fds-internal-dropdownList-container-availableWidth));}.c1wprmqt[data-width-type="custom"]{width:var(--fds-internal-dropdownList-containerWidth);}.c1wprmqt[data-width-type="match"]{width:var(--fds-internal-dropdownList-containerWidth);min-width:min(23rem, var(--fds-internal-dropdownList-container-availableWidth));}.c1wprmqt::-webkit-scrollbar{width:14px;}.c1wprmqt::-webkit-scrollbar-track{background:transparent;}.c1wprmqt::-webkit-scrollbar-thumb{background:var(--fds-colour-bg-inverse-subtlest);border:5px solid transparent;border-radius:var(--fds-radius-full);-webkit-background-clip:padding-box;background-clip:padding-box;}
7
- .cv4jfw8{font-family:var(--fds-font-family);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-md);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-md);letter-spacing:var(--fds-font-body-ls-md);}
7
+ .cv4jfw8{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-md);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-md);letter-spacing:var(--fds-font-body-ls-md);}
8
8
  .llrkh2h{background:transparent;padding:var(--fds-spacing-8);}
9
9
  .lsgm7b1{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:var(--fds-spacing-8);padding:var(--fds-spacing-12) var(--fds-spacing-8);cursor:pointer;border:none;border-radius:var(--fds-radius-none);outline:none;}
10
10
  .l1sloxru{background:var(--fds-colour-bg-hover-subtle);}
@@ -18,8 +18,8 @@
18
18
  .cxvb3yc{color:var(--fds-colour-icon-disabled-subtle);}
19
19
  .s1gfnl3t{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;}
20
20
  .b51546q{cursor:pointer;overflow:hidden;color:var(--fds-colour-text-primary);font-size:inherit;}
21
- .s5v4wu0{font-family:var(--fds-font-family);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-md);font-weight:var(--fds-font-weight-semibold);line-height:var(--fds-font-body-lh-md);letter-spacing:var(--fds-font-body-ls-md);padding:var(--fds-spacing-8);}
22
- .t14h29ix{font-family:var(--fds-font-family);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-semibold);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);}
21
+ .s5v4wu0{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-md);font-weight:var(--fds-font-weight-semibold);line-height:var(--fds-font-body-lh-md);letter-spacing:var(--fds-font-body-ls-md);padding:var(--fds-spacing-8);}
22
+ .t14h29ix{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-semibold);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);}
23
23
  .rlpycri{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:var(--fds-spacing-12) var(--fds-spacing-16);-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--fds-colour-text);}
24
24
  .l9eregy{margin-right:var(--fds-spacing-4);color:var(--fds-colour-icon-error);height:1em;width:1em;}
25
25
  .smon6ho{margin-right:var(--fds-spacing-8);color:var(--fds-colour-icon);}
@@ -1,2 +1,2 @@
1
- "use strict";require("./dropdown-search.styles_4r9oma.css");exports.clearButton="c1ml832z",exports.container="cimxtn",exports.containerVariantSmall="c5t5jsb",exports.searchBox="s9xptf8",exports.searchBoxVariantSmall="s15dwc6n",exports.searchIcon="s18shux7",exports.searchInput="slme00w";
1
+ "use strict";require("./dropdown-search.styles_1hc1gkh.css");exports.clearButton="c1ml832z",exports.container="cimxtn",exports.containerVariantSmall="c5t5jsb",exports.searchBox="s9xptf8",exports.searchBoxVariantSmall="s15dwc6n",exports.searchIcon="s18shux7",exports.searchInput="slme00w";
2
2
  //# sourceMappingURL=dropdown-search.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-search.styles.js","sources":["../../../../src/shared/dropdown-list/dropdown-search.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Colour, Font, Radius, Spacing } from \"../../theme\";\n\n// =============================================================================\n// STYLING\n// =============================================================================\n\nexport const container = css`\n background: ${Colour[\"bg-strong\"]};\n border-radius: ${Radius[\"sm\"]};\n display: flex;\n align-items: center;\n ${Font[\"body-baseline-regular\"]}\n`;\n\nexport const containerVariantSmall = css`\n ${Font[\"body-md-regular\"]}\n`;\n\nexport const searchBox = css`\n flex: 1;\n display: flex;\n align-items: center;\n gap: ${Spacing[\"spacing-8\"]};\n padding: 10px ${Spacing[\"spacing-8\"]};\n`;\n\nexport const searchBoxVariantSmall = css`\n padding: ${Spacing[\"spacing-8\"]} ${Spacing[\"spacing-16\"]};\n`;\n\nexport const searchInput = css`\n flex: 1;\n`;\n\nexport const searchIcon = css`\n color: ${Colour[\"icon\"]};\n flex-shrink: 0;\n height: 1em;\n width: 1em;\n`;\n\nexport const clearButton = css`\n flex-shrink: 0;\n align-self: stretch;\n box-sizing: content-box;\n padding: ${Spacing[\"spacing-8\"]};\n margin-left: calc(${Spacing[\"spacing-8\"]} * -1);\n color: ${Colour[\"icon\"]};\n cursor: pointer;\n font-size: inherit;\n\n svg {\n flex-shrink: 0;\n height: 1em;\n width: 1em;\n }\n`;\n"],"names":[],"mappings":"oHA2CwB,6BAnCF,uCAQY,4BAIZ,wCAQY,8BAQX,+BAJC"}
1
+ {"version":3,"file":"dropdown-search.styles.js","sources":["../../../../src/shared/dropdown-list/dropdown-search.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Colour, Font, Radius, Spacing } from \"../../theme\";\n\n// =============================================================================\n// STYLING\n// =============================================================================\n\nexport const container = css`\n background: ${Colour[\"bg-strong\"]};\n border-radius: ${Radius[\"sm\"]};\n display: flex;\n align-items: center;\n ${Font[\"body-baseline-regular\"]}\n`;\n\nexport const containerVariantSmall = css`\n ${Font[\"body-md-regular\"]}\n`;\n\nexport const searchBox = css`\n flex: 1;\n display: flex;\n align-items: center;\n gap: ${Spacing[\"spacing-8\"]};\n padding: 10px ${Spacing[\"spacing-8\"]};\n`;\n\nexport const searchBoxVariantSmall = css`\n padding: ${Spacing[\"spacing-8\"]} ${Spacing[\"spacing-16\"]};\n`;\n\nexport const searchInput = css`\n flex: 1;\n`;\n\nexport const searchIcon = css`\n color: ${Colour[\"icon\"]};\n flex-shrink: 0;\n height: 1em;\n width: 1em;\n`;\n\nexport const clearButton = css`\n flex-shrink: 0;\n align-self: stretch;\n box-sizing: content-box;\n padding: ${Spacing[\"spacing-8\"]};\n margin-left: calc(${Spacing[\"spacing-8\"]} * -1);\n color: ${Colour[\"icon\"]};\n cursor: pointer;\n font-size: inherit;\n\n svg {\n flex-shrink: 0;\n height: 1em;\n width: 1em;\n }\n`;\n"],"names":[],"mappings":"qHA2CwB,6BAnCF,uCAQY,4BAIZ,wCAQY,8BAQX,+BAJC"}
@@ -1,5 +1,5 @@
1
- .cimxtn{background:var(--fds-colour-bg-strong);border-radius:var(--fds-radius-sm);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;font-family:var(--fds-font-family);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);}
2
- .c5t5jsb{font-family:var(--fds-font-family);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-md);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-md);letter-spacing:var(--fds-font-body-ls-md);}
1
+ .cimxtn{background:var(--fds-colour-bg-strong);border-radius:var(--fds-radius-sm);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;font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);}
2
+ .c5t5jsb{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-md);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-md);letter-spacing:var(--fds-font-body-ls-md);}
3
3
  .s9xptf8{-webkit-flex:1;-ms-flex:1;flex:1;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;gap:var(--fds-spacing-8);padding:10px var(--fds-spacing-8);}
4
4
  .s15dwc6n{padding:var(--fds-spacing-8) var(--fds-spacing-16);}
5
5
  .slme00w{-webkit-flex:1;-ms-flex:1;flex:1;}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../../_virtual/_tslib.js"),a=require("react/jsx-runtime"),r=require("@lifesg/react-icons/chevron-down"),t=require("clsx"),n=require("react"),i=require("../input-wrapper/input-wrapper.js"),s=require("./expandable-element.styles.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(t);const d=(t,n)=>{var{children:l,className:d,disabled:c,expanded:p,listboxId:u,popupRole:x,readOnly:b,variant:m}=t,f=e.__rest(t,["children","className","disabled","expanded","listboxId","popupRole","readOnly","variant"]);return a.jsxs(i.BasicButton,Object.assign({ref:n,type:"button",role:"combobox","aria-expanded":p,"aria-haspopup":x,"aria-controls":p?u:void 0,"data-testid":"selector","aria-disabled":c,"aria-readonly":b,className:o.default(s.selector,"small"===m&&s.selectorVariantSmall,b?s.selectorReadOnly:s.selectorEditable,d)},f,{children:[l,!b&&a.jsx("div",{className:o.default(s.iconContainer,p&&s.iconContainerExpanded),children:a.jsx(r.ChevronDownIcon,{"aria-hidden":!0})})]}))},c=n.forwardRef(d);exports.Component=d,exports.ExpandableElement=c;
1
+ "use strict";var e=require("../../_virtual/_tslib.js"),a=require("react/jsx-runtime"),r=require("@lifesg/react-icons/chevron-down"),t=require("clsx"),i=require("react"),n=require("../input-wrapper/input-wrapper.js"),s=require("./expandable-element.styles.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=l(t);const d=(t,i)=>{var{children:l,className:d,disabled:c,expanded:p,listboxId:u,popupRole:x,readOnly:b,variant:m}=t,f=e.__rest(t,["children","className","disabled","expanded","listboxId","popupRole","readOnly","variant"]);return a.jsxs(n.BasicButton,Object.assign({ref:i,type:"button",role:"combobox","aria-expanded":p,"aria-haspopup":x,"aria-controls":p?u:void 0,"data-testid":"selector","aria-disabled":c,"aria-readonly":b,className:o.default(s.selector,"small"===m&&s.selectorVariantSmall,!b&&s.selectorEditable,d)},f,{children:[l,!b&&a.jsx("div",{className:o.default(s.iconContainer,p&&s.iconContainerExpanded),children:a.jsx(r.ChevronDownIcon,{"aria-hidden":!0})})]}))},c=i.forwardRef(d);exports.Component=d,exports.ExpandableElement=c;
2
2
  //# sourceMappingURL=expandable-element.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"expandable-element.js","sources":["../../../../src/shared/dropdown-list/expandable-element.tsx"],"sourcesContent":["import { ChevronDownIcon } from \"@lifesg/react-icons/chevron-down\";\nimport clsx from \"clsx\";\nimport type { AriaAttributes, Ref } from \"react\";\nimport { forwardRef } from \"react\";\n\nimport { BasicButton } from \"../input-wrapper\";\nimport * as styles from \"./expandable-element.styles\";\nimport type { DropdownVariantType } from \"./types\";\n\nexport interface ExpandableElementProps\n extends Pick<\n AriaAttributes,\n \"aria-labelledby\" | \"aria-describedby\" | \"aria-invalid\"\n > {\n children: React.ReactNode;\n className?: string | undefined;\n disabled: boolean | undefined;\n expanded: boolean | undefined;\n listboxId: string;\n popupRole: AriaAttributes[\"aria-haspopup\"];\n readOnly: boolean | undefined;\n variant?: DropdownVariantType | undefined;\n}\n\nexport const Component = (\n {\n children,\n className,\n disabled,\n expanded,\n listboxId,\n popupRole,\n readOnly,\n variant,\n ...otherProps\n }: ExpandableElementProps,\n ref: Ref<HTMLButtonElement>\n) => {\n return (\n <BasicButton\n ref={ref}\n type=\"button\"\n role=\"combobox\"\n aria-expanded={expanded}\n aria-haspopup={popupRole}\n aria-controls={expanded ? listboxId : undefined}\n data-testid=\"selector\"\n aria-disabled={disabled}\n aria-readonly={readOnly}\n className={clsx(\n styles.selector,\n variant === \"small\" && styles.selectorVariantSmall,\n readOnly ? styles.selectorReadOnly : styles.selectorEditable,\n className\n )}\n {...otherProps}\n >\n {children}\n {!readOnly && (\n <div\n className={clsx(\n styles.iconContainer,\n expanded && styles.iconContainerExpanded\n )}\n >\n <ChevronDownIcon aria-hidden />\n </div>\n )}\n </BasicButton>\n );\n};\n\nexport const ExpandableElement = forwardRef(Component);\n"],"names":["Component","_a","ref","children","className","disabled","expanded","listboxId","popupRole","readOnly","variant","otherProps","__rest","_jsxs","BasicButton","Object","assign","type","role","undefined","clsx","styles.selector","styles.selectorVariantSmall","styles.selectorReadOnly","styles.selectorEditable","_jsx","styles.iconContainer","styles.iconContainerExpanded","ChevronDownIcon","ExpandableElement","forwardRef"],"mappings":"6VAwBaA,EAAY,CACrBC,EAWAC,SAXAC,SACIA,EAAQC,UACRA,EAASC,SACTA,EAAQC,SACRA,EAAQC,UACRA,EAASC,UACTA,EAASC,SACTA,EAAQC,QACRA,GAAOT,EACJU,EAAUC,EAAAA,OAAAX,EATjB,6FAaA,OACIY,EAAAA,KAACC,EAAAA,YAAWC,OAAAC,OAAA,CACRd,IAAKA,EACLe,KAAK,SACLC,KAAK,WAAU,gBACAZ,kBACAE,EAAS,gBACTF,EAAWC,OAAYY,EAAS,cACnC,WAAU,gBACPd,EAAQ,gBACRI,EACfL,UAAWgB,EAAAA,QACPC,EAAAA,SACY,UAAZX,GAAuBY,EAAAA,qBACvBb,EAAWc,EAAAA,iBAA0BC,EAAAA,iBACrCpB,IAEAO,EAAU,CAAAR,SAAA,CAEbA,GACCM,GACEgB,EAAAA,IAAA,MAAA,CACIrB,UAAWgB,EAAAA,QACPM,EAAAA,cACApB,GAAYqB,EAAAA,gCAGhBF,EAAAA,IAACG,EAAAA,yCAGC,EAITC,EAAoBC,EAAAA,WAAW9B"}
1
+ {"version":3,"file":"expandable-element.js","sources":["../../../../src/shared/dropdown-list/expandable-element.tsx"],"sourcesContent":["import { ChevronDownIcon } from \"@lifesg/react-icons/chevron-down\";\nimport clsx from \"clsx\";\nimport type { AriaAttributes, Ref } from \"react\";\nimport { forwardRef } from \"react\";\n\nimport { BasicButton } from \"../input-wrapper\";\nimport * as styles from \"./expandable-element.styles\";\nimport type { DropdownVariantType } from \"./types\";\n\nexport interface ExpandableElementProps\n extends Pick<\n AriaAttributes,\n \"aria-labelledby\" | \"aria-describedby\" | \"aria-invalid\"\n > {\n children: React.ReactNode;\n className?: string | undefined;\n disabled: boolean | undefined;\n expanded: boolean | undefined;\n listboxId: string;\n popupRole: AriaAttributes[\"aria-haspopup\"];\n readOnly: boolean | undefined;\n variant?: DropdownVariantType | undefined;\n}\n\nexport const Component = (\n {\n children,\n className,\n disabled,\n expanded,\n listboxId,\n popupRole,\n readOnly,\n variant,\n ...otherProps\n }: ExpandableElementProps,\n ref: Ref<HTMLButtonElement>\n) => {\n return (\n <BasicButton\n ref={ref}\n type=\"button\"\n role=\"combobox\"\n aria-expanded={expanded}\n aria-haspopup={popupRole}\n aria-controls={expanded ? listboxId : undefined}\n data-testid=\"selector\"\n aria-disabled={disabled}\n aria-readonly={readOnly}\n className={clsx(\n styles.selector,\n variant === \"small\" && styles.selectorVariantSmall,\n !readOnly && styles.selectorEditable,\n className\n )}\n {...otherProps}\n >\n {children}\n {!readOnly && (\n <div\n className={clsx(\n styles.iconContainer,\n expanded && styles.iconContainerExpanded\n )}\n >\n <ChevronDownIcon aria-hidden />\n </div>\n )}\n </BasicButton>\n );\n};\n\nexport const ExpandableElement = forwardRef(Component);\n"],"names":["Component","_a","ref","children","className","disabled","expanded","listboxId","popupRole","readOnly","variant","otherProps","__rest","_jsxs","BasicButton","Object","assign","type","role","undefined","clsx","styles.selector","styles.selectorVariantSmall","styles.selectorEditable","_jsx","styles.iconContainer","styles.iconContainerExpanded","ChevronDownIcon","ExpandableElement","forwardRef"],"mappings":"6VAwBaA,EAAY,CACrBC,EAWAC,SAXAC,SACIA,EAAQC,UACRA,EAASC,SACTA,EAAQC,SACRA,EAAQC,UACRA,EAASC,UACTA,EAASC,SACTA,EAAQC,QACRA,GAAOT,EACJU,EAAUC,EAAAA,OAAAX,EATjB,6FAaA,OACIY,EAAAA,KAACC,EAAAA,YAAWC,OAAAC,OAAA,CACRd,IAAKA,EACLe,KAAK,SACLC,KAAK,WAAU,gBACAZ,EAAQ,gBACRE,kBACAF,EAAWC,OAAYY,EAAS,cACnC,2BACGd,EAAQ,gBACRI,EACfL,UAAWgB,EAAAA,QACPC,EAAAA,SACY,UAAZX,GAAuBY,EAAAA,sBACtBb,GAAYc,EAAAA,iBACbnB,IAEAO,EAAU,CAAAR,SAAA,CAEbA,GACCM,GACEe,EAAAA,WACIpB,UAAWgB,EAAAA,QACPK,EAAAA,cACAnB,GAAYoB,EAAAA,gCAGhBF,EAAAA,IAACG,EAAAA,yCAGC,EAITC,EAAoBC,EAAAA,WAAW7B"}
@@ -1,2 +1,2 @@
1
- "use strict";require("./expandable-element.styles_5o9f9w.css");exports.iconContainer="i1r624au",exports.iconContainerExpanded="icaxgep",exports.selector="s14ftgne",exports.selectorEditable="s11rk48k",exports.selectorReadOnly="s2pr33o",exports.selectorVariantSmall="s14xk9xz";
1
+ "use strict";require("./expandable-element.styles_rkkvqr.css");exports.iconContainer="i11rk48k",exports.iconContainerExpanded="i1r624au",exports.selector="s14ftgne",exports.selectorEditable="s2pr33o",exports.selectorVariantSmall="s14xk9xz";
2
2
  //# sourceMappingURL=expandable-element.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"expandable-element.styles.js","sources":["../../../../src/shared/dropdown-list/expandable-element.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Colour, Font, Motion, Spacing } from \"../../theme\";\n\n// =============================================================================\n// STYLING\n// =============================================================================\n\nexport const selector = css`\n display: flex;\n align-items: center;\n gap: ${Spacing[\"spacing-8\"]};\n width: 100%;\n\n ${Font[\"body-baseline-regular\"]}\n height: calc(3rem - 2px);\n\n &:disabled {\n cursor: not-allowed;\n }\n\n &:focus-visible {\n outline: 2px solid ${Colour[\"focus-ring\"]};\n outline-offset: -2px;\n }\n`;\n\nexport const selectorVariantSmall = css`\n ${Font[\"body-md-regular\"]}\n height: calc(2.5rem - 2px);\n`;\n\nexport const selectorReadOnly = css`\n padding: 0 ${Spacing[\"spacing-16\"]};\n`;\n\nexport const selectorEditable = css`\n padding: ${Spacing[\"spacing-16\"]};\n`;\n\nexport const iconContainer = css`\n display: flex;\n align-items: center;\n transition: transform ${Motion[\"duration-250\"]} ${Motion[\"ease-default\"]};\n\n svg {\n color: ${Colour[\"icon\"]};\n height: 1em;\n width: 1em;\n }\n`;\n\nexport const iconContainerExpanded = css`\n transform: rotate(180deg);\n`;\n"],"names":[],"mappings":"yHAwC0B,yCAYQ,2BA5Cb,oCA4BQ,oCAJA,uCALI"}
1
+ {"version":3,"file":"expandable-element.styles.js","sources":["../../../../src/shared/dropdown-list/expandable-element.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Colour, Font, Motion, Spacing } from \"../../theme\";\n\n// =============================================================================\n// STYLING\n// =============================================================================\n\nexport const selector = css`\n display: flex;\n align-items: center;\n gap: ${Spacing[\"spacing-8\"]};\n width: 100%;\n\n ${Font[\"body-baseline-regular\"]}\n height: calc(3rem - 2px);\n\n &:disabled {\n cursor: not-allowed;\n }\n\n &:focus-visible {\n outline: 2px solid ${Colour[\"focus-ring\"]};\n outline-offset: -2px;\n }\n`;\n\nexport const selectorVariantSmall = css`\n ${Font[\"body-md-regular\"]}\n height: calc(2.5rem - 2px);\n`;\n\nexport const selectorEditable = css`\n padding: ${Spacing[\"spacing-16\"]};\n`;\n\nexport const iconContainer = css`\n display: flex;\n align-items: center;\n transition: transform ${Motion[\"duration-250\"]} ${Motion[\"ease-default\"]};\n\n svg {\n color: ${Colour[\"icon\"]};\n height: 1em;\n width: 1em;\n }\n`;\n\nexport const iconContainerExpanded = css`\n transform: rotate(180deg);\n`;\n"],"names":[],"mappings":"yHAoC0B,yCAYQ,4BAxCb,oCAwBQ,uCALI"}
@@ -0,0 +1,5 @@
1
+ .s14ftgne{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;gap:var(--fds-spacing-8);width:100%;font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);height:calc(3rem - 2px);}.s14ftgne:disabled{cursor:not-allowed;}.s14ftgne:focus-visible{outline:2px solid var(--fds-colour-focus-ring);outline-offset:-2px;}
2
+ .s14xk9xz{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-md);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-md);letter-spacing:var(--fds-font-body-ls-md);height:calc(2.5rem - 2px);}
3
+ .s2pr33o{padding:var(--fds-spacing-16);}
4
+ .i11rk48k{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-transition:-webkit-transform var(--fds-motion-duration-250) var(--fds-motion-timing-ease-default);transition:transform var(--fds-motion-duration-250) var(--fds-motion-timing-ease-default);}.i11rk48k svg{color:var(--fds-colour-icon);height:1em;width:1em;}
5
+ .i1r624au{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);}
@@ -1,2 +1,2 @@
1
- "use strict";require("./dropdown-wrapper.styles_v10jbi.css");exports.labelContainer="l9c71lq",exports.placeholderLabel="p3mumjy",exports.valueLabel="vlxe5wy";
1
+ "use strict";require("./dropdown-wrapper.styles_15hwwoj.css");exports.labelContainer="l9c71lq",exports.placeholderLabel="p3mumjy",exports.valueLabel="vlxe5wy";
2
2
  //# sourceMappingURL=dropdown-wrapper.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-wrapper.styles.js","sources":["../../../../src/shared/dropdown-wrapper/dropdown-wrapper.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Colour, Font } from \"../../theme\";\nimport { lineClampCss } from \"../styles\";\n\nexport const labelContainer = css`\n display: flex;\n flex: 1;\n word-break: break-all;\n\n &[data-disabled=\"true\"] {\n color: ${Colour[\"text-disabled\"]};\n }\n`;\n\nexport const valueLabel = css`\n ${Font[\"body-baseline-regular\"]}\n text-align: left;\n overflow: hidden;\n\n &[data-variant=\"small\"] {\n ${Font[\"body-md-regular\"]}\n }\n\n &:not([data-truncate=\"middle\"]) {\n ${lineClampCss(1)}\n }\n`;\n\nexport const placeholderLabel = css`\n color: ${Colour[\"text-subtler\"]};\n`;\n"],"names":[],"mappings":"2HAK2B,mCAwBE,6BAdN"}
1
+ {"version":3,"file":"dropdown-wrapper.styles.js","sources":["../../../../src/shared/dropdown-wrapper/dropdown-wrapper.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Colour, Font } from \"../../theme\";\nimport { lineClampCss } from \"../styles\";\n\nexport const labelContainer = css`\n display: flex;\n flex: 1;\n word-break: break-all;\n\n &[data-disabled=\"true\"] {\n color: ${Colour[\"text-disabled\"]};\n }\n`;\n\nexport const valueLabel = css`\n ${Font[\"body-baseline-regular\"]}\n color: ${Colour[\"text\"]};\n text-align: left;\n overflow: hidden;\n\n &[data-variant=\"small\"] {\n ${Font[\"body-md-regular\"]}\n }\n\n &:not([data-truncate=\"middle\"]) {\n ${lineClampCss(1)}\n }\n`;\n\nexport const placeholderLabel = css`\n color: ${Colour[\"text-subtler\"]};\n`;\n"],"names":[],"mappings":"4HAK2B,mCAyBE,6BAfN"}
@@ -0,0 +1,3 @@
1
+ .l9c71lq{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;word-break:break-all;}.l9c71lq[data-disabled="true"]{color:var(--fds-colour-text-disabled);}
2
+ .vlxe5wy{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);color:var(--fds-colour-text);text-align:left;overflow:hidden;}.vlxe5wy[data-variant="small"]{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-md);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-md);letter-spacing:var(--fds-font-body-ls-md);}.vlxe5wy:not([data-truncate="middle"]){display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
3
+ .p3mumjy{color:var(--fds-colour-text-subtler);}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../../external/lodash/throttle.js"),i=require("react");exports.useViewport=()=>{const[t,r]=i.useState(),[o,s]=i.useState(),n=i.useCallback((()=>{const e=.01*window.innerHeight;r(e)}),[]),w=i.useCallback((()=>{if(window.visualViewport){const e=.01*window.visualViewport.height;r(e),s(window.visualViewport.offsetTop)}}),[]);return i.useEffect((()=>{if(window.visualViewport){const i=e.default(w,300);return w(),window.visualViewport.addEventListener("resize",w),window.visualViewport.addEventListener("scroll",i),()=>{var e,t;null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",w),null===(t=window.visualViewport)||void 0===t||t.removeEventListener("scroll",i)}}return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}}),[]),{verticalHeight:t,offsetTop:o}};
1
+ "use strict";var e=require("react");exports.useViewport=({enabled:r=!1,onBeforeStart:t}={})=>{const[i,n]=e.useState(),[u,o]=e.useState(!1),s=e.useRef([]),l=e.useRef(null),a=e.useRef(!1),w=e.useRef(t);e.useEffect((()=>{w.current=t}),[t]);const c=e.useCallback((()=>{const e=.01*window.innerHeight;n(e)}),[]),v=e.useCallback((()=>{if(window.visualViewport){const e=.01*window.visualViewport.height;n(e)}}),[]);return e.useEffect((()=>window.visualViewport?(v(),window.visualViewport.addEventListener("resize",v),()=>{var e;null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",v)}):(c(),window.addEventListener("resize",c),()=>{window.removeEventListener("resize",c)})),[v,c]),e.useEffect((()=>{var e;const t=e=>{s.current.push(requestAnimationFrame(e))},i=()=>{s.current.forEach((e=>cancelAnimationFrame(e))),s.current=[],null!==l.current&&(clearTimeout(l.current),l.current=null),a.current=!1},n=()=>{a.current||(a.current=!0,o(!0))};return i(),o(!1),r?(null===(e=w.current)||void 0===e||e.call(w),window.visualViewport?((()=>{var e,r;let i=null!==(r=null===(e=window.visualViewport)||void 0===e?void 0:e.height)&&void 0!==r?r:window.innerHeight,u=0;const o=()=>{var e,r;const s=null!==(r=null===(e=window.visualViewport)||void 0===e?void 0:e.height)&&void 0!==r?r:window.innerHeight;Math.abs(s-i)<.5?u+=1:(u=0,i=s),u>=2?n():t(o)};t(o)})(),l.current=setTimeout(n,180),i):(t(n),i)):i}),[r]),{verticalHeight:i,ready:u}};
2
2
  //# sourceMappingURL=useViewport.js.map