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

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 (1629) 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} +4 -4
  4. package/accordion/accordion.d.ts +19 -0
  5. package/accordion/accordion.js.map +1 -1
  6. package/accordion/accordion.styles.js +1 -1
  7. package/{cjs/accordion/accordion.styles_ijglff.css → accordion/accordion.styles_bzrfrs.css} +3 -3
  8. package/accordion/types.d.ts +42 -2
  9. package/alert/alert.d.ts +8 -0
  10. package/alert/alert.js.map +1 -1
  11. package/alert/alert.styles.js +1 -1
  12. package/alert/alert.styles.js.map +1 -1
  13. package/{cjs/alert/alert.styles_1ygel36.css → alert/alert.styles_patwo2.css} +6 -6
  14. package/alert/types.d.ts +26 -2
  15. package/animations/loading-dots/loading-dots.styles_1rgrrmw.css +2 -2
  16. package/animations/loading-dots/lottie-animation.styles_1m15v69.css +1 -1
  17. package/animations/loading-dots-spinner/loading-dots-spinner.styles_1hcqkhs.css +2 -2
  18. package/animations/loading-dots-spinner/lottie-animation.styles_13d1unb.css +1 -1
  19. package/animations/loading-spinner/loading-spinner.styles_n6xoft.css +2 -2
  20. package/animations/loading-spinner/lottie-animation.styles_bnn4qt.css +1 -1
  21. package/avatar/avatar.d.ts +7 -0
  22. package/avatar/avatar.js.map +1 -1
  23. package/avatar/avatar.styles_16efw4.css +2 -2
  24. package/avatar/types.d.ts +11 -0
  25. package/badge/badge.d.ts +7 -0
  26. package/badge/badge.js +1 -1
  27. package/badge/badge.js.map +1 -1
  28. package/badge/badge.styles.js +1 -1
  29. package/badge/badge.styles_1c3c6wj.css +16 -0
  30. package/badge/types.d.ts +21 -1
  31. package/box-container/box-container.d.ts +8 -0
  32. package/box-container/box-container.js.map +1 -1
  33. package/box-container/box-container.styles.js +1 -1
  34. package/box-container/box-container.styles.js.map +1 -1
  35. package/box-container/{box-container.styles_5y84d5.css → box-container.styles_5t2j9k.css} +4 -4
  36. package/box-container/types.d.ts +24 -0
  37. package/breadcrumb/breadcrumb.js +1 -1
  38. package/breadcrumb/breadcrumb.js.map +1 -1
  39. package/breadcrumb/breadcrumb.styles_1nl4aua.css +2 -2
  40. package/button/button.styles.js +1 -1
  41. package/button/button.styles.js.map +1 -1
  42. package/button/{button.styles_bcpkzm.css → button.styles_1pxy0co.css} +5 -5
  43. package/calendar/calendar.js +1 -1
  44. package/calendar/calendar.js.map +1 -1
  45. package/calendar/calendar.styles_11ho5x8.css +2 -2
  46. package/card/card.styles_1gh9gs3.css +2 -2
  47. package/checkbox/checkbox.styles_gm5bu1.css +2 -2
  48. package/cjs/accordion/accordion-item.styles.js +1 -1
  49. package/cjs/accordion/accordion-item.styles.js.map +1 -1
  50. package/cjs/accordion/{accordion-item.styles_kchcad.css → accordion-item.styles_1j4eb32.css} +4 -4
  51. package/cjs/accordion/accordion.js.map +1 -1
  52. package/cjs/accordion/accordion.styles.js +1 -1
  53. package/{accordion/accordion.styles_ijglff.css → cjs/accordion/accordion.styles_bzrfrs.css} +3 -3
  54. package/cjs/alert/alert.js.map +1 -1
  55. package/cjs/alert/alert.styles.js +1 -1
  56. package/cjs/alert/alert.styles.js.map +1 -1
  57. package/{alert/alert.styles_1ygel36.css → cjs/alert/alert.styles_patwo2.css} +6 -6
  58. package/cjs/animations/loading-dots/loading-dots.styles_1rgrrmw.css +2 -2
  59. package/cjs/animations/loading-dots/lottie-animation.styles_1m15v69.css +1 -1
  60. package/cjs/animations/loading-dots-spinner/loading-dots-spinner.styles_1hcqkhs.css +2 -2
  61. package/cjs/animations/loading-dots-spinner/lottie-animation.styles_13d1unb.css +1 -1
  62. package/cjs/animations/loading-spinner/loading-spinner.styles_n6xoft.css +2 -2
  63. package/cjs/animations/loading-spinner/lottie-animation.styles_bnn4qt.css +1 -1
  64. package/cjs/avatar/avatar.js.map +1 -1
  65. package/cjs/avatar/avatar.styles_16efw4.css +2 -2
  66. package/cjs/badge/badge.js +1 -1
  67. package/cjs/badge/badge.js.map +1 -1
  68. package/cjs/badge/badge.styles.js +1 -1
  69. package/cjs/badge/badge.styles_1c3c6wj.css +16 -0
  70. package/cjs/box-container/box-container.js.map +1 -1
  71. package/cjs/box-container/box-container.styles.js +1 -1
  72. package/cjs/box-container/box-container.styles.js.map +1 -1
  73. package/cjs/box-container/{box-container.styles_5y84d5.css → box-container.styles_5t2j9k.css} +4 -4
  74. package/cjs/breadcrumb/breadcrumb.js +1 -1
  75. package/cjs/breadcrumb/breadcrumb.js.map +1 -1
  76. package/cjs/breadcrumb/breadcrumb.styles_1nl4aua.css +2 -2
  77. package/cjs/button/button.styles.js +1 -1
  78. package/cjs/button/button.styles.js.map +1 -1
  79. package/cjs/button/{button.styles_bcpkzm.css → button.styles_1pxy0co.css} +5 -5
  80. package/cjs/calendar/calendar.js +1 -1
  81. package/cjs/calendar/calendar.js.map +1 -1
  82. package/cjs/calendar/calendar.styles_11ho5x8.css +2 -2
  83. package/cjs/card/card.styles_1gh9gs3.css +2 -2
  84. package/cjs/checkbox/checkbox.styles_gm5bu1.css +2 -2
  85. package/cjs/countdown-timer/countdown-timer.js.map +1 -1
  86. package/cjs/countdown-timer/countdown-timer.styles.js +1 -1
  87. package/cjs/countdown-timer/{countdown-timer.styles_k50tkw.css → countdown-timer.styles_ipn1b0.css} +3 -3
  88. package/cjs/dashed-border/dashed-border.js +1 -1
  89. package/cjs/dashed-border/dashed-border.js.map +1 -1
  90. package/cjs/dashed-border/dashed-border.styles_zszoox.css +2 -2
  91. package/cjs/data-table/data-table.js +1 -1
  92. package/cjs/data-table/data-table.js.map +1 -1
  93. package/cjs/data-table/data-table.styles.js +1 -1
  94. package/cjs/data-table/{data-table.styles_1nj2uzq.css → data-table.styles_1iqq1g7.css} +3 -3
  95. package/cjs/date-input/date-input.js +1 -1
  96. package/cjs/date-input/date-input.js.map +1 -1
  97. package/cjs/date-input/date-input.styles_1r5kcc7.css +1 -1
  98. package/cjs/date-navigator/date-navigator.js.map +1 -1
  99. package/cjs/date-navigator/date-navigator.styles.js +1 -1
  100. package/cjs/date-navigator/date-navigator.styles.js.map +1 -1
  101. package/cjs/date-navigator/date-navigator.styles_wokh56.css +4 -0
  102. package/cjs/date-range-input/date-range-input.js.map +1 -1
  103. package/cjs/date-range-input/date-range-input.styles_1s7ojnj.css +2 -2
  104. package/cjs/divider/divider.js.map +1 -1
  105. package/cjs/divider/divider.styles_1xpzh8p.css +2 -2
  106. package/cjs/drawer/drawer.js.map +1 -1
  107. package/cjs/drawer/drawer.styles_94hx3y.css +2 -2
  108. package/cjs/e-signature/e-signature-canvas.js +1 -1
  109. package/cjs/e-signature/e-signature-canvas.js.map +1 -1
  110. package/cjs/e-signature/e-signature.js +1 -1
  111. package/cjs/e-signature/e-signature.js.map +1 -1
  112. package/cjs/e-signature/e-signature.styles.js +1 -168
  113. package/cjs/e-signature/e-signature.styles.js.map +1 -1
  114. package/cjs/e-signature/e-signature.styles_lukd9f.css +17 -0
  115. package/cjs/error-display/error-display-data.js +1 -1
  116. package/cjs/error-display/error-display-data.js.map +1 -1
  117. package/cjs/error-display/error-display.js.map +1 -1
  118. package/cjs/error-display/error-display.styles_d3tql1.css +2 -2
  119. package/cjs/external/dompurify/dist/purify.es.js +3 -3
  120. package/cjs/external/dompurify/dist/purify.es.js.map +1 -1
  121. package/cjs/external/lodash/get.js +1 -1
  122. package/cjs/external/lodash/get.js.map +1 -1
  123. package/cjs/feedback-rating/feedback-rating-stars-container.styles_dmi8z9.css +2 -2
  124. package/cjs/feedback-rating/feedback-rating.js.map +1 -1
  125. package/cjs/feedback-rating/feedback-rating.styles_1kdklb6.css +2 -2
  126. package/cjs/file-download/file-download.js +1 -1
  127. package/cjs/file-download/file-download.js.map +1 -1
  128. package/cjs/file-download/file-download.styles.js +1 -32
  129. package/cjs/file-download/file-download.styles.js.map +1 -1
  130. package/cjs/file-download/file-download.styles_iggk8q.css +8 -0
  131. package/cjs/file-download/file-list-card/file-list-card.js +1 -1
  132. package/cjs/file-download/file-list-card/file-list-card.js.map +1 -1
  133. package/cjs/file-download/file-list-card/file-list-card.styles.js +1 -177
  134. package/cjs/file-download/file-list-card/file-list-card.styles.js.map +1 -1
  135. package/cjs/file-download/file-list-card/file-list-card.styles_18j2gut.css +16 -0
  136. package/cjs/file-upload/dropzone.styles_1pllsau.css +2 -2
  137. package/cjs/file-upload/file-item-edit.js +1 -1
  138. package/cjs/file-upload/file-item-edit.js.map +1 -1
  139. package/cjs/file-upload/file-item-edit.styles.js +1 -1
  140. package/cjs/file-upload/file-item-edit.styles.js.map +1 -1
  141. package/{file-upload/file-item-edit.styles_1qbpbxj.css → cjs/file-upload/file-item-edit.styles_19bvztn.css} +6 -5
  142. package/cjs/file-upload/file-list/file-list.js +2 -0
  143. package/cjs/file-upload/file-list/file-list.js.map +1 -0
  144. package/cjs/file-upload/file-list/file-list.styles.js +2 -0
  145. package/cjs/file-upload/file-list/file-list.styles.js.map +1 -0
  146. package/cjs/file-upload/file-list/file-list.styles_1w7so98.css +3 -0
  147. package/cjs/file-upload/file-list-item/file-list-item-thumbnail.styles.js +1 -1
  148. package/cjs/file-upload/file-list-item/file-list-item-thumbnail.styles_1y4si19.css +4 -0
  149. package/cjs/file-upload/file-list-item/file-list-item.js +1 -1
  150. package/cjs/file-upload/file-list-item/file-list-item.js.map +1 -1
  151. package/cjs/file-upload/file-list-item/file-list-item.styles.js +1 -1
  152. package/cjs/file-upload/file-list-item/file-list-item.styles.js.map +1 -1
  153. package/cjs/file-upload/file-list-item/file-list-item.styles_o8000f.css +17 -0
  154. package/cjs/file-upload/file-upload.js +1 -1
  155. package/cjs/file-upload/file-upload.js.map +1 -1
  156. package/cjs/file-upload/file-upload.styles_9ffwcd.css +2 -2
  157. package/cjs/filter/addons/filter-item-checkbox.styles.js +1 -1
  158. package/cjs/filter/addons/filter-item-checkbox.styles.js.map +1 -1
  159. package/{filter/addons/filter-item-checkbox.styles_18l87i2.css → cjs/filter/addons/filter-item-checkbox.styles_7degw7.css} +3 -3
  160. package/cjs/filter/filter-badge.js +2 -0
  161. package/cjs/filter/filter-badge.js.map +1 -0
  162. package/cjs/filter/filter-item-page.js +1 -1
  163. package/cjs/filter/filter-item-page.js.map +1 -1
  164. package/cjs/filter/filter-item-page.styles_17ewfrz.css +1 -1
  165. package/cjs/filter/filter-item.js.map +1 -1
  166. package/cjs/filter/filter-item.styles.js +1 -1
  167. package/cjs/filter/filter-item.styles.js.map +1 -1
  168. package/{filter/filter-item.styles_1e3v6qq.css → cjs/filter/filter-item.styles_cphjnj.css} +4 -4
  169. package/cjs/filter/filter-modal.js +1 -1
  170. package/cjs/filter/filter-modal.js.map +1 -1
  171. package/cjs/filter/filter-modal.styles.js +1 -1
  172. package/cjs/filter/filter-modal.styles.js.map +1 -1
  173. package/cjs/filter/filter-modal.styles_qw3xlg.css +10 -0
  174. package/cjs/filter/filter-sidebar.js +1 -1
  175. package/cjs/filter/filter-sidebar.js.map +1 -1
  176. package/cjs/filter/filter-sidebar.styles.js +1 -1
  177. package/cjs/filter/filter-sidebar.styles.js.map +1 -1
  178. package/cjs/filter/filter-sidebar.styles_1otwpjl.css +5 -0
  179. package/cjs/filter/filter.js.map +1 -1
  180. package/cjs/filter/filter.styles.js +1 -1
  181. package/cjs/filter/filter.styles.js.map +1 -1
  182. package/cjs/filter/{filter.styles_2fmaok.css → filter.styles_1ykijwm.css} +2 -2
  183. package/cjs/footer/footer-download-app.styles_1v1j2us.css +2 -2
  184. package/cjs/footer/footer-resource-addon.styles_1jepb1d.css +2 -2
  185. package/cjs/footer/footer.js +1 -1
  186. package/cjs/footer/footer.js.map +1 -1
  187. package/cjs/footer/footer.styles_1msorhc.css +2 -2
  188. package/cjs/form/form-label-addon.styles_b00z8p.css +1 -1
  189. package/cjs/form/form-label.styles.js +1 -1
  190. package/cjs/form/form-label.styles.js.map +1 -1
  191. package/cjs/form/form-label.styles_1nbe0bm.css +6 -0
  192. package/cjs/form/form-textarea.styles_3p9qoy.css +2 -2
  193. package/cjs/form/form-wrapper.js +1 -1
  194. package/cjs/form/form-wrapper.js.map +1 -1
  195. package/cjs/form/form-wrapper.styles_199rslu.css +1 -1
  196. package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.js +1 -1
  197. package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.js.map +1 -1
  198. package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.styles_vc6y5c.css +2 -2
  199. package/cjs/fullscreen-image-carousel/stateful-image.styles_1xe8ypm.css +2 -2
  200. package/cjs/histogram-slider/histogram-slider.styles_wvd4w.css +2 -2
  201. package/cjs/image-button/image-button.styles.js +1 -1
  202. package/cjs/image-button/image-button.styles_6n1qsr.css +5 -0
  203. package/cjs/index.js +1 -1
  204. package/cjs/input/input.styles_1cblor0.css +2 -2
  205. package/cjs/input-group/input-group-list-addon.js +1 -1
  206. package/cjs/input-group/input-group-list-addon.js.map +1 -1
  207. package/cjs/input-group/input-group-list-addon.styles_17iuqtw.css +2 -2
  208. package/cjs/input-group/input-group.styles.js +1 -1
  209. package/cjs/input-group/input-group.styles_bqye6f.css +3 -0
  210. package/cjs/input-multi-select/input-multi-select.js +1 -1
  211. package/cjs/input-multi-select/input-multi-select.js.map +1 -1
  212. package/cjs/input-nested-multi-select/input-nested-multi-select.js +1 -1
  213. package/cjs/input-nested-multi-select/input-nested-multi-select.js.map +1 -1
  214. package/cjs/input-nested-select/input-nested-select.js +1 -1
  215. package/cjs/input-nested-select/input-nested-select.js.map +1 -1
  216. package/cjs/input-range-select/input-range-select.js +1 -1
  217. package/cjs/input-range-select/input-range-select.js.map +1 -1
  218. package/cjs/input-range-select/input-range-select.styles_adbrbm.css +2 -2
  219. package/cjs/input-range-slider/input-range-slider.styles_aljl2v.css +2 -2
  220. package/cjs/input-select/input-select.js +1 -1
  221. package/cjs/input-select/input-select.js.map +1 -1
  222. package/cjs/input-textarea/textarea-counter.styles.js +1 -1
  223. package/cjs/input-textarea/textarea-counter.styles.js.map +1 -1
  224. package/cjs/input-textarea/textarea-counter.styles_1n3wsnv.css +1 -0
  225. package/cjs/input-textarea/textarea.styles.js +1 -1
  226. package/cjs/input-textarea/textarea.styles_22z4n3.css +5 -0
  227. package/cjs/language-switcher/dropdown-panel.styles.js +1 -1
  228. package/cjs/language-switcher/dropdown-panel.styles.js.map +1 -1
  229. package/cjs/language-switcher/dropdown-panel.styles_1qsjf8d.css +4 -0
  230. package/cjs/language-switcher/dropdown-variant.js +1 -1
  231. package/cjs/language-switcher/dropdown-variant.js.map +1 -1
  232. package/cjs/language-switcher/dropdown-variant.styles.js +1 -1
  233. package/cjs/language-switcher/dropdown-variant.styles_1vrdfky.css +2 -0
  234. package/cjs/language-switcher/link-container-variant.styles.js +1 -1
  235. package/cjs/language-switcher/link-container-variant.styles_1iw6zux.css +5 -0
  236. package/cjs/layout/col-div.js +1 -1
  237. package/cjs/layout/col-div.js.map +1 -1
  238. package/cjs/layout/col-div.styles_16o6mwx.css +1 -1
  239. package/cjs/layout/container.styles_v70ec6.css +2 -2
  240. package/cjs/layout/section.styles_hstcaf.css +1 -1
  241. package/cjs/link-list/link-list.styles.js +1 -1
  242. package/cjs/link-list/link-list.styles.js.map +1 -1
  243. package/{link-list/link-list.styles_1g33nb4.css → cjs/link-list/link-list.styles_m57vks.css} +4 -4
  244. package/cjs/local-nav/local-nav-dropdown/local-nav-dropdown.styles.js +1 -1
  245. package/{local-nav/local-nav-dropdown/local-nav-dropdown.styles_ftv36t.css → cjs/local-nav/local-nav-dropdown/local-nav-dropdown.styles_uhd4xl.css} +3 -3
  246. package/cjs/local-nav/local-nav-menu/local-nav-menu.styles_pq19dh.css +2 -2
  247. package/cjs/markup/markup.js +1 -1
  248. package/cjs/markup/markup.js.map +1 -1
  249. package/cjs/markup/markup.style.js +1 -1
  250. package/cjs/markup/markup.style.js.map +1 -1
  251. package/cjs/markup/markup.style_1iu40x9.css +2 -2
  252. package/cjs/masked-input/masked-input.styles.js +1 -1
  253. package/cjs/masked-input/masked-input.styles.js.map +1 -1
  254. package/{masked-input/masked-input.styles_4i1qsy.css → cjs/masked-input/masked-input.styles_1cm388a.css} +4 -4
  255. package/cjs/masthead/masthead.js +1 -1
  256. package/cjs/masthead/masthead.js.map +1 -1
  257. package/cjs/masthead/masthead.styles_1huzon9.css +2 -2
  258. package/cjs/menu/menu-content.styles_p7ijll.css +2 -2
  259. package/cjs/menu/menu-item.styles_liyed8.css +2 -2
  260. package/cjs/menu/menu-link.styles_hfxoez.css +2 -2
  261. package/cjs/menu/menu-section.styles_g7my4d.css +2 -2
  262. package/cjs/modal/modal-box.styles.js +1 -1
  263. package/cjs/modal/modal-box.styles.js.map +1 -1
  264. package/cjs/modal/modal-box.styles_y52cts.css +11 -0
  265. package/cjs/modal/modal.js +1 -1
  266. package/cjs/modal/modal.js.map +1 -1
  267. package/cjs/modal/modal.styles.js +1 -1
  268. package/cjs/modal/modal.styles.js.map +1 -1
  269. package/cjs/modal/modal.styles_1lbblx6.css +11 -0
  270. package/cjs/modal-v2/modal-v2.js +1 -1
  271. package/cjs/modal-v2/modal-v2.js.map +1 -1
  272. package/cjs/modal-v2/modal-v2.styles.js +1 -1
  273. package/cjs/modal-v2/modal-v2.styles.js.map +1 -1
  274. package/cjs/modal-v2/modal-v2.styles_a8gv5i.css +3 -0
  275. package/cjs/modal-v2/slots/card.js +1 -1
  276. package/cjs/modal-v2/slots/card.js.map +1 -1
  277. package/cjs/modal-v2/slots/slot-styles_13sd376.css +2 -2
  278. package/cjs/navbar/brand.styles_zcgddp.css +1 -1
  279. package/cjs/navbar/drawer.js +1 -1
  280. package/cjs/navbar/drawer.js.map +1 -1
  281. package/cjs/navbar/drawer.styles_7hnxp5.css +2 -2
  282. package/cjs/navbar/menu.styles_gdpqc.css +2 -2
  283. package/cjs/navbar/navbar-action-buttons.styles_1vpm0nk.css +2 -2
  284. package/cjs/navbar/navbar-items.styles.js +1 -1
  285. package/cjs/navbar/navbar-items.styles.js.map +1 -1
  286. package/cjs/navbar/{navbar-items.styles_i9cunu.css → navbar-items.styles_1i3ltot.css} +8 -8
  287. package/cjs/navbar/navbar.js +1 -1
  288. package/cjs/navbar/navbar.js.map +1 -1
  289. package/cjs/navbar/navbar.styles_koy0c7.css +2 -2
  290. package/cjs/notification-banner/notification-banner.styles.js +1 -1
  291. package/cjs/notification-banner/notification-banner.styles.js.map +1 -1
  292. package/{notification-banner/notification-banner.styles_130loac.css → cjs/notification-banner/notification-banner.styles_uxlysy.css} +4 -4
  293. package/cjs/otp-input/otp-input.styles_5sbutl.css +2 -2
  294. package/cjs/otp-verification/contact-input-section.js +1 -1
  295. package/cjs/otp-verification/contact-input-section.js.map +1 -1
  296. package/cjs/otp-verification/contact-input-section.styles.js +2 -0
  297. package/cjs/otp-verification/contact-input-section.styles.js.map +1 -0
  298. package/cjs/otp-verification/contact-input-section.styles_odrjvt.css +14 -0
  299. package/cjs/otp-verification/otp-verification.js +1 -1
  300. package/cjs/otp-verification/otp-verification.js.map +1 -1
  301. package/cjs/otp-verification/otp-verification.styles.js +2 -0
  302. package/cjs/otp-verification/otp-verification.styles.js.map +1 -0
  303. package/cjs/otp-verification/otp-verification.styles_dg9bm8.css +1 -0
  304. package/cjs/otp-verification/thumbnail/email-thumbnail.js +1 -21
  305. package/cjs/otp-verification/thumbnail/email-thumbnail.js.map +1 -1
  306. package/cjs/otp-verification/thumbnail/phone-thumbnail.js +1 -17
  307. package/cjs/otp-verification/thumbnail/phone-thumbnail.js.map +1 -1
  308. package/cjs/otp-verification/thumbnail/thumbnail.styles.js +2 -0
  309. package/cjs/otp-verification/thumbnail/thumbnail.styles.js.map +1 -0
  310. package/cjs/otp-verification/thumbnail/thumbnail.styles_shqylh.css +3 -0
  311. package/cjs/otp-verification/verification-section.js +1 -1
  312. package/cjs/otp-verification/verification-section.js.map +1 -1
  313. package/cjs/otp-verification/verification-section.styles.js +2 -0
  314. package/cjs/otp-verification/verification-section.styles.js.map +1 -0
  315. package/cjs/otp-verification/verification-section.styles_x8jj.css +5 -0
  316. package/cjs/overlay/overlay.js +1 -1
  317. package/cjs/overlay/overlay.js.map +1 -1
  318. package/cjs/overlay/overlay.styles_12wym18.css +2 -2
  319. package/cjs/pagination/pagination.styles.js +1 -1
  320. package/cjs/pagination/pagination.styles.js.map +1 -1
  321. package/{pagination/pagination.styles_1u898rb.css → cjs/pagination/pagination.styles_6bcgva.css} +5 -5
  322. package/cjs/pill/pill.styles.js +1 -1
  323. package/{pill/pill.styles_1wiyl8.css → cjs/pill/pill.styles_xwrniu.css} +2 -2
  324. package/cjs/popover/popover-inline/popover-inline.styles_bkopnt.css +2 -2
  325. package/cjs/popover/popover-trigger.styles_8zokig.css +1 -1
  326. package/cjs/popover/popover.styles_ujnf0h.css +2 -2
  327. package/cjs/predictive-text-input/predictive-text-input.js +1 -1
  328. package/cjs/predictive-text-input/predictive-text-input.js.map +1 -1
  329. package/cjs/progress-indicator/progress-indicator.styles_1c038s4.css +2 -2
  330. package/cjs/radio-button/radio-button.styles_1c4v6v.css +2 -2
  331. package/cjs/schedule/const.js +1 -1
  332. package/cjs/schedule/const.js.map +1 -1
  333. package/cjs/schedule/schedule-day-view/schedule-day-view.js +1 -1
  334. package/cjs/schedule/schedule-day-view/schedule-day-view.js.map +1 -1
  335. package/cjs/schedule/schedule-day-view/schedule-day-view.styles.js +1 -152
  336. package/cjs/schedule/schedule-day-view/schedule-day-view.styles.js.map +1 -1
  337. package/cjs/schedule/schedule-day-view/schedule-day-view.styles_8ti149.css +30 -0
  338. package/cjs/schedule/schedule-header/schedule-header.js +1 -1
  339. package/cjs/schedule/schedule-header/schedule-header.js.map +1 -1
  340. package/cjs/schedule/schedule-header/schedule-header.styles.js +2 -0
  341. package/cjs/schedule/schedule-header/schedule-header.styles.js.map +1 -0
  342. package/cjs/schedule/schedule-header/schedule-header.styles_1n2u5vj.css +6 -0
  343. package/cjs/schedule/schedule-slot-content/schedule-slot-content.js +2 -0
  344. package/cjs/schedule/schedule-slot-content/schedule-slot-content.js.map +1 -0
  345. package/cjs/schedule/schedule-slot-content/style-helper.js +2 -0
  346. package/cjs/schedule/schedule-slot-content/style-helper.js.map +1 -0
  347. package/cjs/schedule/schedule-week-view/schedule-week-view.js +1 -1
  348. package/cjs/schedule/schedule-week-view/schedule-week-view.js.map +1 -1
  349. package/cjs/schedule/schedule-week-view/schedule-week-view.styles.js +1 -74
  350. package/cjs/schedule/schedule-week-view/schedule-week-view.styles.js.map +1 -1
  351. package/cjs/schedule/schedule-week-view/schedule-week-view.styles_x7x50m.css +10 -0
  352. package/cjs/schedule/schedule-week-view/time-cell.js +1 -1
  353. package/cjs/schedule/schedule-week-view/time-cell.js.map +1 -1
  354. package/cjs/schedule/schedule-week-view/time-cell.styles.js +1 -34
  355. package/cjs/schedule/schedule-week-view/time-cell.styles.js.map +1 -1
  356. package/cjs/schedule/schedule-week-view/time-cell.styles_1sorjz8.css +14 -0
  357. package/cjs/schedule/schedule-week-view/week-view-utils.js +1 -1
  358. package/cjs/schedule/schedule-week-view/week-view-utils.js.map +1 -1
  359. package/cjs/schedule/schedule.js +1 -1
  360. package/cjs/schedule/schedule.js.map +1 -1
  361. package/cjs/schedule/schedule.styles.js +1 -26
  362. package/cjs/schedule/schedule.styles.js.map +1 -1
  363. package/cjs/schedule/schedule.styles_fdy5a1.css +5 -0
  364. package/cjs/schedule/shared/with-optional-popover.js +1 -5
  365. package/cjs/schedule/shared/with-optional-popover.js.map +1 -1
  366. package/cjs/schedule/shared/with-optional-popover.styles.js +2 -0
  367. package/cjs/schedule/shared/with-optional-popover.styles.js.map +1 -0
  368. package/cjs/schedule/shared/with-optional-popover.styles_7mv3p2.css +1 -0
  369. package/cjs/schedule/time-indicator/time-indicator.js +1 -1
  370. package/cjs/schedule/time-indicator/time-indicator.js.map +1 -1
  371. package/cjs/schedule/time-indicator/time-indicator.styles.js +1 -33
  372. package/cjs/schedule/time-indicator/time-indicator.styles.js.map +1 -1
  373. package/cjs/schedule/time-indicator/time-indicator.styles_1eaxyes.css +6 -0
  374. package/cjs/select-histogram/select-histogram.js +1 -1
  375. package/cjs/select-histogram/select-histogram.js.map +1 -1
  376. package/cjs/select-histogram/select-histogram.styles.js +1 -1
  377. package/cjs/select-histogram/select-histogram.styles.js.map +1 -1
  378. package/cjs/select-histogram/select-histogram.styles_n260dy.css +5 -0
  379. package/cjs/shared/accessibility/index_13g9vp.css +1 -1
  380. package/cjs/shared/clickable-icon/clickable-icon.styles_1v2imml.css +2 -2
  381. package/cjs/shared/component-loading-spinner/component-loading-spinner.styles_15eq02i.css +2 -2
  382. package/cjs/shared/dropdown-list/dropdown-label.js +1 -1
  383. package/cjs/shared/dropdown-list/dropdown-label.js.map +1 -1
  384. package/cjs/shared/dropdown-list/dropdown-label.styles.js +1 -1
  385. package/cjs/shared/dropdown-list/dropdown-label.styles.js.map +1 -1
  386. package/{shared/dropdown-list/dropdown-label.styles_1dwmd8f.css → cjs/shared/dropdown-list/dropdown-label.styles_mloii0.css} +6 -6
  387. package/cjs/shared/dropdown-list/dropdown-list.styles.js +1 -1
  388. package/cjs/shared/dropdown-list/dropdown-list.styles.js.map +1 -1
  389. package/{shared/dropdown-list/dropdown-list.styles_1kt4zhf.css → cjs/shared/dropdown-list/dropdown-list.styles_konwm.css} +5 -5
  390. package/cjs/shared/dropdown-list/dropdown-search.styles.js +1 -1
  391. package/cjs/shared/dropdown-list/dropdown-search.styles.js.map +1 -1
  392. package/{shared/dropdown-list/dropdown-search.styles_4r9oma.css → cjs/shared/dropdown-list/dropdown-search.styles_1hc1gkh.css} +3 -3
  393. package/cjs/shared/dropdown-list/expandable-element.js +1 -1
  394. package/cjs/shared/dropdown-list/expandable-element.js.map +1 -1
  395. package/cjs/shared/dropdown-list/expandable-element.styles.js +1 -1
  396. package/cjs/shared/dropdown-list/expandable-element.styles.js.map +1 -1
  397. package/cjs/shared/dropdown-list/expandable-element.styles_rkkvqr.css +5 -0
  398. package/cjs/shared/dropdown-list/nested-dropdown-list.styles_wdhxoe.css +2 -2
  399. package/cjs/shared/dropdown-wrapper/dropdown-wrapper.styles.js +1 -1
  400. package/cjs/shared/dropdown-wrapper/dropdown-wrapper.styles.js.map +1 -1
  401. package/cjs/shared/dropdown-wrapper/dropdown-wrapper.styles_15hwwoj.css +3 -0
  402. package/cjs/shared/fade-wrapper/fade-wrapper.styles_16iug7l.css +2 -2
  403. package/cjs/shared/hooks/useViewport.js +1 -1
  404. package/cjs/shared/hooks/useViewport.js.map +1 -1
  405. package/cjs/shared/image-placeholder/image-placeholder.styles_44nwil.css +1 -1
  406. package/cjs/shared/input-wrapper/input-wrapper.styles.js +1 -1
  407. package/cjs/shared/input-wrapper/{input-wrapper.styles_19fpzb.css → input-wrapper.styles_je6maw.css} +4 -4
  408. package/cjs/shared/internal-calendar/calendar-dropdown.styles_wybjai.css +1 -1
  409. package/cjs/shared/internal-calendar/calendar-manager.js +1 -1
  410. package/cjs/shared/internal-calendar/calendar-manager.js.map +1 -1
  411. package/cjs/shared/internal-calendar/calendar-manager.styles.js +1 -1
  412. package/cjs/shared/internal-calendar/calendar-manager.styles.js.map +1 -1
  413. package/cjs/shared/internal-calendar/{calendar-manager.styles_1q13ylk.css → calendar-manager.styles_1njwkj2.css} +4 -4
  414. package/cjs/shared/internal-calendar/day-cell/day-cell.styles.js +1 -1
  415. package/cjs/shared/internal-calendar/day-cell/day-cell.styles.js.map +1 -1
  416. package/{shared/internal-calendar/day-cell/day-cell.styles_vazxvn.css → cjs/shared/internal-calendar/day-cell/day-cell.styles_1t5oqc1.css} +3 -3
  417. package/cjs/shared/internal-calendar/internal-calendar-month.styles.js +1 -1
  418. package/{shared/internal-calendar/internal-calendar-month.styles_1pk3ynj.css → cjs/shared/internal-calendar/internal-calendar-month.styles_14oh57f.css} +3 -3
  419. package/cjs/shared/internal-calendar/internal-calendar-year.styles.js +1 -1
  420. package/cjs/shared/internal-calendar/internal-calendar-year.styles.js.map +1 -1
  421. package/cjs/shared/internal-calendar/{internal-calendar-year.styles_1azy42u.css → internal-calendar-year.styles_therlc.css} +3 -3
  422. package/cjs/shared/internal-calendar/internal-calendar.styles_gnc3eq.css +1 -1
  423. package/cjs/shared/internal-calendar/single/single-cell.js +1 -1
  424. package/cjs/shared/internal-calendar/single/single-cell.js.map +1 -1
  425. package/cjs/shared/internal-calendar/standard/standard-calendar-day-view.styles.js +1 -1
  426. package/cjs/shared/internal-calendar/standard/standard-calendar-day-view.styles_1bw26au.css +3 -0
  427. package/cjs/shared/progress-bar/progress-bar.styles_125ri7a.css +1 -1
  428. package/cjs/shared/range-input-inner-container/range-input-inner-container.styles_1v61utg.css +2 -2
  429. package/cjs/shared/standalone-date-input/standalone-date-input.js +1 -1
  430. package/cjs/shared/standalone-date-input/standalone-date-input.js.map +1 -1
  431. package/cjs/shared/standalone-date-input/standalone-date-input.styles.js +1 -1
  432. package/cjs/shared/standalone-date-input/standalone-date-input.styles.js.map +1 -1
  433. package/cjs/shared/standalone-date-input/standalone-date-input.styles_157qo89.css +15 -0
  434. package/cjs/shared/time-slot/time-slot.js +1 -1
  435. package/cjs/shared/time-slot/time-slot.js.map +1 -1
  436. package/cjs/shared/time-slot/time-slot.styles.js +1 -1
  437. package/cjs/shared/time-slot/time-slot.styles.js.map +1 -1
  438. package/cjs/shared/time-slot/time-slot.styles_18s0to7.css +29 -0
  439. package/cjs/shared/timepicker-dropdown/timepicker-dropdown.styles_119l6k6.css +2 -2
  440. package/cjs/sidenav/sidenav-drawer-item.styles.js +1 -1
  441. package/cjs/sidenav/sidenav-drawer-item.styles.js.map +1 -1
  442. package/cjs/sidenav/sidenav-drawer-item.styles_1ljnyx2.css +6 -0
  443. package/cjs/sidenav/sidenav-drawer-subitem.styles.js +1 -1
  444. package/cjs/sidenav/sidenav-drawer-subitem.styles.js.map +1 -1
  445. package/cjs/sidenav/sidenav-drawer-subitem.styles_2y58kf.css +1 -0
  446. package/cjs/sidenav/sidenav-group.styles_1x604sw.css +2 -2
  447. package/cjs/sidenav/sidenav-item.styles.js +1 -1
  448. package/cjs/sidenav/sidenav-item.styles.js.map +1 -1
  449. package/cjs/sidenav/{sidenav-item.styles_1eew8px.css → sidenav-item.styles_lqw3kh.css} +4 -4
  450. package/cjs/sidenav/sidenav.styles_1vxezie.css +2 -2
  451. package/cjs/singpass-button/singpass-button.styles_1miyex3.css +2 -2
  452. package/cjs/smart-app-banner/smart-app-banner.styles.js +1 -1
  453. package/cjs/smart-app-banner/smart-app-banner.styles.js.map +1 -1
  454. package/cjs/smart-app-banner/{smart-app-banner.styles_m5dtgh.css → smart-app-banner.styles_15u6yv4.css} +4 -4
  455. package/cjs/tab/tab-link-chain.styles.js +1 -1
  456. package/cjs/tab/tab-link-chain.styles.js.map +1 -1
  457. package/cjs/tab/{tab-link-chain.styles_1nreqrp.css → tab-link-chain.styles_49got4.css} +4 -4
  458. package/cjs/tab/tab.styles_1najffw.css +1 -1
  459. package/cjs/table/table.styles_1af5ipv.css +2 -2
  460. package/cjs/tag/tag.style.js +1 -1
  461. package/cjs/tag/{tag.style_10tn8i.css → tag.style_d98c53.css} +3 -3
  462. package/cjs/text-list/text-list.styles.js +1 -1
  463. package/cjs/text-list/text-list.styles.js.map +1 -1
  464. package/cjs/text-list/text-list.styles_w3fvyt.css +16 -0
  465. package/cjs/theme/index.js +1 -1
  466. package/cjs/theme/theme-provider/hooks.js +1 -1
  467. package/cjs/theme/theme-provider/hooks.js.map +1 -1
  468. package/cjs/theme/tokens/colour.js +1 -1
  469. package/cjs/theme/tokens/colour.js.map +1 -1
  470. package/cjs/theme/tokens/font.js +1 -1
  471. package/cjs/theme/tokens/font.js.map +1 -1
  472. package/cjs/theme/types.js +1 -1
  473. package/cjs/theme/types.js.map +1 -1
  474. package/cjs/theme/utils/css-variable.js +1 -1
  475. package/cjs/theme/utils/css-variable.js.map +1 -1
  476. package/cjs/theme/utils/font.js +1 -1
  477. package/cjs/theme/utils/font.js.map +1 -1
  478. package/cjs/theme/utils/token-resolver.js +1 -1
  479. package/cjs/theme/utils/token-resolver.js.map +1 -1
  480. package/cjs/theme/utils/use-design-token-override.js +2 -0
  481. package/cjs/theme/utils/use-design-token-override.js.map +1 -0
  482. package/cjs/theme/utils/use-design-token.js +1 -1
  483. package/cjs/theme/utils/use-design-token.js.map +1 -1
  484. package/cjs/theme/utils/use-media-query.js +1 -1
  485. package/cjs/theme/utils/use-media-query.js.map +1 -1
  486. package/cjs/time-range-picker/combobox-picker/combobox-picker.js +1 -1
  487. package/cjs/time-range-picker/combobox-picker/combobox-picker.js.map +1 -1
  488. package/cjs/time-range-picker/combobox-picker/combobox-picker.styles_7i9vso.css +1 -1
  489. package/cjs/time-range-picker/common.styles_1qwp4xa.css +2 -2
  490. package/cjs/time-slot-bar/time-slot-bar.styles_wigbyd.css +2 -2
  491. package/cjs/time-slot-bar-week/consts.js +2 -0
  492. package/cjs/time-slot-bar-week/consts.js.map +1 -0
  493. package/cjs/time-slot-bar-week/time-slot-bar-week-days.js +1 -1
  494. package/cjs/time-slot-bar-week/time-slot-bar-week-days.js.map +1 -1
  495. package/cjs/time-slot-bar-week/time-slot-bar-week-days.styles.js +2 -0
  496. package/cjs/time-slot-bar-week/time-slot-bar-week-days.styles.js.map +1 -0
  497. package/cjs/time-slot-bar-week/time-slot-bar-week-days.styles_evdvs9.css +17 -0
  498. package/cjs/time-slot-bar-week/time-slot-bar-week.js +1 -1
  499. package/cjs/time-slot-bar-week/time-slot-bar-week.js.map +1 -1
  500. package/cjs/time-slot-bar-week/time-slot-bar-week.styles.js +2 -0
  501. package/cjs/time-slot-bar-week/time-slot-bar-week.styles.js.map +1 -0
  502. package/cjs/time-slot-bar-week/time-slot-bar-week.styles_11ybf42.css +1 -0
  503. package/cjs/time-slot-bar-week/time-slot-cell.js +2 -0
  504. package/cjs/time-slot-bar-week/time-slot-cell.js.map +1 -0
  505. package/cjs/time-slot-week-view/time-slot-week-days.js +1 -1
  506. package/cjs/time-slot-week-view/time-slot-week-days.js.map +1 -1
  507. package/cjs/time-slot-week-view/time-slot-week-days.styles.js +2 -0
  508. package/cjs/time-slot-week-view/time-slot-week-days.styles.js.map +1 -0
  509. package/cjs/time-slot-week-view/time-slot-week-days.styles_1h21vyw.css +9 -0
  510. package/cjs/time-slot-week-view/time-slot-week-view.js +1 -1
  511. package/cjs/time-slot-week-view/time-slot-week-view.js.map +1 -1
  512. package/cjs/time-slot-week-view/time-slot-week-view.styles.js +1 -9
  513. package/cjs/time-slot-week-view/time-slot-week-view.styles.js.map +1 -1
  514. package/cjs/time-slot-week-view/time-slot-week-view.styles_gqgsw2.css +1 -0
  515. package/cjs/timeline/timeline.styles.js +1 -1
  516. package/cjs/timeline/{timeline.styles_1wcnzot.css → timeline.styles_1jxzik4.css} +2 -2
  517. package/cjs/timepicker/timepicker.js +1 -1
  518. package/cjs/timepicker/timepicker.js.map +1 -1
  519. package/cjs/timepicker/timepicker.styles.js +1 -1
  520. package/cjs/timepicker/timepicker.styles.js.map +1 -1
  521. package/cjs/timepicker/timepicker.styles_1jm33yw.css +1 -0
  522. package/cjs/timetable/timetable-header/timetable-header.styles_11gl1h4.css +2 -2
  523. package/cjs/timetable/timetable-row/row-bar.styles_1x0vrsz.css +1 -1
  524. package/cjs/timetable/timetable-row/row-cell.styles_y1dl5j.css +2 -2
  525. package/cjs/timetable/timetable.styles_7rp8kz.css +2 -2
  526. package/cjs/toast/toast.styles.js +1 -1
  527. package/cjs/toast/toast.styles.js.map +1 -1
  528. package/cjs/toast/{toast.styles_ngrlup.css → toast.styles_1e0l60w.css} +3 -3
  529. package/cjs/toggle/toggle-icon.styles_ba71y.css +2 -2
  530. package/cjs/toggle/toggle.styles.js +1 -1
  531. package/cjs/toggle/toggle.styles.js.map +1 -1
  532. package/{toggle/toggle.styles_1yzqsu.css → cjs/toggle/toggle.styles_1t5qrye.css} +7 -7
  533. package/cjs/typography/typography-text.styles_1734x2k.css +2 -2
  534. package/cjs/typography/typography.js +1 -1
  535. package/cjs/typography/typography.js.map +1 -1
  536. package/cjs/typography/typography.styles.js +1 -1
  537. package/cjs/typography/typography.styles.js.map +1 -1
  538. package/cjs/typography/typography.styles_1wd82dn.css +11 -0
  539. package/cjs/uneditable-section/section-item.styles.js +1 -1
  540. package/cjs/uneditable-section/section-item.styles.js.map +1 -1
  541. package/cjs/uneditable-section/section-item.styles_mwx8ht.css +9 -0
  542. package/cjs/uneditable-section/uneditable-section.js +1 -1
  543. package/cjs/uneditable-section/uneditable-section.js.map +1 -1
  544. package/cjs/uneditable-section/uneditable-section.styles_aj9zun.css +2 -2
  545. package/cjs/unit-number/unit-number-input.styles_8yizj.css +2 -2
  546. package/cjs/util/is-styled-components.js +2 -0
  547. package/cjs/util/is-styled-components.js.map +1 -0
  548. package/cjs/util/styling-helper.js +1 -1
  549. package/cjs/util/styling-helper.js.map +1 -1
  550. package/codemod-utils.d.ts +1 -0
  551. package/codemods/codemod-utils.ts +17 -0
  552. package/codemods/index.ts +231 -75
  553. package/codemods/migrate-popover/index.ts +267 -0
  554. package/codemods/run-codemod.js +6 -53
  555. package/codemods/run-codemod.js.map +1 -1
  556. package/codemods/run-codemod.ts +7 -54
  557. package/countdown-timer/countdown-timer.d.ts +6 -0
  558. package/countdown-timer/countdown-timer.js.map +1 -1
  559. package/countdown-timer/countdown-timer.styles.js +1 -1
  560. package/countdown-timer/{countdown-timer.styles_k50tkw.css → countdown-timer.styles_ipn1b0.css} +3 -3
  561. package/countdown-timer/types.d.ts +55 -11
  562. package/dashed-border/dashed-border.d.ts +6 -0
  563. package/dashed-border/dashed-border.js +1 -1
  564. package/dashed-border/dashed-border.js.map +1 -1
  565. package/dashed-border/dashed-border.styles_zszoox.css +2 -2
  566. package/dashed-border/types.d.ts +27 -5
  567. package/data-table/data-table.d.ts +8 -0
  568. package/data-table/data-table.js +1 -1
  569. package/data-table/data-table.js.map +1 -1
  570. package/data-table/data-table.styles.js +1 -1
  571. package/data-table/{data-table.styles_1nj2uzq.css → data-table.styles_1iqq1g7.css} +3 -3
  572. package/data-table/types.d.ts +58 -12
  573. package/date-input/date-input.d.ts +5 -0
  574. package/date-input/date-input.js +1 -1
  575. package/date-input/date-input.js.map +1 -1
  576. package/date-input/date-input.styles_1r5kcc7.css +1 -1
  577. package/date-input/types.d.ts +32 -16
  578. package/date-navigator/date-navigator.d.ts +6 -0
  579. package/date-navigator/date-navigator.js.map +1 -1
  580. package/date-navigator/date-navigator.styles.js +1 -1
  581. package/date-navigator/date-navigator.styles.js.map +1 -1
  582. package/date-navigator/date-navigator.styles_wokh56.css +4 -0
  583. package/date-navigator/types.d.ts +44 -7
  584. package/date-range-input/date-range-input.d.ts +4 -0
  585. package/date-range-input/date-range-input.js.map +1 -1
  586. package/date-range-input/date-range-input.styles_1s7ojnj.css +2 -2
  587. package/date-range-input/types.d.ts +50 -14
  588. package/divider/divider.d.ts +6 -0
  589. package/divider/divider.js.map +1 -1
  590. package/divider/divider.styles_1xpzh8p.css +2 -2
  591. package/divider/types.d.ts +27 -4
  592. package/drawer/drawer.d.ts +7 -0
  593. package/drawer/drawer.js.map +1 -1
  594. package/drawer/drawer.styles_94hx3y.css +2 -2
  595. package/drawer/types.d.ts +16 -4
  596. package/e-signature/e-signature-canvas.js +1 -1
  597. package/e-signature/e-signature-canvas.js.map +1 -1
  598. package/e-signature/e-signature.d.ts +5 -0
  599. package/e-signature/e-signature.js +1 -1
  600. package/e-signature/e-signature.js.map +1 -1
  601. package/e-signature/e-signature.styles.d.ts +17 -45
  602. package/e-signature/e-signature.styles.js +1 -168
  603. package/e-signature/e-signature.styles.js.map +1 -1
  604. package/e-signature/e-signature.styles_lukd9f.css +17 -0
  605. package/e-signature/types.d.ts +23 -1
  606. package/error-display/error-display-data.js +1 -1
  607. package/error-display/error-display-data.js.map +1 -1
  608. package/error-display/error-display.d.ts +7 -0
  609. package/error-display/error-display.js.map +1 -1
  610. package/error-display/error-display.styles_d3tql1.css +2 -2
  611. package/error-display/types.d.ts +36 -6
  612. package/external/dompurify/dist/purify.es.js +2 -2
  613. package/external/dompurify/dist/purify.es.js.map +1 -1
  614. package/external/lodash/get.js +1 -1
  615. package/external/lodash/get.js.map +1 -1
  616. package/feedback-rating/feedback-rating-stars-container.styles_dmi8z9.css +2 -2
  617. package/feedback-rating/feedback-rating.d.ts +6 -0
  618. package/feedback-rating/feedback-rating.js.map +1 -1
  619. package/feedback-rating/feedback-rating.styles_1kdklb6.css +2 -2
  620. package/feedback-rating/types.d.ts +29 -0
  621. package/file-download/file-download.d.ts +6 -0
  622. package/file-download/file-download.js +1 -1
  623. package/file-download/file-download.js.map +1 -1
  624. package/file-download/file-download.styles.d.ts +8 -11
  625. package/file-download/file-download.styles.js +1 -32
  626. package/file-download/file-download.styles.js.map +1 -1
  627. package/file-download/file-download.styles_iggk8q.css +8 -0
  628. package/file-download/file-list-card/file-list-card.js +1 -1
  629. package/file-download/file-list-card/file-list-card.js.map +1 -1
  630. package/file-download/file-list-card/file-list-card.styles.d.ts +16 -64
  631. package/file-download/file-list-card/file-list-card.styles.js +1 -177
  632. package/file-download/file-list-card/file-list-card.styles.js.map +1 -1
  633. package/file-download/file-list-card/file-list-card.styles_18j2gut.css +16 -0
  634. package/file-download/types.d.ts +44 -11
  635. package/file-upload/dropzone.styles_1pllsau.css +2 -2
  636. package/file-upload/file-item-edit.d.ts +4 -1
  637. package/file-upload/file-item-edit.js +1 -1
  638. package/file-upload/file-item-edit.js.map +1 -1
  639. package/file-upload/file-item-edit.styles.d.ts +1 -0
  640. package/file-upload/file-item-edit.styles.js +1 -1
  641. package/file-upload/file-item-edit.styles.js.map +1 -1
  642. package/{cjs/file-upload/file-item-edit.styles_1qbpbxj.css → file-upload/file-item-edit.styles_19bvztn.css} +6 -5
  643. package/file-upload/{file-list.d.ts → file-list/file-list.d.ts} +4 -1
  644. package/file-upload/file-list/file-list.js +2 -0
  645. package/file-upload/file-list/file-list.js.map +1 -0
  646. package/file-upload/file-list/file-list.styles.js +2 -0
  647. package/file-upload/file-list/file-list.styles.js.map +1 -0
  648. package/file-upload/file-list/file-list.styles_1w7so98.css +3 -0
  649. package/file-upload/file-list/index.d.ts +1 -0
  650. package/file-upload/file-list-item/file-list-item-thumbnail.styles.js +1 -1
  651. package/file-upload/file-list-item/file-list-item-thumbnail.styles_1y4si19.css +4 -0
  652. package/file-upload/file-list-item/file-list-item.d.ts +3 -1
  653. package/file-upload/file-list-item/file-list-item.js +1 -1
  654. package/file-upload/file-list-item/file-list-item.js.map +1 -1
  655. package/file-upload/file-list-item/file-list-item.styles.d.ts +3 -0
  656. package/file-upload/file-list-item/file-list-item.styles.js +1 -1
  657. package/file-upload/file-list-item/file-list-item.styles.js.map +1 -1
  658. package/file-upload/file-list-item/file-list-item.styles_o8000f.css +17 -0
  659. package/file-upload/file-upload.d.ts +2 -1
  660. package/file-upload/file-upload.js +1 -1
  661. package/file-upload/file-upload.js.map +1 -1
  662. package/file-upload/file-upload.styles_9ffwcd.css +2 -2
  663. package/file-upload/types.d.ts +125 -20
  664. package/filter/addons/filter-item-checkbox.styles.js +1 -1
  665. package/filter/addons/filter-item-checkbox.styles.js.map +1 -1
  666. package/{cjs/filter/addons/filter-item-checkbox.styles_18l87i2.css → filter/addons/filter-item-checkbox.styles_7degw7.css} +3 -3
  667. package/filter/filter-badge.d.ts +5 -0
  668. package/filter/filter-badge.js +2 -0
  669. package/filter/filter-badge.js.map +1 -0
  670. package/filter/filter-item-page.d.ts +1 -1
  671. package/filter/filter-item-page.js +1 -1
  672. package/filter/filter-item-page.js.map +1 -1
  673. package/filter/filter-item-page.styles_17ewfrz.css +1 -1
  674. package/filter/filter-item.js.map +1 -1
  675. package/filter/filter-item.styles.js +1 -1
  676. package/filter/filter-item.styles.js.map +1 -1
  677. package/{cjs/filter/filter-item.styles_1e3v6qq.css → filter/filter-item.styles_cphjnj.css} +4 -4
  678. package/filter/filter-modal.d.ts +1 -1
  679. package/filter/filter-modal.js +1 -1
  680. package/filter/filter-modal.js.map +1 -1
  681. package/filter/filter-modal.styles.d.ts +2 -0
  682. package/filter/filter-modal.styles.js +1 -1
  683. package/filter/filter-modal.styles.js.map +1 -1
  684. package/filter/filter-modal.styles_qw3xlg.css +10 -0
  685. package/filter/filter-sidebar.d.ts +1 -1
  686. package/filter/filter-sidebar.js +1 -1
  687. package/filter/filter-sidebar.js.map +1 -1
  688. package/filter/filter-sidebar.styles.d.ts +1 -0
  689. package/filter/filter-sidebar.styles.js +1 -1
  690. package/filter/filter-sidebar.styles.js.map +1 -1
  691. package/filter/filter-sidebar.styles_1otwpjl.css +5 -0
  692. package/filter/filter.d.ts +24 -3
  693. package/filter/filter.js.map +1 -1
  694. package/filter/filter.styles.js +1 -1
  695. package/filter/filter.styles.js.map +1 -1
  696. package/filter/{filter.styles_2fmaok.css → filter.styles_1ykijwm.css} +2 -2
  697. package/filter/types.d.ts +163 -21
  698. package/footer/footer-download-app.styles_1v1j2us.css +2 -2
  699. package/footer/footer-resource-addon.styles_1jepb1d.css +2 -2
  700. package/footer/footer.d.ts +8 -1
  701. package/footer/footer.js +1 -1
  702. package/footer/footer.js.map +1 -1
  703. package/footer/footer.styles_1msorhc.css +2 -2
  704. package/footer/types.d.ts +55 -4
  705. package/form/form-label-addon.styles_b00z8p.css +1 -1
  706. package/form/form-label.styles.js +1 -1
  707. package/form/form-label.styles.js.map +1 -1
  708. package/form/form-label.styles_1nbe0bm.css +6 -0
  709. package/form/form-textarea.styles_3p9qoy.css +2 -2
  710. package/form/form-wrapper.js +1 -1
  711. package/form/form-wrapper.js.map +1 -1
  712. package/form/form-wrapper.styles_199rslu.css +1 -1
  713. package/fullscreen-image-carousel/fullscreen-image-carousel.js +1 -1
  714. package/fullscreen-image-carousel/fullscreen-image-carousel.js.map +1 -1
  715. package/fullscreen-image-carousel/fullscreen-image-carousel.styles_vc6y5c.css +2 -2
  716. package/fullscreen-image-carousel/stateful-image.styles_1xe8ypm.css +2 -2
  717. package/histogram-slider/histogram-slider.styles_wvd4w.css +2 -2
  718. package/image-button/image-button.styles.js +1 -1
  719. package/image-button/image-button.styles_6n1qsr.css +5 -0
  720. package/index.d.ts +0 -2
  721. package/index.js +1 -1
  722. package/input/input.styles_1cblor0.css +2 -2
  723. package/input-group/input-group-list-addon.js +1 -1
  724. package/input-group/input-group-list-addon.js.map +1 -1
  725. package/input-group/input-group-list-addon.styles_17iuqtw.css +2 -2
  726. package/input-group/input-group.styles.js +1 -1
  727. package/input-group/input-group.styles_bqye6f.css +3 -0
  728. package/input-multi-select/input-multi-select.js +1 -1
  729. package/input-multi-select/input-multi-select.js.map +1 -1
  730. package/input-nested-multi-select/input-nested-multi-select.js +1 -1
  731. package/input-nested-multi-select/input-nested-multi-select.js.map +1 -1
  732. package/input-nested-select/input-nested-select.js +1 -1
  733. package/input-nested-select/input-nested-select.js.map +1 -1
  734. package/input-range-select/input-range-select.js +1 -1
  735. package/input-range-select/input-range-select.js.map +1 -1
  736. package/input-range-select/input-range-select.styles_adbrbm.css +2 -2
  737. package/input-range-slider/input-range-slider.styles_aljl2v.css +2 -2
  738. package/input-select/input-select.js +1 -1
  739. package/input-select/input-select.js.map +1 -1
  740. package/input-textarea/textarea-counter.styles.js +1 -1
  741. package/input-textarea/textarea-counter.styles.js.map +1 -1
  742. package/input-textarea/textarea-counter.styles_1n3wsnv.css +1 -0
  743. package/input-textarea/textarea.styles.js +1 -1
  744. package/input-textarea/textarea.styles_22z4n3.css +5 -0
  745. package/language-switcher/dropdown-panel.styles.js +1 -1
  746. package/language-switcher/dropdown-panel.styles.js.map +1 -1
  747. package/language-switcher/dropdown-panel.styles_1qsjf8d.css +4 -0
  748. package/language-switcher/dropdown-variant.js +1 -1
  749. package/language-switcher/dropdown-variant.js.map +1 -1
  750. package/language-switcher/dropdown-variant.styles.js +1 -1
  751. package/language-switcher/dropdown-variant.styles_1vrdfky.css +2 -0
  752. package/language-switcher/link-container-variant.styles.js +1 -1
  753. package/language-switcher/link-container-variant.styles_1iw6zux.css +5 -0
  754. package/layout/col-div.js +1 -1
  755. package/layout/col-div.js.map +1 -1
  756. package/layout/col-div.styles_16o6mwx.css +1 -1
  757. package/layout/container.styles_v70ec6.css +2 -2
  758. package/layout/section.styles_hstcaf.css +1 -1
  759. package/layout/types.d.ts +8 -11
  760. package/link-list/link-list.styles.js +1 -1
  761. package/link-list/link-list.styles.js.map +1 -1
  762. package/{cjs/link-list/link-list.styles_1g33nb4.css → link-list/link-list.styles_m57vks.css} +4 -4
  763. package/local-nav/local-nav-dropdown/local-nav-dropdown.styles.js +1 -1
  764. package/{cjs/local-nav/local-nav-dropdown/local-nav-dropdown.styles_ftv36t.css → local-nav/local-nav-dropdown/local-nav-dropdown.styles_uhd4xl.css} +3 -3
  765. package/local-nav/local-nav-menu/local-nav-menu.styles_pq19dh.css +2 -2
  766. package/markup/markup.js +1 -1
  767. package/markup/markup.js.map +1 -1
  768. package/markup/markup.style.js +1 -1
  769. package/markup/markup.style.js.map +1 -1
  770. package/markup/markup.style_1iu40x9.css +2 -2
  771. package/markup/types.d.ts +2 -1
  772. package/masked-input/masked-input.styles.js +1 -1
  773. package/masked-input/masked-input.styles.js.map +1 -1
  774. package/{cjs/masked-input/masked-input.styles_4i1qsy.css → masked-input/masked-input.styles_1cm388a.css} +4 -4
  775. package/masthead/masthead.js +1 -1
  776. package/masthead/masthead.js.map +1 -1
  777. package/masthead/masthead.styles_1huzon9.css +2 -2
  778. package/menu/menu-content.styles_p7ijll.css +2 -2
  779. package/menu/menu-item.styles_liyed8.css +2 -2
  780. package/menu/menu-link.styles_hfxoez.css +2 -2
  781. package/menu/menu-section.styles_g7my4d.css +2 -2
  782. package/modal/modal-box.styles.js +1 -1
  783. package/modal/modal-box.styles.js.map +1 -1
  784. package/modal/modal-box.styles_y52cts.css +11 -0
  785. package/modal/modal.js +1 -1
  786. package/modal/modal.js.map +1 -1
  787. package/modal/modal.styles.d.ts +4 -1
  788. package/modal/modal.styles.js +1 -1
  789. package/modal/modal.styles.js.map +1 -1
  790. package/modal/modal.styles_1lbblx6.css +11 -0
  791. package/modal-v2/modal-v2.js +1 -1
  792. package/modal-v2/modal-v2.js.map +1 -1
  793. package/modal-v2/modal-v2.styles.d.ts +0 -1
  794. package/modal-v2/modal-v2.styles.js +1 -1
  795. package/modal-v2/modal-v2.styles.js.map +1 -1
  796. package/modal-v2/modal-v2.styles_a8gv5i.css +3 -0
  797. package/modal-v2/slots/card.js +1 -1
  798. package/modal-v2/slots/card.js.map +1 -1
  799. package/modal-v2/slots/slot-styles_13sd376.css +2 -2
  800. package/navbar/brand.styles_zcgddp.css +1 -1
  801. package/navbar/drawer.js +1 -1
  802. package/navbar/drawer.js.map +1 -1
  803. package/navbar/drawer.styles_7hnxp5.css +2 -2
  804. package/navbar/menu.styles_gdpqc.css +2 -2
  805. package/navbar/navbar-action-buttons.styles_1vpm0nk.css +2 -2
  806. package/navbar/navbar-items.styles.js +1 -1
  807. package/navbar/navbar-items.styles.js.map +1 -1
  808. package/navbar/{navbar-items.styles_i9cunu.css → navbar-items.styles_1i3ltot.css} +8 -8
  809. package/navbar/navbar.js +1 -1
  810. package/navbar/navbar.js.map +1 -1
  811. package/navbar/navbar.styles_koy0c7.css +2 -2
  812. package/notification-banner/notification-banner.styles.js +1 -1
  813. package/notification-banner/notification-banner.styles.js.map +1 -1
  814. package/{cjs/notification-banner/notification-banner.styles_130loac.css → notification-banner/notification-banner.styles_uxlysy.css} +4 -4
  815. package/otp-input/otp-input.styles_5sbutl.css +2 -2
  816. package/otp-verification/contact-input-section.js +1 -1
  817. package/otp-verification/contact-input-section.js.map +1 -1
  818. package/otp-verification/contact-input-section.styles.d.ts +14 -0
  819. package/otp-verification/contact-input-section.styles.js +2 -0
  820. package/otp-verification/contact-input-section.styles.js.map +1 -0
  821. package/otp-verification/contact-input-section.styles_odrjvt.css +14 -0
  822. package/otp-verification/otp-verification.js +1 -1
  823. package/otp-verification/otp-verification.js.map +1 -1
  824. package/otp-verification/otp-verification.styles.d.ts +1 -0
  825. package/otp-verification/otp-verification.styles.js +2 -0
  826. package/otp-verification/otp-verification.styles.js.map +1 -0
  827. package/otp-verification/otp-verification.styles_dg9bm8.css +1 -0
  828. package/otp-verification/thumbnail/email-thumbnail.d.ts +1 -3
  829. package/otp-verification/thumbnail/email-thumbnail.js +1 -21
  830. package/otp-verification/thumbnail/email-thumbnail.js.map +1 -1
  831. package/otp-verification/thumbnail/phone-thumbnail.d.ts +1 -3
  832. package/otp-verification/thumbnail/phone-thumbnail.js +1 -17
  833. package/otp-verification/thumbnail/phone-thumbnail.js.map +1 -1
  834. package/otp-verification/thumbnail/thumbnail.styles.d.ts +3 -0
  835. package/otp-verification/thumbnail/thumbnail.styles.js +2 -0
  836. package/otp-verification/thumbnail/thumbnail.styles.js.map +1 -0
  837. package/otp-verification/thumbnail/thumbnail.styles_shqylh.css +3 -0
  838. package/otp-verification/verification-section.js +1 -1
  839. package/otp-verification/verification-section.js.map +1 -1
  840. package/otp-verification/verification-section.styles.d.ts +5 -0
  841. package/otp-verification/verification-section.styles.js +2 -0
  842. package/otp-verification/verification-section.styles.js.map +1 -0
  843. package/otp-verification/verification-section.styles_x8jj.css +5 -0
  844. package/overlay/overlay.js +1 -1
  845. package/overlay/overlay.js.map +1 -1
  846. package/overlay/overlay.styles_12wym18.css +2 -2
  847. package/overlay/types.d.ts +0 -13
  848. package/package.json +14 -15
  849. package/pagination/pagination.styles.js +1 -1
  850. package/pagination/pagination.styles.js.map +1 -1
  851. package/{cjs/pagination/pagination.styles_1u898rb.css → pagination/pagination.styles_6bcgva.css} +5 -5
  852. package/pill/pill.styles.js +1 -1
  853. package/{cjs/pill/pill.styles_1wiyl8.css → pill/pill.styles_xwrniu.css} +2 -2
  854. package/popover/popover-inline/popover-inline.styles_bkopnt.css +2 -2
  855. package/popover/popover-trigger.styles_8zokig.css +1 -1
  856. package/popover/popover.styles_ujnf0h.css +2 -2
  857. package/predictive-text-input/predictive-text-input.js +1 -1
  858. package/predictive-text-input/predictive-text-input.js.map +1 -1
  859. package/progress-indicator/progress-indicator.styles_1c038s4.css +2 -2
  860. package/radio-button/radio-button.styles_1c4v6v.css +2 -2
  861. package/schedule/const.js +1 -1
  862. package/schedule/const.js.map +1 -1
  863. package/schedule/schedule-day-view/schedule-day-view.js +1 -1
  864. package/schedule/schedule-day-view/schedule-day-view.js.map +1 -1
  865. package/schedule/schedule-day-view/schedule-day-view.styles.d.ts +39 -99
  866. package/schedule/schedule-day-view/schedule-day-view.styles.js +1 -152
  867. package/schedule/schedule-day-view/schedule-day-view.styles.js.map +1 -1
  868. package/schedule/schedule-day-view/schedule-day-view.styles_8ti149.css +30 -0
  869. package/schedule/schedule-day-view/types.d.ts +2 -10
  870. package/schedule/schedule-header/schedule-header.js +1 -1
  871. package/schedule/schedule-header/schedule-header.js.map +1 -1
  872. package/schedule/schedule-header/schedule-header.styles.d.ts +7 -0
  873. package/schedule/schedule-header/schedule-header.styles.js +2 -0
  874. package/schedule/schedule-header/schedule-header.styles.js.map +1 -0
  875. package/schedule/schedule-header/schedule-header.styles_1n2u5vj.css +6 -0
  876. package/schedule/schedule-slot-content/index.d.ts +4 -0
  877. package/schedule/schedule-slot-content/schedule-slot-content.d.ts +21 -0
  878. package/schedule/schedule-slot-content/schedule-slot-content.js +2 -0
  879. package/schedule/schedule-slot-content/schedule-slot-content.js.map +1 -0
  880. package/schedule/schedule-slot-content/style-helper.d.ts +8 -0
  881. package/schedule/schedule-slot-content/style-helper.js +2 -0
  882. package/schedule/schedule-slot-content/style-helper.js.map +1 -0
  883. package/schedule/schedule-week-view/schedule-week-view.js +1 -1
  884. package/schedule/schedule-week-view/schedule-week-view.js.map +1 -1
  885. package/schedule/schedule-week-view/schedule-week-view.styles.d.ts +15 -32
  886. package/schedule/schedule-week-view/schedule-week-view.styles.js +1 -74
  887. package/schedule/schedule-week-view/schedule-week-view.styles.js.map +1 -1
  888. package/schedule/schedule-week-view/schedule-week-view.styles_x7x50m.css +10 -0
  889. package/schedule/schedule-week-view/time-cell.js +1 -1
  890. package/schedule/schedule-week-view/time-cell.js.map +1 -1
  891. package/schedule/schedule-week-view/time-cell.styles.d.ts +23 -14
  892. package/schedule/schedule-week-view/time-cell.styles.js +1 -34
  893. package/schedule/schedule-week-view/time-cell.styles.js.map +1 -1
  894. package/schedule/schedule-week-view/time-cell.styles_1sorjz8.css +14 -0
  895. package/schedule/schedule-week-view/types.d.ts +2 -15
  896. package/schedule/schedule-week-view/week-view-utils.js +1 -1
  897. package/schedule/schedule-week-view/week-view-utils.js.map +1 -1
  898. package/schedule/schedule.js +1 -1
  899. package/schedule/schedule.js.map +1 -1
  900. package/schedule/schedule.styles.d.ts +5 -8
  901. package/schedule/schedule.styles.js +1 -26
  902. package/schedule/schedule.styles.js.map +1 -1
  903. package/schedule/schedule.styles_fdy5a1.css +5 -0
  904. package/schedule/shared/with-optional-popover.d.ts +1 -1
  905. package/schedule/shared/with-optional-popover.js +1 -5
  906. package/schedule/shared/with-optional-popover.js.map +1 -1
  907. package/schedule/shared/with-optional-popover.styles.d.ts +1 -0
  908. package/schedule/shared/with-optional-popover.styles.js +2 -0
  909. package/schedule/shared/with-optional-popover.styles.js.map +1 -0
  910. package/schedule/shared/with-optional-popover.styles_7mv3p2.css +1 -0
  911. package/schedule/time-indicator/time-indicator.js +1 -1
  912. package/schedule/time-indicator/time-indicator.js.map +1 -1
  913. package/schedule/time-indicator/time-indicator.styles.d.ts +11 -28
  914. package/schedule/time-indicator/time-indicator.styles.js +1 -33
  915. package/schedule/time-indicator/time-indicator.styles.js.map +1 -1
  916. package/schedule/time-indicator/time-indicator.styles_1eaxyes.css +6 -0
  917. package/schedule/types.d.ts +10 -0
  918. package/select-histogram/select-histogram.js +1 -1
  919. package/select-histogram/select-histogram.js.map +1 -1
  920. package/select-histogram/select-histogram.styles.js +1 -1
  921. package/select-histogram/select-histogram.styles.js.map +1 -1
  922. package/select-histogram/select-histogram.styles_n260dy.css +5 -0
  923. package/shared/accessibility/index_13g9vp.css +1 -1
  924. package/shared/clickable-icon/clickable-icon.styles_1v2imml.css +2 -2
  925. package/shared/component-loading-spinner/component-loading-spinner.styles_15eq02i.css +2 -2
  926. package/shared/dropdown-list/dropdown-label.js +1 -1
  927. package/shared/dropdown-list/dropdown-label.js.map +1 -1
  928. package/shared/dropdown-list/dropdown-label.styles.js +1 -1
  929. package/shared/dropdown-list/dropdown-label.styles.js.map +1 -1
  930. package/{cjs/shared/dropdown-list/dropdown-label.styles_1dwmd8f.css → shared/dropdown-list/dropdown-label.styles_mloii0.css} +6 -6
  931. package/shared/dropdown-list/dropdown-list.styles.js +1 -1
  932. package/shared/dropdown-list/dropdown-list.styles.js.map +1 -1
  933. package/{cjs/shared/dropdown-list/dropdown-list.styles_1kt4zhf.css → shared/dropdown-list/dropdown-list.styles_konwm.css} +5 -5
  934. package/shared/dropdown-list/dropdown-search.styles.js +1 -1
  935. package/shared/dropdown-list/dropdown-search.styles.js.map +1 -1
  936. package/{cjs/shared/dropdown-list/dropdown-search.styles_4r9oma.css → shared/dropdown-list/dropdown-search.styles_1hc1gkh.css} +3 -3
  937. package/shared/dropdown-list/expandable-element.js +1 -1
  938. package/shared/dropdown-list/expandable-element.js.map +1 -1
  939. package/shared/dropdown-list/expandable-element.styles.d.ts +0 -1
  940. package/shared/dropdown-list/expandable-element.styles.js +1 -1
  941. package/shared/dropdown-list/expandable-element.styles.js.map +1 -1
  942. package/shared/dropdown-list/expandable-element.styles_rkkvqr.css +5 -0
  943. package/shared/dropdown-list/nested-dropdown-list.styles_wdhxoe.css +2 -2
  944. package/shared/dropdown-wrapper/dropdown-wrapper.styles.js +1 -1
  945. package/shared/dropdown-wrapper/dropdown-wrapper.styles.js.map +1 -1
  946. package/shared/dropdown-wrapper/dropdown-wrapper.styles_15hwwoj.css +3 -0
  947. package/shared/fade-wrapper/fade-wrapper.styles_16iug7l.css +2 -2
  948. package/shared/hooks/useViewport.d.ts +7 -2
  949. package/shared/hooks/useViewport.js +1 -1
  950. package/shared/hooks/useViewport.js.map +1 -1
  951. package/shared/image-placeholder/image-placeholder.styles_44nwil.css +1 -1
  952. package/shared/input-wrapper/input-wrapper.styles.js +1 -1
  953. package/shared/input-wrapper/{input-wrapper.styles_19fpzb.css → input-wrapper.styles_je6maw.css} +4 -4
  954. package/shared/internal-calendar/calendar-dropdown.styles_wybjai.css +1 -1
  955. package/shared/internal-calendar/calendar-manager.js +1 -1
  956. package/shared/internal-calendar/calendar-manager.js.map +1 -1
  957. package/shared/internal-calendar/calendar-manager.styles.js +1 -1
  958. package/shared/internal-calendar/calendar-manager.styles.js.map +1 -1
  959. package/shared/internal-calendar/{calendar-manager.styles_1q13ylk.css → calendar-manager.styles_1njwkj2.css} +4 -4
  960. package/shared/internal-calendar/day-cell/day-cell.styles.js +1 -1
  961. package/shared/internal-calendar/day-cell/day-cell.styles.js.map +1 -1
  962. package/{cjs/shared/internal-calendar/day-cell/day-cell.styles_vazxvn.css → shared/internal-calendar/day-cell/day-cell.styles_1t5oqc1.css} +3 -3
  963. package/shared/internal-calendar/internal-calendar-month.styles.js +1 -1
  964. package/{cjs/shared/internal-calendar/internal-calendar-month.styles_1pk3ynj.css → shared/internal-calendar/internal-calendar-month.styles_14oh57f.css} +3 -3
  965. package/shared/internal-calendar/internal-calendar-year.styles.js +1 -1
  966. package/shared/internal-calendar/internal-calendar-year.styles.js.map +1 -1
  967. package/shared/internal-calendar/{internal-calendar-year.styles_1azy42u.css → internal-calendar-year.styles_therlc.css} +3 -3
  968. package/shared/internal-calendar/internal-calendar.styles_gnc3eq.css +1 -1
  969. package/shared/internal-calendar/single/single-cell.js +1 -1
  970. package/shared/internal-calendar/single/single-cell.js.map +1 -1
  971. package/shared/internal-calendar/standard/standard-calendar-day-view.styles.js +1 -1
  972. package/shared/internal-calendar/standard/standard-calendar-day-view.styles_1bw26au.css +3 -0
  973. package/shared/progress-bar/progress-bar.styles_125ri7a.css +1 -1
  974. package/shared/range-input-inner-container/range-input-inner-container.styles_1v61utg.css +2 -2
  975. package/shared/standalone-date-input/standalone-date-input.js +1 -1
  976. package/shared/standalone-date-input/standalone-date-input.js.map +1 -1
  977. package/shared/standalone-date-input/standalone-date-input.styles.d.ts +2 -0
  978. package/shared/standalone-date-input/standalone-date-input.styles.js +1 -1
  979. package/shared/standalone-date-input/standalone-date-input.styles.js.map +1 -1
  980. package/shared/standalone-date-input/standalone-date-input.styles_157qo89.css +15 -0
  981. package/shared/time-slot/time-slot.d.ts +1 -0
  982. package/shared/time-slot/time-slot.js +1 -1
  983. package/shared/time-slot/time-slot.js.map +1 -1
  984. package/shared/time-slot/time-slot.styles.d.ts +2 -0
  985. package/shared/time-slot/time-slot.styles.js +1 -1
  986. package/shared/time-slot/time-slot.styles.js.map +1 -1
  987. package/shared/time-slot/time-slot.styles_18s0to7.css +29 -0
  988. package/shared/timepicker-dropdown/timepicker-dropdown.styles_119l6k6.css +2 -2
  989. package/sidenav/sidenav-drawer-item.styles.js +1 -1
  990. package/sidenav/sidenav-drawer-item.styles.js.map +1 -1
  991. package/sidenav/sidenav-drawer-item.styles_1ljnyx2.css +6 -0
  992. package/sidenav/sidenav-drawer-subitem.styles.js +1 -1
  993. package/sidenav/sidenav-drawer-subitem.styles.js.map +1 -1
  994. package/sidenav/sidenav-drawer-subitem.styles_2y58kf.css +1 -0
  995. package/sidenav/sidenav-group.styles_1x604sw.css +2 -2
  996. package/sidenav/sidenav-item.styles.js +1 -1
  997. package/sidenav/sidenav-item.styles.js.map +1 -1
  998. package/sidenav/{sidenav-item.styles_1eew8px.css → sidenav-item.styles_lqw3kh.css} +4 -4
  999. package/sidenav/sidenav.styles_1vxezie.css +2 -2
  1000. package/singpass-button/singpass-button.styles_1miyex3.css +2 -2
  1001. package/smart-app-banner/smart-app-banner.styles.js +1 -1
  1002. package/smart-app-banner/smart-app-banner.styles.js.map +1 -1
  1003. package/smart-app-banner/{smart-app-banner.styles_m5dtgh.css → smart-app-banner.styles_15u6yv4.css} +4 -4
  1004. package/tab/tab-link-chain.styles.js +1 -1
  1005. package/tab/tab-link-chain.styles.js.map +1 -1
  1006. package/tab/{tab-link-chain.styles_1nreqrp.css → tab-link-chain.styles_49got4.css} +4 -4
  1007. package/tab/tab.styles_1najffw.css +1 -1
  1008. package/table/table.styles_1af5ipv.css +2 -2
  1009. package/tag/tag.style.js +1 -1
  1010. package/tag/{tag.style_10tn8i.css → tag.style_d98c53.css} +3 -3
  1011. package/text-list/text-list.styles.js +1 -1
  1012. package/text-list/text-list.styles.js.map +1 -1
  1013. package/text-list/text-list.styles_w3fvyt.css +16 -0
  1014. package/theme/index.d.ts +4 -1
  1015. package/theme/index.js +1 -1
  1016. package/theme/styles/a11y-playground.css +33 -1
  1017. package/theme/styles/bookingsg.css +37 -5
  1018. package/theme/styles/careercompass.css +519 -0
  1019. package/theme/styles/ccube.css +31 -0
  1020. package/theme/styles/default.css +11 -6
  1021. package/theme/styles/imda.css +33 -1
  1022. package/theme/styles/lifesg.css +31 -0
  1023. package/theme/styles/mylegacy.css +37 -5
  1024. package/theme/styles/oneservice.css +80 -0
  1025. package/theme/styles/pa.css +33 -1
  1026. package/theme/styles/rbs.css +31 -0
  1027. package/theme/styles/sgw-digital-lobby.css +37 -5
  1028. package/theme/styles/smgs.css +519 -0
  1029. package/theme/styles/spf.css +146 -114
  1030. package/theme/styles/supportgowhere.css +33 -1
  1031. package/theme/theme-provider/hooks.d.ts +2 -1
  1032. package/theme/theme-provider/hooks.js +1 -1
  1033. package/theme/theme-provider/hooks.js.map +1 -1
  1034. package/theme/tokens/colour.d.ts +28 -0
  1035. package/theme/tokens/colour.js +1 -1
  1036. package/theme/tokens/colour.js.map +1 -1
  1037. package/theme/tokens/font.d.ts +4 -2
  1038. package/theme/tokens/font.js +1 -1
  1039. package/theme/tokens/font.js.map +1 -1
  1040. package/theme/types.d.ts +1 -1
  1041. package/theme/types.js +1 -1
  1042. package/theme/types.js.map +1 -1
  1043. package/theme/utils/css-variable.d.ts +0 -5
  1044. package/theme/utils/css-variable.js +1 -1
  1045. package/theme/utils/css-variable.js.map +1 -1
  1046. package/theme/utils/font.d.ts +2 -2
  1047. package/theme/utils/font.js +1 -1
  1048. package/theme/utils/font.js.map +1 -1
  1049. package/theme/utils/index.d.ts +1 -0
  1050. package/theme/utils/token-resolver.js +1 -1
  1051. package/theme/utils/token-resolver.js.map +1 -1
  1052. package/theme/utils/use-design-token-override.d.ts +11 -0
  1053. package/theme/utils/use-design-token-override.js +2 -0
  1054. package/theme/utils/use-design-token-override.js.map +1 -0
  1055. package/theme/utils/use-design-token.js +1 -1
  1056. package/theme/utils/use-design-token.js.map +1 -1
  1057. package/theme/utils/use-media-query.d.ts +1 -2
  1058. package/theme/utils/use-media-query.js +1 -1
  1059. package/theme/utils/use-media-query.js.map +1 -1
  1060. package/time-range-picker/combobox-picker/combobox-picker.js +1 -1
  1061. package/time-range-picker/combobox-picker/combobox-picker.js.map +1 -1
  1062. package/time-range-picker/combobox-picker/combobox-picker.styles_7i9vso.css +1 -1
  1063. package/time-range-picker/common.styles_1qwp4xa.css +2 -2
  1064. package/time-slot-bar/time-slot-bar.styles_wigbyd.css +2 -2
  1065. package/time-slot-bar-week/consts.d.ts +3 -0
  1066. package/time-slot-bar-week/consts.js +2 -0
  1067. package/time-slot-bar-week/consts.js.map +1 -0
  1068. package/time-slot-bar-week/time-slot-bar-week-days.js +1 -1
  1069. package/time-slot-bar-week/time-slot-bar-week-days.js.map +1 -1
  1070. package/time-slot-bar-week/time-slot-bar-week-days.styles.d.ts +25 -0
  1071. package/time-slot-bar-week/time-slot-bar-week-days.styles.js +2 -0
  1072. package/time-slot-bar-week/time-slot-bar-week-days.styles.js.map +1 -0
  1073. package/time-slot-bar-week/time-slot-bar-week-days.styles_evdvs9.css +17 -0
  1074. package/time-slot-bar-week/time-slot-bar-week.js +1 -1
  1075. package/time-slot-bar-week/time-slot-bar-week.js.map +1 -1
  1076. package/time-slot-bar-week/time-slot-bar-week.styles.d.ts +1 -0
  1077. package/time-slot-bar-week/time-slot-bar-week.styles.js +2 -0
  1078. package/time-slot-bar-week/time-slot-bar-week.styles.js.map +1 -0
  1079. package/time-slot-bar-week/time-slot-bar-week.styles_11ybf42.css +1 -0
  1080. package/time-slot-bar-week/time-slot-cell.d.ts +28 -0
  1081. package/time-slot-bar-week/time-slot-cell.js +2 -0
  1082. package/time-slot-bar-week/time-slot-cell.js.map +1 -0
  1083. package/time-slot-week-view/time-slot-week-days.js +1 -1
  1084. package/time-slot-week-view/time-slot-week-days.js.map +1 -1
  1085. package/time-slot-week-view/time-slot-week-days.styles.d.ts +14 -0
  1086. package/time-slot-week-view/time-slot-week-days.styles.js +2 -0
  1087. package/time-slot-week-view/time-slot-week-days.styles.js.map +1 -0
  1088. package/time-slot-week-view/time-slot-week-days.styles_1h21vyw.css +9 -0
  1089. package/time-slot-week-view/time-slot-week-view.js +1 -1
  1090. package/time-slot-week-view/time-slot-week-view.js.map +1 -1
  1091. package/time-slot-week-view/time-slot-week-view.styles.d.ts +1 -1
  1092. package/time-slot-week-view/time-slot-week-view.styles.js +1 -9
  1093. package/time-slot-week-view/time-slot-week-view.styles.js.map +1 -1
  1094. package/time-slot-week-view/time-slot-week-view.styles_gqgsw2.css +1 -0
  1095. package/timeline/timeline.styles.js +1 -1
  1096. package/timeline/{timeline.styles_1wcnzot.css → timeline.styles_1jxzik4.css} +2 -2
  1097. package/timepicker/timepicker.js +1 -1
  1098. package/timepicker/timepicker.js.map +1 -1
  1099. package/timepicker/timepicker.styles.js +1 -1
  1100. package/timepicker/timepicker.styles.js.map +1 -1
  1101. package/timepicker/timepicker.styles_1jm33yw.css +1 -0
  1102. package/timetable/timetable-header/timetable-header.styles_11gl1h4.css +2 -2
  1103. package/timetable/timetable-row/row-bar.styles_1x0vrsz.css +1 -1
  1104. package/timetable/timetable-row/row-cell.styles_y1dl5j.css +2 -2
  1105. package/timetable/timetable.styles_7rp8kz.css +2 -2
  1106. package/toast/toast.styles.js +1 -1
  1107. package/toast/toast.styles.js.map +1 -1
  1108. package/toast/{toast.styles_ngrlup.css → toast.styles_1e0l60w.css} +3 -3
  1109. package/toggle/toggle-icon.styles_ba71y.css +2 -2
  1110. package/toggle/toggle.styles.js +1 -1
  1111. package/toggle/toggle.styles.js.map +1 -1
  1112. package/{cjs/toggle/toggle.styles_1yzqsu.css → toggle/toggle.styles_1t5qrye.css} +7 -7
  1113. package/typography/index.js +1 -1
  1114. package/typography/typography-text.styles_1734x2k.css +2 -2
  1115. package/typography/typography.js +1 -1
  1116. package/typography/typography.js.map +1 -1
  1117. package/typography/typography.styles.d.ts +2 -0
  1118. package/typography/typography.styles.js +1 -1
  1119. package/typography/typography.styles.js.map +1 -1
  1120. package/typography/typography.styles_1wd82dn.css +11 -0
  1121. package/uneditable-section/index.d.ts +1 -1
  1122. package/uneditable-section/section-item.styles.js +1 -1
  1123. package/uneditable-section/section-item.styles.js.map +1 -1
  1124. package/uneditable-section/section-item.styles_mwx8ht.css +9 -0
  1125. package/uneditable-section/uneditable-section.d.ts +2 -1
  1126. package/uneditable-section/uneditable-section.js +1 -1
  1127. package/uneditable-section/uneditable-section.js.map +1 -1
  1128. package/uneditable-section/uneditable-section.styles_aj9zun.css +2 -2
  1129. package/unit-number/unit-number-input.styles_8yizj.css +2 -2
  1130. package/util/is-styled-components.d.ts +5 -0
  1131. package/util/is-styled-components.js +2 -0
  1132. package/util/is-styled-components.js.map +1 -0
  1133. package/util/styling-helper.js +1 -1
  1134. package/util/styling-helper.js.map +1 -1
  1135. package/badge/badge.styles_1yrxocm.css +0 -16
  1136. package/cjs/badge/badge.styles_1yrxocm.css +0 -16
  1137. package/cjs/date-navigator/date-navigator.styles_1cotsgz.css +0 -4
  1138. package/cjs/example/example.js +0 -2
  1139. package/cjs/example/example.js.map +0 -1
  1140. package/cjs/example/example_r47nvz.css +0 -1
  1141. package/cjs/example/index.js +0 -2
  1142. package/cjs/example/index.js.map +0 -1
  1143. package/cjs/file-upload/file-list-item/file-list-item-thumbnail.styles_1vrh1ve.css +0 -4
  1144. package/cjs/file-upload/file-list-item/file-list-item.styles_y7my2m.css +0 -14
  1145. package/cjs/file-upload/file-list.js +0 -2
  1146. package/cjs/file-upload/file-list.js.map +0 -1
  1147. package/cjs/file-upload/file-list.styles.js +0 -2
  1148. package/cjs/file-upload/file-list.styles.js.map +0 -1
  1149. package/cjs/file-upload/file-list.styles_16vplxk.css +0 -3
  1150. package/cjs/filter/filter-modal.styles_e0ev97.css +0 -8
  1151. package/cjs/filter/filter-sidebar.styles_cwvqql.css +0 -4
  1152. package/cjs/form/form-label.styles_rk98yd.css +0 -6
  1153. package/cjs/image-button/image-button.styles_qtt605.css +0 -5
  1154. package/cjs/input-group/input-group.styles_fpy81r.css +0 -3
  1155. package/cjs/input-textarea/textarea-counter.styles_adg5h1.css +0 -1
  1156. package/cjs/input-textarea/textarea.styles_g0zgyq.css +0 -5
  1157. package/cjs/language-switcher/dropdown-panel.styles_1z0n7qq.css +0 -4
  1158. package/cjs/language-switcher/dropdown-variant.styles_16c4wc1.css +0 -2
  1159. package/cjs/language-switcher/link-container-variant.styles_1blx9qm.css +0 -5
  1160. package/cjs/markup/markup.utils.js +0 -2
  1161. package/cjs/markup/markup.utils.js.map +0 -1
  1162. package/cjs/modal/modal-box.styles_1xrlxhd.css +0 -2
  1163. package/cjs/modal/modal.styles_1sav73f.css +0 -11
  1164. package/cjs/modal-v2/modal-v2.styles_1irpyi6.css +0 -3
  1165. package/cjs/otp-verification/contact-input-section-styles.js +0 -115
  1166. package/cjs/otp-verification/contact-input-section-styles.js.map +0 -1
  1167. package/cjs/otp-verification/otp-verification-styles.js +0 -6
  1168. package/cjs/otp-verification/otp-verification-styles.js.map +0 -1
  1169. package/cjs/otp-verification/verification-section-styles.js +0 -27
  1170. package/cjs/otp-verification/verification-section-styles.js.map +0 -1
  1171. package/cjs/schedule/schedule-header/schedule-header.style.js +0 -38
  1172. package/cjs/schedule/schedule-header/schedule-header.style.js.map +0 -1
  1173. package/cjs/schedule/schedule-week-view/slot-content.js +0 -2
  1174. package/cjs/schedule/schedule-week-view/slot-content.js.map +0 -1
  1175. package/cjs/schedule/schedule-week-view/slot-content.styles.js +0 -40
  1176. package/cjs/schedule/schedule-week-view/slot-content.styles.js.map +0 -1
  1177. package/cjs/select-histogram/select-histogram.styles_11916eo.css +0 -5
  1178. package/cjs/shared/dropdown-list/expandable-element.styles_5o9f9w.css +0 -6
  1179. package/cjs/shared/dropdown-wrapper/dropdown-wrapper.styles_v10jbi.css +0 -3
  1180. package/cjs/shared/internal-calendar/standard/standard-calendar-day-view.styles_1dbvup3.css +0 -3
  1181. package/cjs/shared/standalone-date-input/standalone-date-input.styles_1m0da43.css +0 -13
  1182. package/cjs/shared/styles/index.js +0 -2
  1183. package/cjs/shared/styles/index.js.map +0 -1
  1184. package/cjs/shared/time-slot/time-slot.styles_1r9na3f.css +0 -17
  1185. package/cjs/sidenav/sidenav-drawer-item.styles_yp8cga.css +0 -6
  1186. package/cjs/sidenav/sidenav-drawer-subitem.styles_1ylzfn5.css +0 -1
  1187. package/cjs/text-list/text-list.styles_1gohl3f.css +0 -16
  1188. package/cjs/time-slot-bar-week/time-slot-bar-week-days.style.js +0 -104
  1189. package/cjs/time-slot-bar-week/time-slot-bar-week-days.style.js.map +0 -1
  1190. package/cjs/time-slot-bar-week/time-slot-bar-week.style.js +0 -10
  1191. package/cjs/time-slot-bar-week/time-slot-bar-week.style.js.map +0 -1
  1192. package/cjs/time-slot-week-view/time-slot-week-days.style.js +0 -59
  1193. package/cjs/time-slot-week-view/time-slot-week-days.style.js.map +0 -1
  1194. package/cjs/timepicker/timepicker.styles_zmkhl8.css +0 -1
  1195. package/cjs/typography/typography.styles_1jqils.css +0 -9
  1196. package/cjs/uneditable-section/section-item.styles_1dfjzc4.css +0 -9
  1197. package/cjs/v3_theme/border/specs/default-border-set.js +0 -2
  1198. package/cjs/v3_theme/border/specs/default-border-set.js.map +0 -1
  1199. package/cjs/v3_theme/border/theme-helper.js +0 -2
  1200. package/cjs/v3_theme/border/theme-helper.js.map +0 -1
  1201. package/cjs/v3_theme/border-util/specs/default-border-util-set.js +0 -2
  1202. package/cjs/v3_theme/border-util/specs/default-border-util-set.js.map +0 -1
  1203. package/cjs/v3_theme/border-util/theme-helper.js +0 -2
  1204. package/cjs/v3_theme/border-util/theme-helper.js.map +0 -1
  1205. package/cjs/v3_theme/border-util/utils.js +0 -8
  1206. package/cjs/v3_theme/border-util/utils.js.map +0 -1
  1207. package/cjs/v3_theme/breakpoint/media-query-helper.js +0 -2
  1208. package/cjs/v3_theme/breakpoint/media-query-helper.js.map +0 -1
  1209. package/cjs/v3_theme/breakpoint/specs/default-breakpoint-set.js +0 -2
  1210. package/cjs/v3_theme/breakpoint/specs/default-breakpoint-set.js.map +0 -1
  1211. package/cjs/v3_theme/breakpoint/theme-helper.js +0 -2
  1212. package/cjs/v3_theme/breakpoint/theme-helper.js.map +0 -1
  1213. package/cjs/v3_theme/colour-primitive/specs/a11yplayground-colour-set.js +0 -2
  1214. package/cjs/v3_theme/colour-primitive/specs/a11yplayground-colour-set.js.map +0 -1
  1215. package/cjs/v3_theme/colour-primitive/specs/bookingsg-colour-set.js +0 -2
  1216. package/cjs/v3_theme/colour-primitive/specs/bookingsg-colour-set.js.map +0 -1
  1217. package/cjs/v3_theme/colour-primitive/specs/ccube-colour-set.js +0 -2
  1218. package/cjs/v3_theme/colour-primitive/specs/ccube-colour-set.js.map +0 -1
  1219. package/cjs/v3_theme/colour-primitive/specs/imda-colour-set.js +0 -2
  1220. package/cjs/v3_theme/colour-primitive/specs/imda-colour-set.js.map +0 -1
  1221. package/cjs/v3_theme/colour-primitive/specs/lifesg-colour-set.js +0 -2
  1222. package/cjs/v3_theme/colour-primitive/specs/lifesg-colour-set.js.map +0 -1
  1223. package/cjs/v3_theme/colour-primitive/specs/mylegacy-colour-set.js +0 -2
  1224. package/cjs/v3_theme/colour-primitive/specs/mylegacy-colour-set.js.map +0 -1
  1225. package/cjs/v3_theme/colour-primitive/specs/oneservice-colour-set.js +0 -2
  1226. package/cjs/v3_theme/colour-primitive/specs/oneservice-colour-set.js.map +0 -1
  1227. package/cjs/v3_theme/colour-primitive/specs/pa-colour-set.js +0 -2
  1228. package/cjs/v3_theme/colour-primitive/specs/pa-colour-set.js.map +0 -1
  1229. package/cjs/v3_theme/colour-primitive/specs/rbs-colour-set.js +0 -2
  1230. package/cjs/v3_theme/colour-primitive/specs/rbs-colour-set.js.map +0 -1
  1231. package/cjs/v3_theme/colour-primitive/specs/smgs-colour-set.js +0 -2
  1232. package/cjs/v3_theme/colour-primitive/specs/smgs-colour-set.js.map +0 -1
  1233. package/cjs/v3_theme/colour-primitive/specs/spf-colour-set.js +0 -2
  1234. package/cjs/v3_theme/colour-primitive/specs/spf-colour-set.js.map +0 -1
  1235. package/cjs/v3_theme/colour-primitive/specs/supportgowhere-colour-set.js +0 -2
  1236. package/cjs/v3_theme/colour-primitive/specs/supportgowhere-colour-set.js.map +0 -1
  1237. package/cjs/v3_theme/colour-primitive/theme-helper.js +0 -2
  1238. package/cjs/v3_theme/colour-primitive/theme-helper.js.map +0 -1
  1239. package/cjs/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.js +0 -2
  1240. package/cjs/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.js.map +0 -1
  1241. package/cjs/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.js +0 -2
  1242. package/cjs/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.js.map +0 -1
  1243. package/cjs/v3_theme/colour-semantic/specs/pa-semantic-tokens.js +0 -2
  1244. package/cjs/v3_theme/colour-semantic/specs/pa-semantic-tokens.js.map +0 -1
  1245. package/cjs/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.js +0 -2
  1246. package/cjs/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.js.map +0 -1
  1247. package/cjs/v3_theme/colour-semantic/theme-helper.js +0 -2
  1248. package/cjs/v3_theme/colour-semantic/theme-helper.js.map +0 -1
  1249. package/cjs/v3_theme/ds-theme-provider.js +0 -2
  1250. package/cjs/v3_theme/ds-theme-provider.js.map +0 -1
  1251. package/cjs/v3_theme/font/specs/a11yplayground-font-set.js +0 -2
  1252. package/cjs/v3_theme/font/specs/a11yplayground-font-set.js.map +0 -1
  1253. package/cjs/v3_theme/font/specs/bookingsg-font-set.js +0 -2
  1254. package/cjs/v3_theme/font/specs/bookingsg-font-set.js.map +0 -1
  1255. package/cjs/v3_theme/font/specs/default-font-set.js +0 -2
  1256. package/cjs/v3_theme/font/specs/default-font-set.js.map +0 -1
  1257. package/cjs/v3_theme/font/specs/imda-font-set.js +0 -2
  1258. package/cjs/v3_theme/font/specs/imda-font-set.js.map +0 -1
  1259. package/cjs/v3_theme/font/specs/oneservice-font-set.js +0 -2
  1260. package/cjs/v3_theme/font/specs/oneservice-font-set.js.map +0 -1
  1261. package/cjs/v3_theme/font/specs/pa-font-set.js +0 -2
  1262. package/cjs/v3_theme/font/specs/pa-font-set.js.map +0 -1
  1263. package/cjs/v3_theme/font/specs/smgs-font-set.js +0 -2
  1264. package/cjs/v3_theme/font/specs/smgs-font-set.js.map +0 -1
  1265. package/cjs/v3_theme/font/specs/spf-font-set.js +0 -2
  1266. package/cjs/v3_theme/font/specs/spf-font-set.js.map +0 -1
  1267. package/cjs/v3_theme/font/specs/supportgowhere-font-set.js +0 -2
  1268. package/cjs/v3_theme/font/specs/supportgowhere-font-set.js.map +0 -1
  1269. package/cjs/v3_theme/font/theme-helper.js +0 -2
  1270. package/cjs/v3_theme/font/theme-helper.js.map +0 -1
  1271. package/cjs/v3_theme/font/utils.js +0 -10
  1272. package/cjs/v3_theme/font/utils.js.map +0 -1
  1273. package/cjs/v3_theme/font-spec/specs/a11yplayground-font-spec-set.js +0 -2
  1274. package/cjs/v3_theme/font-spec/specs/a11yplayground-font-spec-set.js.map +0 -1
  1275. package/cjs/v3_theme/font-spec/specs/bookingsg-font-spec-set.js +0 -2
  1276. package/cjs/v3_theme/font-spec/specs/bookingsg-font-spec-set.js.map +0 -1
  1277. package/cjs/v3_theme/font-spec/specs/default-font-spec-set.js +0 -2
  1278. package/cjs/v3_theme/font-spec/specs/default-font-spec-set.js.map +0 -1
  1279. package/cjs/v3_theme/font-spec/specs/imda-font-spec-set.js +0 -2
  1280. package/cjs/v3_theme/font-spec/specs/imda-font-spec-set.js.map +0 -1
  1281. package/cjs/v3_theme/font-spec/specs/mylegacy-font-spec-set.js +0 -2
  1282. package/cjs/v3_theme/font-spec/specs/mylegacy-font-spec-set.js.map +0 -1
  1283. package/cjs/v3_theme/font-spec/specs/oneservice-font-spec-set.js +0 -2
  1284. package/cjs/v3_theme/font-spec/specs/oneservice-font-spec-set.js.map +0 -1
  1285. package/cjs/v3_theme/font-spec/specs/pa-font-spec-set.js +0 -2
  1286. package/cjs/v3_theme/font-spec/specs/pa-font-spec-set.js.map +0 -1
  1287. package/cjs/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.js +0 -2
  1288. package/cjs/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.js.map +0 -1
  1289. package/cjs/v3_theme/font-spec/specs/smgs-font-spec-set.js +0 -2
  1290. package/cjs/v3_theme/font-spec/specs/smgs-font-spec-set.js.map +0 -1
  1291. package/cjs/v3_theme/font-spec/specs/spf-font-spec-set.js +0 -2
  1292. package/cjs/v3_theme/font-spec/specs/spf-font-spec-set.js.map +0 -1
  1293. package/cjs/v3_theme/font-spec/specs/supportgowhere-font-spec-set.js +0 -2
  1294. package/cjs/v3_theme/font-spec/specs/supportgowhere-font-spec-set.js.map +0 -1
  1295. package/cjs/v3_theme/font-spec/theme-helper.js +0 -2
  1296. package/cjs/v3_theme/font-spec/theme-helper.js.map +0 -1
  1297. package/cjs/v3_theme/helpers.js +0 -2
  1298. package/cjs/v3_theme/helpers.js.map +0 -1
  1299. package/cjs/v3_theme/index.js +0 -2
  1300. package/cjs/v3_theme/index.js.map +0 -1
  1301. package/cjs/v3_theme/motion/specs/default-motion-set.js +0 -2
  1302. package/cjs/v3_theme/motion/specs/default-motion-set.js.map +0 -1
  1303. package/cjs/v3_theme/motion/theme-helper.js +0 -2
  1304. package/cjs/v3_theme/motion/theme-helper.js.map +0 -1
  1305. package/cjs/v3_theme/radius/specs/default-radius-set.js +0 -2
  1306. package/cjs/v3_theme/radius/specs/default-radius-set.js.map +0 -1
  1307. package/cjs/v3_theme/radius/specs/spf-radius-set.js +0 -2
  1308. package/cjs/v3_theme/radius/specs/spf-radius-set.js.map +0 -1
  1309. package/cjs/v3_theme/radius/theme-helper.js +0 -2
  1310. package/cjs/v3_theme/radius/theme-helper.js.map +0 -1
  1311. package/cjs/v3_theme/shadow/specs/default-shadow-set.js +0 -2
  1312. package/cjs/v3_theme/shadow/specs/default-shadow-set.js.map +0 -1
  1313. package/cjs/v3_theme/shadow/theme-helper.js +0 -2
  1314. package/cjs/v3_theme/shadow/theme-helper.js.map +0 -1
  1315. package/cjs/v3_theme/spacing/specs/default-spacing-set.js +0 -2
  1316. package/cjs/v3_theme/spacing/specs/default-spacing-set.js.map +0 -1
  1317. package/cjs/v3_theme/spacing/theme-helper.js +0 -2
  1318. package/cjs/v3_theme/spacing/theme-helper.js.map +0 -1
  1319. package/cjs/v3_theme/use-theme-mode.js +0 -2
  1320. package/cjs/v3_theme/use-theme-mode.js.map +0 -1
  1321. package/codemods/common.ts +0 -8
  1322. package/codemods/data.ts +0 -16
  1323. package/codemods/deprecate-v2-tokens/data.ts +0 -283
  1324. package/codemods/deprecate-v2-tokens/index.ts +0 -89
  1325. package/codemods/migrate-colour/data.ts +0 -95
  1326. package/codemods/migrate-colour/index.ts +0 -104
  1327. package/codemods/migrate-layout/data.ts +0 -5
  1328. package/codemods/migrate-layout/index.ts +0 -108
  1329. package/codemods/migrate-media-query/data.ts +0 -20
  1330. package/codemods/migrate-media-query/index.ts +0 -113
  1331. package/codemods/migrate-text/data.ts +0 -48
  1332. package/codemods/migrate-text/index.ts +0 -196
  1333. package/codemods/migrate-text-list/data.ts +0 -16
  1334. package/codemods/migrate-text-list/index.ts +0 -111
  1335. package/common.d.ts +0 -8
  1336. package/date-navigator/date-navigator.styles_1cotsgz.css +0 -4
  1337. package/deprecate-v2-tokens/data.d.ts +0 -8
  1338. package/example/example.d.ts +0 -2
  1339. package/example/example.js +0 -2
  1340. package/example/example.js.map +0 -1
  1341. package/example/example_r47nvz.css +0 -1
  1342. package/example/index.d.ts +0 -1
  1343. package/example/index.js +0 -2
  1344. package/example/index.js.map +0 -1
  1345. package/example/types.d.ts +0 -3
  1346. package/file-upload/file-list-item/file-list-item-thumbnail.styles_1vrh1ve.css +0 -4
  1347. package/file-upload/file-list-item/file-list-item.styles_y7my2m.css +0 -14
  1348. package/file-upload/file-list.js +0 -2
  1349. package/file-upload/file-list.js.map +0 -1
  1350. package/file-upload/file-list.styles.js +0 -2
  1351. package/file-upload/file-list.styles.js.map +0 -1
  1352. package/file-upload/file-list.styles_16vplxk.css +0 -3
  1353. package/filter/filter-modal.styles_e0ev97.css +0 -8
  1354. package/filter/filter-sidebar.styles_cwvqql.css +0 -4
  1355. package/form/form-label.styles_rk98yd.css +0 -6
  1356. package/image-button/image-button.styles_qtt605.css +0 -5
  1357. package/input-group/input-group.styles_fpy81r.css +0 -3
  1358. package/input-textarea/textarea-counter.styles_adg5h1.css +0 -1
  1359. package/input-textarea/textarea.styles_g0zgyq.css +0 -5
  1360. package/language-switcher/dropdown-panel.styles_1z0n7qq.css +0 -4
  1361. package/language-switcher/dropdown-variant.styles_16c4wc1.css +0 -2
  1362. package/language-switcher/link-container-variant.styles_1blx9qm.css +0 -5
  1363. package/markup/markup.utils.d.ts +0 -2
  1364. package/markup/markup.utils.js +0 -2
  1365. package/markup/markup.utils.js.map +0 -1
  1366. package/migrate-colour/data.d.ts +0 -270
  1367. package/migrate-colour/index.d.ts +0 -7
  1368. package/migrate-layout/data.d.ts +0 -5
  1369. package/migrate-layout/index.d.ts +0 -2
  1370. package/migrate-media-query/data.d.ts +0 -20
  1371. package/migrate-media-query/index.d.ts +0 -2
  1372. package/migrate-text/data.d.ts +0 -46
  1373. package/migrate-text/index.d.ts +0 -2
  1374. package/migrate-text-list/data.d.ts +0 -16
  1375. package/migrate-text-list/index.d.ts +0 -2
  1376. package/modal/modal-box.styles_1xrlxhd.css +0 -2
  1377. package/modal/modal.styles_1sav73f.css +0 -11
  1378. package/modal-v2/modal-v2.styles_1irpyi6.css +0 -3
  1379. package/otp-verification/contact-input-section-styles.d.ts +0 -14
  1380. package/otp-verification/contact-input-section-styles.js +0 -115
  1381. package/otp-verification/contact-input-section-styles.js.map +0 -1
  1382. package/otp-verification/otp-verification-styles.d.ts +0 -1
  1383. package/otp-verification/otp-verification-styles.js +0 -6
  1384. package/otp-verification/otp-verification-styles.js.map +0 -1
  1385. package/otp-verification/verification-section-styles.d.ts +0 -23
  1386. package/otp-verification/verification-section-styles.js +0 -27
  1387. package/otp-verification/verification-section-styles.js.map +0 -1
  1388. package/schedule/schedule-header/schedule-header.style.d.ts +0 -25
  1389. package/schedule/schedule-header/schedule-header.style.js +0 -38
  1390. package/schedule/schedule-header/schedule-header.style.js.map +0 -1
  1391. package/schedule/schedule-week-view/slot-content.d.ts +0 -8
  1392. package/schedule/schedule-week-view/slot-content.js +0 -2
  1393. package/schedule/schedule-week-view/slot-content.js.map +0 -1
  1394. package/schedule/schedule-week-view/slot-content.styles.d.ts +0 -27
  1395. package/schedule/schedule-week-view/slot-content.styles.js +0 -40
  1396. package/schedule/schedule-week-view/slot-content.styles.js.map +0 -1
  1397. package/schedule/shared/index.d.ts +0 -2
  1398. package/select-histogram/select-histogram.styles_11916eo.css +0 -5
  1399. package/shared/dropdown-list/expandable-element.styles_5o9f9w.css +0 -6
  1400. package/shared/dropdown-wrapper/dropdown-wrapper.styles_v10jbi.css +0 -3
  1401. package/shared/internal-calendar/standard/standard-calendar-day-view.styles_1dbvup3.css +0 -3
  1402. package/shared/standalone-date-input/standalone-date-input.styles_1m0da43.css +0 -13
  1403. package/shared/styles/index.js +0 -2
  1404. package/shared/styles/index.js.map +0 -1
  1405. package/shared/time-slot/time-slot.styles_1r9na3f.css +0 -17
  1406. package/sidenav/sidenav-drawer-item.styles_yp8cga.css +0 -6
  1407. package/sidenav/sidenav-drawer-subitem.styles_1ylzfn5.css +0 -1
  1408. package/text-list/text-list.styles_1gohl3f.css +0 -16
  1409. package/time-slot-bar-week/time-slot-bar-week-days.style.d.ts +0 -54
  1410. package/time-slot-bar-week/time-slot-bar-week-days.style.js +0 -104
  1411. package/time-slot-bar-week/time-slot-bar-week-days.style.js.map +0 -1
  1412. package/time-slot-bar-week/time-slot-bar-week.style.d.ts +0 -1
  1413. package/time-slot-bar-week/time-slot-bar-week.style.js +0 -10
  1414. package/time-slot-bar-week/time-slot-bar-week.style.js.map +0 -1
  1415. package/time-slot-week-view/time-slot-week-days.style.d.ts +0 -12
  1416. package/time-slot-week-view/time-slot-week-days.style.js +0 -59
  1417. package/time-slot-week-view/time-slot-week-days.style.js.map +0 -1
  1418. package/timepicker/timepicker.styles_zmkhl8.css +0 -1
  1419. package/typography/typography.styles_1jqils.css +0 -9
  1420. package/uneditable-section/section-item.styles_1dfjzc4.css +0 -9
  1421. package/v3_theme/border/specs/default-border-set.d.ts +0 -2
  1422. package/v3_theme/border/specs/default-border-set.js +0 -2
  1423. package/v3_theme/border/specs/default-border-set.js.map +0 -1
  1424. package/v3_theme/border/theme-helper.d.ts +0 -10
  1425. package/v3_theme/border/theme-helper.js +0 -2
  1426. package/v3_theme/border/theme-helper.js.map +0 -1
  1427. package/v3_theme/border/types.d.ts +0 -12
  1428. package/v3_theme/border-util/specs/default-border-util-set.d.ts +0 -2
  1429. package/v3_theme/border-util/specs/default-border-util-set.js +0 -2
  1430. package/v3_theme/border-util/specs/default-border-util-set.js.map +0 -1
  1431. package/v3_theme/border-util/theme-helper.d.ts +0 -8
  1432. package/v3_theme/border-util/theme-helper.js +0 -2
  1433. package/v3_theme/border-util/theme-helper.js.map +0 -1
  1434. package/v3_theme/border-util/types.d.ts +0 -19
  1435. package/v3_theme/border-util/utils.d.ts +0 -11
  1436. package/v3_theme/border-util/utils.js +0 -8
  1437. package/v3_theme/border-util/utils.js.map +0 -1
  1438. package/v3_theme/breakpoint/media-query-helper.d.ts +0 -9
  1439. package/v3_theme/breakpoint/media-query-helper.js +0 -2
  1440. package/v3_theme/breakpoint/media-query-helper.js.map +0 -1
  1441. package/v3_theme/breakpoint/specs/default-breakpoint-set.d.ts +0 -2
  1442. package/v3_theme/breakpoint/specs/default-breakpoint-set.js +0 -2
  1443. package/v3_theme/breakpoint/specs/default-breakpoint-set.js.map +0 -1
  1444. package/v3_theme/breakpoint/theme-helper.d.ts +0 -39
  1445. package/v3_theme/breakpoint/theme-helper.js +0 -2
  1446. package/v3_theme/breakpoint/theme-helper.js.map +0 -1
  1447. package/v3_theme/breakpoint/types.d.ts +0 -41
  1448. package/v3_theme/colour-primitive/specs/a11yplayground-colour-set.d.ts +0 -2
  1449. package/v3_theme/colour-primitive/specs/a11yplayground-colour-set.js +0 -2
  1450. package/v3_theme/colour-primitive/specs/a11yplayground-colour-set.js.map +0 -1
  1451. package/v3_theme/colour-primitive/specs/bookingsg-colour-set.d.ts +0 -2
  1452. package/v3_theme/colour-primitive/specs/bookingsg-colour-set.js +0 -2
  1453. package/v3_theme/colour-primitive/specs/bookingsg-colour-set.js.map +0 -1
  1454. package/v3_theme/colour-primitive/specs/ccube-colour-set.d.ts +0 -2
  1455. package/v3_theme/colour-primitive/specs/ccube-colour-set.js +0 -2
  1456. package/v3_theme/colour-primitive/specs/ccube-colour-set.js.map +0 -1
  1457. package/v3_theme/colour-primitive/specs/imda-colour-set.d.ts +0 -2
  1458. package/v3_theme/colour-primitive/specs/imda-colour-set.js +0 -2
  1459. package/v3_theme/colour-primitive/specs/imda-colour-set.js.map +0 -1
  1460. package/v3_theme/colour-primitive/specs/lifesg-colour-set.d.ts +0 -2
  1461. package/v3_theme/colour-primitive/specs/lifesg-colour-set.js +0 -2
  1462. package/v3_theme/colour-primitive/specs/lifesg-colour-set.js.map +0 -1
  1463. package/v3_theme/colour-primitive/specs/mylegacy-colour-set.d.ts +0 -2
  1464. package/v3_theme/colour-primitive/specs/mylegacy-colour-set.js +0 -2
  1465. package/v3_theme/colour-primitive/specs/mylegacy-colour-set.js.map +0 -1
  1466. package/v3_theme/colour-primitive/specs/oneservice-colour-set.d.ts +0 -2
  1467. package/v3_theme/colour-primitive/specs/oneservice-colour-set.js +0 -2
  1468. package/v3_theme/colour-primitive/specs/oneservice-colour-set.js.map +0 -1
  1469. package/v3_theme/colour-primitive/specs/pa-colour-set.d.ts +0 -2
  1470. package/v3_theme/colour-primitive/specs/pa-colour-set.js +0 -2
  1471. package/v3_theme/colour-primitive/specs/pa-colour-set.js.map +0 -1
  1472. package/v3_theme/colour-primitive/specs/rbs-colour-set.d.ts +0 -2
  1473. package/v3_theme/colour-primitive/specs/rbs-colour-set.js +0 -2
  1474. package/v3_theme/colour-primitive/specs/rbs-colour-set.js.map +0 -1
  1475. package/v3_theme/colour-primitive/specs/smgs-colour-set.d.ts +0 -2
  1476. package/v3_theme/colour-primitive/specs/smgs-colour-set.js +0 -2
  1477. package/v3_theme/colour-primitive/specs/smgs-colour-set.js.map +0 -1
  1478. package/v3_theme/colour-primitive/specs/spf-colour-set.d.ts +0 -2
  1479. package/v3_theme/colour-primitive/specs/spf-colour-set.js +0 -2
  1480. package/v3_theme/colour-primitive/specs/spf-colour-set.js.map +0 -1
  1481. package/v3_theme/colour-primitive/specs/supportgowhere-colour-set.d.ts +0 -2
  1482. package/v3_theme/colour-primitive/specs/supportgowhere-colour-set.js +0 -2
  1483. package/v3_theme/colour-primitive/specs/supportgowhere-colour-set.js.map +0 -1
  1484. package/v3_theme/colour-primitive/theme-helper.d.ts +0 -10
  1485. package/v3_theme/colour-primitive/theme-helper.js +0 -2
  1486. package/v3_theme/colour-primitive/theme-helper.js.map +0 -1
  1487. package/v3_theme/colour-primitive/types.d.ts +0 -98
  1488. package/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.d.ts +0 -3
  1489. package/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.js +0 -2
  1490. package/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.js.map +0 -1
  1491. package/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.d.ts +0 -3
  1492. package/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.js +0 -2
  1493. package/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.js.map +0 -1
  1494. package/v3_theme/colour-semantic/specs/pa-semantic-tokens.d.ts +0 -2
  1495. package/v3_theme/colour-semantic/specs/pa-semantic-tokens.js +0 -2
  1496. package/v3_theme/colour-semantic/specs/pa-semantic-tokens.js.map +0 -1
  1497. package/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.d.ts +0 -3
  1498. package/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.js +0 -2
  1499. package/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.js.map +0 -1
  1500. package/v3_theme/colour-semantic/theme-helper.d.ts +0 -10
  1501. package/v3_theme/colour-semantic/theme-helper.js +0 -2
  1502. package/v3_theme/colour-semantic/theme-helper.js.map +0 -1
  1503. package/v3_theme/colour-semantic/types.d.ts +0 -123
  1504. package/v3_theme/components/specs/a11yplayground-component-token-set.d.ts +0 -2
  1505. package/v3_theme/components/specs/default-component-token-set.d.ts +0 -2
  1506. package/v3_theme/components/specs/lifesg-component-token-set.d.ts +0 -2
  1507. package/v3_theme/components/specs/pa-component-token-set.d.ts +0 -2
  1508. package/v3_theme/components/specs/smgs-component-token-set.d.ts +0 -2
  1509. package/v3_theme/components/specs/spf-component-token-set.d.ts +0 -2
  1510. package/v3_theme/components/theme-helper.d.ts +0 -17
  1511. package/v3_theme/components/types.d.ts +0 -44
  1512. package/v3_theme/ds-theme-provider.d.ts +0 -2
  1513. package/v3_theme/ds-theme-provider.js +0 -2
  1514. package/v3_theme/ds-theme-provider.js.map +0 -1
  1515. package/v3_theme/font/specs/a11yplayground-font-set.d.ts +0 -2
  1516. package/v3_theme/font/specs/a11yplayground-font-set.js +0 -2
  1517. package/v3_theme/font/specs/a11yplayground-font-set.js.map +0 -1
  1518. package/v3_theme/font/specs/bookingsg-font-set.d.ts +0 -2
  1519. package/v3_theme/font/specs/bookingsg-font-set.js +0 -2
  1520. package/v3_theme/font/specs/bookingsg-font-set.js.map +0 -1
  1521. package/v3_theme/font/specs/default-font-set.d.ts +0 -2
  1522. package/v3_theme/font/specs/default-font-set.js +0 -2
  1523. package/v3_theme/font/specs/default-font-set.js.map +0 -1
  1524. package/v3_theme/font/specs/imda-font-set.d.ts +0 -2
  1525. package/v3_theme/font/specs/imda-font-set.js +0 -2
  1526. package/v3_theme/font/specs/imda-font-set.js.map +0 -1
  1527. package/v3_theme/font/specs/oneservice-font-set.d.ts +0 -2
  1528. package/v3_theme/font/specs/oneservice-font-set.js +0 -2
  1529. package/v3_theme/font/specs/oneservice-font-set.js.map +0 -1
  1530. package/v3_theme/font/specs/pa-font-set.d.ts +0 -2
  1531. package/v3_theme/font/specs/pa-font-set.js +0 -2
  1532. package/v3_theme/font/specs/pa-font-set.js.map +0 -1
  1533. package/v3_theme/font/specs/smgs-font-set.d.ts +0 -2
  1534. package/v3_theme/font/specs/smgs-font-set.js +0 -2
  1535. package/v3_theme/font/specs/smgs-font-set.js.map +0 -1
  1536. package/v3_theme/font/specs/spf-font-set.d.ts +0 -2
  1537. package/v3_theme/font/specs/spf-font-set.js +0 -2
  1538. package/v3_theme/font/specs/spf-font-set.js.map +0 -1
  1539. package/v3_theme/font/specs/supportgowhere-font-set.d.ts +0 -2
  1540. package/v3_theme/font/specs/supportgowhere-font-set.js +0 -2
  1541. package/v3_theme/font/specs/supportgowhere-font-set.js.map +0 -1
  1542. package/v3_theme/font/theme-helper.d.ts +0 -7
  1543. package/v3_theme/font/theme-helper.js +0 -2
  1544. package/v3_theme/font/theme-helper.js.map +0 -1
  1545. package/v3_theme/font/types.d.ts +0 -54
  1546. package/v3_theme/font/utils.d.ts +0 -4
  1547. package/v3_theme/font/utils.js +0 -10
  1548. package/v3_theme/font/utils.js.map +0 -1
  1549. package/v3_theme/font-spec/specs/a11yplayground-font-spec-set.d.ts +0 -2
  1550. package/v3_theme/font-spec/specs/a11yplayground-font-spec-set.js +0 -2
  1551. package/v3_theme/font-spec/specs/a11yplayground-font-spec-set.js.map +0 -1
  1552. package/v3_theme/font-spec/specs/bookingsg-font-spec-set.d.ts +0 -2
  1553. package/v3_theme/font-spec/specs/bookingsg-font-spec-set.js +0 -2
  1554. package/v3_theme/font-spec/specs/bookingsg-font-spec-set.js.map +0 -1
  1555. package/v3_theme/font-spec/specs/default-font-spec-set.d.ts +0 -2
  1556. package/v3_theme/font-spec/specs/default-font-spec-set.js +0 -2
  1557. package/v3_theme/font-spec/specs/default-font-spec-set.js.map +0 -1
  1558. package/v3_theme/font-spec/specs/imda-font-spec-set.d.ts +0 -2
  1559. package/v3_theme/font-spec/specs/imda-font-spec-set.js +0 -2
  1560. package/v3_theme/font-spec/specs/imda-font-spec-set.js.map +0 -1
  1561. package/v3_theme/font-spec/specs/mylegacy-font-spec-set.d.ts +0 -2
  1562. package/v3_theme/font-spec/specs/mylegacy-font-spec-set.js +0 -2
  1563. package/v3_theme/font-spec/specs/mylegacy-font-spec-set.js.map +0 -1
  1564. package/v3_theme/font-spec/specs/oneservice-font-spec-set.d.ts +0 -2
  1565. package/v3_theme/font-spec/specs/oneservice-font-spec-set.js +0 -2
  1566. package/v3_theme/font-spec/specs/oneservice-font-spec-set.js.map +0 -1
  1567. package/v3_theme/font-spec/specs/pa-font-spec-set.d.ts +0 -2
  1568. package/v3_theme/font-spec/specs/pa-font-spec-set.js +0 -2
  1569. package/v3_theme/font-spec/specs/pa-font-spec-set.js.map +0 -1
  1570. package/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.d.ts +0 -2
  1571. package/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.js +0 -2
  1572. package/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.js.map +0 -1
  1573. package/v3_theme/font-spec/specs/smgs-font-spec-set.d.ts +0 -2
  1574. package/v3_theme/font-spec/specs/smgs-font-spec-set.js +0 -2
  1575. package/v3_theme/font-spec/specs/smgs-font-spec-set.js.map +0 -1
  1576. package/v3_theme/font-spec/specs/spf-font-spec-set.d.ts +0 -2
  1577. package/v3_theme/font-spec/specs/spf-font-spec-set.js +0 -2
  1578. package/v3_theme/font-spec/specs/spf-font-spec-set.js.map +0 -1
  1579. package/v3_theme/font-spec/specs/supportgowhere-font-spec-set.d.ts +0 -2
  1580. package/v3_theme/font-spec/specs/supportgowhere-font-spec-set.js +0 -2
  1581. package/v3_theme/font-spec/specs/supportgowhere-font-spec-set.js.map +0 -1
  1582. package/v3_theme/font-spec/theme-helper.d.ts +0 -6
  1583. package/v3_theme/font-spec/theme-helper.js +0 -2
  1584. package/v3_theme/font-spec/theme-helper.js.map +0 -1
  1585. package/v3_theme/font-spec/types.d.ts +0 -53
  1586. package/v3_theme/helpers.d.ts +0 -7
  1587. package/v3_theme/helpers.js +0 -2
  1588. package/v3_theme/helpers.js.map +0 -1
  1589. package/v3_theme/index.d.ts +0 -696
  1590. package/v3_theme/index.js +0 -2
  1591. package/v3_theme/index.js.map +0 -1
  1592. package/v3_theme/internal-types.d.ts +0 -4
  1593. package/v3_theme/motion/specs/default-motion-set.d.ts +0 -2
  1594. package/v3_theme/motion/specs/default-motion-set.js +0 -2
  1595. package/v3_theme/motion/specs/default-motion-set.js.map +0 -1
  1596. package/v3_theme/motion/theme-helper.d.ts +0 -6
  1597. package/v3_theme/motion/theme-helper.js +0 -2
  1598. package/v3_theme/motion/theme-helper.js.map +0 -1
  1599. package/v3_theme/motion/types.d.ts +0 -17
  1600. package/v3_theme/radius/specs/default-radius-set.d.ts +0 -2
  1601. package/v3_theme/radius/specs/default-radius-set.js +0 -2
  1602. package/v3_theme/radius/specs/default-radius-set.js.map +0 -1
  1603. package/v3_theme/radius/specs/spf-radius-set.d.ts +0 -2
  1604. package/v3_theme/radius/specs/spf-radius-set.js +0 -2
  1605. package/v3_theme/radius/specs/spf-radius-set.js.map +0 -1
  1606. package/v3_theme/radius/theme-helper.d.ts +0 -6
  1607. package/v3_theme/radius/theme-helper.js +0 -2
  1608. package/v3_theme/radius/theme-helper.js.map +0 -1
  1609. package/v3_theme/radius/types.d.ts +0 -13
  1610. package/v3_theme/shadow/specs/default-shadow-set.d.ts +0 -2
  1611. package/v3_theme/shadow/specs/default-shadow-set.js +0 -2
  1612. package/v3_theme/shadow/specs/default-shadow-set.js.map +0 -1
  1613. package/v3_theme/shadow/theme-helper.d.ts +0 -7
  1614. package/v3_theme/shadow/theme-helper.js +0 -2
  1615. package/v3_theme/shadow/theme-helper.js.map +0 -1
  1616. package/v3_theme/shadow/types.d.ts +0 -21
  1617. package/v3_theme/spacing/specs/default-spacing-set.d.ts +0 -2
  1618. package/v3_theme/spacing/specs/default-spacing-set.js +0 -2
  1619. package/v3_theme/spacing/specs/default-spacing-set.js.map +0 -1
  1620. package/v3_theme/spacing/theme-helper.d.ts +0 -6
  1621. package/v3_theme/spacing/theme-helper.js +0 -2
  1622. package/v3_theme/spacing/theme-helper.js.map +0 -1
  1623. package/v3_theme/spacing/types.d.ts +0 -26
  1624. package/v3_theme/types.d.ts +0 -78
  1625. package/v3_theme/use-theme-mode.d.ts +0 -4
  1626. package/v3_theme/use-theme-mode.js +0 -2
  1627. package/v3_theme/use-theme-mode.js.map +0 -1
  1628. /package/file-upload/{file-list.styles.d.ts → file-list/file-list.styles.d.ts} +0 -0
  1629. /package/{deprecate-v2-tokens → migrate-popover}/index.d.ts +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_commonjsHelpers.js"),r=require("./_baseGet.js")._baseGet;var t=function(e,t,s){var o=null==e?void 0:r(e,t);return void 0===o?s:o},s=e.getDefaultExportFromCjs(t);exports.default=s,exports.get_1=t;
1
+ "use strict";var e=require("./_baseGet.js")._baseGet;var r=function(r,t,s){var a=null==r?void 0:e(r,t);return void 0===a?s:a};exports.get_1=r;
2
2
  //# sourceMappingURL=get.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.js","sources":["../../../../node_modules/lodash/get.js"],"sourcesContent":["var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n"],"names":["baseGet","require$$0","get_1","object","path","defaultValue","result","undefined"],"mappings":"wHAAIA,2BAAUC,SAgCd,IAAAC,EALA,SAAaC,EAAQC,EAAMC,GACzB,IAAIC,EAAmB,MAAVH,OAAiBI,EAAYP,EAAQG,EAAQC,GAC1D,YAAkBG,IAAXD,EAAuBD,EAAeC,CAC/C","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"get.js","sources":["../../../../node_modules/lodash/get.js"],"sourcesContent":["var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n"],"names":["baseGet","require$$0","get_1","object","path","defaultValue","result","undefined"],"mappings":"iBAAIA,2BAAUC,SAgCd,IAAAC,EALA,SAAaC,EAAQC,EAAMC,GACzB,IAAIC,EAAmB,MAAVH,OAAiBI,EAAYP,EAAQG,EAAQC,GAC1D,YAAkBG,IAAXD,EAAuBD,EAAeC,CAC/C","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- .sk1h6mz{width:2.75rem;height:2.75rem;color:var(--fds-colour-icon-primary);}
1
+ @layer fds{.sk1h6mz{width:2.75rem;height:2.75rem;color:var(--fds-colour-icon-primary);}
2
2
  .lg72zyg{margin:0 var(--fds-spacing-8);line-height:0;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;cursor:pointer;}
3
3
  .c1w9ub4z{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;margin:var(--fds-spacing-8) var(--fds-spacing-16);border-radius:var(--fds-radius-sm);outline:none;}
4
- .chyiool{outline:var(--fds-border-width-020) var(--fds-border-style-solid) var(--fds-colour-icon-primary);outline-offset:2px;}
4
+ .chyiool{outline:var(--fds-border-width-020) var(--fds-border-style-solid) var(--fds-colour-icon-primary);outline-offset:2px;}}
@@ -1 +1 @@
1
- {"version":3,"file":"feedback-rating.js","sources":["../../../src/feedback-rating/feedback-rating.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport { Button } from \"../button\";\nimport { VisuallyHidden } from \"../shared/accessibility\";\nimport { Typography } from \"../typography\";\nimport { useId } from \"../util\";\nimport * as styles from \"./feedback-rating.styles\";\nimport { FeedbackRatingData } from \"./feedback-rating-data\";\nimport { FeedbackRatingStarsContainer } from \"./feedback-rating-stars-container\";\nimport type { FeedbackRatingProps } from \"./types\";\n\nexport const FeedbackRating = (props: FeedbackRatingProps): JSX.Element => {\n // =========================================================================\n // CONST, STATE, REF\n // =========================================================================\n const {\n imgSrc,\n buttonLabel,\n description,\n rating,\n onRatingChange,\n onSubmit,\n className,\n id,\n \"data-testid\": testId,\n ...otherProps\n } = props;\n const [hasImageError, setHasImageError] = useState(false);\n const imgRef = useRef<HTMLImageElement>(null);\n const internalId = useId();\n const descriptionId = `${internalId}-description`;\n const bannerSrc = imgSrc ?? FeedbackRatingData.IMG;\n const componentDescription =\n description ?? FeedbackRatingData.DEFAULT_DESCRIPTION;\n const resolvedButtonLabel =\n buttonLabel ?? FeedbackRatingData.DEFAULT_BUTTON_LABEL;\n const isSubmitDisabled = !rating;\n\n useEffect(() => {\n setHasImageError(false);\n\n if (imgRef.current?.complete && imgRef.current.naturalWidth === 0) {\n setHasImageError(true);\n }\n }, [bannerSrc]);\n\n const handleImgError = () => {\n setHasImageError(true);\n };\n\n return (\n <div\n role=\"group\"\n aria-labelledby={internalId}\n className={clsx(styles.mainContainer, className)}\n id={id}\n data-testid={testId}\n {...otherProps}\n >\n {bannerSrc && !hasImageError && (\n <img\n ref={imgRef}\n className={styles.image}\n data-testid=\"feedback-banner-image\"\n src={bannerSrc}\n alt=\"\"\n onError={handleImgError}\n />\n )}\n <div className={styles.childContainer}>\n <Typography.HeadingSM as=\"h2\" id={internalId} weight=\"semibold\">\n {componentDescription}\n </Typography.HeadingSM>\n <FeedbackRatingStarsContainer\n ariaLabelledBy={internalId}\n ariaDescribedBy={descriptionId}\n rating={rating}\n onRatingChange={onRatingChange}\n />\n <VisuallyHidden id={descriptionId}>\n Minimum, 1 star. Maximum, 5 stars.\n </VisuallyHidden>\n <Button\n className={styles.submitButton}\n disabled={isSubmitDisabled}\n focusableWhenDisabled\n onClick={onSubmit}\n type=\"button\"\n >\n {resolvedButtonLabel}\n </Button>\n </div>\n </div>\n );\n};\n"],"names":["props","imgSrc","buttonLabel","description","rating","onRatingChange","onSubmit","className","id","testId","otherProps","__rest","hasImageError","setHasImageError","useState","imgRef","useRef","internalId","useId","descriptionId","bannerSrc","FeedbackRatingData","IMG","componentDescription","DEFAULT_DESCRIPTION","resolvedButtonLabel","DEFAULT_BUTTON_LABEL","isSubmitDisabled","useEffect","_a","current","complete","naturalWidth","_jsxs","Object","assign","role","clsx","styles.mainContainer","children","_jsx","ref","styles.image","src","alt","onError","styles.childContainer","Typography","HeadingSM","as","weight","FeedbackRatingStarsContainer","ariaLabelledBy","ariaDescribedBy","VisuallyHidden","Button","styles.submitButton","disabled","focusableWhenDisabled","onClick","type"],"mappings":"qqBAY+BA,IAI3B,MAAMC,OACFA,EAAMC,YACNA,EAAWC,YACXA,EAAWC,OACXA,EAAMC,eACNA,EAAcC,SACdA,EAAQC,UACRA,EAASC,GACTA,EACA,cAAeC,GAEfT,EADGU,EAAUC,EAAAA,OACbX,EAXE,CAAA,SAAA,cAAA,cAAA,SAAA,iBAAA,WAAA,YAAA,KAAA,iBAYCY,EAAeC,GAAoBC,EAAAA,UAAS,GAC7CC,EAASC,EAAAA,OAAyB,MAClCC,EAAaC,EAAAA,QACbC,EAAgB,GAAGF,gBACnBG,EAAYnB,QAAAA,EAAUoB,EAAAA,mBAAmBC,IACzCC,EACFpB,QAAAA,EAAekB,EAAAA,mBAAmBG,oBAChCC,EACFvB,QAAAA,EAAemB,EAAAA,mBAAmBK,qBAChCC,GAAoBvB,EAE1BwB,EAAAA,WAAU,WACNf,GAAiB,YAEbgB,EAAAd,EAAOe,8BAASC,WAA4C,IAAhChB,EAAOe,QAAQE,cAC3CnB,GAAiB,EACrB,GACD,CAACO,IAMJ,OACIa,OAAA,MAAAC,OAAAC,OAAA,CACIC,KAAK,QAAO,kBACKnB,EACjBV,UAAW8B,EAAAA,QAAKC,gBAAsB/B,GACtCC,GAAIA,gBACSC,GACTC,EAAU,CAAA6B,SAAA,CAEbnB,IAAcR,GACX4B,EAAAA,IAAA,MAAA,CACIC,IAAK1B,EACLR,UAAWmC,QAAY,cACX,wBACZC,IAAKvB,EACLwB,IAAI,GACJC,QApBO,KACnBhC,GAAiB,EAAK,IAsBlBoB,OAAA,MAAA,CAAK1B,UAAWuC,EAAAA,eAAqBP,SAAA,CACjCC,EAAAA,IAACO,EAAAA,WAAWC,UAAS,CAACC,GAAG,KAAKzC,GAAIS,EAAYiC,OAAO,WAAUX,SAC1DhB,IAELiB,MAACW,EAAAA,6BAA4B,CACzBC,eAAgBnC,EAChBoC,gBAAiBlC,EACjBf,OAAQA,EACRC,eAAgBA,IAEpBmC,EAAAA,IAACc,EAAAA,eAAc,CAAC9C,GAAIW,EAAaoB,SAAA,uCAGjCC,EAAAA,IAACe,EAAAA,OAAM,CACHhD,UAAWiD,eACXC,SAAU9B,EACV+B,uBAAqB,EACrBC,QAASrD,EACTsD,KAAK,kBAEJnC,UAGP"}
1
+ {"version":3,"file":"feedback-rating.js","sources":["../../../src/feedback-rating/feedback-rating.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport { Button } from \"../button\";\nimport { VisuallyHidden } from \"../shared/accessibility\";\nimport { Typography } from \"../typography\";\nimport { useId } from \"../util\";\nimport * as styles from \"./feedback-rating.styles\";\nimport { FeedbackRatingData } from \"./feedback-rating-data\";\nimport { FeedbackRatingStarsContainer } from \"./feedback-rating-stars-container\";\nimport type { FeedbackRatingProps } from \"./types\";\n\n/**\n * A star-rating widget for collecting user feedback.\n *\n * Use `FeedbackRating` to prompt users for a 1–5 star rating.\n * The submit button remains disabled until a star is selected.\n */\nexport const FeedbackRating = (props: FeedbackRatingProps): JSX.Element => {\n // =========================================================================\n // CONST, STATE, REF\n // =========================================================================\n const {\n imgSrc,\n buttonLabel,\n description,\n rating,\n onRatingChange,\n onSubmit,\n className,\n id,\n \"data-testid\": testId,\n ...otherProps\n } = props;\n const [hasImageError, setHasImageError] = useState(false);\n const imgRef = useRef<HTMLImageElement>(null);\n const internalId = useId();\n const descriptionId = `${internalId}-description`;\n const bannerSrc = imgSrc ?? FeedbackRatingData.IMG;\n const componentDescription =\n description ?? FeedbackRatingData.DEFAULT_DESCRIPTION;\n const resolvedButtonLabel =\n buttonLabel ?? FeedbackRatingData.DEFAULT_BUTTON_LABEL;\n const isSubmitDisabled = !rating;\n\n useEffect(() => {\n setHasImageError(false);\n\n if (imgRef.current?.complete && imgRef.current.naturalWidth === 0) {\n setHasImageError(true);\n }\n }, [bannerSrc]);\n\n const handleImgError = () => {\n setHasImageError(true);\n };\n\n return (\n <div\n role=\"group\"\n aria-labelledby={internalId}\n className={clsx(styles.mainContainer, className)}\n id={id}\n data-testid={testId}\n {...otherProps}\n >\n {bannerSrc && !hasImageError && (\n <img\n ref={imgRef}\n className={styles.image}\n data-testid=\"feedback-banner-image\"\n src={bannerSrc}\n alt=\"\"\n onError={handleImgError}\n />\n )}\n <div className={styles.childContainer}>\n <Typography.HeadingSM as=\"h2\" id={internalId} weight=\"semibold\">\n {componentDescription}\n </Typography.HeadingSM>\n <FeedbackRatingStarsContainer\n ariaLabelledBy={internalId}\n ariaDescribedBy={descriptionId}\n rating={rating}\n onRatingChange={onRatingChange}\n />\n <VisuallyHidden id={descriptionId}>\n Minimum, 1 star. Maximum, 5 stars.\n </VisuallyHidden>\n <Button\n className={styles.submitButton}\n disabled={isSubmitDisabled}\n focusableWhenDisabled\n onClick={onSubmit}\n type=\"button\"\n >\n {resolvedButtonLabel}\n </Button>\n </div>\n </div>\n );\n};\n"],"names":["props","imgSrc","buttonLabel","description","rating","onRatingChange","onSubmit","className","id","testId","otherProps","__rest","hasImageError","setHasImageError","useState","imgRef","useRef","internalId","useId","descriptionId","bannerSrc","FeedbackRatingData","IMG","componentDescription","DEFAULT_DESCRIPTION","resolvedButtonLabel","DEFAULT_BUTTON_LABEL","isSubmitDisabled","useEffect","_a","current","complete","naturalWidth","_jsxs","Object","assign","role","clsx","styles.mainContainer","children","_jsx","ref","styles.image","src","alt","onError","styles.childContainer","Typography","HeadingSM","as","weight","FeedbackRatingStarsContainer","ariaLabelledBy","ariaDescribedBy","VisuallyHidden","Button","styles.submitButton","disabled","focusableWhenDisabled","onClick","type"],"mappings":"qqBAkB+BA,IAI3B,MAAMC,OACFA,EAAMC,YACNA,EAAWC,YACXA,EAAWC,OACXA,EAAMC,eACNA,EAAcC,SACdA,EAAQC,UACRA,EAASC,GACTA,EACA,cAAeC,GAEfT,EADGU,EAAUC,EAAAA,OACbX,EAXE,CAAA,SAAA,cAAA,cAAA,SAAA,iBAAA,WAAA,YAAA,KAAA,iBAYCY,EAAeC,GAAoBC,EAAAA,UAAS,GAC7CC,EAASC,EAAAA,OAAyB,MAClCC,EAAaC,EAAAA,QACbC,EAAgB,GAAGF,gBACnBG,EAAYnB,QAAAA,EAAUoB,EAAAA,mBAAmBC,IACzCC,EACFpB,QAAAA,EAAekB,EAAAA,mBAAmBG,oBAChCC,EACFvB,QAAAA,EAAemB,EAAAA,mBAAmBK,qBAChCC,GAAoBvB,EAE1BwB,EAAAA,WAAU,WACNf,GAAiB,YAEbgB,EAAAd,EAAOe,8BAASC,WAA4C,IAAhChB,EAAOe,QAAQE,cAC3CnB,GAAiB,EACrB,GACD,CAACO,IAMJ,OACIa,OAAA,MAAAC,OAAAC,OAAA,CACIC,KAAK,QAAO,kBACKnB,EACjBV,UAAW8B,EAAAA,QAAKC,gBAAsB/B,GACtCC,GAAIA,gBACSC,GACTC,EAAU,CAAA6B,SAAA,CAEbnB,IAAcR,GACX4B,EAAAA,IAAA,MAAA,CACIC,IAAK1B,EACLR,UAAWmC,QAAY,cACX,wBACZC,IAAKvB,EACLwB,IAAI,GACJC,QApBO,KACnBhC,GAAiB,EAAK,IAsBlBoB,OAAA,MAAA,CAAK1B,UAAWuC,EAAAA,eAAqBP,SAAA,CACjCC,EAAAA,IAACO,EAAAA,WAAWC,UAAS,CAACC,GAAG,KAAKzC,GAAIS,EAAYiC,OAAO,WAAUX,SAC1DhB,IAELiB,MAACW,EAAAA,6BAA4B,CACzBC,eAAgBnC,EAChBoC,gBAAiBlC,EACjBf,OAAQA,EACRC,eAAgBA,IAEpBmC,EAAAA,IAACc,EAAAA,eAAc,CAAC9C,GAAIW,EAAaoB,SAAA,uCAGjCC,EAAAA,IAACe,EAAAA,OAAM,CACHhD,UAAWiD,eACXC,SAAU9B,EACV+B,uBAAqB,EACrBC,QAASrD,EACTsD,KAAK,kBAEJnC,UAGP"}
@@ -1,4 +1,4 @@
1
- .i1kvxt6e{width:9.5rem;height:9.5rem;margin:0 1rem;}:where(body.fds-breakpoint-md-max) .i1kvxt6e{width:5.5rem;height:5.5rem;margin:0;}
1
+ @layer fds{.i1kvxt6e{width:9.5rem;height:9.5rem;margin:0 1rem;}:where(body.fds-breakpoint-md-max) .i1kvxt6e{width:5.5rem;height:5.5rem;margin:0;}
2
2
  .m12gz8bh{border-top:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);border-bottom:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;width:100%;padding:1rem 3rem;}:where(body.fds-breakpoint-md-max) .m12gz8bh{padding:2rem 0 1rem;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
3
3
  .c2of6av{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:1rem 1rem;width:100%;text-align:center;}:where(body.fds-breakpoint-md-max) .c2of6av{margin:1rem 1.25rem;max-width:calc(100% - 2.5rem);}
4
- .sopm87z{margin-top:1rem;width:100%;}
4
+ .sopm87z{margin-top:1rem;width:100%;}}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../_virtual/_tslib.js"),i=require("react/jsx-runtime"),r=require("./file-download.styles.js"),t=require("./file-list-card/file-list-card.js");exports.FileDownload=({id:s,fileItems:d,title:l,description:n,onDownload:o,"data-testid":a,className:c,styleType:x="bordered"})=>{const j=i=>e.__awaiter(void 0,void 0,void 0,(function*(){o&&(yield o(i))}));return i.jsxs(r.Container,{id:s?`${s}-file-download`:"file-download",className:c,"data-testid":a,$border:"bordered"===x,children:[(l||n)&&i.jsxs(r.TextContainer,{children:[l?"string"==typeof l?i.jsx(r.Title,{children:l}):i.jsx(r.TitleContainer,{baseTextSize:"heading-xs",children:l}):null,n?"string"==typeof n?i.jsx(r.Description,{children:n}):i.jsx(r.DescriptionContainer,{baseTextSize:"body-md",children:n}):null]}),i.jsx(r.ListWrapper,{children:d&&d.length>0&&d.map((e=>i.jsx(t.FileListCard,{fileItem:e,onDownload:j},e.id)))})]})};
1
+ "use strict";var e=require("../_virtual/_tslib.js"),r=require("react/jsx-runtime"),i=require("clsx"),s=require("../dashed-border/dashed-border.js"),t=require("../markup/markup.js");require("../theme/theme-provider/index.js"),require("react"),require("../theme/theme-provider/context.js");var a=require("../theme/tokens/border.js"),d=require("../theme/tokens/colour.js");require("../theme/tokens/font.js"),require("../theme/tokens/media-query.js");var l=require("../theme/tokens/radius.js");require("../util/calendar-helper.js"),require("../external/dayjs/dayjs.min.js"),require("../util/simple-id-generator.js"),require("../util/string-helper.js"),require("@react-aria/live-announcer"),require("../theme/utils/use-media-query.js");var n=require("./file-download.styles.js"),o=require("./file-list-card/file-list-card.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(i);exports.FileDownload=({id:i,fileItems:u,title:m,description:j,onDownload:h,"data-testid":q,className:p,styleType:x="bordered"})=>{const f=r=>e.__awaiter(void 0,void 0,void 0,(function*(){h&&(yield h(r))})),v="bordered"===x;return r.jsxs(s.DashedBorder,{id:i?`${i}-file-download`:"file-download",className:c.default(n.container,v&&n.containerBordered,p),"data-testid":q,enabled:v,thickness:a.Border["width-040"],radius:l.Radius.sm,colour:d.Colour.border,children:[(m||j)&&r.jsxs("div",{className:n.textContainer,children:[m?"string"==typeof m?r.jsx("p",{className:n.title,children:m}):r.jsx(t.Markup,{className:n.titleContainer,baseTextSize:"heading-xs",children:m}):null,j?"string"==typeof j?r.jsx("p",{className:n.description,children:j}):r.jsx(t.Markup,{className:n.descriptionContainer,baseTextSize:"body-md",children:j}):null]}),r.jsx("ul",{className:n.listWrapper,children:u&&u.length>0&&u.map((e=>r.jsx(o.FileListCard,{fileItem:e,onDownload:f},e.id)))})]})};
2
2
  //# sourceMappingURL=file-download.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-download.js","sources":["../../../src/file-download/file-download.tsx"],"sourcesContent":["import {\n Container,\n Description,\n DescriptionContainer,\n ListWrapper,\n TextContainer,\n Title,\n TitleContainer,\n} from \"./file-download.styles\";\nimport { FileListCard } from \"./file-list-card\";\nimport type { FileDownloadProps, FileItemDownloadProps } from \"./types\";\n\nexport const FileDownload = ({\n id,\n fileItems,\n title,\n description,\n onDownload,\n \"data-testid\": testId,\n className,\n styleType = \"bordered\",\n}: FileDownloadProps) => {\n // =========================================================================\n // EVENT HANDLERS\n // =========================================================================\n const handleDownloadItem = async (item: FileItemDownloadProps) => {\n if (onDownload) {\n await onDownload(item);\n }\n };\n\n // =========================================================================\n // RENDER FUNCTIONS\n // =========================================================================\n const renderTitle = () => {\n if (!title) {\n return null;\n }\n\n if (typeof title === \"string\") {\n return <Title>{title}</Title>;\n }\n\n return (\n <TitleContainer baseTextSize=\"heading-xs\">{title}</TitleContainer>\n );\n };\n\n const renderDescription = () => {\n if (!description) {\n return null;\n }\n\n if (typeof description === \"string\") {\n return <Description>{description}</Description>;\n }\n\n return (\n <DescriptionContainer baseTextSize=\"body-md\">\n {description}\n </DescriptionContainer>\n );\n };\n\n return (\n <Container\n id={id ? `${id}-file-download` : \"file-download\"}\n className={className}\n data-testid={testId}\n $border={styleType === \"bordered\"}\n >\n {(title || description) && (\n <TextContainer>\n {renderTitle()}\n {renderDescription()}\n </TextContainer>\n )}\n <ListWrapper>\n {fileItems &&\n fileItems.length > 0 &&\n fileItems.map((item) => (\n <FileListCard\n key={item.id}\n fileItem={item}\n onDownload={handleDownloadItem}\n />\n ))}\n </ListWrapper>\n </Container>\n );\n};\n"],"names":["id","fileItems","title","description","onDownload","testId","className","styleType","handleDownloadItem","item","__awaiter","_jsxs","Container","$border","TextContainer","_jsx","Title","children","TitleContainer","baseTextSize","Description","DescriptionContainer","ListWrapper","length","map","FileListCard","fileItem"],"mappings":"+LAY4B,EACxBA,KACAC,YACAC,QACAC,cACAC,aACA,cAAeC,EACfC,YACAC,YAAY,eAKZ,MAAMC,EAA4BC,GAA+BC,EAAAA,eAAA,OAAA,OAAA,GAAA,YACzDN,UACMA,EAAWK,GAEzB,IAmCA,OACIE,EAAAA,KAACC,EAAAA,UAAS,CACNZ,GAAIA,EAAK,GAAGA,kBAAqB,gBACjCM,UAAWA,EAAS,cACPD,EAAMQ,QACI,aAAdN,aAEPL,GAASC,IACPQ,EAAAA,KAACG,EAAAA,yBArCJZ,EAIgB,iBAAVA,EACAa,EAAAA,IAACC,EAAAA,MAAK,CAAAC,SAAEf,IAIfa,EAAAA,IAACG,EAAAA,eAAc,CAACC,aAAa,aAAYF,SAAEf,IARpC,KAaNC,EAIsB,iBAAhBA,EACAY,EAAAA,IAACK,EAAAA,YAAW,CAAAH,SAAEd,IAIrBY,EAAAA,IAACM,EAAAA,qBAAoB,CAACF,aAAa,UAASF,SACvCd,IATE,QA2BPY,EAAAA,IAACO,EAAAA,YAAW,CAAAL,SACPhB,GACGA,EAAUsB,OAAS,GACnBtB,EAAUuB,KAAKf,GACXM,EAAAA,IAACU,EAAAA,aAAY,CAETC,SAAUjB,EACVL,WAAYI,GAFPC,EAAKT,UAMlB"}
1
+ {"version":3,"file":"file-download.js","sources":["../../../src/file-download/file-download.tsx"],"sourcesContent":["import clsx from \"clsx\";\n\nimport { DashedBorder } from \"../dashed-border\";\nimport { Markup } from \"../markup\";\nimport { Border, Colour, Radius } from \"../theme\";\nimport * as styles from \"./file-download.styles\";\nimport { FileListCard } from \"./file-list-card\";\nimport type { FileDownloadProps, FileItemDownloadProps } from \"./types\";\n\n/**\n * Displays a list of downloadable files, optionally grouped under a title and description.\n *\n * Use `FileDownload` to present one or more files that users can download individually.\n * Each file item renders as a card with file metadata and a download trigger.\n */\nexport const FileDownload = ({\n id,\n fileItems,\n title,\n description,\n onDownload,\n \"data-testid\": testId,\n className,\n styleType = \"bordered\",\n}: FileDownloadProps) => {\n // =========================================================================\n // EVENT HANDLERS\n // =========================================================================\n const handleDownloadItem = async (item: FileItemDownloadProps) => {\n if (onDownload) {\n await onDownload(item);\n }\n };\n\n // =========================================================================\n // RENDER FUNCTIONS\n // =========================================================================\n const renderTitle = () => {\n if (!title) {\n return null;\n }\n\n if (typeof title === \"string\") {\n return <p className={styles.title}>{title}</p>;\n }\n\n return (\n <Markup className={styles.titleContainer} baseTextSize=\"heading-xs\">\n {title}\n </Markup>\n );\n };\n\n const renderDescription = () => {\n if (!description) {\n return null;\n }\n\n if (typeof description === \"string\") {\n return <p className={styles.description}>{description}</p>;\n }\n\n return (\n <Markup\n className={styles.descriptionContainer}\n baseTextSize=\"body-md\"\n >\n {description}\n </Markup>\n );\n };\n\n const isBordered = styleType === \"bordered\";\n\n return (\n <DashedBorder\n id={id ? `${id}-file-download` : \"file-download\"}\n className={clsx(\n styles.container,\n isBordered && styles.containerBordered,\n className\n )}\n data-testid={testId}\n enabled={isBordered}\n thickness={Border[\"width-040\"]}\n radius={Radius[\"sm\"]}\n colour={Colour[\"border\"]}\n >\n {(title || description) && (\n <div className={styles.textContainer}>\n {renderTitle()}\n {renderDescription()}\n </div>\n )}\n <ul className={styles.listWrapper}>\n {fileItems &&\n fileItems.length > 0 &&\n fileItems.map((item) => (\n <FileListCard\n key={item.id}\n fileItem={item}\n onDownload={handleDownloadItem}\n />\n ))}\n </ul>\n </DashedBorder>\n );\n};\n"],"names":["id","fileItems","title","description","onDownload","testId","className","styleType","handleDownloadItem","item","__awaiter","isBordered","_jsxs","DashedBorder","clsx","styles.container","styles.containerBordered","enabled","thickness","Border","radius","Radius","colour","Colour","children","styles.textContainer","_jsx","styles.title","Markup","styles.titleContainer","baseTextSize","styles.description","styles.descriptionContainer","styles.listWrapper","length","map","FileListCard","fileItem"],"mappings":"85BAe4B,EACxBA,KACAC,YACAC,QACAC,cACAC,aACA,cAAeC,EACfC,YACAC,YAAY,eAKZ,MAAMC,EAA4BC,GAA+BC,EAAAA,eAAA,OAAA,OAAA,GAAA,YACzDN,UACMA,EAAWK,GAEzB,IAwCME,EAA2B,aAAdJ,EAEnB,OACIK,OAACC,EAAAA,cACGb,GAAIA,EAAK,GAAGA,kBAAqB,gBACjCM,UAAWQ,EAAAA,QACPC,EAAAA,UACAJ,GAAcK,oBACdV,GACH,cACYD,EACbY,QAASN,EACTO,UAAWC,EAAAA,OAAO,aAClBC,OAAQC,EAAAA,OAAW,GACnBC,OAAQC,EAAAA,OAAe,OAACC,SAAA,EAEtBtB,GAASC,IACPS,EAAAA,YAAKN,UAAWmB,EAAAA,wBAnDnBvB,EAIgB,iBAAVA,EACAwB,EAAAA,IAAA,IAAA,CAAGpB,UAAWqB,EAAAA,MAAYH,SAAGtB,IAIpCwB,EAAAA,IAACE,SAAM,CAACtB,UAAWuB,EAAAA,eAAuBC,aAAa,sBAClD5B,IATE,KAeNC,EAIsB,iBAAhBA,EACAuB,EAAAA,IAAA,IAAA,CAAGpB,UAAWyB,EAAAA,YAAkBP,SAAGrB,IAI1CuB,EAAAA,IAACE,SAAM,CACHtB,UAAW0B,EAAAA,qBACXF,aAAa,mBAEZ3B,IAZE,QAuCPuB,EAAAA,UAAIpB,UAAW2B,EAAAA,qBACVhC,GACGA,EAAUiC,OAAS,GACnBjC,EAAUkC,KAAK1B,GACXiB,EAAAA,IAACU,EAAAA,aAAY,CAETC,SAAU5B,EACVL,WAAYI,GAFPC,EAAKT,UAMf"}
@@ -1,33 +1,2 @@
1
- "use strict";var e=require("styled-components"),t=require("../markup/markup.js"),r=require("../v3_theme/index.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(e);const a=i.default.div`
2
- position: relative;
3
- display: flex;
4
- flex-direction: column;
5
-
6
- ${t=>{if(t.$border)return e.css`
7
- ${r.V3_Border.Util["dashed-default"]({radius:r.V3_Radius.sm,thickness:r.V3_Border["width-040"],colour:r.V3_Colour.border})}
8
- padding: ${r.V3_Spacing["spacing-32"]};
9
-
10
- ${r.V3_MediaQuery.MaxWidth.sm} {
11
- padding: ${r.V3_Spacing["spacing-32"]}
12
- ${r.V3_Spacing["spacing-20"]};
13
- }
14
- `}}
15
- `,n=i.default.div`
16
- display: flex;
17
- flex-direction: column;
18
- margin-bottom: ${r.V3_Spacing["spacing-32"]};
19
- `,l=i.default.p`
20
- ${r.V3_Font["heading-xs-regular"]}
21
- color: ${r.V3_Colour.text};
22
- margin-bottom: ${r.V3_Spacing["spacing-8"]};
23
- `,s=i.default(t.Markup)`
24
- color: ${r.V3_Colour.text};
25
- `,u=i.default.p`
26
- ${r.V3_Font["body-md-regular"]}
27
- color: ${r.V3_Colour["text-subtler"]};
28
- `,d=i.default(t.Markup)`
29
- color: ${r.V3_Colour["text-subtler"]};
30
- `,p=i.default.ul`
31
- list-style-type: none;
32
- `;exports.Container=a,exports.Description=u,exports.DescriptionContainer=d,exports.ListWrapper=p,exports.TextContainer=n,exports.Title=l,exports.TitleContainer=s;
1
+ "use strict";require("./file-download.styles_iggk8q.css");exports.container="cjjybuq",exports.containerBordered="c18jz6ma",exports.description="ds68p96",exports.descriptionContainer="djmu0xz",exports.listWrapper="l12vx512",exports.textContainer="t1wreszr",exports.title="t1gdh0v3",exports.titleContainer="t15acma1";
33
2
  //# sourceMappingURL=file-download.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-download.styles.js","sources":["../../../src/file-download/file-download.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { Markup } from \"../markup\";\nimport {\n V3_Border,\n V3_Colour,\n V3_Font,\n V3_MediaQuery,\n V3_Radius,\n V3_Spacing,\n} from \"../v3_theme\";\n\n// =============================================================================\n// STYLING\n// =============================================================================\n\ninterface StyleProps {\n $border?: boolean | undefined;\n}\n\nexport const Container = styled.div<StyleProps>`\n position: relative;\n display: flex;\n flex-direction: column;\n\n ${(props) => {\n if (props.$border) {\n return css`\n ${V3_Border.Util[\"dashed-default\"]({\n radius: V3_Radius[\"sm\"],\n thickness: V3_Border[\"width-040\"],\n colour: V3_Colour[\"border\"],\n })}\n padding: ${V3_Spacing[\"spacing-32\"]};\n\n ${V3_MediaQuery.MaxWidth.sm} {\n padding: ${V3_Spacing[\"spacing-32\"]}\n ${V3_Spacing[\"spacing-20\"]};\n }\n `;\n }\n }}\n`;\n\nexport const TextContainer = styled.div`\n display: flex;\n flex-direction: column;\n margin-bottom: ${V3_Spacing[\"spacing-32\"]};\n`;\n\nexport const Title = styled.p`\n ${V3_Font[\"heading-xs-regular\"]}\n color: ${V3_Colour[\"text\"]};\n margin-bottom: ${V3_Spacing[\"spacing-8\"]};\n`;\n\nexport const TitleContainer = styled(Markup)`\n color: ${V3_Colour[\"text\"]};\n`;\n\nexport const Description = styled.p`\n ${V3_Font[\"body-md-regular\"]}\n color: ${V3_Colour[\"text-subtler\"]};\n`;\n\nexport const DescriptionContainer = styled(Markup)`\n color: ${V3_Colour[\"text-subtler\"]};\n`;\n\nexport const ListWrapper = styled.ul`\n list-style-type: none;\n`;\n"],"names":["Container","styled","div","props","$border","css","V3_Border","Util","radius","V3_Radius","thickness","colour","V3_Colour","V3_Spacing","V3_MediaQuery","MaxWidth","sm","TextContainer","Title","p","V3_Font","TitleContainer","Markup","Description","DescriptionContainer","ListWrapper","ul"],"mappings":"sMAoBO,MAAMA,EAAYC,EAAAA,QAAOC,GAAe;;;;;MAKxCC,IACC,GAAIA,EAAMC,QACN,OAAOC,KAAG;kBACJC,EAAAA,UAAUC,KAAK,kBAAkB,CAC/BC,OAAQC,EAAAA,UAAc,GACtBC,UAAWJ,EAAAA,UAAU,aACrBK,OAAQC,EAAAA,UAAkB;2BAEnBC,EAAAA,WAAW;;kBAEpBC,EAAAA,cAAcC,SAASC;+BACVH,EAAAA,WAAW;0BAChBA,EAAAA,WAAW;;aAG7B;EAIKI,EAAgBhB,EAAAA,QAAOC,GAAG;;;qBAGlBW,EAAAA,WAAW;EAGnBK,EAAQjB,EAAAA,QAAOkB,CAAC;MACvBC,EAAAA,QAAQ;aACDR,EAAAA,UAAgB;qBACRC,EAAAA,WAAW;EAGnBQ,EAAiBpB,EAAAA,QAAOqB,EAAAA,OAAO;aAC/BV,EAAAA,UAAgB;EAGhBW,EAActB,EAAAA,QAAOkB,CAAC;MAC7BC,EAAAA,QAAQ;aACDR,EAAAA,UAAU;EAGVY,EAAuBvB,EAAAA,QAAOqB,EAAAA,OAAO;aACrCV,EAAAA,UAAU;EAGVa,EAAcxB,EAAAA,QAAOyB,EAAE;;"}
1
+ {"version":3,"file":"file-download.styles.js","sources":["../../../src/file-download/file-download.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { Colour, Font, MediaQuery, Spacing } from \"../theme\";\n\n// =============================================================================\n// STYLING\n// =============================================================================\n\nexport const container = css`\n position: relative;\n display: flex;\n flex-direction: column;\n`;\n\nexport const containerBordered = css`\n padding: ${Spacing[\"spacing-32\"]};\n\n ${MediaQuery.MaxWidth.sm} {\n padding: ${Spacing[\"spacing-32\"]} ${Spacing[\"spacing-20\"]};\n }\n`;\n\nexport const textContainer = css`\n display: flex;\n flex-direction: column;\n margin-bottom: ${Spacing[\"spacing-32\"]};\n`;\n\nexport const title = css`\n ${Font[\"heading-xs-regular\"]}\n color: ${Colour[\"text\"]};\n margin-bottom: ${Spacing[\"spacing-8\"]};\n`;\n\nexport const titleContainer = css`\n color: ${Colour[\"text\"]};\n`;\n\nexport const description = css`\n ${Font[\"body-md-regular\"]}\n color: ${Colour[\"text-subtler\"]};\n`;\n\nexport const descriptionContainer = css`\n color: ${Colour[\"text-subtler\"]};\n`;\n\nexport const listWrapper = css`\n list-style-type: none;\n`;\n"],"names":[],"mappings":"yGAQsB,oCAMQ,+BAwBN,uCAKS,8BAIT,iCAzBE,yBAMR,kCAMS"}
@@ -0,0 +1,8 @@
1
+ @layer fds{.cjjybuq{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
2
+ .c18jz6ma{padding:var(--fds-spacing-32);}:where(body.fds-breakpoint-sm-max) .c18jz6ma{padding:var(--fds-spacing-32) var(--fds-spacing-20);}
3
+ .t1wreszr{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-bottom:var(--fds-spacing-32);}
4
+ .t1gdh0v3{font-family:var(--fds-font-family-heading);font-variant:var(--fds-font-variant);font-size:var(--fds-font-heading-size-xs);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-heading-lh-xs);letter-spacing:var(--fds-font-heading-ls-xs);color:var(--fds-colour-text);margin-bottom:var(--fds-spacing-8);}
5
+ .t15acma1{color:var(--fds-colour-text);}
6
+ .ds68p96{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);color:var(--fds-colour-text-subtler);}
7
+ .djmu0xz{color:var(--fds-colour-text-subtler);}
8
+ .l12vx512{list-style-type:none;}}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),t=require("@lifesg/react-icons"),i=require("react"),n=require("../../file-upload/helper.js");require("../../theme/theme-provider/index.js"),require("../../theme/theme-provider/context.js"),require("../../theme/tokens/border.js"),require("../../theme/tokens/colour.js"),require("../../theme/tokens/font.js"),require("../../theme/tokens/media-query.js"),require("../../util/calendar-helper.js"),require("../../external/dayjs/dayjs.min.js"),require("../../util/simple-id-generator.js");var s=require("../../util/string-helper.js");require("@react-aria/live-announcer");var a=require("../../theme/utils/use-media-query.js"),l=require("./file-list-card.styles.js");const{ActionContainer:o,Box:u,ContentSection:d,DesktopErrorMessage:c,ErrorIcon:h,ExtendedNameSection:j,FileSizeSection:m,IconButton:x,Item:g,ItemNameText:q,MobileErrorMessage:p,NameSection:y,Thumbnail:f,ThumbnailContainer:w}=l,S=i.memo((({fileItem:l,onDownload:S})=>{const{id:b,name:v,size:T,errorMessage:F,thumbnailImageDataUrl:I,truncateText:k=!0,ready:C=!0}=l,[M,$]=i.useState(!1),[D,E]=i.useState(!1),z=n.FileUploadHelper.formatFileSizeDisplay(T),_=a.useMaxWidthMediaQuery("sm"),[B,N]=i.useState(),H=i.useRef(null);i.useEffect((()=>{H.current&&N(_?L(v):v)}),[v,_]);const L=e=>{if(!k)return e;const r=H&&H.current?H.current.getBoundingClientRect().width:0;return s.StringHelper.truncateTwoLines(e,r,16,1.5)},R=()=>r.jsxs(r.Fragment,{children:[r.jsx(q,{ref:H,children:B}),D&&r.jsxs(c,{children:[r.jsx(h,{}),F||"Something went wrong"]})]});return r.jsx(g,{"data-testid":b,children:r.jsxs(u,{onClick:()=>e.__awaiter(void 0,void 0,void 0,(function*(){if(C&&!M){$(!0);try{E(!1),yield S(l)}catch(e){E(!0)}finally{$(!1)}}})),$error:D,children:[(()=>{let e;var t;return I?(t=I,e=r.jsxs(r.Fragment,{children:[r.jsx(w,{"data-testid":`${b}-thumbnail`,children:r.jsx(f,{"data-testid":`${b}-thumbnail-image`,src:t})}),r.jsxs(j,{children:[r.jsx(y,{children:R()}),r.jsx(m,{children:z||"-"}),D&&r.jsxs(p,{children:[r.jsx(h,{}),F||"Something went wrong"]})]})]})):e=r.jsxs(r.Fragment,{children:[r.jsx(y,{children:R()}),r.jsx(m,{children:z||"-"}),D&&r.jsxs(p,{children:[r.jsx(h,{}),F||"Something went wrong"]})]}),r.jsx(d,{$hasThumbnail:!!I,children:e})})(),r.jsx(o,{children:r.jsx(x,{"data-testid":`${b}-download-button`,type:"button",styleType:"light",sizeType:"small","aria-label":`download ${v}`,loading:M||!C,icon:r.jsx(t.DownloadIcon,{})})})]})})}));exports.FileListCard=S;
1
+ "use strict";var e=require("../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),i=require("@lifesg/react-icons"),t=require("@lifesg/react-icons/exclamation-circle-fill"),a=require("clsx"),s=require("react"),n=require("../../button/button.js"),l=require("../../file-upload/helper.js"),c=require("../../shared/image-with-fallback/image-with-fallback.js");require("../../theme/theme-provider/index.js"),require("../../theme/theme-provider/context.js"),require("../../theme/tokens/border.js"),require("../../theme/tokens/colour.js"),require("../../theme/tokens/font.js"),require("../../theme/tokens/media-query.js"),require("../../util/calendar-helper.js"),require("../../external/dayjs/dayjs.min.js"),require("../../util/simple-id-generator.js");var o=require("../../util/string-helper.js");require("@react-aria/live-announcer");var d=require("../../theme/utils/use-media-query.js"),u=require("./file-list-card.styles.js");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=m(a);const j=s.memo((({fileItem:a,onDownload:m})=>{const{id:j,name:x,size:g,errorMessage:f,thumbnailImageDataUrl:v,truncateText:q=!0,ready:b=!0}=a,[N,p]=s.useState(!1),[S,y]=s.useState(!1),w=l.FileUploadHelper.formatFileSizeDisplay(g),F=d.useMaxWidthMediaQuery("sm"),[I,k]=s.useState(),C=s.useRef(null);s.useEffect((()=>{C.current&&k(F?E(x):x)}),[x,F]);const E=e=>{if(!q)return e;const r=C&&C.current?C.current.getBoundingClientRect().width:0;return o.StringHelper.truncateTwoLines(e,r,16,1.5)},M=()=>r.jsxs(r.Fragment,{children:[r.jsx("div",{className:u.itemNameText,ref:C,children:I}),S&&r.jsxs("div",{className:u.desktopErrorMessage,children:[r.jsx(t.ExclamationCircleFillIcon,{className:u.errorIcon}),f||"Something went wrong"]})]});return r.jsx("li",{className:u.item,"data-testid":j,children:r.jsxs("div",{className:h.default(u.box,S&&u.boxError),onClick:()=>e.__awaiter(void 0,void 0,void 0,(function*(){if(b&&!N){p(!0);try{y(!1),yield m(a)}catch(e){y(!0)}finally{p(!1)}}})),children:[(()=>{let e;var i;return v?(i=v,e=r.jsxs(r.Fragment,{children:[r.jsx("div",{className:u.thumbnailContainer,"data-testid":`${j}-thumbnail`,children:r.jsx(c.ImageWithFallback,{className:u.thumbnail,"data-testid":`${j}-thumbnail-image`,src:i})}),r.jsxs("div",{className:u.extendedNameSection,children:[r.jsx("div",{className:u.nameSection,children:M()}),r.jsx("div",{className:u.fileSizeSection,children:w||"-"}),S&&r.jsxs("div",{className:u.mobileErrorMessage,children:[r.jsx(t.ExclamationCircleFillIcon,{className:u.errorIcon}),f||"Something went wrong"]})]})]})):e=r.jsxs(r.Fragment,{children:[r.jsx("div",{className:u.nameSection,children:M()}),r.jsx("div",{className:u.fileSizeSection,children:w||"-"}),S&&r.jsxs("div",{className:u.mobileErrorMessage,children:[r.jsx(t.ExclamationCircleFillIcon,{className:u.errorIcon}),f||"Something went wrong"]})]}),r.jsx("div",{className:h.default(u.contentSection,!!v&&u.contentSectionHasThumbnail),children:e})})(),r.jsx("div",{className:u.actionContainer,children:r.jsx(n.Button,{className:u.iconButton,"data-testid":`${j}-download-button`,type:"button",styleType:"light",sizeType:"small","aria-label":`download ${x}`,loading:N||!b,icon:r.jsx(i.DownloadIcon,{})})})]})})}));exports.FileListCard=j;
2
2
  //# sourceMappingURL=file-list-card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-list-card.js","sources":["../../../../src/file-download/file-list-card/file-list-card.tsx"],"sourcesContent":["import { DownloadIcon } from \"@lifesg/react-icons\";\nimport { memo, useEffect, useRef, useState } from \"react\";\n\nimport { FileUploadHelper } from \"../../file-upload/helper\";\nimport { useMaxWidthMediaQuery } from \"../../theme\";\nimport { StringHelper } from \"../../util\";\nimport * as styles from \"./file-list-card.styles\";\nimport type { FileListItemProps } from \"./types\";\n\nconst {\n ActionContainer,\n Box,\n ContentSection,\n DesktopErrorMessage,\n ErrorIcon,\n ExtendedNameSection,\n FileSizeSection,\n IconButton,\n Item,\n ItemNameText,\n MobileErrorMessage,\n NameSection,\n Thumbnail,\n ThumbnailContainer,\n} = styles;\n\nconst Component = ({ fileItem, onDownload }: FileListItemProps) => {\n // =========================================================================\n // CONST, STATE, REFS\n // =========================================================================\n const {\n id,\n name,\n size,\n errorMessage,\n thumbnailImageDataUrl,\n truncateText = true,\n ready = true,\n } = fileItem;\n\n // Local variables\n const [isLoading, setIsLoading] = useState<boolean>(false);\n const [isError, setIsError] = useState<boolean>(false);\n const fileSize = FileUploadHelper.formatFileSizeDisplay(size);\n const isMobile = useMaxWidthMediaQuery(\"sm\");\n const [displayText, setDisplayText] = useState<string>();\n const containerRef = useRef<HTMLDivElement>(null);\n\n // =========================================================================\n // EFFECTS\n // =========================================================================\n useEffect(() => {\n if (!containerRef.current) return;\n if (isMobile) {\n setDisplayText(getTruncatedText(name));\n } else {\n setDisplayText(name);\n }\n }, [name, isMobile]);\n\n // =========================================================================\n // EVENT HANDLERS\n // =========================================================================\n const handleDownload = async () => {\n if (!ready || isLoading) {\n return;\n }\n\n setIsLoading(true);\n try {\n setIsError(false);\n await onDownload(fileItem);\n } catch {\n setIsError(true);\n } finally {\n setIsLoading(false);\n }\n };\n\n // =========================================================================\n // HELPER FUNCTIONS\n // =========================================================================\n const getTruncatedText = (value: string) => {\n if (!truncateText) return value;\n\n const widthOfElement =\n containerRef && containerRef.current\n ? containerRef.current.getBoundingClientRect().width\n : 0;\n\n return StringHelper.truncateTwoLines(value, widthOfElement, 16, 1.5);\n };\n\n // =========================================================================\n // RENDER FUNCTIONS\n // =========================================================================\n const renderNameDescription = () => (\n <>\n <ItemNameText ref={containerRef}>{displayText}</ItemNameText>\n {isError && (\n <DesktopErrorMessage>\n <ErrorIcon />\n {errorMessage ? errorMessage : \"Something went wrong\"}\n </DesktopErrorMessage>\n )}\n </>\n );\n\n const renderWithThumbnail = (thumbnailSrc: string) => (\n <>\n <ThumbnailContainer data-testid={`${id}-thumbnail`}>\n <Thumbnail\n data-testid={`${id}-thumbnail-image`}\n src={thumbnailSrc}\n />\n </ThumbnailContainer>\n <ExtendedNameSection>\n <NameSection>{renderNameDescription()}</NameSection>\n <FileSizeSection>{fileSize ? fileSize : \"-\"}</FileSizeSection>\n {isError && (\n <MobileErrorMessage>\n <ErrorIcon />\n {errorMessage ? errorMessage : \"Something went wrong\"}\n </MobileErrorMessage>\n )}\n </ExtendedNameSection>\n </>\n );\n\n const renderDefault = () => (\n <>\n <NameSection>{renderNameDescription()}</NameSection>\n <FileSizeSection>{fileSize ? fileSize : \"-\"}</FileSizeSection>\n {isError && (\n <MobileErrorMessage>\n <ErrorIcon />\n {errorMessage ? errorMessage : \"Something went wrong\"}\n </MobileErrorMessage>\n )}\n </>\n );\n\n const renderContents = () => {\n let content: JSX.Element;\n\n if (thumbnailImageDataUrl) {\n content = renderWithThumbnail(thumbnailImageDataUrl);\n } else {\n content = renderDefault();\n }\n\n return (\n <ContentSection $hasThumbnail={!!thumbnailImageDataUrl}>\n {content}\n </ContentSection>\n );\n };\n\n const renderActions = () => {\n return (\n <ActionContainer>\n <IconButton\n data-testid={`${id}-download-button`}\n type=\"button\"\n styleType=\"light\"\n sizeType=\"small\"\n aria-label={`download ${name}`}\n loading={isLoading || !ready}\n icon={<DownloadIcon />}\n />\n </ActionContainer>\n );\n };\n\n return (\n <Item data-testid={id}>\n <Box onClick={handleDownload} $error={isError}>\n {renderContents()}\n {renderActions()}\n </Box>\n </Item>\n );\n};\n\nexport const FileListCard = memo(Component);\n"],"names":["ActionContainer","Box","ContentSection","DesktopErrorMessage","ErrorIcon","ExtendedNameSection","FileSizeSection","IconButton","Item","ItemNameText","MobileErrorMessage","NameSection","Thumbnail","ThumbnailContainer","styles","FileListCard","memo","fileItem","onDownload","id","name","size","errorMessage","thumbnailImageDataUrl","truncateText","ready","isLoading","setIsLoading","useState","isError","setIsError","fileSize","FileUploadHelper","formatFileSizeDisplay","isMobile","useMaxWidthMediaQuery","displayText","setDisplayText","containerRef","useRef","useEffect","current","getTruncatedText","value","widthOfElement","getBoundingClientRect","width","StringHelper","truncateTwoLines","renderNameDescription","_jsxs","_jsx","ref","children","onClick","__awaiter","_a","$error","content","thumbnailSrc","_Fragment","src","$hasThumbnail","renderContents","type","styleType","sizeType","loading","icon","DownloadIcon"],"mappings":"0uBASA,MAAMA,gBACFA,EAAeC,IACfA,EAAGC,eACHA,EAAcC,oBACdA,EAAmBC,UACnBA,EAASC,oBACTA,EAAmBC,gBACnBA,EAAeC,WACfA,EAAUC,KACVA,EAAIC,aACJA,EAAYC,mBACZA,EAAkBC,YAClBA,EAAWC,UACXA,EAASC,mBACTA,GACAC,EAgKSC,EAAeC,EAAAA,MA9JV,EAAGC,WAAUC,iBAI3B,MAAMC,GACFA,EAAEC,KACFA,EAAIC,KACJA,EAAIC,aACJA,EAAYC,sBACZA,EAAqBC,aACrBA,GAAe,EAAIC,MACnBA,GAAQ,GACRR,GAGGS,EAAWC,GAAgBC,EAAAA,UAAkB,IAC7CC,EAASC,GAAcF,EAAAA,UAAkB,GAC1CG,EAAWC,EAAAA,iBAAiBC,sBAAsBZ,GAClDa,EAAWC,EAAAA,sBAAsB,OAChCC,EAAaC,GAAkBT,aAChCU,EAAeC,EAAAA,OAAuB,MAK5CC,EAAAA,WAAU,KACDF,EAAaG,SAEdJ,EADAH,EACeQ,EAAiBtB,GAEjBA,EACnB,GACD,CAACA,EAAMc,IAKV,MAmBMQ,EAAoBC,IACtB,IAAKnB,EAAc,OAAOmB,EAE1B,MAAMC,EACFN,GAAgBA,EAAaG,QACvBH,EAAaG,QAAQI,wBAAwBC,MAC7C,EAEV,OAAOC,EAAAA,aAAaC,iBAAiBL,EAAOC,EAAgB,GAAI,IAAI,EAMlEK,EAAwB,IAC1BC,EAAAA,2BACIC,EAAAA,IAAC1C,EAAY,CAAC2C,IAAKd,EAAYe,SAAGjB,IACjCP,GACGqB,EAAAA,KAAC/C,aACGgD,EAAAA,IAAC/C,MACAkB,GAA8B,6BAwE/C,OACI6B,EAAAA,IAAC3C,EAAI,CAAA,cAAcW,EAAEkC,SACjBH,EAAAA,KAACjD,EAAG,CAACqD,QAjHU,IAAWC,EAAAA,eAAA,OAAA,OAAA,GAAA,YAC9B,GAAK9B,IAASC,EAAd,CAIAC,GAAa,GACb,IACIG,GAAW,SACLZ,EAAWD,EACrB,CAAE,MAAAuC,GACE1B,GAAW,EACf,SACIH,GAAa,EACjB,CAVA,CAWJ,IAmGoC8B,OAAU5B,EAAOwB,SAAA,CAlC9B,MACnB,IAAIK,EAnCoB,IAACC,EA2CzB,OANIpC,GArCqBoC,EAsCSpC,EAA9BmC,EArCJR,EAAAA,KAAAU,EAAAA,SAAA,CAAAP,SAAA,CACIF,EAAAA,IAACtC,EAAkB,CAAA,cAAc,GAAGM,uBAChCgC,EAAAA,IAACvC,EAAS,CAAA,cACO,GAAGO,oBAChB0C,IAAKF,MAGbT,EAAAA,KAAC7C,EAAmB,CAAAgD,SAAA,CAChBF,EAAAA,IAACxC,EAAW,CAAA0C,SAAEJ,MACdE,EAAAA,IAAC7C,EAAe,CAAA+C,SAAEtB,GAAsB,MACvCF,GACGqB,EAAAA,KAACxC,EAAkB,CAAA2C,SAAA,CACfF,EAAAA,IAAC/C,EAAS,CAAA,GACTkB,GAA8B,iCA0B3CoC,EAlBJR,OAAAU,EAAAA,SAAA,CAAAP,SAAA,CACIF,EAAAA,IAACxC,EAAW,CAAA0C,SAAEJ,MACdE,EAAAA,IAAC7C,EAAe,CAAA+C,SAAEtB,GAAsB,MACvCF,GACGqB,EAAAA,KAACxC,EAAkB,CAAA2C,SAAA,CACfF,MAAC/C,EAAS,CAAA,GACTkB,GAA8B,6BAgBvC6B,EAAAA,IAACjD,EAAc,CAAA4D,gBAAkBvC,EAAqB8B,SACjDK,GACY,EAuBZK,GAjBLZ,EAAAA,IAACnD,YACGmD,EAAAA,IAAC5C,iBACgB,GAAGY,oBAChB6C,KAAK,SACLC,UAAU,QACVC,SAAS,QAAO,aACJ,YAAY9C,IACxB+C,QAASzC,IAAcD,EACvB2C,KAAMjB,EAAAA,IAACkB,EAAAA,yBAYZ"}
1
+ {"version":3,"file":"file-list-card.js","sources":["../../../../src/file-download/file-list-card/file-list-card.tsx"],"sourcesContent":["import { DownloadIcon } from \"@lifesg/react-icons\";\nimport { ExclamationCircleFillIcon } from \"@lifesg/react-icons/exclamation-circle-fill\";\nimport clsx from \"clsx\";\nimport { memo, useEffect, useRef, useState } from \"react\";\n\nimport { Button } from \"../../button\";\nimport { FileUploadHelper } from \"../../file-upload/helper\";\nimport { ImageWithFallback } from \"../../shared/image-with-fallback/image-with-fallback\";\nimport { useMaxWidthMediaQuery } from \"../../theme\";\nimport { StringHelper } from \"../../util\";\nimport * as styles from \"./file-list-card.styles\";\nimport type { FileListItemProps } from \"./types\";\n\nconst Component = ({ fileItem, onDownload }: FileListItemProps) => {\n // =========================================================================\n // CONST, STATE, REFS\n // =========================================================================\n const {\n id,\n name,\n size,\n errorMessage,\n thumbnailImageDataUrl,\n truncateText = true,\n ready = true,\n } = fileItem;\n\n // Local variables\n const [isLoading, setIsLoading] = useState<boolean>(false);\n const [isError, setIsError] = useState<boolean>(false);\n const fileSize = FileUploadHelper.formatFileSizeDisplay(size);\n const isMobile = useMaxWidthMediaQuery(\"sm\");\n const [displayText, setDisplayText] = useState<string>();\n const containerRef = useRef<HTMLDivElement>(null);\n\n // =========================================================================\n // EFFECTS\n // =========================================================================\n useEffect(() => {\n if (!containerRef.current) return;\n if (isMobile) {\n setDisplayText(getTruncatedText(name));\n } else {\n setDisplayText(name);\n }\n }, [name, isMobile]);\n\n // =========================================================================\n // EVENT HANDLERS\n // =========================================================================\n const handleDownload = async () => {\n if (!ready || isLoading) {\n return;\n }\n\n setIsLoading(true);\n try {\n setIsError(false);\n await onDownload(fileItem);\n } catch {\n setIsError(true);\n } finally {\n setIsLoading(false);\n }\n };\n\n // =========================================================================\n // HELPER FUNCTIONS\n // =========================================================================\n const getTruncatedText = (value: string) => {\n if (!truncateText) return value;\n\n const widthOfElement =\n containerRef && containerRef.current\n ? containerRef.current.getBoundingClientRect().width\n : 0;\n\n return StringHelper.truncateTwoLines(value, widthOfElement, 16, 1.5);\n };\n\n // =========================================================================\n // RENDER FUNCTIONS\n // =========================================================================\n const renderNameDescription = () => (\n <>\n <div className={styles.itemNameText} ref={containerRef}>\n {displayText}\n </div>\n {isError && (\n <div className={styles.desktopErrorMessage}>\n <ExclamationCircleFillIcon className={styles.errorIcon} />\n {errorMessage ? errorMessage : \"Something went wrong\"}\n </div>\n )}\n </>\n );\n\n const renderWithThumbnail = (thumbnailSrc: string) => (\n <>\n <div\n className={styles.thumbnailContainer}\n data-testid={`${id}-thumbnail`}\n >\n <ImageWithFallback\n className={styles.thumbnail}\n data-testid={`${id}-thumbnail-image`}\n src={thumbnailSrc}\n />\n </div>\n <div className={styles.extendedNameSection}>\n <div className={styles.nameSection}>\n {renderNameDescription()}\n </div>\n <div className={styles.fileSizeSection}>\n {fileSize ? fileSize : \"-\"}\n </div>\n {isError && (\n <div className={styles.mobileErrorMessage}>\n <ExclamationCircleFillIcon\n className={styles.errorIcon}\n />\n {errorMessage ? errorMessage : \"Something went wrong\"}\n </div>\n )}\n </div>\n </>\n );\n\n const renderDefault = () => (\n <>\n <div className={styles.nameSection}>{renderNameDescription()}</div>\n <div className={styles.fileSizeSection}>\n {fileSize ? fileSize : \"-\"}\n </div>\n {isError && (\n <div className={styles.mobileErrorMessage}>\n <ExclamationCircleFillIcon className={styles.errorIcon} />\n {errorMessage ? errorMessage : \"Something went wrong\"}\n </div>\n )}\n </>\n );\n\n const renderContents = () => {\n let content: JSX.Element;\n\n if (thumbnailImageDataUrl) {\n content = renderWithThumbnail(thumbnailImageDataUrl);\n } else {\n content = renderDefault();\n }\n\n return (\n <div\n className={clsx(\n styles.contentSection,\n !!thumbnailImageDataUrl && styles.contentSectionHasThumbnail\n )}\n >\n {content}\n </div>\n );\n };\n\n const renderActions = () => {\n return (\n <div className={styles.actionContainer}>\n <Button\n className={styles.iconButton}\n data-testid={`${id}-download-button`}\n type=\"button\"\n styleType=\"light\"\n sizeType=\"small\"\n aria-label={`download ${name}`}\n loading={isLoading || !ready}\n icon={<DownloadIcon />}\n />\n </div>\n );\n };\n\n return (\n <li className={styles.item} data-testid={id}>\n <div\n className={clsx(styles.box, isError && styles.boxError)}\n onClick={handleDownload}\n >\n {renderContents()}\n {renderActions()}\n </div>\n </li>\n );\n};\n\nexport const FileListCard = memo(Component);\n"],"names":["FileListCard","memo","fileItem","onDownload","id","name","size","errorMessage","thumbnailImageDataUrl","truncateText","ready","isLoading","setIsLoading","useState","isError","setIsError","fileSize","FileUploadHelper","formatFileSizeDisplay","isMobile","useMaxWidthMediaQuery","displayText","setDisplayText","containerRef","useRef","useEffect","current","getTruncatedText","value","widthOfElement","getBoundingClientRect","width","StringHelper","truncateTwoLines","renderNameDescription","_jsxs","_Fragment","children","_jsx","className","styles.itemNameText","ref","styles.desktopErrorMessage","ExclamationCircleFillIcon","styles.errorIcon","styles.item","clsx","styles.box","styles.boxError","onClick","__awaiter","_a","content","thumbnailSrc","styles.thumbnailContainer","ImageWithFallback","styles.thumbnail","src","styles.extendedNameSection","styles.nameSection","styles.fileSizeSection","styles.mobileErrorMessage","styles.contentSection","styles.contentSectionHasThumbnail","renderContents","styles.actionContainer","Button","styles.iconButton","type","styleType","sizeType","loading","icon","DownloadIcon"],"mappings":"i/BAaA,MAqLaA,EAAeC,EAAAA,MArLV,EAAGC,WAAUC,iBAI3B,MAAMC,GACFA,EAAEC,KACFA,EAAIC,KACJA,EAAIC,aACJA,EAAYC,sBACZA,EAAqBC,aACrBA,GAAe,EAAIC,MACnBA,GAAQ,GACRR,GAGGS,EAAWC,GAAgBC,EAAAA,UAAkB,IAC7CC,EAASC,GAAcF,EAAAA,UAAkB,GAC1CG,EAAWC,EAAAA,iBAAiBC,sBAAsBZ,GAClDa,EAAWC,EAAAA,sBAAsB,OAChCC,EAAaC,GAAkBT,aAChCU,EAAeC,EAAAA,OAAuB,MAK5CC,EAAAA,WAAU,KACDF,EAAaG,SAEdJ,EADAH,EACeQ,EAAiBtB,GAEjBA,EACnB,GACD,CAACA,EAAMc,IAKV,MAmBMQ,EAAoBC,IACtB,IAAKnB,EAAc,OAAOmB,EAE1B,MAAMC,EACFN,GAAgBA,EAAaG,QACvBH,EAAaG,QAAQI,wBAAwBC,MAC7C,EAEV,OAAOC,EAAAA,aAAaC,iBAAiBL,EAAOC,EAAgB,GAAI,IAAI,EAMlEK,EAAwB,IAC1BC,OAAAC,EAAAA,SAAA,CAAAC,SAAA,CACIC,EAAAA,IAAA,MAAA,CAAKC,UAAWC,EAAAA,aAAqBC,IAAKlB,EAAYc,SACjDhB,IAEJP,GACGqB,EAAAA,KAAA,MAAA,CAAKI,UAAWG,sBAA0BL,SAAA,CACtCC,EAAAA,IAACK,EAAAA,0BAAyB,CAACJ,UAAWK,EAAAA,YACrCrC,GAA8B,6BA0F/C,OACI+B,MAAA,KAAA,CAAIC,UAAWM,EAAAA,KAAW,cAAezC,EAAEiC,SACvCF,EAAAA,YACII,UAAWO,EAAAA,QAAKC,EAAAA,IAAYjC,GAAWkC,EAAAA,UACvCC,QAvIW,IAAWC,EAAAA,eAAA,OAAA,OAAA,GAAA,YAC9B,GAAKxC,IAASC,EAAd,CAIAC,GAAa,GACb,IACIG,GAAW,SACLZ,EAAWD,EACrB,CAAE,MAAAiD,GACEpC,GAAW,EACf,SACIH,GAAa,EACjB,CAVA,CAWJ,IAyHmCyB,SAAA,CA1CZ,MACnB,IAAIe,EA/CoB,IAACC,EAuDzB,OANI7C,GAjDqB6C,EAkDS7C,EAA9B4C,EAjDJjB,EAAAA,KAAAC,EAAAA,SAAA,CAAAC,SAAA,CACIC,EAAAA,IAAA,MAAA,CACIC,UAAWe,EAAAA,mBAAyB,cACvB,GAAGlD,uBAEhBkC,EAAAA,IAACiB,EAAAA,kBAAiB,CACdhB,UAAWiB,YAAgB,cACd,GAAGpD,oBAChBqD,IAAKJ,MAGblB,OAAA,MAAA,CAAKI,UAAWmB,EAAAA,oBAA0BrB,SAAA,CACtCC,EAAAA,IAAA,MAAA,CAAKC,UAAWoB,cAAkBtB,SAC7BH,MAELI,EAAAA,IAAA,MAAA,CAAKC,UAAWqB,EAAAA,gBAAsBvB,SACjCrB,GAAsB,MAE1BF,GACGqB,EAAAA,KAAA,MAAA,CAAKI,UAAWsB,EAAAA,mBAAyBxB,SAAA,CACrCC,EAAAA,IAACK,EAAAA,0BAAyB,CACtBJ,UAAWK,EAAAA,YAEdrC,GAA8B,iCA4B3C6C,EApBJjB,EAAAA,KAAAC,WAAA,CAAAC,SAAA,CACIC,EAAAA,IAAA,MAAA,CAAKC,UAAWoB,EAAAA,qBAAqBzB,MACrCI,MAAA,MAAA,CAAKC,UAAWqB,EAAAA,gBAAsBvB,SACjCrB,GAAsB,MAE1BF,GACGqB,EAAAA,KAAA,MAAA,CAAKI,UAAWsB,EAAAA,mBAAyBxB,SAAA,CACrCC,MAACK,EAAAA,0BAAyB,CAACJ,UAAWK,EAAAA,YACrCrC,GAA8B,6BAgBvC+B,aACIC,UAAWO,EAAAA,QACPgB,EAAAA,iBACEtD,GAAyBuD,EAAAA,4BAC9B1B,SAEAe,GACC,EA2BDY,GArBL1B,EAAAA,IAAA,MAAA,CAAKC,UAAW0B,EAAAA,gBAAsB5B,SAClCC,EAAAA,IAAC4B,EAAAA,OAAM,CACH3B,UAAW4B,EAAAA,WAAiB,cACf,GAAG/D,oBAChBgE,KAAK,SACLC,UAAU,QACVC,SAAS,QAAO,aACJ,YAAYjE,IACxBkE,QAAS5D,IAAcD,EACvB8D,KAAMlC,EAAAA,IAACmC,EAAAA,aAAY,CAAA,WAe1B"}
@@ -1,178 +1,2 @@
1
- "use strict";var e=require("@lifesg/react-icons/exclamation-circle-fill"),i=require("styled-components"),r=require("../../button/button.js"),t=require("../../shared/component-loading-spinner/component-loading-spinner.js"),a=require("../../shared/image-with-fallback/image-with-fallback.js"),o=require("../../shared/styles/index.js"),n=require("../../v3_theme/index.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=l(i);const s=d.default.li`
2
- display: flex;
3
- align-items: center;
4
-
5
- width: 100%;
6
- border: none;
7
-
8
- &:not(:last-child) {
9
- margin-bottom: ${n.V3_Spacing["spacing-16"]};
10
- }
11
- `,c=d.default.div`
12
- display: flex;
13
- align-items: center;
14
-
15
- width: 100%;
16
- padding: ${n.V3_Spacing["spacing-16"]} ${n.V3_Spacing["spacing-32"]};
17
- cursor: pointer;
18
-
19
- background: ${n.V3_Colour["bg-primary-subtlest"]};
20
- border: ${n.V3_Border["width-010"]} ${n.V3_Border.solid}
21
- ${n.V3_Colour.border};
22
- border-radius: ${n.V3_Radius.sm};
23
-
24
- ${n.V3_MediaQuery.MaxWidth.lg} {
25
- padding: ${n.V3_Spacing["spacing-16"]};
26
- }
27
-
28
- &:hover {
29
- background: ${n.V3_Colour["bg-hover"]};
30
- }
31
-
32
- ${e=>{if(e.$error)return i.css`
33
- background: ${n.V3_Colour["bg-error"]};
34
- border-color: ${n.V3_Colour["border-error"]};
35
-
36
- &:hover {
37
- background: ${n.V3_Colour["bg-error"]};
38
- }
39
- `}}
40
- `,g=d.default.div`
41
- display: flex;
42
- flex: 1;
43
- align-items: center;
44
-
45
- ${n.V3_MediaQuery.MaxWidth.lg} {
46
- flex-direction: column;
47
- align-items: flex-start;
48
- width: 100%;
49
- }
50
-
51
- ${e=>{if(e.$hasThumbnail)return i.css`
52
- ${n.V3_MediaQuery.MaxWidth.lg} {
53
- flex-direction: row;
54
- align-items: center;
55
- }
56
- `}}
57
- `,p=d.default.div`
58
- display: flex;
59
- flex: 1;
60
- flex-direction: column;
61
-
62
- width: 100%;
63
-
64
- overflow-wrap: break-word;
65
- word-break: break-all;
66
- white-space: normal;
67
- `,u=d.default.div`
68
- display: flex;
69
- flex: 1;
70
- align-items: center;
71
-
72
- ${n.V3_MediaQuery.MaxWidth.lg} {
73
- flex-direction: column;
74
- align-items: flex-start;
75
- width: 100%;
76
- }
77
- `,x=d.default.div`
78
- display: flex;
79
- justify-content: flex-end;
80
-
81
- width: 5rem;
82
- margin-left: ${n.V3_Spacing["spacing-8"]};
83
-
84
- ${n.V3_Font["body-md-regular"]}
85
- color: ${n.V3_Colour.text};
86
-
87
- ${n.V3_MediaQuery.MaxWidth.lg} {
88
- justify-content: flex-start;
89
-
90
- width: 100%;
91
- margin-left: 0;
92
- margin-top: ${n.V3_Spacing["spacing-8"]};
93
-
94
- ${o.lineClampCss(2)}
95
- }
96
- `,f=d.default.div`
97
- ${n.V3_Font["body-md-regular"]}
98
- color: ${n.V3_Colour.text};
99
-
100
- ${n.V3_MediaQuery.MaxWidth.lg} {
101
- ${o.lineClampCss(2)}
102
- }
103
- `;d.default(f)`
104
- ${n.V3_Font["body-md-regular"]}
105
- margin-top: ${n.V3_Spacing["spacing-4"]};
106
- `;const m=d.default(e.ExclamationCircleFillIcon)`
107
- height: 1lh;
108
- width: 1em;
109
- flex-shrink: 0;
110
- color: ${n.V3_Colour["icon-error-strong"]};
111
- `,h=d.default.div`
112
- ${n.V3_Font["body-sm-semibold"]}
113
- color: ${n.V3_Colour["text-error"]};
114
- `,$=d.default(h)`
115
- margin-top: ${n.V3_Spacing["spacing-4"]};
116
- display: flex;
117
- gap: ${n.V3_Spacing["spacing-4"]};
118
-
119
- ${n.V3_MediaQuery.MaxWidth.lg} {
120
- display: none;
121
- visibility: hidden;
122
- }
123
- `,_=d.default(h)`
124
- display: none;
125
- visibility: hidden;
126
-
127
- ${n.V3_MediaQuery.MaxWidth.lg} {
128
- display: flex;
129
- gap: ${n.V3_Spacing["spacing-4"]};
130
- visibility: visible;
131
- margin-top: ${n.V3_Spacing["spacing-8"]};
132
- }
133
- `;d.default(t.ComponentLoadingSpinner)`
134
- color: ${n.V3_Colour["icon-primary"]};
135
- `;const V=d.default.div`
136
- display: flex;
137
- justify-content: flex-end;
138
- align-items: center;
139
-
140
- margin-left: ${n.V3_Spacing["spacing-32"]};
141
-
142
- ${n.V3_MediaQuery.MaxWidth.lg} {
143
- margin-left: ${n.V3_Spacing["spacing-16"]};
144
- }
145
- `,b=d.default(r.Button)`
146
- min-width: unset;
147
-
148
- &:not(:last-child) {
149
- margin-right: ${n.V3_Spacing["spacing-16"]};
150
- }
151
- `,y=d.default.div`
152
- width: auto;
153
- margin-right: ${n.V3_Spacing["spacing-32"]};
154
-
155
- display: flex;
156
- flex-shrink: 0;
157
- flex-direction: column;
158
- justify-content: center;
159
-
160
- ${n.V3_MediaQuery.MaxWidth.lg} {
161
- margin-right: ${n.V3_Spacing["spacing-16"]};
162
- }
163
- `,M=d.default(a.ImageWithFallback)`
164
- border-radius: ${n.V3_Radius.sm};
165
- border: ${n.V3_Border["width-010"]} ${n.V3_Border.solid}
166
- ${n.V3_Colour.border};
167
-
168
- width: 96px;
169
- height: 96px;
170
- aspect-ratio: 1;
171
- object-fit: cover;
172
-
173
- ${n.V3_MediaQuery.MaxWidth.lg} {
174
- width: 64px;
175
- height: 64px;
176
- }
177
- `;exports.ActionContainer=V,exports.Box=c,exports.ContentSection=g,exports.DesktopErrorMessage=$,exports.ErrorIcon=m,exports.ExtendedNameSection=u,exports.FileSizeSection=x,exports.IconButton=b,exports.Item=s,exports.ItemNameText=f,exports.MobileErrorMessage=_,exports.NameSection=p,exports.Thumbnail=M,exports.ThumbnailContainer=y;
1
+ "use strict";require("./file-list-card.styles_18j2gut.css");exports.actionContainer="a1xq0zd",exports.box="b7grm6i",exports.boxError="b1ryf4f4",exports.contentSection="casceiz",exports.contentSectionHasThumbnail="c83cih3",exports.desktopErrorMessage="dga23xt",exports.errorIcon="e4y82lx",exports.extendedNameSection="ethi1vt",exports.fileSizeSection="ff8ofzq",exports.iconButton="i18nltf5",exports.item="ifkrwze",exports.itemNameText="iytzo9z",exports.mobileErrorMessage="m1qdniby",exports.nameSection="n13wqyhg",exports.thumbnail="t4orgj8",exports.thumbnailContainer="tmpqdeo";
178
2
  //# sourceMappingURL=file-list-card.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-list-card.styles.js","sources":["../../../../src/file-download/file-list-card/file-list-card.styles.tsx"],"sourcesContent":["import { ExclamationCircleFillIcon } from \"@lifesg/react-icons/exclamation-circle-fill\";\nimport styled, { css } from \"styled-components\";\n\nimport { Button as DSIconButton } from \"../../button\";\nimport { ComponentLoadingSpinner } from \"../../shared/component-loading-spinner\";\nimport { ImageWithFallback } from \"../../shared/image-with-fallback/image-with-fallback\";\nimport { lineClampCss } from \"../../shared/styles\";\nimport {\n V3_Border,\n V3_Colour,\n V3_Font,\n V3_MediaQuery,\n V3_Radius,\n V3_Spacing,\n} from \"../../v3_theme\";\n\n// =============================================================================\n// STYLE INTERFACES\n// =============================================================================\n\ninterface BoxStyleProps {\n $error?: boolean | undefined;\n}\n\ninterface ContentSectionStyleProps {\n $hasThumbnail?: boolean | undefined;\n}\n\n// =============================================================================\n// STYLING\n// =============================================================================\nexport const Item = styled.li`\n display: flex;\n align-items: center;\n\n width: 100%;\n border: none;\n\n &:not(:last-child) {\n margin-bottom: ${V3_Spacing[\"spacing-16\"]};\n }\n`;\n\nexport const Box = styled.div<BoxStyleProps>`\n display: flex;\n align-items: center;\n\n width: 100%;\n padding: ${V3_Spacing[\"spacing-16\"]} ${V3_Spacing[\"spacing-32\"]};\n cursor: pointer;\n\n background: ${V3_Colour[\"bg-primary-subtlest\"]};\n border: ${V3_Border[\"width-010\"]} ${V3_Border[\"solid\"]}\n ${V3_Colour[\"border\"]};\n border-radius: ${V3_Radius[\"sm\"]};\n\n ${V3_MediaQuery.MaxWidth.lg} {\n padding: ${V3_Spacing[\"spacing-16\"]};\n }\n\n &:hover {\n background: ${V3_Colour[\"bg-hover\"]};\n }\n\n ${(props) => {\n if (props.$error) {\n return css`\n background: ${V3_Colour[\"bg-error\"]};\n border-color: ${V3_Colour[\"border-error\"]};\n\n &:hover {\n background: ${V3_Colour[\"bg-error\"]};\n }\n `;\n }\n }}\n`;\n\nexport const ContentSection = styled.div<ContentSectionStyleProps>`\n display: flex;\n flex: 1;\n align-items: center;\n\n ${V3_MediaQuery.MaxWidth.lg} {\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n }\n\n ${(props) => {\n if (props.$hasThumbnail) {\n return css`\n ${V3_MediaQuery.MaxWidth.lg} {\n flex-direction: row;\n align-items: center;\n }\n `;\n }\n }}\n`;\n\nexport const NameSection = styled.div`\n display: flex;\n flex: 1;\n flex-direction: column;\n\n width: 100%;\n\n overflow-wrap: break-word;\n word-break: break-all;\n white-space: normal;\n`;\n\nexport const ExtendedNameSection = styled.div`\n display: flex;\n flex: 1;\n align-items: center;\n\n ${V3_MediaQuery.MaxWidth.lg} {\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n }\n`;\n\nexport const FileSizeSection = styled.div`\n display: flex;\n justify-content: flex-end;\n\n width: 5rem;\n margin-left: ${V3_Spacing[\"spacing-8\"]};\n\n ${V3_Font[\"body-md-regular\"]}\n color: ${V3_Colour[\"text\"]};\n\n ${V3_MediaQuery.MaxWidth.lg} {\n justify-content: flex-start;\n\n width: 100%;\n margin-left: 0;\n margin-top: ${V3_Spacing[\"spacing-8\"]};\n\n ${lineClampCss(2)}\n }\n`;\n\nexport const ItemNameText = styled.div`\n ${V3_Font[\"body-md-regular\"]}\n color: ${V3_Colour[\"text\"]};\n\n ${V3_MediaQuery.MaxWidth.lg} {\n ${lineClampCss(2)}\n }\n`;\n\nexport const ItemDescriptionText = styled(ItemNameText)`\n ${V3_Font[\"body-md-regular\"]}\n margin-top: ${V3_Spacing[\"spacing-4\"]};\n`;\n\nexport const ErrorIcon = styled(ExclamationCircleFillIcon)`\n height: 1lh;\n width: 1em;\n flex-shrink: 0;\n color: ${V3_Colour[\"icon-error-strong\"]};\n`;\n\nconst BaseErrorMessage = styled.div`\n ${V3_Font[\"body-sm-semibold\"]}\n color: ${V3_Colour[\"text-error\"]};\n`;\n\nexport const DesktopErrorMessage = styled(BaseErrorMessage)`\n margin-top: ${V3_Spacing[\"spacing-4\"]};\n display: flex;\n gap: ${V3_Spacing[\"spacing-4\"]};\n\n ${V3_MediaQuery.MaxWidth.lg} {\n display: none;\n visibility: hidden;\n }\n`;\n\nexport const MobileErrorMessage = styled(BaseErrorMessage)`\n display: none;\n visibility: hidden;\n\n ${V3_MediaQuery.MaxWidth.lg} {\n display: flex;\n gap: ${V3_Spacing[\"spacing-4\"]};\n visibility: visible;\n margin-top: ${V3_Spacing[\"spacing-8\"]};\n }\n`;\n\nexport const Spinner = styled(ComponentLoadingSpinner)`\n color: ${V3_Colour[\"icon-primary\"]};\n`;\n\nexport const ActionContainer = styled.div`\n display: flex;\n justify-content: flex-end;\n align-items: center;\n\n margin-left: ${V3_Spacing[\"spacing-32\"]};\n\n ${V3_MediaQuery.MaxWidth.lg} {\n margin-left: ${V3_Spacing[\"spacing-16\"]};\n }\n`;\n\nexport const IconButton = styled(DSIconButton)`\n min-width: unset;\n\n &:not(:last-child) {\n margin-right: ${V3_Spacing[\"spacing-16\"]};\n }\n`;\n\nexport const ThumbnailContainer = styled.div`\n width: auto;\n margin-right: ${V3_Spacing[\"spacing-32\"]};\n\n display: flex;\n flex-shrink: 0;\n flex-direction: column;\n justify-content: center;\n\n ${V3_MediaQuery.MaxWidth.lg} {\n margin-right: ${V3_Spacing[\"spacing-16\"]};\n }\n`;\n\nexport const Thumbnail = styled(ImageWithFallback)`\n border-radius: ${V3_Radius[\"sm\"]};\n border: ${V3_Border[\"width-010\"]} ${V3_Border[\"solid\"]}\n ${V3_Colour[\"border\"]};\n\n width: 96px;\n height: 96px;\n aspect-ratio: 1;\n object-fit: cover;\n\n ${V3_MediaQuery.MaxWidth.lg} {\n width: 64px;\n height: 64px;\n }\n`;\n"],"names":["Item","styled","li","V3_Spacing","Box","div","V3_Colour","V3_Border","V3_Radius","V3_MediaQuery","MaxWidth","lg","props","$error","css","ContentSection","$hasThumbnail","NameSection","ExtendedNameSection","FileSizeSection","V3_Font","lineClampCss","ItemNameText","ErrorIcon","ExclamationCircleFillIcon","BaseErrorMessage","DesktopErrorMessage","MobileErrorMessage","ComponentLoadingSpinner","ActionContainer","IconButton","DSIconButton","ThumbnailContainer","Thumbnail","ImageWithFallback"],"mappings":"qcA+BO,MAAMA,EAAOC,EAAAA,QAAOC,EAAE;;;;;;;;yBAQJC,EAAAA,WAAW;;EAIvBC,EAAMH,EAAAA,QAAOI,GAAkB;;;;;eAK7BF,EAAAA,WAAW,iBAAiBA,EAAAA,WAAW;;;kBAGpCG,EAAAA,UAAU;cACdC,EAAAA,UAAU,gBAAgBA,EAAAA,UAAiB;UAC/CD,EAAAA,UAAkB;qBACPE,EAAAA,UAAc;;MAE7BC,EAAAA,cAAcC,SAASC;mBACVR,EAAAA,WAAW;;;;sBAIRG,EAAAA,UAAU;;;MAGzBM,IACC,GAAIA,EAAMC,OACN,OAAOC,KAAG;8BACQR,EAAAA,UAAU;gCACRA,EAAAA,UAAU;;;kCAGRA,EAAAA,UAAU;;aAGpC;EAIKS,EAAiBd,EAAAA,QAAOI,GAA6B;;;;;MAK5DI,EAAAA,cAAcC,SAASC;;;;;;MAMtBC,IACC,GAAIA,EAAMI,cACN,OAAOF,KAAG;kBACJL,EAAAA,cAAcC,SAASC;;;;aAKjC;EAIKM,EAAchB,EAAAA,QAAOI,GAAG;;;;;;;;;;EAYxBa,EAAsBjB,EAAAA,QAAOI,GAAG;;;;;MAKvCI,EAAAA,cAAcC,SAASC;;;;;EAOhBQ,EAAkBlB,EAAAA,QAAOI,GAAG;;;;;mBAKtBF,EAAAA,WAAW;;MAExBiB,EAAAA,QAAQ;aACDd,EAAAA,UAAgB;;MAEvBG,EAAAA,cAAcC,SAASC;;;;;sBAKPR,EAAAA,WAAW;;UAEvBkB,EAAAA,aAAa;;EAIVC,EAAerB,EAAAA,QAAOI,GAAG;MAChCe,EAAAA,QAAQ;aACDd,EAAAA,UAAgB;;MAEvBG,EAAAA,cAAcC,SAASC;UACnBU,EAAAA,aAAa;;EAIYpB,EAAAA,QAAOqB,EAAa;MACjDF,EAAAA,QAAQ;kBACIjB,EAAAA,WAAW;QAGhBoB,EAAYtB,EAAAA,QAAOuB,EAAAA,0BAA0B;;;;aAI7ClB,EAAAA,UAAU;EAGjBmB,EAAmBxB,EAAAA,QAAOI,GAAG;MAC7Be,EAAAA,QAAQ;aACDd,EAAAA,UAAU;EAGVoB,EAAsBzB,EAAAA,QAAOwB,EAAiB;kBACzCtB,EAAAA,WAAW;;WAElBA,EAAAA,WAAW;;MAEhBM,EAAAA,cAAcC,SAASC;;;;EAMhBgB,EAAqB1B,EAAAA,QAAOwB,EAAiB;;;;MAIpDhB,EAAAA,cAAcC,SAASC;;eAEdR,EAAAA,WAAW;;sBAEJA,EAAAA,WAAW;;EAIVF,EAAAA,QAAO2B,EAAAA,wBAAwB;aACzCtB,EAAAA,UAAU;EAGhB,MAAMuB,EAAkB5B,EAAAA,QAAOI,GAAG;;;;;mBAKtBF,EAAAA,WAAW;;MAExBM,EAAAA,cAAcC,SAASC;uBACNR,EAAAA,WAAW;;EAIrB2B,EAAa7B,EAAAA,QAAO8B,EAAAA,OAAa;;;;wBAItB5B,EAAAA,WAAW;;EAItB6B,EAAqB/B,EAAAA,QAAOI,GAAG;;oBAExBF,EAAAA,WAAW;;;;;;;MAOzBM,EAAAA,cAAcC,SAASC;wBACLR,EAAAA,WAAW;;EAItB8B,EAAYhC,EAAAA,QAAOiC,EAAAA,kBAAkB;qBAC7B1B,EAAAA,UAAc;cACrBD,EAAAA,UAAU,gBAAgBA,EAAAA,UAAiB;UAC/CD,EAAAA,UAAkB;;;;;;;MAOtBG,EAAAA,cAAcC,SAASC;;;;"}
1
+ {"version":3,"file":"file-list-card.styles.js","sources":["../../../../src/file-download/file-list-card/file-list-card.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport { lineClampCss } from \"../../shared/styles\";\nimport { Border, Colour, Font, MediaQuery, Radius, Spacing } from \"../../theme\";\n\n// =============================================================================\n// STYLING\n// =============================================================================\nexport const item = css`\n display: flex;\n align-items: center;\n\n width: 100%;\n border: none;\n\n &:not(:last-child) {\n margin-bottom: ${Spacing[\"spacing-16\"]};\n }\n`;\n\nexport const box = css`\n display: flex;\n align-items: center;\n\n width: 100%;\n padding: ${Spacing[\"spacing-16\"]} ${Spacing[\"spacing-32\"]};\n cursor: pointer;\n\n background: ${Colour[\"bg-primary-subtlest\"]};\n border: ${Border[\"width-010\"]} ${Border[\"solid\"]} ${Colour[\"border\"]};\n border-radius: ${Radius[\"sm\"]};\n\n ${MediaQuery.MaxWidth.lg} {\n padding: ${Spacing[\"spacing-16\"]};\n }\n\n &:hover {\n background: ${Colour[\"bg-hover\"]};\n }\n`;\n\nexport const boxError = css`\n background: ${Colour[\"bg-error\"]};\n border-color: ${Colour[\"border-error\"]};\n\n &:hover {\n background: ${Colour[\"bg-error\"]};\n }\n`;\n\nexport const contentSection = css`\n display: flex;\n flex: 1;\n align-items: center;\n\n ${MediaQuery.MaxWidth.lg} {\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n }\n`;\n\nexport const contentSectionHasThumbnail = css`\n ${MediaQuery.MaxWidth.lg} {\n flex-direction: row;\n align-items: center;\n }\n`;\n\nexport const nameSection = css`\n display: flex;\n flex: 1;\n flex-direction: column;\n\n width: 100%;\n\n overflow-wrap: break-word;\n word-break: break-all;\n white-space: normal;\n`;\n\nexport const extendedNameSection = css`\n display: flex;\n flex: 1;\n align-items: center;\n\n ${MediaQuery.MaxWidth.lg} {\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n }\n`;\n\nexport const fileSizeSection = css`\n display: flex;\n justify-content: flex-end;\n\n width: 5rem;\n margin-left: ${Spacing[\"spacing-8\"]};\n\n ${Font[\"body-md-regular\"]}\n color: ${Colour[\"text\"]};\n\n ${MediaQuery.MaxWidth.lg} {\n justify-content: flex-start;\n\n width: 100%;\n margin-left: 0;\n margin-top: ${Spacing[\"spacing-8\"]};\n\n ${lineClampCss(2)}\n }\n`;\n\nexport const itemNameText = css`\n ${Font[\"body-md-regular\"]}\n color: ${Colour[\"text\"]};\n\n ${MediaQuery.MaxWidth.lg} {\n ${lineClampCss(2)}\n }\n`;\n\nexport const errorIcon = css`\n height: 1lh;\n width: 1em;\n flex-shrink: 0;\n color: ${Colour[\"icon-error-strong\"]};\n`;\n\nconst baseErrorMessage = `\n ${Font[\"body-sm-semibold\"]}\n color: ${Colour[\"text-error\"]};\n`;\n\nexport const desktopErrorMessage = css`\n ${baseErrorMessage}\n margin-top: ${Spacing[\"spacing-8\"]};\n display: flex;\n gap: ${Spacing[\"spacing-4\"]};\n\n ${MediaQuery.MaxWidth.lg} {\n display: none;\n visibility: hidden;\n }\n`;\n\nexport const mobileErrorMessage = css`\n ${baseErrorMessage}\n display: none;\n visibility: hidden;\n\n ${MediaQuery.MaxWidth.lg} {\n display: flex;\n gap: ${Spacing[\"spacing-4\"]};\n visibility: visible;\n margin-top: ${Spacing[\"spacing-8\"]};\n }\n`;\n\nexport const actionContainer = css`\n display: flex;\n justify-content: flex-end;\n align-items: center;\n\n margin-left: ${Spacing[\"spacing-32\"]};\n\n ${MediaQuery.MaxWidth.lg} {\n margin-left: ${Spacing[\"spacing-16\"]};\n }\n`;\n\nexport const iconButton = css`\n min-width: unset;\n\n &:not(:last-child) {\n margin-right: ${Spacing[\"spacing-16\"]};\n }\n`;\n\nexport const thumbnailContainer = css`\n width: auto;\n margin-right: ${Spacing[\"spacing-32\"]};\n\n display: flex;\n flex-shrink: 0;\n flex-direction: column;\n justify-content: center;\n\n ${MediaQuery.MaxWidth.lg} {\n margin-right: ${Spacing[\"spacing-16\"]};\n }\n`;\n\nexport const thumbnail = css`\n border-radius: ${Radius[\"sm\"]};\n border: ${Border[\"width-010\"]} ${Border[\"solid\"]} ${Colour[\"border\"]};\n\n width: 96px;\n height: 96px;\n aspect-ratio: 1;\n object-fit: cover;\n\n ${MediaQuery.MaxWidth.lg} {\n width: 64px;\n height: 64px;\n }\n`;\n"],"names":[],"mappings":"gIAgK4B,sBA5IZ,2BAqBK,kCASM,6CAYY,sCAyEP,4BAZV,sCA1CU,kCAYJ,6BA+EL,wBApKN,+BA0GQ,qCAiCM,+BA9EP,6BA6HF,qCAdS"}
@@ -0,0 +1,16 @@
1
+ @layer fds{.ifkrwze{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;width:100%;border:none;}.ifkrwze:not(:last-child){margin-bottom:var(--fds-spacing-16);}
2
+ .b7grm6i{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;width:100%;padding:var(--fds-spacing-16) var(--fds-spacing-32);cursor:pointer;background:var(--fds-colour-bg-primary-subtlest);border:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);border-radius:var(--fds-radius-sm);}:where(body.fds-breakpoint-lg-max) .b7grm6i{padding:var(--fds-spacing-16);}.b7grm6i:hover{background:var(--fds-colour-bg-hover);}
3
+ .b1ryf4f4{background:var(--fds-colour-bg-error);border-color:var(--fds-colour-border-error);}.b1ryf4f4:hover{background:var(--fds-colour-bg-error);}
4
+ .casceiz{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}:where(body.fds-breakpoint-lg-max) .casceiz{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;width:100%;}
5
+ :where(body.fds-breakpoint-lg-max) .c83cih3{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
6
+ .n13wqyhg{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;overflow-wrap:break-word;word-break:break-all;white-space:normal;}
7
+ .ethi1vt{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}:where(body.fds-breakpoint-lg-max) .ethi1vt{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;width:100%;}
8
+ .ff8ofzq{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;width:5rem;margin-left:var(--fds-spacing-8);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);color:var(--fds-colour-text);}:where(body.fds-breakpoint-lg-max) .ff8ofzq{-webkit-box-pack:start;-ms-flex-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;width:100%;margin-left:0;margin-top:var(--fds-spacing-8);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
9
+ .iytzo9z{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);color:var(--fds-colour-text);}:where(body.fds-breakpoint-lg-max) .iytzo9z{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
10
+ .e4y82lx{height:1lh;width:1em;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;color:var(--fds-colour-icon-error-strong);}
11
+ .dga23xt{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-sm);font-weight:var(--fds-font-weight-semibold);line-height:var(--fds-font-body-lh-sm);letter-spacing:var(--fds-font-body-ls-sm);color:var(--fds-colour-text-error);margin-top:var(--fds-spacing-8);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--fds-spacing-4);}:where(body.fds-breakpoint-lg-max) .dga23xt{display:none;visibility:hidden;}
12
+ .m1qdniby{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-sm);font-weight:var(--fds-font-weight-semibold);line-height:var(--fds-font-body-lh-sm);letter-spacing:var(--fds-font-body-ls-sm);color:var(--fds-colour-text-error);display:none;visibility:hidden;}:where(body.fds-breakpoint-lg-max) .m1qdniby{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:var(--fds-spacing-4);visibility:visible;margin-top:var(--fds-spacing-8);}
13
+ .a1xq0zd{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;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:var(--fds-spacing-32);}:where(body.fds-breakpoint-lg-max) .a1xq0zd{margin-left:var(--fds-spacing-16);}
14
+ .i18nltf5{min-width:unset;}.i18nltf5:not(:last-child){margin-right:var(--fds-spacing-16);}
15
+ .tmpqdeo{width:auto;margin-right:var(--fds-spacing-32);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}:where(body.fds-breakpoint-lg-max) .tmpqdeo{margin-right:var(--fds-spacing-16);}
16
+ .t4orgj8{border-radius:var(--fds-radius-sm);border:var(--fds-border-width-010) var(--fds-border-style-solid) var(--fds-colour-border);width:96px;height:96px;aspect-ratio:1;object-fit:cover;}:where(body.fds-breakpoint-lg-max) .t4orgj8{width:64px;height:64px;}}
@@ -1,6 +1,6 @@
1
- .c1mdy24p{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
1
+ @layer fds{.c1mdy24p{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
2
2
  .c1vk9wvq{padding:var(--fds-spacing-32);}:where(body.fds-breakpoint-md-max) .c1vk9wvq{padding:var(--fds-spacing-32) var(--fds-spacing-20);}
3
3
  .h1ogyved{display:none;}
4
4
  .dtq8bte{position:absolute;top:0;left:0;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
5
5
  .ozzxgak{color:var(--fds-colour-text-primary);text-align:center;}
6
- .o1seqaul{color:var(--fds-colour-icon-primary);height:4rem;width:4rem;}
6
+ .o1seqaul{color:var(--fds-colour-icon-primary);height:4rem;width:4rem;}}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("clsx"),i=require("react"),r=require("../button/button.js"),a=require("../form/index.js"),s=require("../typography/index.js");require("../util/calendar-helper.js"),require("../external/dayjs/dayjs.min.js"),require("../util/simple-id-generator.js");var n=require("../util/string-helper.js");require("@react-aria/live-announcer");var l=require("./file-item-edit.styles.js"),u=require("./file-list-item/file-list-item-thumbnail.js"),o=require("./helper.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=c(t);exports.FileItemEdit=({fileItem:t,fileDescriptionMaxLength:c,wrapperWidth:m,onSave:h,onCancel:p,onBlur:j})=>{const{id:f,name:x,size:y,type:b,truncateText:g=!0,thumbnailImageDataUrl:v}=t,[q,T]=i.useState(),[B,S]=i.useState(""),N=i.useRef(null),D=i.useRef(null),C=i.useCallback((e=>{if(!g)return e;const t=D&&D.current?D.current.getBoundingClientRect().width:0;return n.StringHelper.truncateOneLine(e,t,t/2,t/2/8,16)}),[g]);i.useEffect((()=>{T(C(x))}),[m,C,x]),i.useEffect((()=>{S(t.description||"")}),[t]);const F=!!v||b===o.FileUploadHelper.PDF_MIME_TYPE;return e.jsxs("li",{"data-testid":`${f}-edit-display`,className:l.item,children:[e.jsxs("div",{className:l.contentSection,children:[F&&e.jsx(u.FileListItemThumbnail,{thumbnailImageDataUrl:v,fileType:b}),e.jsxs("div",{className:l.detailsSection,children:[e.jsxs("div",{ref:D,className:l.nameSection,children:[e.jsx(s.Typography.BodyMD,{className:l.fileNameText,weight:"semibold",children:q}),e.jsx(s.Typography.BodyMD,{children:o.FileUploadHelper.formatFileSizeDisplay(y)})]}),e.jsx(a.Form.Textarea,{ref:N,id:`${f}-description-textarea`,"data-testid":`${f}-textarea`,value:B,maxLength:c,onChange:e=>{S(e.target.value)},onBlur:e=>{j(e.target.value)},rows:3,"aria-label":`Photo description for ${x}`,label:{children:"Photo description",subtitle:"Describe this photo to users who may not be able to see the image."}})]})]}),e.jsxs("div",{className:d.default(l.actionButtonsSection,F&&l.actionButtonsSectionWithThumbnail),children:[e.jsx(r.Button,{"data-testid":`${f}-save-button`,type:"button",sizeType:"small",disabled:0===B.trim().length,onClick:()=>{N.current&&h(N.current.value.trim())},className:l.actionButton,children:"Save"}),e.jsx(r.Button,{type:"button",sizeType:"small",styleType:"secondary","data-testid":`${f}-cancel-button`,onClick:p,className:l.actionButton,children:"Cancel"})]})]})};
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("clsx"),i=require("react"),r=require("../button/button.js"),a=require("../form/index.js"),n=require("../typography/index.js");require("../util/calendar-helper.js"),require("../external/dayjs/dayjs.min.js"),require("../util/simple-id-generator.js");var s=require("../util/string-helper.js");require("@react-aria/live-announcer");var l=require("./file-item-edit.styles.js"),u=require("./file-list-item/file-list-item-thumbnail.js"),o=require("./helper.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=c(t);exports.FileItemEdit=({fileItem:t,fileDescriptionMaxLength:c,descriptionRequired:m=!0,descriptionLabel:p,wrapperWidth:h,onSave:f,onCancel:j,onBlur:x})=>{const{id:y,name:b,size:g,type:v,truncateText:q=!0,thumbnailImageDataUrl:T}=t,[S,B]=i.useState(),[N,D]=i.useState(""),C=i.useRef(null),F=i.useRef(null),I=i.useCallback((e=>{if(!q)return e;const t=F&&F.current?F.current.getBoundingClientRect().width:0;return s.StringHelper.truncateOneLine(e,t,t/2,t/2/8,16)}),[q]);i.useEffect((()=>{B(I(b))}),[h,I,b]),i.useEffect((()=>{D(t.description||"")}),[t]);const w=!!T||v===o.FileUploadHelper.PDF_MIME_TYPE;return e.jsxs("li",{"data-testid":`${y}-edit-display`,className:l.item,children:[e.jsxs("div",{className:l.contentSection,children:[w&&e.jsx(u.FileListItemThumbnail,{thumbnailImageDataUrl:T,fileType:v}),e.jsxs("div",{className:l.detailsSection,children:[e.jsxs("div",{ref:F,className:l.nameSection,children:[e.jsx(n.Typography.BodyMD,{className:l.fileNameText,weight:"semibold",children:S}),e.jsx(n.Typography.BodyMD,{className:l.fileSizeText,children:o.FileUploadHelper.formatFileSizeDisplay(g)})]}),e.jsx(a.Form.Textarea,{ref:C,id:`${y}-description-textarea`,"data-testid":`${y}-textarea`,value:N,maxLength:c,onChange:e=>{D(e.target.value)},onBlur:e=>{x(e.target.value)},rows:3,label:null!=p?p:{children:"Photo description",subtitle:"Describe this photo to users who may not be able to see the image."}})]})]}),e.jsxs("div",{className:d.default(l.actionButtonsSection,w&&l.actionButtonsSectionWithThumbnail),children:[e.jsx(r.Button,{"data-testid":`${y}-save-button`,type:"button",sizeType:"small",disabled:(()=>{if(!m)return!1;return 0===N.trim().length})(),onClick:()=>{C.current&&f(C.current.value.trim())},className:l.actionButton,children:"Save"}),e.jsx(r.Button,{type:"button",sizeType:"small",styleType:"secondary","data-testid":`${y}-cancel-button`,onClick:j,className:l.actionButton,children:"Cancel"})]})]})};
2
2
  //# sourceMappingURL=file-item-edit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-item-edit.js","sources":["../../../src/file-upload/file-item-edit.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\n\nimport { Button } from \"../button\";\nimport { Form } from \"../form\";\nimport { Typography } from \"../typography\";\nimport { StringHelper } from \"../util\";\nimport * as styles from \"./file-item-edit.styles\";\nimport { FileListItemThumbnail } from \"./file-list-item/file-list-item-thumbnail\";\nimport { FileUploadHelper } from \"./helper\";\nimport type { FileItemProps } from \"./types\";\n\ninterface Props {\n fileItem: FileItemProps;\n wrapperWidth: number;\n fileDescriptionMaxLength?: number | undefined;\n onSave: (description: string) => void;\n onCancel: () => void;\n onBlur: (value: string) => void;\n}\n\nexport const FileItemEdit = ({\n fileItem,\n fileDescriptionMaxLength,\n wrapperWidth,\n onSave,\n onCancel,\n onBlur,\n}: Props) => {\n // =========================================================================\n // CONST, STATE, REFS\n // =========================================================================\n const {\n id,\n name,\n size,\n type,\n truncateText = true,\n thumbnailImageDataUrl,\n } = fileItem;\n\n const [formattedName, setFormattedName] = useState<string>();\n const [currentDescription, setCurrentDescription] = useState<string>(\"\");\n\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n const nameSectionRef = useRef<HTMLDivElement>(null);\n\n // =========================================================================\n // HELPER FUNCTIONS\n // =========================================================================\n const getTruncatedText = useCallback(\n (value: string) => {\n if (!truncateText) return value;\n\n const widthOfElement =\n nameSectionRef && nameSectionRef.current\n ? nameSectionRef.current.getBoundingClientRect().width\n : 0;\n\n return StringHelper.truncateOneLine(\n value,\n widthOfElement,\n widthOfElement / 2,\n widthOfElement / 2 / 8, // Arbitrary\n 16 // Font size\n );\n },\n [truncateText]\n );\n\n // =========================================================================\n // EFFECTS\n // =========================================================================\n useEffect(() => {\n setFormattedName(getTruncatedText(name));\n }, [wrapperWidth, getTruncatedText, name]);\n\n useEffect(() => {\n setCurrentDescription(fileItem.description || \"\");\n }, [fileItem]);\n\n // =========================================================================\n // EVENT HANDLERS\n // =========================================================================\n const handleSave = () => {\n if (textareaRef.current) {\n onSave(textareaRef.current.value.trim());\n }\n };\n\n const handleChange = (event: React.ChangeEvent<HTMLTextAreaElement>) => {\n setCurrentDescription(event.target.value);\n };\n\n const handleBlur = (event: React.FocusEvent<HTMLTextAreaElement>) => {\n onBlur(event.target.value);\n };\n\n const shouldDisableSave = () => {\n const trimmedDescription = currentDescription.trim();\n return trimmedDescription.length === 0;\n };\n\n const shouldShowThumbnail =\n !!thumbnailImageDataUrl || type === FileUploadHelper.PDF_MIME_TYPE;\n\n // =========================================================================\n // RENDER FUNCTIONS\n // =========================================================================\n const renderFileNameAndSize = () => (\n <div ref={nameSectionRef} className={styles.nameSection}>\n <Typography.BodyMD\n className={styles.fileNameText}\n weight=\"semibold\"\n >\n {formattedName}\n </Typography.BodyMD>\n <Typography.BodyMD>\n {FileUploadHelper.formatFileSizeDisplay(size)}\n </Typography.BodyMD>\n </div>\n );\n\n return (\n <li data-testid={`${id}-edit-display`} className={styles.item}>\n <div className={styles.contentSection}>\n {shouldShowThumbnail && (\n <FileListItemThumbnail\n thumbnailImageDataUrl={thumbnailImageDataUrl}\n fileType={type}\n />\n )}\n <div className={styles.detailsSection}>\n {renderFileNameAndSize()}\n <Form.Textarea\n ref={textareaRef}\n id={`${id}-description-textarea`}\n data-testid={`${id}-textarea`}\n value={currentDescription}\n maxLength={fileDescriptionMaxLength}\n onChange={handleChange}\n onBlur={handleBlur}\n rows={3}\n aria-label={`Photo description for ${name}`}\n label={{\n children: \"Photo description\",\n subtitle:\n \"Describe this photo to users who may not be able to see the image.\",\n }}\n />\n </div>\n </div>\n <div\n className={clsx(\n styles.actionButtonsSection,\n shouldShowThumbnail &&\n styles.actionButtonsSectionWithThumbnail\n )}\n >\n <Button\n data-testid={`${id}-save-button`}\n type=\"button\"\n sizeType=\"small\"\n disabled={shouldDisableSave()}\n onClick={handleSave}\n className={styles.actionButton}\n >\n Save\n </Button>\n <Button\n type=\"button\"\n sizeType=\"small\"\n styleType=\"secondary\"\n data-testid={`${id}-cancel-button`}\n onClick={onCancel}\n className={styles.actionButton}\n >\n Cancel\n </Button>\n </div>\n </li>\n );\n};\n"],"names":["fileItem","fileDescriptionMaxLength","wrapperWidth","onSave","onCancel","onBlur","id","name","size","type","truncateText","thumbnailImageDataUrl","formattedName","setFormattedName","useState","currentDescription","setCurrentDescription","textareaRef","useRef","nameSectionRef","getTruncatedText","useCallback","value","widthOfElement","current","getBoundingClientRect","width","StringHelper","truncateOneLine","useEffect","description","shouldShowThumbnail","FileUploadHelper","PDF_MIME_TYPE","_jsxs","className","styles.item","children","styles.contentSection","_jsx","FileListItemThumbnail","fileType","styles.detailsSection","ref","styles.nameSection","Typography","BodyMD","styles.fileNameText","weight","formatFileSizeDisplay","Form","Textarea","maxLength","onChange","event","target","rows","label","subtitle","clsx","styles.actionButtonsSection","styles.actionButtonsSectionWithThumbnail","Button","sizeType","disabled","trim","length","onClick","styles.actionButton","styleType"],"mappings":"ymBAqB4B,EACxBA,WACAC,2BACAC,eACAC,SACAC,WACAC,aAKA,MAAMC,GACFA,EAAEC,KACFA,EAAIC,KACJA,EAAIC,KACJA,EAAIC,aACJA,GAAe,EAAIC,sBACnBA,GACAX,GAEGY,EAAeC,GAAoBC,cACnCC,EAAoBC,GAAyBF,EAAAA,SAAiB,IAE/DG,EAAcC,EAAAA,OAA4B,MAC1CC,EAAiBD,EAAAA,OAAuB,MAKxCE,EAAmBC,eACpBC,IACG,IAAKZ,EAAc,OAAOY,EAE1B,MAAMC,EACFJ,GAAkBA,EAAeK,QAC3BL,EAAeK,QAAQC,wBAAwBC,MAC/C,EAEV,OAAOC,EAAAA,aAAaC,gBAChBN,EACAC,EACAA,EAAiB,EACjBA,EAAiB,EAAI,EACrB,GACH,GAEL,CAACb,IAMLmB,EAAAA,WAAU,KACNhB,EAAiBO,EAAiBb,GAAM,GACzC,CAACL,EAAckB,EAAkBb,IAEpCsB,EAAAA,WAAU,KACNb,EAAsBhB,EAAS8B,aAAe,GAAG,GAClD,CAAC9B,IAKJ,MAmBM+B,IACApB,GAAyBF,IAASuB,EAAAA,iBAAiBC,cAmBzD,OACIC,EAAAA,KAAA,KAAA,CAAA,cAAiB,GAAG5B,iBAAmB6B,UAAWC,EAAAA,KAAWC,SAAA,CACzDH,EAAAA,YAAKC,UAAWG,EAAAA,yBACXP,GACGQ,EAAAA,IAACC,EAAAA,sBAAqB,CAClB7B,sBAAuBA,EACvB8B,SAAUhC,IAGlByB,EAAAA,YAAKC,UAAWO,EAAAA,yBAtBxBR,EAAAA,KAAA,MAAA,CAAKS,IAAKxB,EAAgBgB,UAAWS,EAAAA,YAAkBP,SAAA,CACnDE,EAAAA,IAACM,EAAAA,WAAWC,OAAM,CACdX,UAAWY,EAAAA,aACXC,OAAO,WAAUX,SAEhBzB,IAEL2B,EAAAA,IAACM,EAAAA,WAAWC,OAAM,CAAAT,SACbL,EAAAA,iBAAiBiB,sBAAsBzC,QAgBpC+B,EAAAA,IAACW,EAAAA,KAAKC,UACFR,IAAK1B,EACLX,GAAI,GAAGA,yBAAyB,cACnB,GAAGA,aAChBgB,MAAOP,EACPqC,UAAWnD,EACXoD,SAlDEC,IAClBtC,EAAsBsC,EAAMC,OAAOjC,MAAM,EAkDzBjB,OA/CAiD,IAChBjD,EAAOiD,EAAMC,OAAOjC,MAAM,EA+CVkC,KAAM,EAAC,aACK,yBAAyBjD,IACrCkD,MAAO,CACHpB,SAAU,oBACVqB,SACI,8EAKpBxB,EAAAA,KAAA,MAAA,CACIC,UAAWwB,UACPC,EAAAA,qBACA7B,GACI8B,qCACPxB,SAAA,CAEDE,MAACuB,EAAAA,OAAM,CAAA,cACU,GAAGxD,gBAChBG,KAAK,SACLsD,SAAS,QACTC,SA/DyB,IADVjD,EAAmBkD,OACpBC,OAgEdC,QAhFG,KACXlD,EAAYO,SACZrB,EAAOc,EAAYO,QAAQF,MAAM2C,OACrC,EA8EY9B,UAAWiC,eAAmB/B,SAAA,SAIlCE,EAAAA,IAACuB,EAAAA,OAAM,CACHrD,KAAK,SACLsD,SAAS,QACTM,UAAU,YAAW,cACR,GAAG/D,kBAChB6D,QAAS/D,EACT+B,UAAWiC,EAAAA,aAAmB/B,SAAA,gBAKrC"}
1
+ {"version":3,"file":"file-item-edit.js","sources":["../../../src/file-upload/file-item-edit.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\n\nimport { Button } from \"../button\";\nimport { Form } from \"../form\";\nimport type { FormLabelProps } from \"../form/types\";\nimport { Typography } from \"../typography\";\nimport { StringHelper } from \"../util\";\nimport * as styles from \"./file-item-edit.styles\";\nimport { FileListItemThumbnail } from \"./file-list-item/file-list-item-thumbnail\";\nimport { FileUploadHelper } from \"./helper\";\nimport type { FileItemProps } from \"./types\";\n\ninterface Props {\n fileItem: FileItemProps;\n wrapperWidth: number;\n fileDescriptionMaxLength?: number | undefined;\n descriptionRequired?: boolean | undefined;\n descriptionLabel?: FormLabelProps | undefined;\n onSave: (description: string) => void;\n onCancel: () => void;\n onBlur: (value: string) => void;\n}\n\nexport const FileItemEdit = ({\n fileItem,\n fileDescriptionMaxLength,\n descriptionRequired = true,\n descriptionLabel,\n wrapperWidth,\n onSave,\n onCancel,\n onBlur,\n}: Props) => {\n // =========================================================================\n // CONST, STATE, REFS\n // =========================================================================\n const {\n id,\n name,\n size,\n type,\n truncateText = true,\n thumbnailImageDataUrl,\n } = fileItem;\n\n const [formattedName, setFormattedName] = useState<string>();\n const [currentDescription, setCurrentDescription] = useState<string>(\"\");\n\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n const nameSectionRef = useRef<HTMLDivElement>(null);\n\n // =========================================================================\n // HELPER FUNCTIONS\n // =========================================================================\n const getTruncatedText = useCallback(\n (value: string) => {\n if (!truncateText) return value;\n\n const widthOfElement =\n nameSectionRef && nameSectionRef.current\n ? nameSectionRef.current.getBoundingClientRect().width\n : 0;\n\n return StringHelper.truncateOneLine(\n value,\n widthOfElement,\n widthOfElement / 2,\n widthOfElement / 2 / 8, // Arbitrary\n 16 // Font size\n );\n },\n [truncateText]\n );\n\n // =========================================================================\n // EFFECTS\n // =========================================================================\n useEffect(() => {\n setFormattedName(getTruncatedText(name));\n }, [wrapperWidth, getTruncatedText, name]);\n\n useEffect(() => {\n setCurrentDescription(fileItem.description || \"\");\n }, [fileItem]);\n\n // =========================================================================\n // EVENT HANDLERS\n // =========================================================================\n const handleSave = () => {\n if (textareaRef.current) {\n onSave(textareaRef.current.value.trim());\n }\n };\n\n const handleChange = (event: React.ChangeEvent<HTMLTextAreaElement>) => {\n setCurrentDescription(event.target.value);\n };\n\n const handleBlur = (event: React.FocusEvent<HTMLTextAreaElement>) => {\n onBlur(event.target.value);\n };\n\n const shouldDisableSave = () => {\n if (!descriptionRequired) return false;\n const trimmedDescription = currentDescription.trim();\n return trimmedDescription.length === 0;\n };\n\n const shouldShowThumbnail =\n !!thumbnailImageDataUrl || type === FileUploadHelper.PDF_MIME_TYPE;\n\n // =========================================================================\n // RENDER FUNCTIONS\n // =========================================================================\n const renderFileNameAndSize = () => (\n <div ref={nameSectionRef} className={styles.nameSection}>\n <Typography.BodyMD\n className={styles.fileNameText}\n weight=\"semibold\"\n >\n {formattedName}\n </Typography.BodyMD>\n <Typography.BodyMD className={styles.fileSizeText}>\n {FileUploadHelper.formatFileSizeDisplay(size)}\n </Typography.BodyMD>\n </div>\n );\n\n return (\n <li data-testid={`${id}-edit-display`} className={styles.item}>\n <div className={styles.contentSection}>\n {shouldShowThumbnail && (\n <FileListItemThumbnail\n thumbnailImageDataUrl={thumbnailImageDataUrl}\n fileType={type}\n />\n )}\n <div className={styles.detailsSection}>\n {renderFileNameAndSize()}\n <Form.Textarea\n ref={textareaRef}\n id={`${id}-description-textarea`}\n data-testid={`${id}-textarea`}\n value={currentDescription}\n maxLength={fileDescriptionMaxLength}\n onChange={handleChange}\n onBlur={handleBlur}\n rows={3}\n label={\n descriptionLabel ?? {\n children: \"Photo description\",\n subtitle:\n \"Describe this photo to users who may not be able to see the image.\",\n }\n }\n />\n </div>\n </div>\n <div\n className={clsx(\n styles.actionButtonsSection,\n shouldShowThumbnail &&\n styles.actionButtonsSectionWithThumbnail\n )}\n >\n <Button\n data-testid={`${id}-save-button`}\n type=\"button\"\n sizeType=\"small\"\n disabled={shouldDisableSave()}\n onClick={handleSave}\n className={styles.actionButton}\n >\n Save\n </Button>\n <Button\n type=\"button\"\n sizeType=\"small\"\n styleType=\"secondary\"\n data-testid={`${id}-cancel-button`}\n onClick={onCancel}\n className={styles.actionButton}\n >\n Cancel\n </Button>\n </div>\n </li>\n );\n};\n"],"names":["fileItem","fileDescriptionMaxLength","descriptionRequired","descriptionLabel","wrapperWidth","onSave","onCancel","onBlur","id","name","size","type","truncateText","thumbnailImageDataUrl","formattedName","setFormattedName","useState","currentDescription","setCurrentDescription","textareaRef","useRef","nameSectionRef","getTruncatedText","useCallback","value","widthOfElement","current","getBoundingClientRect","width","StringHelper","truncateOneLine","useEffect","description","shouldShowThumbnail","FileUploadHelper","PDF_MIME_TYPE","_jsxs","className","styles.item","children","styles.contentSection","_jsx","FileListItemThumbnail","fileType","styles.detailsSection","ref","styles.nameSection","Typography","BodyMD","styles.fileNameText","weight","styles.fileSizeText","formatFileSizeDisplay","Form","Textarea","maxLength","onChange","event","target","rows","label","subtitle","clsx","styles.actionButtonsSection","styles.actionButtonsSectionWithThumbnail","Button","sizeType","disabled","trim","length","shouldDisableSave","onClick","styles.actionButton","styleType"],"mappings":"ymBAwB4B,EACxBA,WACAC,2BACAC,uBAAsB,EACtBC,mBACAC,eACAC,SACAC,WACAC,aAKA,MAAMC,GACFA,EAAEC,KACFA,EAAIC,KACJA,EAAIC,KACJA,EAAIC,aACJA,GAAe,EAAIC,sBACnBA,GACAb,GAEGc,EAAeC,GAAoBC,cACnCC,EAAoBC,GAAyBF,EAAAA,SAAiB,IAE/DG,EAAcC,EAAAA,OAA4B,MAC1CC,EAAiBD,EAAAA,OAAuB,MAKxCE,EAAmBC,eACpBC,IACG,IAAKZ,EAAc,OAAOY,EAE1B,MAAMC,EACFJ,GAAkBA,EAAeK,QAC3BL,EAAeK,QAAQC,wBAAwBC,MAC/C,EAEV,OAAOC,EAAAA,aAAaC,gBAChBN,EACAC,EACAA,EAAiB,EACjBA,EAAiB,EAAI,EACrB,GACH,GAEL,CAACb,IAMLmB,EAAAA,WAAU,KACNhB,EAAiBO,EAAiBb,GAAM,GACzC,CAACL,EAAckB,EAAkBb,IAEpCsB,EAAAA,WAAU,KACNb,EAAsBlB,EAASgC,aAAe,GAAG,GAClD,CAAChC,IAKJ,MAoBMiC,IACApB,GAAyBF,IAASuB,EAAAA,iBAAiBC,cAmBzD,OACIC,EAAAA,KAAA,KAAA,CAAA,cAAiB,GAAG5B,iBAAmB6B,UAAWC,EAAAA,KAAWC,SAAA,CACzDH,EAAAA,YAAKC,UAAWG,EAAAA,yBACXP,GACGQ,EAAAA,IAACC,EAAAA,uBACG7B,sBAAuBA,EACvB8B,SAAUhC,IAGlByB,EAAAA,KAAA,MAAA,CAAKC,UAAWO,EAAAA,eAAqBL,SAAA,CAtB7CH,EAAAA,KAAA,MAAA,CAAKS,IAAKxB,EAAgBgB,UAAWS,EAAAA,YAAkBP,SAAA,CACnDE,EAAAA,IAACM,EAAAA,WAAWC,OAAM,CACdX,UAAWY,eACXC,OAAO,WAAUX,SAEhBzB,IAEL2B,EAAAA,IAACM,EAAAA,WAAWC,OAAM,CAACX,UAAWc,EAAAA,aAAmBZ,SAC5CL,EAAAA,iBAAiBkB,sBAAsB1C,QAgBpC+B,EAAAA,IAACY,EAAAA,KAAKC,SAAQ,CACVT,IAAK1B,EACLX,GAAI,GAAGA,yBAAyB,cACnB,GAAGA,aAChBgB,MAAOP,EACPsC,UAAWtD,EACXuD,SAnDEC,IAClBvC,EAAsBuC,EAAMC,OAAOlC,MAAM,EAmDzBjB,OAhDAkD,IAChBlD,EAAOkD,EAAMC,OAAOlC,MAAM,EAgDVmC,KAAM,EACNC,MACIzD,QAAAA,EAAoB,CAChBoC,SAAU,oBACVsB,SACI,8EAMxBzB,EAAAA,KAAA,MAAA,CACIC,UAAWyB,UACPC,EAAAA,qBACA9B,GACI+B,qCACPzB,SAAA,CAEDE,MAACwB,EAAAA,OAAM,CAAA,cACU,GAAGzD,gBAChBG,KAAK,SACLuD,SAAS,QACTC,SAnEU,MACtB,IAAKjE,EAAqB,OAAO,EAEjC,OAAqC,IADVe,EAAmBmD,OACpBC,MAAY,EAgEhBC,GACVC,QAlFG,KACXpD,EAAYO,SACZrB,EAAOc,EAAYO,QAAQF,MAAM4C,OACrC,EAgFY/B,UAAWmC,eAAmBjC,SAAA,SAIlCE,EAAAA,IAACwB,EAAAA,OAAM,CACHtD,KAAK,SACLuD,SAAS,QACTO,UAAU,YAAW,cACR,GAAGjE,kBAChB+D,QAASjE,EACT+B,UAAWmC,EAAAA,aAAmBjC,SAAA,gBAKrC"}