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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2426) hide show
  1. package/_virtual/index.js +1 -1
  2. package/_virtual/index3.js +1 -1
  3. package/accordion/accordion-item.styles.js +1 -1
  4. package/accordion/accordion-item.styles.js.map +1 -1
  5. package/accordion/accordion-item.styles_1j4eb32.css +12 -0
  6. package/accordion/accordion.styles.js +1 -1
  7. package/accordion/accordion.styles_bzrfrs.css +6 -0
  8. package/alert/alert.js +1 -1
  9. package/alert/alert.js.map +1 -1
  10. package/alert/alert.styles.js +1 -1
  11. package/alert/alert.styles.js.map +1 -1
  12. package/alert/alert.styles_patwo2.css +28 -0
  13. package/animations/loading-dots-spinner/loading-dots-spinner.js +1 -1
  14. package/animations/loading-dots-spinner/loading-dots-spinner.js.map +1 -1
  15. package/badge/badge.js +1 -1
  16. package/badge/badge.js.map +1 -1
  17. package/badge/badge.styles.js +1 -1
  18. package/badge/badge.styles_1c3c6wj.css +16 -0
  19. package/badge/types.d.ts +1 -1
  20. package/box-container/box-container.js +1 -1
  21. package/box-container/box-container.js.map +1 -1
  22. package/box-container/box-container.styles.js +1 -1
  23. package/box-container/box-container.styles.js.map +1 -1
  24. package/box-container/box-container.styles_5t2j9k.css +18 -0
  25. package/breadcrumb/breadcrumb.js +1 -1
  26. package/breadcrumb/breadcrumb.js.map +1 -1
  27. package/button/button.js +1 -1
  28. package/button/button.js.map +1 -1
  29. package/button/button.styles.d.ts +1 -0
  30. package/button/button.styles.js +1 -1
  31. package/button/button.styles.js.map +1 -1
  32. package/button/button.styles_1pxy0co.css +20 -0
  33. package/calendar/calendar.js +1 -1
  34. package/calendar/calendar.js.map +1 -1
  35. package/cjs/_virtual/index.js +1 -1
  36. package/cjs/_virtual/index3.js +1 -1
  37. package/cjs/accordion/accordion-item.styles.js +1 -1
  38. package/cjs/accordion/accordion-item.styles.js.map +1 -1
  39. package/cjs/accordion/accordion-item.styles_1j4eb32.css +12 -0
  40. package/cjs/accordion/accordion.styles.js +1 -1
  41. package/cjs/accordion/accordion.styles_bzrfrs.css +6 -0
  42. package/cjs/alert/alert.js +1 -1
  43. package/cjs/alert/alert.js.map +1 -1
  44. package/cjs/alert/alert.styles.js +1 -1
  45. package/cjs/alert/alert.styles.js.map +1 -1
  46. package/cjs/alert/alert.styles_patwo2.css +28 -0
  47. package/cjs/animations/loading-dots-spinner/loading-dots-spinner.js +1 -1
  48. package/cjs/animations/loading-dots-spinner/loading-dots-spinner.js.map +1 -1
  49. package/cjs/badge/badge.js +1 -1
  50. package/cjs/badge/badge.js.map +1 -1
  51. package/cjs/badge/badge.styles.js +1 -1
  52. package/cjs/badge/badge.styles_1c3c6wj.css +16 -0
  53. package/cjs/box-container/box-container.js +1 -1
  54. package/cjs/box-container/box-container.js.map +1 -1
  55. package/cjs/box-container/box-container.styles.js +1 -1
  56. package/cjs/box-container/box-container.styles.js.map +1 -1
  57. package/cjs/box-container/box-container.styles_5t2j9k.css +18 -0
  58. package/cjs/breadcrumb/breadcrumb.js +1 -1
  59. package/cjs/breadcrumb/breadcrumb.js.map +1 -1
  60. package/cjs/button/button.js +1 -1
  61. package/cjs/button/button.js.map +1 -1
  62. package/cjs/button/button.styles.js +1 -1
  63. package/cjs/button/button.styles.js.map +1 -1
  64. package/cjs/button/button.styles_1pxy0co.css +20 -0
  65. package/cjs/calendar/calendar.js +1 -1
  66. package/cjs/calendar/calendar.js.map +1 -1
  67. package/cjs/countdown-timer/countdown-timer.js +1 -1
  68. package/cjs/countdown-timer/countdown-timer.js.map +1 -1
  69. package/cjs/countdown-timer/countdown-timer.styles.js +2 -0
  70. package/cjs/countdown-timer/countdown-timer.styles.js.map +1 -0
  71. package/cjs/countdown-timer/countdown-timer.styles_ipn1b0.css +8 -0
  72. package/cjs/dashed-border/dashed-border.js +1 -1
  73. package/cjs/dashed-border/dashed-border.js.map +1 -1
  74. package/cjs/data-table/data-table.js +1 -1
  75. package/cjs/data-table/data-table.js.map +1 -1
  76. package/cjs/data-table/data-table.styles.js +1 -152
  77. package/cjs/data-table/data-table.styles.js.map +1 -1
  78. package/cjs/data-table/data-table.styles_1iqq1g7.css +26 -0
  79. package/cjs/date-input/date-input.js +1 -1
  80. package/cjs/date-input/date-input.js.map +1 -1
  81. package/cjs/date-input/date-input.styles.js +2 -0
  82. package/cjs/date-input/date-input.styles.js.map +1 -0
  83. package/cjs/date-input/date-input.styles_1r5kcc7.css +1 -0
  84. package/cjs/date-navigator/date-navigator.styles.js +1 -1
  85. package/cjs/date-navigator/date-navigator.styles.js.map +1 -1
  86. package/cjs/date-navigator/date-navigator.styles_wokh56.css +4 -0
  87. package/cjs/date-range-input/date-range-input.js +1 -1
  88. package/cjs/date-range-input/date-range-input.js.map +1 -1
  89. package/cjs/date-range-input/date-range-input.styles.js +2 -0
  90. package/cjs/date-range-input/date-range-input.styles.js.map +1 -0
  91. package/cjs/date-range-input/date-range-input.styles_1s7ojnj.css +4 -0
  92. package/cjs/divider/divider.js +1 -1
  93. package/cjs/divider/divider.js.map +1 -1
  94. package/cjs/e-signature/e-signature-canvas.js +1 -1
  95. package/cjs/e-signature/e-signature-canvas.js.map +1 -1
  96. package/cjs/e-signature/e-signature.js +1 -1
  97. package/cjs/e-signature/e-signature.js.map +1 -1
  98. package/cjs/e-signature/e-signature.styles.js +1 -168
  99. package/cjs/e-signature/e-signature.styles.js.map +1 -1
  100. package/cjs/e-signature/e-signature.styles_lukd9f.css +17 -0
  101. package/cjs/error-display/error-display-data.js +1 -1
  102. package/cjs/error-display/error-display-data.js.map +1 -1
  103. package/cjs/error-display/error-display.js +1 -1
  104. package/cjs/error-display/error-display.js.map +1 -1
  105. package/cjs/error-display/helper.js +1 -1
  106. package/cjs/error-display/helper.js.map +1 -1
  107. package/cjs/external/lodash/get.js +1 -1
  108. package/cjs/external/lodash/get.js.map +1 -1
  109. package/cjs/external/lodash/isNumber.js +2 -0
  110. package/cjs/external/lodash/isNumber.js.map +1 -0
  111. package/cjs/external/lodash.clonedeep/index.js +1 -1
  112. package/cjs/external/lottie-colorify/lib/index.js +1 -1
  113. package/cjs/external/lottie-colorify/lib/index.js.map +1 -1
  114. package/cjs/external/prop-types/external/react-is/index.js +1 -1
  115. package/cjs/external/prop-types/index.js +1 -1
  116. package/cjs/external/prop-types/index.js.map +1 -1
  117. package/cjs/feedback-rating/feedback-rating-stars-container.js +1 -1
  118. package/cjs/feedback-rating/feedback-rating-stars-container.js.map +1 -1
  119. package/cjs/feedback-rating/feedback-rating-stars-container.styles.js +1 -36
  120. package/cjs/feedback-rating/feedback-rating-stars-container.styles.js.map +1 -1
  121. package/cjs/feedback-rating/feedback-rating-stars-container.styles_dmi8z9.css +4 -0
  122. package/cjs/feedback-rating/feedback-rating.js +1 -1
  123. package/cjs/feedback-rating/feedback-rating.js.map +1 -1
  124. package/cjs/feedback-rating/feedback-rating.styles.js +1 -37
  125. package/cjs/feedback-rating/feedback-rating.styles.js.map +1 -1
  126. package/cjs/feedback-rating/feedback-rating.styles_1kdklb6.css +4 -0
  127. package/cjs/file-download/file-download.js +1 -1
  128. package/cjs/file-download/file-download.js.map +1 -1
  129. package/cjs/file-download/file-download.styles.js +1 -32
  130. package/cjs/file-download/file-download.styles.js.map +1 -1
  131. package/cjs/file-download/file-download.styles_iggk8q.css +8 -0
  132. package/cjs/file-download/file-list-card/file-list-card.js +1 -1
  133. package/cjs/file-download/file-list-card/file-list-card.js.map +1 -1
  134. package/cjs/file-download/file-list-card/file-list-card.styles.js +1 -177
  135. package/cjs/file-download/file-list-card/file-list-card.styles.js.map +1 -1
  136. package/cjs/file-download/file-list-card/file-list-card.styles_oom8ii.css +16 -0
  137. package/cjs/file-upload/dropzone.js +1 -1
  138. package/cjs/file-upload/dropzone.js.map +1 -1
  139. package/cjs/file-upload/dropzone.styles.js +1 -34
  140. package/cjs/file-upload/dropzone.styles.js.map +1 -1
  141. package/cjs/file-upload/dropzone.styles_1pllsau.css +6 -0
  142. package/cjs/file-upload/file-item-edit.js +1 -1
  143. package/cjs/file-upload/file-item-edit.js.map +1 -1
  144. package/cjs/file-upload/file-item-edit.styles.js +1 -66
  145. package/cjs/file-upload/file-item-edit.styles.js.map +1 -1
  146. package/cjs/file-upload/file-item-edit.styles_1qbpbxj.css +10 -0
  147. package/cjs/file-upload/file-list/file-list.js +2 -0
  148. package/cjs/file-upload/file-list/file-list.js.map +1 -0
  149. package/cjs/file-upload/file-list/file-list.styles.js +2 -0
  150. package/cjs/file-upload/file-list/file-list.styles.js.map +1 -0
  151. package/cjs/file-upload/file-list/file-list.styles_1ea12kj.css +3 -0
  152. package/cjs/file-upload/file-list-item/file-list-item-thumbnail.js +1 -34
  153. package/cjs/file-upload/file-list-item/file-list-item-thumbnail.js.map +1 -1
  154. package/cjs/file-upload/file-list-item/file-list-item-thumbnail.styles.js +2 -0
  155. package/cjs/file-upload/file-list-item/file-list-item-thumbnail.styles.js.map +1 -0
  156. package/cjs/file-upload/file-list-item/file-list-item-thumbnail.styles_1y4si19.css +4 -0
  157. package/cjs/file-upload/file-list-item/file-list-item.js +1 -1
  158. package/cjs/file-upload/file-list-item/file-list-item.js.map +1 -1
  159. package/cjs/file-upload/file-list-item/file-list-item.styles.js +1 -174
  160. package/cjs/file-upload/file-list-item/file-list-item.styles.js.map +1 -1
  161. package/cjs/file-upload/file-list-item/file-list-item.styles_y7my2m.css +14 -0
  162. package/cjs/file-upload/file-upload.js +1 -1
  163. package/cjs/file-upload/file-upload.js.map +1 -1
  164. package/cjs/file-upload/file-upload.styles.js +1 -40
  165. package/cjs/file-upload/file-upload.styles.js.map +1 -1
  166. package/cjs/file-upload/file-upload.styles_9ffwcd.css +8 -0
  167. package/cjs/filter/addons/filter-item-checkbox.js +1 -1
  168. package/cjs/filter/addons/filter-item-checkbox.js.map +1 -1
  169. package/cjs/filter/addons/filter-item-checkbox.styles.js +1 -72
  170. package/cjs/filter/addons/filter-item-checkbox.styles.js.map +1 -1
  171. package/cjs/filter/addons/filter-item-checkbox.styles_7degw7.css +16 -0
  172. package/cjs/filter/filter-badge.js +2 -0
  173. package/cjs/filter/filter-badge.js.map +1 -0
  174. package/cjs/filter/filter-item-page.js +1 -1
  175. package/cjs/filter/filter-item-page.js.map +1 -1
  176. package/cjs/filter/filter-item-page.styles.js +1 -7
  177. package/cjs/filter/filter-item-page.styles.js.map +1 -1
  178. package/cjs/filter/filter-item-page.styles_17ewfrz.css +1 -0
  179. package/cjs/filter/filter-item.js +1 -1
  180. package/cjs/filter/filter-item.js.map +1 -1
  181. package/cjs/filter/filter-item.styles.js +1 -63
  182. package/cjs/filter/filter-item.styles.js.map +1 -1
  183. package/cjs/filter/filter-item.styles_cphjnj.css +17 -0
  184. package/cjs/filter/filter-modal.js +1 -1
  185. package/cjs/filter/filter-modal.js.map +1 -1
  186. package/cjs/filter/filter-modal.styles.js +1 -29
  187. package/cjs/filter/filter-modal.styles.js.map +1 -1
  188. package/cjs/filter/filter-modal.styles_qw3xlg.css +10 -0
  189. package/cjs/filter/filter-sidebar.js +1 -1
  190. package/cjs/filter/filter-sidebar.js.map +1 -1
  191. package/cjs/filter/filter-sidebar.styles.js +1 -23
  192. package/cjs/filter/filter-sidebar.styles.js.map +1 -1
  193. package/cjs/filter/filter-sidebar.styles_1otwpjl.css +5 -0
  194. package/cjs/filter/filter.js +1 -1
  195. package/cjs/filter/filter.js.map +1 -1
  196. package/cjs/filter/filter.styles.js +1 -26
  197. package/cjs/filter/filter.styles.js.map +1 -1
  198. package/cjs/filter/filter.styles_1ykijwm.css +5 -0
  199. package/cjs/form/form-label-addon.js +1 -1
  200. package/cjs/form/form-label-addon.js.map +1 -1
  201. package/cjs/form/form-label.styles.js +1 -1
  202. package/cjs/form/form-label.styles.js.map +1 -1
  203. package/cjs/form/form-label.styles_11r0652.css +6 -0
  204. package/cjs/form/form-masked-input.js +1 -1
  205. package/cjs/form/form-masked-input.js.map +1 -1
  206. package/cjs/form/form-time-range-picker.js +1 -1
  207. package/cjs/form/form-time-range-picker.js.map +1 -1
  208. package/cjs/form/form-wrapper.js +1 -1
  209. package/cjs/form/form-wrapper.js.map +1 -1
  210. package/cjs/form/index.js.map +1 -1
  211. package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.js +1 -1
  212. package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.js.map +1 -1
  213. package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.styles.js +2 -0
  214. package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.styles.js.map +1 -0
  215. package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.styles_vc6y5c.css +75 -0
  216. package/cjs/fullscreen-image-carousel/stateful-image.js +1 -1
  217. package/cjs/fullscreen-image-carousel/stateful-image.js.map +1 -1
  218. package/cjs/fullscreen-image-carousel/stateful-image.styles.js +2 -0
  219. package/cjs/fullscreen-image-carousel/stateful-image.styles.js.map +1 -0
  220. package/cjs/fullscreen-image-carousel/stateful-image.styles_1xe8ypm.css +3 -0
  221. package/cjs/histogram-slider/histogram-slider.js +1 -1
  222. package/cjs/histogram-slider/histogram-slider.js.map +1 -1
  223. package/cjs/image-button/image-button.styles.js +1 -1
  224. package/cjs/image-button/image-button.styles_6n1qsr.css +5 -0
  225. package/cjs/index.js +1 -1
  226. package/cjs/input-group/input-group-list-addon.js +1 -1
  227. package/cjs/input-group/input-group-list-addon.js.map +1 -1
  228. package/cjs/input-group/input-group-list-addon.styles.js +1 -1
  229. package/cjs/input-group/input-group-list-addon.styles.js.map +1 -1
  230. package/cjs/input-group/input-group-list-addon.styles_17iuqtw.css +9 -0
  231. package/cjs/input-group/input-group.js +1 -1
  232. package/cjs/input-group/input-group.js.map +1 -1
  233. package/cjs/input-group/input-group.styles.js +1 -1
  234. package/cjs/input-group/input-group.styles_bqye6f.css +3 -0
  235. package/cjs/input-multi-select/input-multi-select.js +1 -1
  236. package/cjs/input-multi-select/input-multi-select.js.map +1 -1
  237. package/cjs/input-nested-multi-select/input-nested-multi-select.js +1 -1
  238. package/cjs/input-nested-multi-select/input-nested-multi-select.js.map +1 -1
  239. package/cjs/input-nested-select/input-nested-select.js +1 -1
  240. package/cjs/input-nested-select/input-nested-select.js.map +1 -1
  241. package/cjs/input-range-select/input-range-select.js +1 -1
  242. package/cjs/input-range-select/input-range-select.js.map +1 -1
  243. package/cjs/input-range-select/input-range-select.styles.js +2 -0
  244. package/cjs/input-range-select/input-range-select.styles.js.map +1 -0
  245. package/cjs/input-range-select/input-range-select.styles_adbrbm.css +2 -0
  246. package/cjs/input-range-slider/input-range-slider.js +1 -1
  247. package/cjs/input-range-slider/input-range-slider.js.map +1 -1
  248. package/cjs/input-range-slider/slider-components.js +1 -1
  249. package/cjs/input-range-slider/slider-components.js.map +1 -1
  250. package/cjs/input-select/input-select.js +1 -1
  251. package/cjs/input-select/input-select.js.map +1 -1
  252. package/cjs/input-textarea/textarea-counter.styles.js +1 -1
  253. package/cjs/input-textarea/textarea-counter.styles.js.map +1 -1
  254. package/cjs/input-textarea/textarea-counter.styles_1n3wsnv.css +1 -0
  255. package/cjs/input-textarea/textarea.styles.js +1 -1
  256. package/cjs/input-textarea/textarea.styles_22z4n3.css +5 -0
  257. package/cjs/language-switcher/dropdown-panel.js +2 -0
  258. package/cjs/language-switcher/dropdown-panel.js.map +1 -0
  259. package/cjs/language-switcher/dropdown-panel.styles.js +2 -0
  260. package/cjs/language-switcher/dropdown-panel.styles.js.map +1 -0
  261. package/cjs/language-switcher/dropdown-panel.styles_1qsjf8d.css +4 -0
  262. package/cjs/language-switcher/dropdown-variant.js +1 -1
  263. package/cjs/language-switcher/dropdown-variant.js.map +1 -1
  264. package/cjs/language-switcher/dropdown-variant.styles.js +2 -0
  265. package/cjs/language-switcher/dropdown-variant.styles.js.map +1 -0
  266. package/cjs/language-switcher/dropdown-variant.styles_1vrdfky.css +2 -0
  267. package/cjs/language-switcher/link-container-variant.js +1 -1
  268. package/cjs/language-switcher/link-container-variant.js.map +1 -1
  269. package/cjs/language-switcher/link-container-variant.styles.js +2 -0
  270. package/cjs/language-switcher/link-container-variant.styles.js.map +1 -0
  271. package/cjs/language-switcher/link-container-variant.styles_1iw6zux.css +5 -0
  272. package/cjs/layout/col-div.js +1 -1
  273. package/cjs/layout/col-div.js.map +1 -1
  274. package/cjs/link-list/components/common.js +1 -1
  275. package/cjs/link-list/components/common.js.map +1 -1
  276. package/cjs/link-list/components/link-list-eager.js +1 -1
  277. package/cjs/link-list/components/link-list-eager.js.map +1 -1
  278. package/cjs/link-list/components/link-list-lazy.js +1 -1
  279. package/cjs/link-list/components/link-list-lazy.js.map +1 -1
  280. package/cjs/link-list/link-list.js +1 -1
  281. package/cjs/link-list/link-list.js.map +1 -1
  282. package/cjs/link-list/link-list.styles.js +1 -89
  283. package/cjs/link-list/link-list.styles.js.map +1 -1
  284. package/cjs/link-list/link-list.styles_m57vks.css +13 -0
  285. package/cjs/local-nav/local-nav-dropdown/local-nav-dropdown.js +1 -1
  286. package/cjs/local-nav/local-nav-dropdown/local-nav-dropdown.js.map +1 -1
  287. package/cjs/local-nav/local-nav-dropdown/local-nav-dropdown.styles.js +1 -100
  288. package/cjs/local-nav/local-nav-dropdown/local-nav-dropdown.styles.js.map +1 -1
  289. package/cjs/local-nav/local-nav-dropdown/local-nav-dropdown.styles_uhd4xl.css +13 -0
  290. package/cjs/local-nav/local-nav-menu/local-nav-menu.js +1 -1
  291. package/cjs/local-nav/local-nav-menu/local-nav-menu.js.map +1 -1
  292. package/cjs/local-nav/local-nav-menu/local-nav-menu.styles.js +1 -39
  293. package/cjs/local-nav/local-nav-menu/local-nav-menu.styles.js.map +1 -1
  294. package/cjs/local-nav/local-nav-menu/local-nav-menu.styles_pq19dh.css +5 -0
  295. package/cjs/markup/markup.js +1 -1
  296. package/cjs/markup/markup.js.map +1 -1
  297. package/cjs/markup/markup.style.js +1 -1
  298. package/cjs/markup/markup.style.js.map +1 -1
  299. package/cjs/masked-input/masked-input.js +1 -1
  300. package/cjs/masked-input/masked-input.js.map +1 -1
  301. package/cjs/masked-input/masked-input.styles.js +2 -0
  302. package/cjs/masked-input/masked-input.styles.js.map +1 -0
  303. package/cjs/masked-input/masked-input.styles_1cm388a.css +16 -0
  304. package/cjs/masthead/masthead.js +1 -1
  305. package/cjs/masthead/masthead.js.map +1 -1
  306. package/cjs/menu/menu-content.js +1 -1
  307. package/cjs/menu/menu-content.js.map +1 -1
  308. package/cjs/menu/menu-content.styles.js +1 -1
  309. package/cjs/menu/menu-content.styles.js.map +1 -1
  310. package/cjs/menu/menu-content.styles_p7ijll.css +2 -0
  311. package/cjs/menu/menu.js +1 -1
  312. package/cjs/menu/menu.js.map +1 -1
  313. package/cjs/modal/modal-box.styles.js +1 -1
  314. package/cjs/modal/modal-box.styles.js.map +1 -1
  315. package/cjs/modal/modal-box.styles_y52cts.css +11 -0
  316. package/cjs/modal/modal.js +1 -1
  317. package/cjs/modal/modal.js.map +1 -1
  318. package/cjs/modal/modal.styles.js +1 -1
  319. package/cjs/modal/modal.styles.js.map +1 -1
  320. package/cjs/modal/modal.styles_1lbblx6.css +11 -0
  321. package/cjs/modal-v2/modal-v2.js +1 -1
  322. package/cjs/modal-v2/modal-v2.js.map +1 -1
  323. package/cjs/modal-v2/modal-v2.styles.js +1 -1
  324. package/cjs/modal-v2/modal-v2.styles.js.map +1 -1
  325. package/cjs/modal-v2/modal-v2.styles_a8gv5i.css +3 -0
  326. package/cjs/modal-v2/slots/card.js +1 -1
  327. package/cjs/modal-v2/slots/card.js.map +1 -1
  328. package/cjs/navbar/brand.js +1 -1
  329. package/cjs/navbar/brand.js.map +1 -1
  330. package/cjs/navbar/brand.styles.js +1 -12
  331. package/cjs/navbar/brand.styles.js.map +1 -1
  332. package/cjs/navbar/brand.styles_zcgddp.css +1 -0
  333. package/cjs/navbar/drawer.js +1 -1
  334. package/cjs/navbar/drawer.js.map +1 -1
  335. package/cjs/navbar/drawer.styles.js +1 -65
  336. package/cjs/navbar/drawer.styles.js.map +1 -1
  337. package/cjs/navbar/drawer.styles_7hnxp5.css +8 -0
  338. package/cjs/navbar/menu.js +1 -1
  339. package/cjs/navbar/menu.js.map +1 -1
  340. package/cjs/navbar/menu.styles.js +1 -34
  341. package/cjs/navbar/menu.styles.js.map +1 -1
  342. package/cjs/navbar/menu.styles_gdpqc.css +3 -0
  343. package/cjs/navbar/navbar-action-buttons.js +1 -1
  344. package/cjs/navbar/navbar-action-buttons.js.map +1 -1
  345. package/cjs/navbar/navbar-action-buttons.styles.js +1 -100
  346. package/cjs/navbar/navbar-action-buttons.styles.js.map +1 -1
  347. package/cjs/navbar/navbar-action-buttons.styles_1vpm0nk.css +10 -0
  348. package/cjs/navbar/navbar-items.js +1 -1
  349. package/cjs/navbar/navbar-items.js.map +1 -1
  350. package/cjs/navbar/navbar-items.styles.js +1 -114
  351. package/cjs/navbar/navbar-items.styles.js.map +1 -1
  352. package/cjs/navbar/navbar-items.styles_1i3ltot.css +19 -0
  353. package/cjs/navbar/navbar-logo-data.js +1 -1
  354. package/cjs/navbar/navbar-logo-data.js.map +1 -1
  355. package/cjs/navbar/navbar.js +1 -1
  356. package/cjs/navbar/navbar.js.map +1 -1
  357. package/cjs/navbar/navbar.styles.js +1 -79
  358. package/cjs/navbar/navbar.styles.js.map +1 -1
  359. package/cjs/navbar/navbar.styles_koy0c7.css +20 -0
  360. package/cjs/notification-banner/notification-banner.js +1 -1
  361. package/cjs/notification-banner/notification-banner.js.map +1 -1
  362. package/cjs/notification-banner/notification-banner.styles.js +1 -111
  363. package/cjs/notification-banner/notification-banner.styles.js.map +1 -1
  364. package/cjs/notification-banner/notification-banner.styles_uxlysy.css +12 -0
  365. package/cjs/otp-input/otp-input.js +1 -1
  366. package/cjs/otp-input/otp-input.js.map +1 -1
  367. package/cjs/otp-input/otp-input.styles.js +1 -22
  368. package/cjs/otp-input/otp-input.styles.js.map +1 -1
  369. package/cjs/otp-input/otp-input.styles_5sbutl.css +5 -0
  370. package/cjs/otp-verification/contact-input-section.js +1 -1
  371. package/cjs/otp-verification/contact-input-section.js.map +1 -1
  372. package/cjs/otp-verification/contact-input-section.styles.js +2 -0
  373. package/cjs/otp-verification/contact-input-section.styles.js.map +1 -0
  374. package/cjs/otp-verification/contact-input-section.styles_odrjvt.css +14 -0
  375. package/cjs/otp-verification/otp-verification.js +1 -1
  376. package/cjs/otp-verification/otp-verification.js.map +1 -1
  377. package/cjs/otp-verification/otp-verification.styles.js +2 -0
  378. package/cjs/otp-verification/otp-verification.styles.js.map +1 -0
  379. package/cjs/otp-verification/otp-verification.styles_dg9bm8.css +1 -0
  380. package/cjs/otp-verification/thumbnail/email-thumbnail.js +1 -21
  381. package/cjs/otp-verification/thumbnail/email-thumbnail.js.map +1 -1
  382. package/cjs/otp-verification/thumbnail/phone-thumbnail.js +1 -17
  383. package/cjs/otp-verification/thumbnail/phone-thumbnail.js.map +1 -1
  384. package/cjs/otp-verification/thumbnail/thumbnail.styles.js +2 -0
  385. package/cjs/otp-verification/thumbnail/thumbnail.styles.js.map +1 -0
  386. package/cjs/otp-verification/thumbnail/thumbnail.styles_shqylh.css +3 -0
  387. package/cjs/otp-verification/verification-section.js +1 -1
  388. package/cjs/otp-verification/verification-section.js.map +1 -1
  389. package/cjs/otp-verification/verification-section.styles.js +2 -0
  390. package/cjs/otp-verification/verification-section.styles.js.map +1 -0
  391. package/cjs/otp-verification/verification-section.styles_x8jj.css +5 -0
  392. package/cjs/overlay/overlay.js +1 -1
  393. package/cjs/overlay/overlay.js.map +1 -1
  394. package/cjs/pagination/pagination.js +1 -1
  395. package/cjs/pagination/pagination.js.map +1 -1
  396. package/cjs/pagination/pagination.styles.js +1 -1
  397. package/cjs/pagination/pagination.styles.js.map +1 -1
  398. package/cjs/pagination/pagination.styles_6bcgva.css +14 -0
  399. package/cjs/pill/pill.styles.js +1 -1
  400. package/cjs/pill/pill.styles_xwrniu.css +17 -0
  401. package/cjs/popover/index.js +1 -1
  402. package/cjs/popover/popover-inline/popover-inline.js.map +1 -0
  403. package/cjs/popover/popover-inline/popover-inline.styles.js +2 -0
  404. package/cjs/popover/popover-inline/popover-inline.styles.js.map +1 -0
  405. package/cjs/popover/popover-inline/popover-inline.styles_bkopnt.css +2 -0
  406. package/cjs/popover/popover-trigger.js +2 -0
  407. package/cjs/popover/popover-trigger.js.map +1 -0
  408. package/cjs/popover/popover-trigger.styles.js +2 -0
  409. package/cjs/popover/popover-trigger.styles.js.map +1 -0
  410. package/cjs/popover/popover-trigger.styles_8zokig.css +1 -0
  411. package/cjs/popover/popover.js +1 -1
  412. package/cjs/popover/popover.js.map +1 -1
  413. package/cjs/popover/popover.styles.js +1 -74
  414. package/cjs/popover/popover.styles.js.map +1 -1
  415. package/cjs/popover/popover.styles_ujnf0h.css +4 -0
  416. package/cjs/predictive-text-input/predictive-text-input.js +1 -1
  417. package/cjs/predictive-text-input/predictive-text-input.js.map +1 -1
  418. package/cjs/progress-indicator/progress-indicator.js +1 -1
  419. package/cjs/progress-indicator/progress-indicator.js.map +1 -1
  420. package/cjs/progress-indicator/progress-indicator.styles.js +2 -0
  421. package/cjs/progress-indicator/progress-indicator.styles.js.map +1 -0
  422. package/cjs/progress-indicator/progress-indicator.styles_1c038s4.css +8 -0
  423. package/cjs/schedule/const.js +1 -1
  424. package/cjs/schedule/const.js.map +1 -1
  425. package/cjs/schedule/schedule-day-view/schedule-day-view.js +1 -1
  426. package/cjs/schedule/schedule-day-view/schedule-day-view.js.map +1 -1
  427. package/cjs/schedule/schedule-day-view/schedule-day-view.styles.js +1 -152
  428. package/cjs/schedule/schedule-day-view/schedule-day-view.styles.js.map +1 -1
  429. package/cjs/schedule/schedule-day-view/schedule-day-view.styles_8ti149.css +30 -0
  430. package/cjs/schedule/schedule-header/schedule-header.js +1 -1
  431. package/cjs/schedule/schedule-header/schedule-header.js.map +1 -1
  432. package/cjs/schedule/schedule-header/schedule-header.styles.js +2 -0
  433. package/cjs/schedule/schedule-header/schedule-header.styles.js.map +1 -0
  434. package/cjs/schedule/schedule-header/schedule-header.styles_1n2u5vj.css +6 -0
  435. package/cjs/schedule/schedule-slot-content/schedule-slot-content.js +2 -0
  436. package/cjs/schedule/schedule-slot-content/schedule-slot-content.js.map +1 -0
  437. package/cjs/schedule/schedule-slot-content/style-helper.js +2 -0
  438. package/cjs/schedule/schedule-slot-content/style-helper.js.map +1 -0
  439. package/cjs/schedule/schedule-week-view/schedule-week-view.js +1 -1
  440. package/cjs/schedule/schedule-week-view/schedule-week-view.js.map +1 -1
  441. package/cjs/schedule/schedule-week-view/schedule-week-view.styles.js +1 -74
  442. package/cjs/schedule/schedule-week-view/schedule-week-view.styles.js.map +1 -1
  443. package/cjs/schedule/schedule-week-view/schedule-week-view.styles_x7x50m.css +10 -0
  444. package/cjs/schedule/schedule-week-view/time-cell.js +1 -1
  445. package/cjs/schedule/schedule-week-view/time-cell.js.map +1 -1
  446. package/cjs/schedule/schedule-week-view/time-cell.styles.js +1 -34
  447. package/cjs/schedule/schedule-week-view/time-cell.styles.js.map +1 -1
  448. package/cjs/schedule/schedule-week-view/time-cell.styles_1sorjz8.css +14 -0
  449. package/cjs/schedule/schedule-week-view/week-view-utils.js +1 -1
  450. package/cjs/schedule/schedule-week-view/week-view-utils.js.map +1 -1
  451. package/cjs/schedule/schedule.js +1 -1
  452. package/cjs/schedule/schedule.js.map +1 -1
  453. package/cjs/schedule/schedule.styles.js +1 -26
  454. package/cjs/schedule/schedule.styles.js.map +1 -1
  455. package/cjs/schedule/schedule.styles_fdy5a1.css +5 -0
  456. package/cjs/schedule/shared/with-optional-popover.js +1 -5
  457. package/cjs/schedule/shared/with-optional-popover.js.map +1 -1
  458. package/cjs/schedule/shared/with-optional-popover.styles.js +2 -0
  459. package/cjs/schedule/shared/with-optional-popover.styles.js.map +1 -0
  460. package/cjs/schedule/shared/with-optional-popover.styles_7mv3p2.css +1 -0
  461. package/cjs/schedule/time-indicator/time-indicator.js +1 -1
  462. package/cjs/schedule/time-indicator/time-indicator.js.map +1 -1
  463. package/cjs/schedule/time-indicator/time-indicator.styles.js +1 -33
  464. package/cjs/schedule/time-indicator/time-indicator.styles.js.map +1 -1
  465. package/cjs/schedule/time-indicator/time-indicator.styles_1eaxyes.css +6 -0
  466. package/cjs/select-histogram/select-histogram.js +1 -1
  467. package/cjs/select-histogram/select-histogram.js.map +1 -1
  468. package/cjs/select-histogram/select-histogram.styles.js +1 -37
  469. package/cjs/select-histogram/select-histogram.styles.js.map +1 -1
  470. package/cjs/select-histogram/select-histogram.styles_n260dy.css +5 -0
  471. package/cjs/shared/component-loading-spinner/component-loading-spinner.js +1 -1
  472. package/cjs/shared/component-loading-spinner/component-loading-spinner.js.map +1 -1
  473. package/cjs/shared/dropdown-list/dropdown-label.js +1 -1
  474. package/cjs/shared/dropdown-list/dropdown-label.js.map +1 -1
  475. package/cjs/shared/dropdown-list/dropdown-label.styles.js +1 -1
  476. package/cjs/shared/dropdown-list/dropdown-label.styles.js.map +1 -1
  477. package/cjs/shared/dropdown-list/dropdown-label.styles_mloii0.css +19 -0
  478. package/cjs/shared/dropdown-list/dropdown-list.js +1 -1
  479. package/cjs/shared/dropdown-list/dropdown-list.js.map +1 -1
  480. package/cjs/shared/dropdown-list/dropdown-list.styles.js +1 -1
  481. package/cjs/shared/dropdown-list/dropdown-list.styles.js.map +1 -1
  482. package/cjs/shared/dropdown-list/dropdown-list.styles_konwm.css +26 -0
  483. package/cjs/shared/dropdown-list/dropdown-search.styles.js +1 -1
  484. package/cjs/shared/dropdown-list/dropdown-search.styles.js.map +1 -1
  485. package/cjs/shared/dropdown-list/dropdown-search.styles_1hc1gkh.css +7 -0
  486. package/cjs/shared/dropdown-list/expandable-element.js +1 -1
  487. package/cjs/shared/dropdown-list/expandable-element.js.map +1 -1
  488. package/cjs/shared/dropdown-list/expandable-element.styles.js +1 -1
  489. package/cjs/shared/dropdown-list/expandable-element.styles.js.map +1 -1
  490. package/cjs/shared/dropdown-list/expandable-element.styles_rkkvqr.css +5 -0
  491. package/cjs/shared/dropdown-list/nested-dropdown-list.js +1 -1
  492. package/cjs/shared/dropdown-list/nested-dropdown-list.js.map +1 -1
  493. package/cjs/shared/dropdown-wrapper/dropdown-wrapper.styles.js +1 -1
  494. package/cjs/shared/dropdown-wrapper/dropdown-wrapper.styles.js.map +1 -1
  495. package/cjs/shared/dropdown-wrapper/dropdown-wrapper.styles_15hwwoj.css +3 -0
  496. package/cjs/shared/dropdown-wrapper/element-with-dropdown.js +1 -1
  497. package/cjs/shared/dropdown-wrapper/element-with-dropdown.js.map +1 -1
  498. package/cjs/shared/fade-wrapper/fade-wrapper.js +1 -1
  499. package/cjs/shared/fade-wrapper/fade-wrapper.js.map +1 -1
  500. package/cjs/shared/fade-wrapper/helpers.js +1 -1
  501. package/cjs/shared/fade-wrapper/helpers.js.map +1 -1
  502. package/cjs/shared/hooks/useViewport.js +1 -1
  503. package/cjs/shared/hooks/useViewport.js.map +1 -1
  504. package/cjs/shared/input-wrapper/input-wrapper.js +1 -1
  505. package/cjs/shared/input-wrapper/input-wrapper.js.map +1 -1
  506. package/cjs/shared/input-wrapper/input-wrapper.styles.js +1 -1
  507. package/cjs/shared/input-wrapper/input-wrapper.styles.js.map +1 -1
  508. package/cjs/shared/input-wrapper/input-wrapper.styles_je6maw.css +14 -0
  509. package/cjs/shared/internal-calendar/calendar-dropdown.js +1 -1
  510. package/cjs/shared/internal-calendar/calendar-dropdown.js.map +1 -1
  511. package/cjs/shared/internal-calendar/calendar-manager.styles.js +1 -1
  512. package/cjs/shared/internal-calendar/calendar-manager.styles_1iuq5zw.css +22 -0
  513. package/cjs/shared/internal-calendar/day-cell/day-cell.styles.js +1 -1
  514. package/cjs/shared/internal-calendar/day-cell/day-cell.styles.js.map +1 -1
  515. package/cjs/shared/internal-calendar/day-cell/day-cell.styles_1t5oqc1.css +8 -0
  516. package/cjs/shared/internal-calendar/internal-calendar-month.styles.js +1 -1
  517. package/cjs/shared/internal-calendar/internal-calendar-month.styles_14oh57f.css +8 -0
  518. package/cjs/shared/internal-calendar/internal-calendar-year.styles.js +1 -1
  519. package/cjs/shared/internal-calendar/internal-calendar-year.styles.js.map +1 -1
  520. package/cjs/shared/internal-calendar/internal-calendar-year.styles_therlc.css +9 -0
  521. package/cjs/shared/internal-calendar/single/single-cell.js +1 -1
  522. package/cjs/shared/internal-calendar/single/single-cell.js.map +1 -1
  523. package/cjs/shared/internal-calendar/standard/standard-calendar-day-view.styles.js +1 -1
  524. package/cjs/shared/internal-calendar/standard/standard-calendar-day-view.styles_1bw26au.css +3 -0
  525. package/cjs/shared/progress-bar/progress-bar.js +1 -1
  526. package/cjs/shared/progress-bar/progress-bar.js.map +1 -1
  527. package/cjs/shared/standalone-date-input/standalone-date-input.js +1 -1
  528. package/cjs/shared/standalone-date-input/standalone-date-input.js.map +1 -1
  529. package/cjs/shared/standalone-date-input/standalone-date-input.styles.js +1 -1
  530. package/cjs/shared/standalone-date-input/standalone-date-input.styles.js.map +1 -1
  531. package/cjs/shared/standalone-date-input/standalone-date-input.styles_157qo89.css +15 -0
  532. package/cjs/shared/time-slot/time-slot.js +2 -0
  533. package/cjs/shared/time-slot/time-slot.js.map +1 -0
  534. package/cjs/shared/time-slot/time-slot.styles.js +2 -0
  535. package/cjs/shared/time-slot/time-slot.styles.js.map +1 -0
  536. package/cjs/shared/time-slot/time-slot.styles_18s0to7.css +29 -0
  537. package/cjs/sidenav/sidenav-drawer-item.styles.js +1 -1
  538. package/cjs/sidenav/sidenav-drawer-item.styles.js.map +1 -1
  539. package/cjs/sidenav/sidenav-drawer-item.styles_1ljnyx2.css +6 -0
  540. package/cjs/sidenav/sidenav-drawer-subitem.styles.js +1 -1
  541. package/cjs/sidenav/sidenav-drawer-subitem.styles.js.map +1 -1
  542. package/cjs/sidenav/sidenav-drawer-subitem.styles_2y58kf.css +1 -0
  543. package/cjs/sidenav/sidenav-item.styles.js +1 -1
  544. package/cjs/sidenav/sidenav-item.styles.js.map +1 -1
  545. package/cjs/sidenav/sidenav-item.styles_lqw3kh.css +7 -0
  546. package/cjs/smart-app-banner/smart-app-banner.js +1 -1
  547. package/cjs/smart-app-banner/smart-app-banner.js.map +1 -1
  548. package/cjs/smart-app-banner/smart-app-banner.styles.js +1 -93
  549. package/cjs/smart-app-banner/smart-app-banner.styles.js.map +1 -1
  550. package/cjs/smart-app-banner/smart-app-banner.styles_15u6yv4.css +16 -0
  551. package/cjs/tab/tab-link-chain.js +1 -1
  552. package/cjs/tab/tab-link-chain.js.map +1 -1
  553. package/cjs/tab/tab-link-chain.styles.js +1 -1
  554. package/cjs/tab/tab-link-chain.styles.js.map +1 -1
  555. package/cjs/tab/tab-link-chain.styles_49got4.css +14 -0
  556. package/cjs/tag/tag.style.js +1 -1
  557. package/cjs/tag/tag.style_d98c53.css +17 -0
  558. package/cjs/text-list/ordered-list.js +1 -1
  559. package/cjs/text-list/ordered-list.js.map +1 -1
  560. package/cjs/text-list/text-list.styles.js +1 -1
  561. package/cjs/text-list/text-list.styles.js.map +1 -1
  562. package/cjs/text-list/text-list.styles_w3fvyt.css +16 -0
  563. package/cjs/text-list/unordered-list.js +1 -1
  564. package/cjs/text-list/unordered-list.js.map +1 -1
  565. package/cjs/theme/index.js +1 -1
  566. package/cjs/theme/theme-provider/breakpoint.js +1 -1
  567. package/cjs/theme/theme-provider/breakpoint.js.map +1 -1
  568. package/cjs/theme/theme-provider/hooks.js +1 -1
  569. package/cjs/theme/theme-provider/hooks.js.map +1 -1
  570. package/cjs/theme/tokens/colour.js +1 -1
  571. package/cjs/theme/tokens/colour.js.map +1 -1
  572. package/cjs/theme/tokens/font.js +1 -1
  573. package/cjs/theme/tokens/font.js.map +1 -1
  574. package/cjs/theme/types.js +1 -1
  575. package/cjs/theme/types.js.map +1 -1
  576. package/cjs/theme/utils/css-variable.js +1 -1
  577. package/cjs/theme/utils/css-variable.js.map +1 -1
  578. package/cjs/theme/utils/font.js +1 -1
  579. package/cjs/theme/utils/font.js.map +1 -1
  580. package/cjs/theme/utils/token-resolver.js +1 -1
  581. package/cjs/theme/utils/token-resolver.js.map +1 -1
  582. package/cjs/theme/utils/use-design-token.js +1 -1
  583. package/cjs/theme/utils/use-design-token.js.map +1 -1
  584. package/cjs/theme/utils/use-media-query.js +2 -0
  585. package/cjs/theme/utils/use-media-query.js.map +1 -0
  586. package/cjs/time-range-picker/combobox-picker/combobox-picker.js +1 -1
  587. package/cjs/time-range-picker/combobox-picker/combobox-picker.js.map +1 -1
  588. package/cjs/time-range-picker/combobox-picker/combobox-picker.styles.js +1 -6
  589. package/cjs/time-range-picker/combobox-picker/combobox-picker.styles.js.map +1 -1
  590. package/cjs/time-range-picker/combobox-picker/combobox-picker.styles_7i9vso.css +1 -0
  591. package/cjs/time-range-picker/common.styles.js +1 -10
  592. package/cjs/time-range-picker/common.styles.js.map +1 -1
  593. package/cjs/time-range-picker/common.styles_1qwp4xa.css +3 -0
  594. package/cjs/time-range-picker/dial-picker/dial-picker.js +1 -1
  595. package/cjs/time-range-picker/dial-picker/dial-picker.js.map +1 -1
  596. package/cjs/time-slot-bar/helper.js +1 -1
  597. package/cjs/time-slot-bar/helper.js.map +1 -1
  598. package/cjs/time-slot-bar/time-slot-bar.js +1 -1
  599. package/cjs/time-slot-bar/time-slot-bar.js.map +1 -1
  600. package/cjs/time-slot-bar/time-slot-bar.styles.js +1 -127
  601. package/cjs/time-slot-bar/time-slot-bar.styles.js.map +1 -1
  602. package/cjs/time-slot-bar/time-slot-bar.styles_wigbyd.css +25 -0
  603. package/cjs/time-slot-bar/time-slot-divider.js +2 -0
  604. package/cjs/time-slot-bar/time-slot-divider.js.map +1 -0
  605. package/cjs/time-slot-bar/time-slot-item.js +2 -0
  606. package/cjs/time-slot-bar/time-slot-item.js.map +1 -0
  607. package/cjs/time-slot-bar-week/consts.js +2 -0
  608. package/cjs/time-slot-bar-week/consts.js.map +1 -0
  609. package/cjs/time-slot-bar-week/time-slot-bar-week-days.js +1 -1
  610. package/cjs/time-slot-bar-week/time-slot-bar-week-days.js.map +1 -1
  611. package/cjs/time-slot-bar-week/time-slot-bar-week-days.styles.js +2 -0
  612. package/cjs/time-slot-bar-week/time-slot-bar-week-days.styles.js.map +1 -0
  613. package/cjs/time-slot-bar-week/time-slot-bar-week-days.styles_evdvs9.css +17 -0
  614. package/cjs/time-slot-bar-week/time-slot-bar-week.js +1 -1
  615. package/cjs/time-slot-bar-week/time-slot-bar-week.js.map +1 -1
  616. package/cjs/time-slot-bar-week/time-slot-bar-week.styles.js +2 -0
  617. package/cjs/time-slot-bar-week/time-slot-bar-week.styles.js.map +1 -0
  618. package/cjs/time-slot-bar-week/time-slot-bar-week.styles_11ybf42.css +1 -0
  619. package/cjs/time-slot-bar-week/time-slot-cell.js +2 -0
  620. package/cjs/time-slot-bar-week/time-slot-cell.js.map +1 -0
  621. package/cjs/time-slot-week-view/time-slot-week-days.js +1 -1
  622. package/cjs/time-slot-week-view/time-slot-week-days.js.map +1 -1
  623. package/cjs/time-slot-week-view/time-slot-week-days.styles.js +2 -0
  624. package/cjs/time-slot-week-view/time-slot-week-days.styles.js.map +1 -0
  625. package/cjs/time-slot-week-view/time-slot-week-days.styles_1h21vyw.css +9 -0
  626. package/cjs/time-slot-week-view/time-slot-week-view.js +1 -1
  627. package/cjs/time-slot-week-view/time-slot-week-view.js.map +1 -1
  628. package/cjs/time-slot-week-view/time-slot-week-view.styles.js +1 -9
  629. package/cjs/time-slot-week-view/time-slot-week-view.styles.js.map +1 -1
  630. package/cjs/time-slot-week-view/time-slot-week-view.styles_gqgsw2.css +1 -0
  631. package/cjs/timeline/timeline.js +1 -1
  632. package/cjs/timeline/timeline.js.map +1 -1
  633. package/cjs/timeline/timeline.styles.js +2 -0
  634. package/cjs/timeline/timeline.styles.js.map +1 -0
  635. package/cjs/timeline/timeline.styles_1jxzik4.css +9 -0
  636. package/cjs/timepicker/timepicker.js +1 -1
  637. package/cjs/timepicker/timepicker.js.map +1 -1
  638. package/cjs/timepicker/timepicker.styles.js +1 -1
  639. package/cjs/timepicker/timepicker.styles.js.map +1 -1
  640. package/cjs/timepicker/timepicker.styles_1jm33yw.css +1 -0
  641. package/cjs/timetable/const.js +1 -1
  642. package/cjs/timetable/const.js.map +1 -1
  643. package/cjs/timetable/timetable-header/timetable-header.js +1 -1
  644. package/cjs/timetable/timetable-header/timetable-header.js.map +1 -1
  645. package/cjs/timetable/timetable-header/timetable-header.styles.js +2 -0
  646. package/cjs/timetable/timetable-header/timetable-header.styles.js.map +1 -0
  647. package/cjs/timetable/timetable-header/timetable-header.styles_11gl1h4.css +6 -0
  648. package/cjs/timetable/timetable-row/row-bar.js +1 -1
  649. package/cjs/timetable/timetable-row/row-bar.js.map +1 -1
  650. package/cjs/timetable/timetable-row/row-bar.styles.js +2 -0
  651. package/cjs/timetable/timetable-row/row-bar.styles.js.map +1 -0
  652. package/cjs/timetable/timetable-row/row-bar.styles_1x0vrsz.css +1 -0
  653. package/cjs/timetable/timetable-row/row-cell.js +1 -1
  654. package/cjs/timetable/timetable-row/row-cell.js.map +1 -1
  655. package/cjs/timetable/timetable-row/row-cell.styles.js +2 -0
  656. package/cjs/timetable/timetable-row/row-cell.styles.js.map +1 -0
  657. package/cjs/timetable/timetable-row/row-cell.styles_y1dl5j.css +7 -0
  658. package/cjs/timetable/timetable-row/with-optional-popover.js +1 -1
  659. package/cjs/timetable/timetable-row/with-optional-popover.js.map +1 -1
  660. package/cjs/timetable/timetable.js +1 -1
  661. package/cjs/timetable/timetable.js.map +1 -1
  662. package/cjs/timetable/timetable.styles.js +2 -0
  663. package/cjs/timetable/timetable.styles.js.map +1 -0
  664. package/cjs/timetable/timetable.styles_7rp8kz.css +46 -0
  665. package/cjs/toast/toast.js +1 -1
  666. package/cjs/toast/toast.js.map +1 -1
  667. package/cjs/toast/toast.styles.js +1 -98
  668. package/cjs/toast/toast.styles.js.map +1 -1
  669. package/cjs/toast/toast.styles_1e0l60w.css +8 -0
  670. package/cjs/toggle/toggle.js +1 -1
  671. package/cjs/toggle/toggle.js.map +1 -1
  672. package/cjs/toggle/toggle.styles.js +1 -1
  673. package/cjs/toggle/toggle.styles.js.map +1 -1
  674. package/cjs/toggle/toggle.styles_1t5qrye.css +38 -0
  675. package/cjs/typography/typography.js +1 -1
  676. package/cjs/typography/typography.js.map +1 -1
  677. package/cjs/typography/typography.styles.js +1 -1
  678. package/cjs/typography/typography.styles.js.map +1 -1
  679. package/cjs/typography/typography.styles_1155j4c.css +11 -0
  680. package/cjs/uneditable-section/item-section.js +1 -1
  681. package/cjs/uneditable-section/item-section.js.map +1 -1
  682. package/cjs/uneditable-section/section-item.js +1 -1
  683. package/cjs/uneditable-section/section-item.js.map +1 -1
  684. package/cjs/uneditable-section/section-item.styles.js +1 -63
  685. package/cjs/uneditable-section/section-item.styles.js.map +1 -1
  686. package/cjs/uneditable-section/section-item.styles_mwx8ht.css +9 -0
  687. package/cjs/uneditable-section/uneditable-section.js +1 -1
  688. package/cjs/uneditable-section/uneditable-section.js.map +1 -1
  689. package/cjs/uneditable-section/uneditable-section.styles.js +1 -39
  690. package/cjs/uneditable-section/uneditable-section.styles.js.map +1 -1
  691. package/cjs/uneditable-section/uneditable-section.styles_aj9zun.css +8 -0
  692. package/cjs/unit-number/unit-number-input.js +1 -1
  693. package/cjs/unit-number/unit-number-input.js.map +1 -1
  694. package/cjs/unit-number/unit-number-input.styles.js +2 -0
  695. package/cjs/unit-number/unit-number-input.styles.js.map +1 -0
  696. package/cjs/unit-number/unit-number-input.styles_8yizj.css +7 -0
  697. package/cjs/util/is-styled-components.js +2 -0
  698. package/cjs/util/is-styled-components.js.map +1 -0
  699. package/cjs/util/styling-helper.js +1 -1
  700. package/cjs/util/styling-helper.js.map +1 -1
  701. package/codemod-utils.d.ts +1 -0
  702. package/codemods/codemod-utils.ts +17 -0
  703. package/codemods/index.ts +231 -75
  704. package/codemods/migrate-popover/index.ts +267 -0
  705. package/codemods/run-codemod.js +6 -53
  706. package/codemods/run-codemod.js.map +1 -1
  707. package/codemods/run-codemod.ts +7 -54
  708. package/countdown-timer/countdown-timer.js +1 -1
  709. package/countdown-timer/countdown-timer.js.map +1 -1
  710. package/countdown-timer/countdown-timer.styles.d.ts +15 -0
  711. package/countdown-timer/countdown-timer.styles.js +2 -0
  712. package/countdown-timer/countdown-timer.styles.js.map +1 -0
  713. package/countdown-timer/countdown-timer.styles_ipn1b0.css +8 -0
  714. package/dashed-border/dashed-border.js +1 -1
  715. package/dashed-border/dashed-border.js.map +1 -1
  716. package/data-table/data-table.js +1 -1
  717. package/data-table/data-table.js.map +1 -1
  718. package/data-table/data-table.styles.d.ts +30 -83
  719. package/data-table/data-table.styles.js +1 -152
  720. package/data-table/data-table.styles.js.map +1 -1
  721. package/data-table/data-table.styles_1iqq1g7.css +26 -0
  722. package/date-input/date-input.d.ts +1 -1
  723. package/date-input/date-input.js +1 -1
  724. package/date-input/date-input.js.map +1 -1
  725. package/date-input/date-input.styles.d.ts +1 -0
  726. package/date-input/date-input.styles.js +2 -0
  727. package/date-input/date-input.styles.js.map +1 -0
  728. package/date-input/date-input.styles_1r5kcc7.css +1 -0
  729. package/date-navigator/date-navigator.styles.js +1 -1
  730. package/date-navigator/date-navigator.styles.js.map +1 -1
  731. package/date-navigator/date-navigator.styles_wokh56.css +4 -0
  732. package/date-range-input/date-range-input.js +1 -1
  733. package/date-range-input/date-range-input.js.map +1 -1
  734. package/date-range-input/date-range-input.styles.d.ts +5 -0
  735. package/date-range-input/date-range-input.styles.js +2 -0
  736. package/date-range-input/date-range-input.styles.js.map +1 -0
  737. package/date-range-input/date-range-input.styles_1s7ojnj.css +4 -0
  738. package/divider/divider.d.ts +1 -1
  739. package/divider/divider.js +1 -1
  740. package/divider/divider.js.map +1 -1
  741. package/divider/types.d.ts +1 -2
  742. package/e-signature/e-signature-canvas.js +1 -1
  743. package/e-signature/e-signature-canvas.js.map +1 -1
  744. package/e-signature/e-signature.js +1 -1
  745. package/e-signature/e-signature.js.map +1 -1
  746. package/e-signature/e-signature.styles.d.ts +17 -45
  747. package/e-signature/e-signature.styles.js +1 -168
  748. package/e-signature/e-signature.styles.js.map +1 -1
  749. package/e-signature/e-signature.styles_lukd9f.css +17 -0
  750. package/error-display/error-display-data.d.ts +2 -2
  751. package/error-display/error-display-data.js +1 -1
  752. package/error-display/error-display-data.js.map +1 -1
  753. package/error-display/error-display.js +1 -1
  754. package/error-display/error-display.js.map +1 -1
  755. package/error-display/helper.d.ts +1 -1
  756. package/error-display/helper.js +1 -1
  757. package/error-display/helper.js.map +1 -1
  758. package/external/lodash/get.js +1 -1
  759. package/external/lodash/get.js.map +1 -1
  760. package/external/lodash/isNumber.js +2 -0
  761. package/external/lodash/isNumber.js.map +1 -0
  762. package/external/lodash.clonedeep/index.js +1 -1
  763. package/external/lottie-colorify/lib/index.js +1 -1
  764. package/external/lottie-colorify/lib/index.js.map +1 -1
  765. package/external/prop-types/external/react-is/index.js +1 -1
  766. package/external/prop-types/index.js +1 -1
  767. package/external/prop-types/index.js.map +1 -1
  768. package/feedback-rating/feedback-rating-stars-container.js +1 -1
  769. package/feedback-rating/feedback-rating-stars-container.js.map +1 -1
  770. package/feedback-rating/feedback-rating-stars-container.styles.d.ts +4 -23
  771. package/feedback-rating/feedback-rating-stars-container.styles.js +1 -36
  772. package/feedback-rating/feedback-rating-stars-container.styles.js.map +1 -1
  773. package/feedback-rating/feedback-rating-stars-container.styles_dmi8z9.css +4 -0
  774. package/feedback-rating/feedback-rating.js +1 -1
  775. package/feedback-rating/feedback-rating.js.map +1 -1
  776. package/feedback-rating/feedback-rating.styles.d.ts +4 -4
  777. package/feedback-rating/feedback-rating.styles.js +1 -37
  778. package/feedback-rating/feedback-rating.styles.js.map +1 -1
  779. package/feedback-rating/feedback-rating.styles_1kdklb6.css +4 -0
  780. package/file-download/file-download.js +1 -1
  781. package/file-download/file-download.js.map +1 -1
  782. package/file-download/file-download.styles.d.ts +8 -11
  783. package/file-download/file-download.styles.js +1 -32
  784. package/file-download/file-download.styles.js.map +1 -1
  785. package/file-download/file-download.styles_iggk8q.css +8 -0
  786. package/file-download/file-list-card/file-list-card.js +1 -1
  787. package/file-download/file-list-card/file-list-card.js.map +1 -1
  788. package/file-download/file-list-card/file-list-card.styles.d.ts +16 -64
  789. package/file-download/file-list-card/file-list-card.styles.js +1 -177
  790. package/file-download/file-list-card/file-list-card.styles.js.map +1 -1
  791. package/file-download/file-list-card/file-list-card.styles_oom8ii.css +16 -0
  792. package/file-upload/dropzone.js +1 -1
  793. package/file-upload/dropzone.js.map +1 -1
  794. package/file-upload/dropzone.styles.d.ts +6 -34
  795. package/file-upload/dropzone.styles.js +1 -34
  796. package/file-upload/dropzone.styles.js.map +1 -1
  797. package/file-upload/dropzone.styles_1pllsau.css +6 -0
  798. package/file-upload/file-item-edit.js +1 -1
  799. package/file-upload/file-item-edit.js.map +1 -1
  800. package/file-upload/file-item-edit.styles.d.ts +8 -48
  801. package/file-upload/file-item-edit.styles.js +1 -66
  802. package/file-upload/file-item-edit.styles.js.map +1 -1
  803. package/file-upload/file-item-edit.styles_1qbpbxj.css +10 -0
  804. package/file-upload/file-list/file-list.d.ts +18 -0
  805. package/file-upload/file-list/file-list.js +2 -0
  806. package/file-upload/file-list/file-list.js.map +1 -0
  807. package/file-upload/file-list/file-list.styles.d.ts +3 -0
  808. package/file-upload/file-list/file-list.styles.js +2 -0
  809. package/file-upload/file-list/file-list.styles.js.map +1 -0
  810. package/file-upload/file-list/file-list.styles_1ea12kj.css +3 -0
  811. package/file-upload/file-list/index.d.ts +1 -0
  812. package/file-upload/file-list-item/file-list-item-thumbnail.d.ts +0 -7
  813. package/file-upload/file-list-item/file-list-item-thumbnail.js +1 -34
  814. package/file-upload/file-list-item/file-list-item-thumbnail.js.map +1 -1
  815. package/file-upload/file-list-item/file-list-item-thumbnail.styles.d.ts +4 -0
  816. package/file-upload/file-list-item/file-list-item-thumbnail.styles.js +2 -0
  817. package/file-upload/file-list-item/file-list-item-thumbnail.styles.js.map +1 -0
  818. package/file-upload/file-list-item/file-list-item-thumbnail.styles_1y4si19.css +4 -0
  819. package/file-upload/file-list-item/file-list-item.js +1 -1
  820. package/file-upload/file-list-item/file-list-item.js.map +1 -1
  821. package/file-upload/file-list-item/file-list-item.styles.d.ts +14 -170
  822. package/file-upload/file-list-item/file-list-item.styles.js +1 -174
  823. package/file-upload/file-list-item/file-list-item.styles.js.map +1 -1
  824. package/file-upload/file-list-item/file-list-item.styles_y7my2m.css +14 -0
  825. package/file-upload/file-upload.js +1 -1
  826. package/file-upload/file-upload.js.map +1 -1
  827. package/file-upload/file-upload.styles.d.ts +8 -64
  828. package/file-upload/file-upload.styles.js +1 -40
  829. package/file-upload/file-upload.styles.js.map +1 -1
  830. package/file-upload/file-upload.styles_9ffwcd.css +8 -0
  831. package/filter/addons/filter-item-checkbox.js +1 -1
  832. package/filter/addons/filter-item-checkbox.js.map +1 -1
  833. package/filter/addons/filter-item-checkbox.styles.d.ts +15 -25
  834. package/filter/addons/filter-item-checkbox.styles.js +1 -72
  835. package/filter/addons/filter-item-checkbox.styles.js.map +1 -1
  836. package/filter/addons/filter-item-checkbox.styles_7degw7.css +16 -0
  837. package/filter/filter-badge.d.ts +5 -0
  838. package/filter/filter-badge.js +2 -0
  839. package/filter/filter-badge.js.map +1 -0
  840. package/filter/filter-item-page.d.ts +1 -1
  841. package/filter/filter-item-page.js +1 -1
  842. package/filter/filter-item-page.js.map +1 -1
  843. package/filter/filter-item-page.styles.d.ts +1 -1
  844. package/filter/filter-item-page.styles.js +1 -7
  845. package/filter/filter-item-page.styles.js.map +1 -1
  846. package/filter/filter-item-page.styles_17ewfrz.css +1 -0
  847. package/filter/filter-item.d.ts +1 -1
  848. package/filter/filter-item.js +1 -1
  849. package/filter/filter-item.js.map +1 -1
  850. package/filter/filter-item.styles.d.ts +22 -38
  851. package/filter/filter-item.styles.js +1 -63
  852. package/filter/filter-item.styles.js.map +1 -1
  853. package/filter/filter-item.styles_cphjnj.css +17 -0
  854. package/filter/filter-modal.d.ts +1 -1
  855. package/filter/filter-modal.js +1 -1
  856. package/filter/filter-modal.js.map +1 -1
  857. package/filter/filter-modal.styles.d.ts +14 -14
  858. package/filter/filter-modal.styles.js +1 -29
  859. package/filter/filter-modal.styles.js.map +1 -1
  860. package/filter/filter-modal.styles_qw3xlg.css +10 -0
  861. package/filter/filter-sidebar.d.ts +1 -1
  862. package/filter/filter-sidebar.js +1 -1
  863. package/filter/filter-sidebar.js.map +1 -1
  864. package/filter/filter-sidebar.styles.d.ts +5 -4
  865. package/filter/filter-sidebar.styles.js +1 -23
  866. package/filter/filter-sidebar.styles.js.map +1 -1
  867. package/filter/filter-sidebar.styles_1otwpjl.css +5 -0
  868. package/filter/filter.d.ts +4 -4
  869. package/filter/filter.js +1 -1
  870. package/filter/filter.js.map +1 -1
  871. package/filter/filter.styles.d.ts +9 -7
  872. package/filter/filter.styles.js +1 -26
  873. package/filter/filter.styles.js.map +1 -1
  874. package/filter/filter.styles_1ykijwm.css +5 -0
  875. package/filter/types.d.ts +2 -0
  876. package/form/form-label-addon.js +1 -1
  877. package/form/form-label-addon.js.map +1 -1
  878. package/form/form-label.styles.js +1 -1
  879. package/form/form-label.styles.js.map +1 -1
  880. package/form/form-label.styles_11r0652.css +6 -0
  881. package/form/form-masked-input.js +1 -1
  882. package/form/form-masked-input.js.map +1 -1
  883. package/form/form-time-range-picker.js +1 -1
  884. package/form/form-time-range-picker.js.map +1 -1
  885. package/form/form-wrapper.js +1 -1
  886. package/form/form-wrapper.js.map +1 -1
  887. package/form/index.d.ts +1 -0
  888. package/form/index.js.map +1 -1
  889. package/fullscreen-image-carousel/fullscreen-image-carousel.js +1 -1
  890. package/fullscreen-image-carousel/fullscreen-image-carousel.js.map +1 -1
  891. package/fullscreen-image-carousel/fullscreen-image-carousel.styles.d.ts +40 -0
  892. package/fullscreen-image-carousel/fullscreen-image-carousel.styles.js +2 -0
  893. package/fullscreen-image-carousel/fullscreen-image-carousel.styles.js.map +1 -0
  894. package/fullscreen-image-carousel/fullscreen-image-carousel.styles_vc6y5c.css +75 -0
  895. package/fullscreen-image-carousel/stateful-image.js +1 -1
  896. package/fullscreen-image-carousel/stateful-image.js.map +1 -1
  897. package/fullscreen-image-carousel/stateful-image.styles.d.ts +8 -0
  898. package/fullscreen-image-carousel/stateful-image.styles.js +2 -0
  899. package/fullscreen-image-carousel/stateful-image.styles.js.map +1 -0
  900. package/fullscreen-image-carousel/stateful-image.styles_1xe8ypm.css +3 -0
  901. package/histogram-slider/histogram-slider.js +1 -1
  902. package/histogram-slider/histogram-slider.js.map +1 -1
  903. package/image-button/image-button.styles.js +1 -1
  904. package/image-button/image-button.styles_6n1qsr.css +5 -0
  905. package/index.d.ts +0 -12
  906. package/index.js +1 -1
  907. package/input-group/input-group-list-addon.js +1 -1
  908. package/input-group/input-group-list-addon.js.map +1 -1
  909. package/input-group/input-group-list-addon.styles.d.ts +2 -2
  910. package/input-group/input-group-list-addon.styles.js +1 -1
  911. package/input-group/input-group-list-addon.styles.js.map +1 -1
  912. package/input-group/input-group-list-addon.styles_17iuqtw.css +9 -0
  913. package/input-group/input-group.js +1 -1
  914. package/input-group/input-group.js.map +1 -1
  915. package/input-group/input-group.styles.js +1 -1
  916. package/input-group/input-group.styles_bqye6f.css +3 -0
  917. package/input-multi-select/input-multi-select.js +1 -1
  918. package/input-multi-select/input-multi-select.js.map +1 -1
  919. package/input-nested-multi-select/input-nested-multi-select.js +1 -1
  920. package/input-nested-multi-select/input-nested-multi-select.js.map +1 -1
  921. package/input-nested-select/input-nested-select.js +1 -1
  922. package/input-nested-select/input-nested-select.js.map +1 -1
  923. package/input-range-select/input-range-select.js +1 -1
  924. package/input-range-select/input-range-select.js.map +1 -1
  925. package/input-range-select/input-range-select.styles.d.ts +2 -0
  926. package/input-range-select/input-range-select.styles.js +2 -0
  927. package/input-range-select/input-range-select.styles.js.map +1 -0
  928. package/input-range-select/input-range-select.styles_adbrbm.css +2 -0
  929. package/input-range-slider/input-range-slider.js +1 -1
  930. package/input-range-slider/input-range-slider.js.map +1 -1
  931. package/input-range-slider/slider-components.js +1 -1
  932. package/input-range-slider/slider-components.js.map +1 -1
  933. package/input-select/input-select.js +1 -1
  934. package/input-select/input-select.js.map +1 -1
  935. package/input-select/types.d.ts +1 -1
  936. package/input-textarea/textarea-counter.styles.js +1 -1
  937. package/input-textarea/textarea-counter.styles.js.map +1 -1
  938. package/input-textarea/textarea-counter.styles_1n3wsnv.css +1 -0
  939. package/input-textarea/textarea.styles.js +1 -1
  940. package/input-textarea/textarea.styles_22z4n3.css +5 -0
  941. package/language-switcher/dropdown-panel.d.ts +13 -0
  942. package/language-switcher/dropdown-panel.js +2 -0
  943. package/language-switcher/dropdown-panel.js.map +1 -0
  944. package/language-switcher/dropdown-panel.styles.d.ts +8 -0
  945. package/language-switcher/dropdown-panel.styles.js +2 -0
  946. package/language-switcher/dropdown-panel.styles.js.map +1 -0
  947. package/language-switcher/dropdown-panel.styles_1qsjf8d.css +4 -0
  948. package/language-switcher/dropdown-variant.js +1 -1
  949. package/language-switcher/dropdown-variant.js.map +1 -1
  950. package/language-switcher/dropdown-variant.styles.d.ts +2 -0
  951. package/language-switcher/dropdown-variant.styles.js +2 -0
  952. package/language-switcher/dropdown-variant.styles.js.map +1 -0
  953. package/language-switcher/dropdown-variant.styles_1vrdfky.css +2 -0
  954. package/language-switcher/link-container-variant.d.ts +1 -1
  955. package/language-switcher/link-container-variant.js +1 -1
  956. package/language-switcher/link-container-variant.js.map +1 -1
  957. package/language-switcher/link-container-variant.styles.d.ts +5 -0
  958. package/language-switcher/link-container-variant.styles.js +2 -0
  959. package/language-switcher/link-container-variant.styles.js.map +1 -0
  960. package/language-switcher/link-container-variant.styles_1iw6zux.css +5 -0
  961. package/layout/col-div.js +1 -1
  962. package/layout/col-div.js.map +1 -1
  963. package/layout/types.d.ts +8 -11
  964. package/link-list/components/common.js +1 -1
  965. package/link-list/components/common.js.map +1 -1
  966. package/link-list/components/link-list-eager.js +1 -1
  967. package/link-list/components/link-list-eager.js.map +1 -1
  968. package/link-list/components/link-list-lazy.js +1 -1
  969. package/link-list/components/link-list-lazy.js.map +1 -1
  970. package/link-list/link-list.js +1 -1
  971. package/link-list/link-list.js.map +1 -1
  972. package/link-list/link-list.styles.d.ts +13 -113
  973. package/link-list/link-list.styles.js +1 -89
  974. package/link-list/link-list.styles.js.map +1 -1
  975. package/link-list/link-list.styles_m57vks.css +13 -0
  976. package/local-nav/local-nav-dropdown/local-nav-dropdown.js +1 -1
  977. package/local-nav/local-nav-dropdown/local-nav-dropdown.js.map +1 -1
  978. package/local-nav/local-nav-dropdown/local-nav-dropdown.styles.d.ts +22 -41
  979. package/local-nav/local-nav-dropdown/local-nav-dropdown.styles.js +1 -100
  980. package/local-nav/local-nav-dropdown/local-nav-dropdown.styles.js.map +1 -1
  981. package/local-nav/local-nav-dropdown/local-nav-dropdown.styles_uhd4xl.css +13 -0
  982. package/local-nav/local-nav-menu/local-nav-menu.js +1 -1
  983. package/local-nav/local-nav-menu/local-nav-menu.js.map +1 -1
  984. package/local-nav/local-nav-menu/local-nav-menu.styles.d.ts +5 -26
  985. package/local-nav/local-nav-menu/local-nav-menu.styles.js +1 -39
  986. package/local-nav/local-nav-menu/local-nav-menu.styles.js.map +1 -1
  987. package/local-nav/local-nav-menu/local-nav-menu.styles_pq19dh.css +5 -0
  988. package/markup/markup.js +1 -1
  989. package/markup/markup.js.map +1 -1
  990. package/markup/markup.style.js +1 -1
  991. package/markup/markup.style.js.map +1 -1
  992. package/markup/types.d.ts +2 -1
  993. package/masked-input/masked-input.js +1 -1
  994. package/masked-input/masked-input.js.map +1 -1
  995. package/masked-input/masked-input.styles.d.ts +22 -0
  996. package/masked-input/masked-input.styles.js +2 -0
  997. package/masked-input/masked-input.styles.js.map +1 -0
  998. package/masked-input/masked-input.styles_1cm388a.css +16 -0
  999. package/masthead/masthead.js +1 -1
  1000. package/masthead/masthead.js.map +1 -1
  1001. package/menu/menu-content.js +1 -1
  1002. package/menu/menu-content.js.map +1 -1
  1003. package/menu/menu-content.styles.js +1 -1
  1004. package/menu/menu-content.styles.js.map +1 -1
  1005. package/menu/menu-content.styles_p7ijll.css +2 -0
  1006. package/menu/menu.js +1 -1
  1007. package/menu/menu.js.map +1 -1
  1008. package/menu/types.d.ts +2 -2
  1009. package/modal/modal-box.styles.js +1 -1
  1010. package/modal/modal-box.styles.js.map +1 -1
  1011. package/modal/modal-box.styles_y52cts.css +11 -0
  1012. package/modal/modal.js +1 -1
  1013. package/modal/modal.js.map +1 -1
  1014. package/modal/modal.styles.d.ts +4 -1
  1015. package/modal/modal.styles.js +1 -1
  1016. package/modal/modal.styles.js.map +1 -1
  1017. package/modal/modal.styles_1lbblx6.css +11 -0
  1018. package/modal-v2/modal-v2.js +1 -1
  1019. package/modal-v2/modal-v2.js.map +1 -1
  1020. package/modal-v2/modal-v2.styles.d.ts +0 -1
  1021. package/modal-v2/modal-v2.styles.js +1 -1
  1022. package/modal-v2/modal-v2.styles.js.map +1 -1
  1023. package/modal-v2/modal-v2.styles_a8gv5i.css +3 -0
  1024. package/modal-v2/slots/card.js +1 -1
  1025. package/modal-v2/slots/card.js.map +1 -1
  1026. package/navbar/brand.js +1 -1
  1027. package/navbar/brand.js.map +1 -1
  1028. package/navbar/brand.styles.d.ts +1 -6
  1029. package/navbar/brand.styles.js +1 -12
  1030. package/navbar/brand.styles.js.map +1 -1
  1031. package/navbar/brand.styles_zcgddp.css +1 -0
  1032. package/navbar/drawer.js +1 -1
  1033. package/navbar/drawer.js.map +1 -1
  1034. package/navbar/drawer.styles.d.ts +13 -18
  1035. package/navbar/drawer.styles.js +1 -65
  1036. package/navbar/drawer.styles.js.map +1 -1
  1037. package/navbar/drawer.styles_7hnxp5.css +8 -0
  1038. package/navbar/menu.js +1 -1
  1039. package/navbar/menu.js.map +1 -1
  1040. package/navbar/menu.styles.d.ts +3 -3
  1041. package/navbar/menu.styles.js +1 -34
  1042. package/navbar/menu.styles.js.map +1 -1
  1043. package/navbar/menu.styles_gdpqc.css +3 -0
  1044. package/navbar/navbar-action-buttons.js +1 -1
  1045. package/navbar/navbar-action-buttons.js.map +1 -1
  1046. package/navbar/navbar-action-buttons.styles.d.ts +10 -31
  1047. package/navbar/navbar-action-buttons.styles.js +1 -100
  1048. package/navbar/navbar-action-buttons.styles.js.map +1 -1
  1049. package/navbar/navbar-action-buttons.styles_1vpm0nk.css +10 -0
  1050. package/navbar/navbar-items.js +1 -1
  1051. package/navbar/navbar-items.js.map +1 -1
  1052. package/navbar/navbar-items.styles.d.ts +19 -40
  1053. package/navbar/navbar-items.styles.js +1 -114
  1054. package/navbar/navbar-items.styles.js.map +1 -1
  1055. package/navbar/navbar-items.styles_1i3ltot.css +19 -0
  1056. package/navbar/navbar-logo-data.d.ts +2 -2
  1057. package/navbar/navbar-logo-data.js +1 -1
  1058. package/navbar/navbar-logo-data.js.map +1 -1
  1059. package/navbar/navbar.js +1 -1
  1060. package/navbar/navbar.js.map +1 -1
  1061. package/navbar/navbar.styles.d.ts +25 -20
  1062. package/navbar/navbar.styles.js +1 -79
  1063. package/navbar/navbar.styles.js.map +1 -1
  1064. package/navbar/navbar.styles_koy0c7.css +20 -0
  1065. package/notification-banner/notification-banner.d.ts +2 -2
  1066. package/notification-banner/notification-banner.js +1 -1
  1067. package/notification-banner/notification-banner.js.map +1 -1
  1068. package/notification-banner/notification-banner.styles.d.ts +17 -23
  1069. package/notification-banner/notification-banner.styles.js +1 -111
  1070. package/notification-banner/notification-banner.styles.js.map +1 -1
  1071. package/notification-banner/notification-banner.styles_uxlysy.css +12 -0
  1072. package/otp-input/otp-input.js +1 -1
  1073. package/otp-input/otp-input.js.map +1 -1
  1074. package/otp-input/otp-input.styles.d.ts +5 -23
  1075. package/otp-input/otp-input.styles.js +1 -22
  1076. package/otp-input/otp-input.styles.js.map +1 -1
  1077. package/otp-input/otp-input.styles_5sbutl.css +5 -0
  1078. package/otp-verification/contact-input-section.d.ts +1 -1
  1079. package/otp-verification/contact-input-section.js +1 -1
  1080. package/otp-verification/contact-input-section.js.map +1 -1
  1081. package/otp-verification/contact-input-section.styles.d.ts +14 -0
  1082. package/otp-verification/contact-input-section.styles.js +2 -0
  1083. package/otp-verification/contact-input-section.styles.js.map +1 -0
  1084. package/otp-verification/contact-input-section.styles_odrjvt.css +14 -0
  1085. package/otp-verification/internal-types.d.ts +2 -0
  1086. package/otp-verification/otp-verification.js +1 -1
  1087. package/otp-verification/otp-verification.js.map +1 -1
  1088. package/otp-verification/otp-verification.styles.d.ts +1 -0
  1089. package/otp-verification/otp-verification.styles.js +2 -0
  1090. package/otp-verification/otp-verification.styles.js.map +1 -0
  1091. package/otp-verification/otp-verification.styles_dg9bm8.css +1 -0
  1092. package/otp-verification/thumbnail/email-thumbnail.d.ts +1 -3
  1093. package/otp-verification/thumbnail/email-thumbnail.js +1 -21
  1094. package/otp-verification/thumbnail/email-thumbnail.js.map +1 -1
  1095. package/otp-verification/thumbnail/phone-thumbnail.d.ts +1 -3
  1096. package/otp-verification/thumbnail/phone-thumbnail.js +1 -17
  1097. package/otp-verification/thumbnail/phone-thumbnail.js.map +1 -1
  1098. package/otp-verification/thumbnail/thumbnail.styles.d.ts +3 -0
  1099. package/otp-verification/thumbnail/thumbnail.styles.js +2 -0
  1100. package/otp-verification/thumbnail/thumbnail.styles.js.map +1 -0
  1101. package/otp-verification/thumbnail/thumbnail.styles_shqylh.css +3 -0
  1102. package/otp-verification/verification-section.js +1 -1
  1103. package/otp-verification/verification-section.js.map +1 -1
  1104. package/otp-verification/verification-section.styles.d.ts +5 -0
  1105. package/otp-verification/verification-section.styles.js +2 -0
  1106. package/otp-verification/verification-section.styles.js.map +1 -0
  1107. package/otp-verification/verification-section.styles_x8jj.css +5 -0
  1108. package/overlay/overlay.js +1 -1
  1109. package/overlay/overlay.js.map +1 -1
  1110. package/package.json +14 -75
  1111. package/pagination/pagination.js +1 -1
  1112. package/pagination/pagination.js.map +1 -1
  1113. package/pagination/pagination.styles.js +1 -1
  1114. package/pagination/pagination.styles.js.map +1 -1
  1115. package/pagination/pagination.styles_6bcgva.css +14 -0
  1116. package/pill/pill.styles.js +1 -1
  1117. package/pill/pill.styles_xwrniu.css +17 -0
  1118. package/popover/index.d.ts +2 -1
  1119. package/popover/index.js +1 -1
  1120. package/popover/popover-inline/popover-inline.js.map +1 -0
  1121. package/popover/popover-inline/popover-inline.styles.js +2 -0
  1122. package/popover/popover-inline/popover-inline.styles.js.map +1 -0
  1123. package/popover/popover-inline/popover-inline.styles_bkopnt.css +2 -0
  1124. package/popover/popover-trigger.d.ts +2 -0
  1125. package/popover/popover-trigger.js +2 -0
  1126. package/popover/popover-trigger.js.map +1 -0
  1127. package/popover/popover-trigger.styles.js +2 -0
  1128. package/popover/popover-trigger.styles.js.map +1 -0
  1129. package/popover/popover-trigger.styles_8zokig.css +1 -0
  1130. package/popover/popover.d.ts +1 -4
  1131. package/popover/popover.js +1 -1
  1132. package/popover/popover.js.map +1 -1
  1133. package/popover/popover.styles.d.ts +10 -11
  1134. package/popover/popover.styles.js +1 -74
  1135. package/popover/popover.styles.js.map +1 -1
  1136. package/popover/popover.styles_ujnf0h.css +4 -0
  1137. package/popover/types.d.ts +48 -10
  1138. package/predictive-text-input/predictive-text-input.js +1 -1
  1139. package/predictive-text-input/predictive-text-input.js.map +1 -1
  1140. package/predictive-text-input/types.d.ts +1 -1
  1141. package/progress-indicator/progress-indicator.d.ts +1 -1
  1142. package/progress-indicator/progress-indicator.js +1 -1
  1143. package/progress-indicator/progress-indicator.js.map +1 -1
  1144. package/progress-indicator/progress-indicator.styles.d.ts +9 -0
  1145. package/progress-indicator/progress-indicator.styles.js +2 -0
  1146. package/progress-indicator/progress-indicator.styles.js.map +1 -0
  1147. package/progress-indicator/progress-indicator.styles_1c038s4.css +8 -0
  1148. package/progress-indicator/types.d.ts +0 -6
  1149. package/schedule/const.js +1 -1
  1150. package/schedule/const.js.map +1 -1
  1151. package/schedule/schedule-day-view/schedule-day-view.js +1 -1
  1152. package/schedule/schedule-day-view/schedule-day-view.js.map +1 -1
  1153. package/schedule/schedule-day-view/schedule-day-view.styles.d.ts +39 -99
  1154. package/schedule/schedule-day-view/schedule-day-view.styles.js +1 -152
  1155. package/schedule/schedule-day-view/schedule-day-view.styles.js.map +1 -1
  1156. package/schedule/schedule-day-view/schedule-day-view.styles_8ti149.css +30 -0
  1157. package/schedule/schedule-day-view/types.d.ts +2 -10
  1158. package/schedule/schedule-header/schedule-header.js +1 -1
  1159. package/schedule/schedule-header/schedule-header.js.map +1 -1
  1160. package/schedule/schedule-header/schedule-header.styles.d.ts +7 -0
  1161. package/schedule/schedule-header/schedule-header.styles.js +2 -0
  1162. package/schedule/schedule-header/schedule-header.styles.js.map +1 -0
  1163. package/schedule/schedule-header/schedule-header.styles_1n2u5vj.css +6 -0
  1164. package/schedule/schedule-slot-content/index.d.ts +4 -0
  1165. package/schedule/schedule-slot-content/schedule-slot-content.d.ts +21 -0
  1166. package/schedule/schedule-slot-content/schedule-slot-content.js +2 -0
  1167. package/schedule/schedule-slot-content/schedule-slot-content.js.map +1 -0
  1168. package/schedule/schedule-slot-content/style-helper.d.ts +8 -0
  1169. package/schedule/schedule-slot-content/style-helper.js +2 -0
  1170. package/schedule/schedule-slot-content/style-helper.js.map +1 -0
  1171. package/schedule/schedule-week-view/schedule-week-view.js +1 -1
  1172. package/schedule/schedule-week-view/schedule-week-view.js.map +1 -1
  1173. package/schedule/schedule-week-view/schedule-week-view.styles.d.ts +15 -32
  1174. package/schedule/schedule-week-view/schedule-week-view.styles.js +1 -74
  1175. package/schedule/schedule-week-view/schedule-week-view.styles.js.map +1 -1
  1176. package/schedule/schedule-week-view/schedule-week-view.styles_x7x50m.css +10 -0
  1177. package/schedule/schedule-week-view/time-cell.js +1 -1
  1178. package/schedule/schedule-week-view/time-cell.js.map +1 -1
  1179. package/schedule/schedule-week-view/time-cell.styles.d.ts +23 -14
  1180. package/schedule/schedule-week-view/time-cell.styles.js +1 -34
  1181. package/schedule/schedule-week-view/time-cell.styles.js.map +1 -1
  1182. package/schedule/schedule-week-view/time-cell.styles_1sorjz8.css +14 -0
  1183. package/schedule/schedule-week-view/types.d.ts +2 -15
  1184. package/schedule/schedule-week-view/week-view-utils.js +1 -1
  1185. package/schedule/schedule-week-view/week-view-utils.js.map +1 -1
  1186. package/schedule/schedule.js +1 -1
  1187. package/schedule/schedule.js.map +1 -1
  1188. package/schedule/schedule.styles.d.ts +5 -8
  1189. package/schedule/schedule.styles.js +1 -26
  1190. package/schedule/schedule.styles.js.map +1 -1
  1191. package/schedule/schedule.styles_fdy5a1.css +5 -0
  1192. package/schedule/shared/with-optional-popover.d.ts +1 -1
  1193. package/schedule/shared/with-optional-popover.js +1 -5
  1194. package/schedule/shared/with-optional-popover.js.map +1 -1
  1195. package/schedule/shared/with-optional-popover.styles.d.ts +1 -0
  1196. package/schedule/shared/with-optional-popover.styles.js +2 -0
  1197. package/schedule/shared/with-optional-popover.styles.js.map +1 -0
  1198. package/schedule/shared/with-optional-popover.styles_7mv3p2.css +1 -0
  1199. package/schedule/time-indicator/time-indicator.js +1 -1
  1200. package/schedule/time-indicator/time-indicator.js.map +1 -1
  1201. package/schedule/time-indicator/time-indicator.styles.d.ts +11 -28
  1202. package/schedule/time-indicator/time-indicator.styles.js +1 -33
  1203. package/schedule/time-indicator/time-indicator.styles.js.map +1 -1
  1204. package/schedule/time-indicator/time-indicator.styles_1eaxyes.css +6 -0
  1205. package/schedule/types.d.ts +12 -2
  1206. package/select-histogram/select-histogram.js +1 -1
  1207. package/select-histogram/select-histogram.js.map +1 -1
  1208. package/select-histogram/select-histogram.styles.d.ts +5 -21
  1209. package/select-histogram/select-histogram.styles.js +1 -37
  1210. package/select-histogram/select-histogram.styles.js.map +1 -1
  1211. package/select-histogram/select-histogram.styles_n260dy.css +5 -0
  1212. package/shared/component-loading-spinner/component-loading-spinner.js +1 -1
  1213. package/shared/component-loading-spinner/component-loading-spinner.js.map +1 -1
  1214. package/shared/dropdown-list/dropdown-label.js +1 -1
  1215. package/shared/dropdown-list/dropdown-label.js.map +1 -1
  1216. package/shared/dropdown-list/dropdown-label.styles.js +1 -1
  1217. package/shared/dropdown-list/dropdown-label.styles.js.map +1 -1
  1218. package/shared/dropdown-list/dropdown-label.styles_mloii0.css +19 -0
  1219. package/shared/dropdown-list/dropdown-list.js +1 -1
  1220. package/shared/dropdown-list/dropdown-list.js.map +1 -1
  1221. package/shared/dropdown-list/dropdown-list.styles.d.ts +1 -1
  1222. package/shared/dropdown-list/dropdown-list.styles.js +1 -1
  1223. package/shared/dropdown-list/dropdown-list.styles.js.map +1 -1
  1224. package/shared/dropdown-list/dropdown-list.styles_konwm.css +26 -0
  1225. package/shared/dropdown-list/dropdown-search.styles.js +1 -1
  1226. package/shared/dropdown-list/dropdown-search.styles.js.map +1 -1
  1227. package/shared/dropdown-list/dropdown-search.styles_1hc1gkh.css +7 -0
  1228. package/shared/dropdown-list/expandable-element.js +1 -1
  1229. package/shared/dropdown-list/expandable-element.js.map +1 -1
  1230. package/shared/dropdown-list/expandable-element.styles.d.ts +0 -1
  1231. package/shared/dropdown-list/expandable-element.styles.js +1 -1
  1232. package/shared/dropdown-list/expandable-element.styles.js.map +1 -1
  1233. package/shared/dropdown-list/expandable-element.styles_rkkvqr.css +5 -0
  1234. package/shared/dropdown-list/nested-dropdown-list.js +1 -1
  1235. package/shared/dropdown-list/nested-dropdown-list.js.map +1 -1
  1236. package/shared/dropdown-wrapper/dropdown-wrapper.styles.js +1 -1
  1237. package/shared/dropdown-wrapper/dropdown-wrapper.styles.js.map +1 -1
  1238. package/shared/dropdown-wrapper/dropdown-wrapper.styles_15hwwoj.css +3 -0
  1239. package/shared/dropdown-wrapper/element-with-dropdown.js +1 -1
  1240. package/shared/dropdown-wrapper/element-with-dropdown.js.map +1 -1
  1241. package/shared/fade-wrapper/fade-wrapper.js +1 -1
  1242. package/shared/fade-wrapper/fade-wrapper.js.map +1 -1
  1243. package/shared/fade-wrapper/helpers.js +1 -1
  1244. package/shared/fade-wrapper/helpers.js.map +1 -1
  1245. package/shared/hooks/useViewport.d.ts +7 -2
  1246. package/shared/hooks/useViewport.js +1 -1
  1247. package/shared/hooks/useViewport.js.map +1 -1
  1248. package/shared/input-wrapper/input-wrapper.d.ts +5 -0
  1249. package/shared/input-wrapper/input-wrapper.js +1 -1
  1250. package/shared/input-wrapper/input-wrapper.js.map +1 -1
  1251. package/shared/input-wrapper/input-wrapper.styles.d.ts +3 -0
  1252. package/shared/input-wrapper/input-wrapper.styles.js +1 -1
  1253. package/shared/input-wrapper/input-wrapper.styles.js.map +1 -1
  1254. package/shared/input-wrapper/input-wrapper.styles_je6maw.css +14 -0
  1255. package/shared/internal-calendar/calendar-dropdown.js +1 -1
  1256. package/shared/internal-calendar/calendar-dropdown.js.map +1 -1
  1257. package/shared/internal-calendar/calendar-manager.styles.js +1 -1
  1258. package/shared/internal-calendar/calendar-manager.styles_1iuq5zw.css +22 -0
  1259. package/shared/internal-calendar/day-cell/day-cell.styles.js +1 -1
  1260. package/shared/internal-calendar/day-cell/day-cell.styles.js.map +1 -1
  1261. package/shared/internal-calendar/day-cell/day-cell.styles_1t5oqc1.css +8 -0
  1262. package/shared/internal-calendar/internal-calendar-month.styles.js +1 -1
  1263. package/shared/internal-calendar/internal-calendar-month.styles_14oh57f.css +8 -0
  1264. package/shared/internal-calendar/internal-calendar-year.styles.js +1 -1
  1265. package/shared/internal-calendar/internal-calendar-year.styles.js.map +1 -1
  1266. package/shared/internal-calendar/internal-calendar-year.styles_therlc.css +9 -0
  1267. package/shared/internal-calendar/single/single-cell.js +1 -1
  1268. package/shared/internal-calendar/single/single-cell.js.map +1 -1
  1269. package/shared/internal-calendar/standard/standard-calendar-day-view.styles.js +1 -1
  1270. package/shared/internal-calendar/standard/standard-calendar-day-view.styles_1bw26au.css +3 -0
  1271. package/shared/progress-bar/progress-bar.js +1 -1
  1272. package/shared/progress-bar/progress-bar.js.map +1 -1
  1273. package/shared/standalone-date-input/standalone-date-input.js +1 -1
  1274. package/shared/standalone-date-input/standalone-date-input.js.map +1 -1
  1275. package/shared/standalone-date-input/standalone-date-input.styles.d.ts +2 -1
  1276. package/shared/standalone-date-input/standalone-date-input.styles.js +1 -1
  1277. package/shared/standalone-date-input/standalone-date-input.styles.js.map +1 -1
  1278. package/shared/standalone-date-input/standalone-date-input.styles_157qo89.css +15 -0
  1279. package/shared/time-slot/index.d.ts +2 -0
  1280. package/shared/time-slot/time-slot.d.ts +18 -0
  1281. package/shared/time-slot/time-slot.js +2 -0
  1282. package/shared/time-slot/time-slot.js.map +1 -0
  1283. package/shared/time-slot/time-slot.styles.d.ts +12 -0
  1284. package/shared/time-slot/time-slot.styles.js +2 -0
  1285. package/shared/time-slot/time-slot.styles.js.map +1 -0
  1286. package/shared/time-slot/time-slot.styles_18s0to7.css +29 -0
  1287. package/shared/time-slot/types.d.ts +1 -0
  1288. package/sidenav/sidenav-drawer-item.styles.js +1 -1
  1289. package/sidenav/sidenav-drawer-item.styles.js.map +1 -1
  1290. package/sidenav/sidenav-drawer-item.styles_1ljnyx2.css +6 -0
  1291. package/sidenav/sidenav-drawer-subitem.styles.js +1 -1
  1292. package/sidenav/sidenav-drawer-subitem.styles.js.map +1 -1
  1293. package/sidenav/sidenav-drawer-subitem.styles_2y58kf.css +1 -0
  1294. package/sidenav/sidenav-item.styles.js +1 -1
  1295. package/sidenav/sidenav-item.styles.js.map +1 -1
  1296. package/sidenav/sidenav-item.styles_lqw3kh.css +7 -0
  1297. package/smart-app-banner/smart-app-banner.js +1 -1
  1298. package/smart-app-banner/smart-app-banner.js.map +1 -1
  1299. package/smart-app-banner/smart-app-banner.styles.d.ts +21 -85
  1300. package/smart-app-banner/smart-app-banner.styles.js +1 -93
  1301. package/smart-app-banner/smart-app-banner.styles.js.map +1 -1
  1302. package/smart-app-banner/smart-app-banner.styles_15u6yv4.css +16 -0
  1303. package/tab/tab-link-chain.js +1 -1
  1304. package/tab/tab-link-chain.js.map +1 -1
  1305. package/tab/tab-link-chain.styles.js +1 -1
  1306. package/tab/tab-link-chain.styles.js.map +1 -1
  1307. package/tab/tab-link-chain.styles_49got4.css +14 -0
  1308. package/tag/tag.style.js +1 -1
  1309. package/tag/tag.style_d98c53.css +17 -0
  1310. package/text-list/ordered-list.js +1 -1
  1311. package/text-list/ordered-list.js.map +1 -1
  1312. package/text-list/text-list.styles.js +1 -1
  1313. package/text-list/text-list.styles.js.map +1 -1
  1314. package/text-list/text-list.styles_w3fvyt.css +16 -0
  1315. package/text-list/unordered-list.js +1 -1
  1316. package/text-list/unordered-list.js.map +1 -1
  1317. package/theme/index.d.ts +4 -1
  1318. package/theme/index.js +1 -1
  1319. package/theme/styles/a11y-playground.css +30 -1
  1320. package/theme/styles/bookingsg.css +30 -1
  1321. package/theme/styles/careercompass.css +516 -0
  1322. package/theme/styles/ccube.css +28 -0
  1323. package/theme/styles/default.css +2 -1
  1324. package/theme/styles/imda.css +30 -1
  1325. package/theme/styles/lifesg.css +28 -0
  1326. package/theme/styles/mylegacy.css +30 -1
  1327. package/theme/styles/oneservice.css +28 -0
  1328. package/theme/styles/pa.css +206 -1
  1329. package/theme/styles/rbs.css +28 -0
  1330. package/theme/styles/sgw-digital-lobby.css +32 -3
  1331. package/theme/styles/smgs.css +516 -0
  1332. package/theme/styles/spf.css +143 -114
  1333. package/theme/styles/supportgowhere.css +30 -1
  1334. package/theme/theme-provider/breakpoint.js +1 -1
  1335. package/theme/theme-provider/breakpoint.js.map +1 -1
  1336. package/theme/theme-provider/hooks.d.ts +2 -1
  1337. package/theme/theme-provider/hooks.js +1 -1
  1338. package/theme/theme-provider/hooks.js.map +1 -1
  1339. package/theme/tokens/colour.d.ts +28 -0
  1340. package/theme/tokens/colour.js +1 -1
  1341. package/theme/tokens/colour.js.map +1 -1
  1342. package/theme/tokens/font.d.ts +4 -2
  1343. package/theme/tokens/font.js +1 -1
  1344. package/theme/tokens/font.js.map +1 -1
  1345. package/theme/types.d.ts +1 -1
  1346. package/theme/types.js +1 -1
  1347. package/theme/types.js.map +1 -1
  1348. package/theme/utils/css-variable.d.ts +9 -0
  1349. package/theme/utils/css-variable.js +1 -1
  1350. package/theme/utils/css-variable.js.map +1 -1
  1351. package/theme/utils/font.d.ts +2 -2
  1352. package/theme/utils/font.js +1 -1
  1353. package/theme/utils/font.js.map +1 -1
  1354. package/theme/utils/index.d.ts +1 -1
  1355. package/theme/utils/token-resolver.js +1 -1
  1356. package/theme/utils/token-resolver.js.map +1 -1
  1357. package/theme/utils/use-design-token.js +1 -1
  1358. package/theme/utils/use-design-token.js.map +1 -1
  1359. package/theme/utils/use-media-query.d.ts +23 -0
  1360. package/theme/utils/use-media-query.js +2 -0
  1361. package/theme/utils/use-media-query.js.map +1 -0
  1362. package/time-range-picker/combobox-picker/combobox-picker.js +1 -1
  1363. package/time-range-picker/combobox-picker/combobox-picker.js.map +1 -1
  1364. package/time-range-picker/combobox-picker/combobox-picker.styles.d.ts +1 -1
  1365. package/time-range-picker/combobox-picker/combobox-picker.styles.js +1 -6
  1366. package/time-range-picker/combobox-picker/combobox-picker.styles.js.map +1 -1
  1367. package/time-range-picker/combobox-picker/combobox-picker.styles_7i9vso.css +1 -0
  1368. package/time-range-picker/common.styles.d.ts +3 -3
  1369. package/time-range-picker/common.styles.js +1 -10
  1370. package/time-range-picker/common.styles.js.map +1 -1
  1371. package/time-range-picker/common.styles_1qwp4xa.css +3 -0
  1372. package/time-range-picker/dial-picker/dial-picker.js +1 -1
  1373. package/time-range-picker/dial-picker/dial-picker.js.map +1 -1
  1374. package/time-slot-bar/helper.d.ts +1 -0
  1375. package/time-slot-bar/helper.js +1 -1
  1376. package/time-slot-bar/helper.js.map +1 -1
  1377. package/time-slot-bar/time-slot-bar.js +1 -1
  1378. package/time-slot-bar/time-slot-bar.js.map +1 -1
  1379. package/time-slot-bar/time-slot-bar.styles.d.ts +37 -99
  1380. package/time-slot-bar/time-slot-bar.styles.js +1 -127
  1381. package/time-slot-bar/time-slot-bar.styles.js.map +1 -1
  1382. package/time-slot-bar/time-slot-bar.styles_wigbyd.css +25 -0
  1383. package/time-slot-bar/time-slot-divider.d.ts +8 -0
  1384. package/time-slot-bar/time-slot-divider.js +2 -0
  1385. package/time-slot-bar/time-slot-divider.js.map +1 -0
  1386. package/time-slot-bar/time-slot-item.d.ts +13 -0
  1387. package/time-slot-bar/time-slot-item.js +2 -0
  1388. package/time-slot-bar/time-slot-item.js.map +1 -0
  1389. package/time-slot-bar/types.d.ts +7 -8
  1390. package/time-slot-bar-week/consts.d.ts +3 -0
  1391. package/time-slot-bar-week/consts.js +2 -0
  1392. package/time-slot-bar-week/consts.js.map +1 -0
  1393. package/time-slot-bar-week/time-slot-bar-week-days.js +1 -1
  1394. package/time-slot-bar-week/time-slot-bar-week-days.js.map +1 -1
  1395. package/time-slot-bar-week/time-slot-bar-week-days.styles.d.ts +25 -0
  1396. package/time-slot-bar-week/time-slot-bar-week-days.styles.js +2 -0
  1397. package/time-slot-bar-week/time-slot-bar-week-days.styles.js.map +1 -0
  1398. package/time-slot-bar-week/time-slot-bar-week-days.styles_evdvs9.css +17 -0
  1399. package/time-slot-bar-week/time-slot-bar-week.js +1 -1
  1400. package/time-slot-bar-week/time-slot-bar-week.js.map +1 -1
  1401. package/time-slot-bar-week/time-slot-bar-week.styles.d.ts +1 -0
  1402. package/time-slot-bar-week/time-slot-bar-week.styles.js +2 -0
  1403. package/time-slot-bar-week/time-slot-bar-week.styles.js.map +1 -0
  1404. package/time-slot-bar-week/time-slot-bar-week.styles_11ybf42.css +1 -0
  1405. package/time-slot-bar-week/time-slot-cell.d.ts +28 -0
  1406. package/time-slot-bar-week/time-slot-cell.js +2 -0
  1407. package/time-slot-bar-week/time-slot-cell.js.map +1 -0
  1408. package/time-slot-week-view/time-slot-week-days.js +1 -1
  1409. package/time-slot-week-view/time-slot-week-days.js.map +1 -1
  1410. package/time-slot-week-view/time-slot-week-days.styles.d.ts +14 -0
  1411. package/time-slot-week-view/time-slot-week-days.styles.js +2 -0
  1412. package/time-slot-week-view/time-slot-week-days.styles.js.map +1 -0
  1413. package/time-slot-week-view/time-slot-week-days.styles_1h21vyw.css +9 -0
  1414. package/time-slot-week-view/time-slot-week-view.js +1 -1
  1415. package/time-slot-week-view/time-slot-week-view.js.map +1 -1
  1416. package/time-slot-week-view/time-slot-week-view.styles.d.ts +1 -1
  1417. package/time-slot-week-view/time-slot-week-view.styles.js +1 -9
  1418. package/time-slot-week-view/time-slot-week-view.styles.js.map +1 -1
  1419. package/time-slot-week-view/time-slot-week-view.styles_gqgsw2.css +1 -0
  1420. package/timeline/timeline.js +1 -1
  1421. package/timeline/timeline.js.map +1 -1
  1422. package/timeline/timeline.styles.d.ts +15 -0
  1423. package/timeline/timeline.styles.js +2 -0
  1424. package/timeline/timeline.styles.js.map +1 -0
  1425. package/timeline/timeline.styles_1jxzik4.css +9 -0
  1426. package/timepicker/timepicker.js +1 -1
  1427. package/timepicker/timepicker.js.map +1 -1
  1428. package/timepicker/timepicker.styles.js +1 -1
  1429. package/timepicker/timepicker.styles.js.map +1 -1
  1430. package/timepicker/timepicker.styles_1jm33yw.css +1 -0
  1431. package/timetable/const.js +1 -1
  1432. package/timetable/const.js.map +1 -1
  1433. package/timetable/timetable-header/timetable-header.js +1 -1
  1434. package/timetable/timetable-header/timetable-header.js.map +1 -1
  1435. package/timetable/timetable-header/timetable-header.styles.d.ts +6 -0
  1436. package/timetable/timetable-header/timetable-header.styles.js +2 -0
  1437. package/timetable/timetable-header/timetable-header.styles.js.map +1 -0
  1438. package/timetable/timetable-header/timetable-header.styles_11gl1h4.css +6 -0
  1439. package/timetable/timetable-row/row-bar.js +1 -1
  1440. package/timetable/timetable-row/row-bar.js.map +1 -1
  1441. package/timetable/timetable-row/row-bar.styles.d.ts +1 -0
  1442. package/timetable/timetable-row/row-bar.styles.js +2 -0
  1443. package/timetable/timetable-row/row-bar.styles.js.map +1 -0
  1444. package/timetable/timetable-row/row-bar.styles_1x0vrsz.css +1 -0
  1445. package/timetable/timetable-row/row-cell.js +1 -1
  1446. package/timetable/timetable-row/row-cell.js.map +1 -1
  1447. package/timetable/timetable-row/row-cell.styles.d.ts +14 -0
  1448. package/timetable/timetable-row/row-cell.styles.js +2 -0
  1449. package/timetable/timetable-row/row-cell.styles.js.map +1 -0
  1450. package/timetable/timetable-row/row-cell.styles_y1dl5j.css +7 -0
  1451. package/timetable/timetable-row/with-optional-popover.js +1 -1
  1452. package/timetable/timetable-row/with-optional-popover.js.map +1 -1
  1453. package/timetable/timetable.js +1 -1
  1454. package/timetable/timetable.js.map +1 -1
  1455. package/timetable/timetable.styles.d.ts +41 -0
  1456. package/timetable/timetable.styles.js +2 -0
  1457. package/timetable/timetable.styles.js.map +1 -0
  1458. package/timetable/timetable.styles_7rp8kz.css +46 -0
  1459. package/timetable/types.d.ts +6 -7
  1460. package/toast/toast.d.ts +1 -1
  1461. package/toast/toast.js +1 -1
  1462. package/toast/toast.js.map +1 -1
  1463. package/toast/toast.styles.d.ts +8 -51
  1464. package/toast/toast.styles.js +1 -98
  1465. package/toast/toast.styles.js.map +1 -1
  1466. package/toast/toast.styles_1e0l60w.css +8 -0
  1467. package/toggle/toggle.js +1 -1
  1468. package/toggle/toggle.js.map +1 -1
  1469. package/toggle/toggle.styles.js +1 -1
  1470. package/toggle/toggle.styles.js.map +1 -1
  1471. package/toggle/toggle.styles_1t5qrye.css +38 -0
  1472. package/typography/index.js +1 -1
  1473. package/typography/typography.js +1 -1
  1474. package/typography/typography.js.map +1 -1
  1475. package/typography/typography.styles.d.ts +2 -0
  1476. package/typography/typography.styles.js +1 -1
  1477. package/typography/typography.styles.js.map +1 -1
  1478. package/typography/typography.styles_1155j4c.css +11 -0
  1479. package/uneditable-section/index.d.ts +1 -1
  1480. package/uneditable-section/item-section.d.ts +1 -1
  1481. package/uneditable-section/item-section.js +1 -1
  1482. package/uneditable-section/item-section.js.map +1 -1
  1483. package/uneditable-section/section-item.js +1 -1
  1484. package/uneditable-section/section-item.js.map +1 -1
  1485. package/uneditable-section/section-item.styles.d.ts +9 -22
  1486. package/uneditable-section/section-item.styles.js +1 -63
  1487. package/uneditable-section/section-item.styles.js.map +1 -1
  1488. package/uneditable-section/section-item.styles_mwx8ht.css +9 -0
  1489. package/uneditable-section/uneditable-section.d.ts +1 -1
  1490. package/uneditable-section/uneditable-section.js +1 -1
  1491. package/uneditable-section/uneditable-section.js.map +1 -1
  1492. package/uneditable-section/uneditable-section.styles.d.ts +8 -52
  1493. package/uneditable-section/uneditable-section.styles.js +1 -39
  1494. package/uneditable-section/uneditable-section.styles.js.map +1 -1
  1495. package/uneditable-section/uneditable-section.styles_aj9zun.css +8 -0
  1496. package/unit-number/unit-number-input.js +1 -1
  1497. package/unit-number/unit-number-input.js.map +1 -1
  1498. package/unit-number/unit-number-input.styles.d.ts +7 -0
  1499. package/unit-number/unit-number-input.styles.js +2 -0
  1500. package/unit-number/unit-number-input.styles.js.map +1 -0
  1501. package/unit-number/unit-number-input.styles_8yizj.css +7 -0
  1502. package/util/is-styled-components.d.ts +5 -0
  1503. package/util/is-styled-components.js +2 -0
  1504. package/util/is-styled-components.js.map +1 -0
  1505. package/util/styling-helper.js +1 -1
  1506. package/util/styling-helper.js.map +1 -1
  1507. package/_virtual/react-responsive.js +0 -2
  1508. package/_virtual/react-responsive.js.map +0 -1
  1509. package/accordion/accordion-item.styles_kchcad.css +0 -12
  1510. package/accordion/accordion.styles_ijglff.css +0 -6
  1511. package/alert/alert.styles_1ygel36.css +0 -28
  1512. package/badge/badge.styles_1yrxocm.css +0 -16
  1513. package/box-container/box-container.styles_5y84d5.css +0 -18
  1514. package/button/button.styles_142m6cx.css +0 -19
  1515. package/cjs/_virtual/react-responsive.js +0 -2
  1516. package/cjs/_virtual/react-responsive.js.map +0 -1
  1517. package/cjs/accordion/accordion-item.styles_kchcad.css +0 -12
  1518. package/cjs/accordion/accordion.styles_ijglff.css +0 -6
  1519. package/cjs/alert/alert.styles_1ygel36.css +0 -28
  1520. package/cjs/badge/badge.styles_1yrxocm.css +0 -16
  1521. package/cjs/box-container/box-container.styles_5y84d5.css +0 -18
  1522. package/cjs/button/button.styles_142m6cx.css +0 -19
  1523. package/cjs/countdown-timer/countdown-timer.style.js +0 -58
  1524. package/cjs/countdown-timer/countdown-timer.style.js.map +0 -1
  1525. package/cjs/date-input/date-input.style.js +0 -4
  1526. package/cjs/date-input/date-input.style.js.map +0 -1
  1527. package/cjs/date-navigator/date-navigator.styles_1cotsgz.css +0 -4
  1528. package/cjs/date-range-input/date-range-input.style.js +0 -17
  1529. package/cjs/date-range-input/date-range-input.style.js.map +0 -1
  1530. package/cjs/external/react-responsive/dist/react-responsive.js +0 -65
  1531. package/cjs/external/react-responsive/dist/react-responsive.js.map +0 -1
  1532. package/cjs/file-upload/file-list.js +0 -2
  1533. package/cjs/file-upload/file-list.js.map +0 -1
  1534. package/cjs/file-upload/file-list.styles.js +0 -21
  1535. package/cjs/file-upload/file-list.styles.js.map +0 -1
  1536. package/cjs/form/form-label.styles_rk98yd.css +0 -6
  1537. package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.style.js +0 -298
  1538. package/cjs/fullscreen-image-carousel/fullscreen-image-carousel.style.js.map +0 -1
  1539. package/cjs/fullscreen-image-carousel/stateful-image.style.js +0 -13
  1540. package/cjs/fullscreen-image-carousel/stateful-image.style.js.map +0 -1
  1541. package/cjs/image-button/image-button.styles_qtt605.css +0 -5
  1542. package/cjs/input-group/input-group-list-addon.styles_1my6j2v.css +0 -9
  1543. package/cjs/input-group/input-group.styles_fpy81r.css +0 -3
  1544. package/cjs/input-range-select/input-range-select.style.js +0 -36
  1545. package/cjs/input-range-select/input-range-select.style.js.map +0 -1
  1546. package/cjs/input-textarea/textarea-counter.styles_adg5h1.css +0 -1
  1547. package/cjs/input-textarea/textarea.styles_g0zgyq.css +0 -5
  1548. package/cjs/language-switcher/dropdown-variant.style.js +0 -62
  1549. package/cjs/language-switcher/dropdown-variant.style.js.map +0 -1
  1550. package/cjs/language-switcher/link-container-variant.style.js +0 -51
  1551. package/cjs/language-switcher/link-container-variant.style.js.map +0 -1
  1552. package/cjs/markup/markup.utils.js +0 -2
  1553. package/cjs/markup/markup.utils.js.map +0 -1
  1554. package/cjs/masked-input/masked-input.style.js +0 -87
  1555. package/cjs/masked-input/masked-input.style.js.map +0 -1
  1556. package/cjs/masonry/index.js +0 -2
  1557. package/cjs/masonry/index.js.map +0 -1
  1558. package/cjs/masonry/masonry.js +0 -2
  1559. package/cjs/masonry/masonry.js.map +0 -1
  1560. package/cjs/masonry/masonry.style.js +0 -42
  1561. package/cjs/masonry/masonry.style.js.map +0 -1
  1562. package/cjs/menu/menu-content.styles_1b7d6qf.css +0 -2
  1563. package/cjs/modal/modal-box.styles_1xrlxhd.css +0 -2
  1564. package/cjs/modal/modal.styles_1sav73f.css +0 -11
  1565. package/cjs/modal-v2/modal-v2.styles_1irpyi6.css +0 -3
  1566. package/cjs/otp-verification/contact-input-section-styles.js +0 -113
  1567. package/cjs/otp-verification/contact-input-section-styles.js.map +0 -1
  1568. package/cjs/otp-verification/otp-verification-styles.js +0 -6
  1569. package/cjs/otp-verification/otp-verification-styles.js.map +0 -1
  1570. package/cjs/otp-verification/verification-section-styles.js +0 -27
  1571. package/cjs/otp-verification/verification-section-styles.js.map +0 -1
  1572. package/cjs/pagination/pagination.styles_1u898rb.css +0 -14
  1573. package/cjs/pill/pill.styles_1wiyl8.css +0 -17
  1574. package/cjs/popover/popover-hoc.js +0 -2
  1575. package/cjs/popover/popover-hoc.js.map +0 -1
  1576. package/cjs/popover-v2/index.js +0 -2
  1577. package/cjs/popover-v2/index.js.map +0 -1
  1578. package/cjs/popover-v2/popover-inline/popover-inline.js.map +0 -1
  1579. package/cjs/popover-v2/popover-inline/popover-inline.styles.js +0 -2
  1580. package/cjs/popover-v2/popover-inline/popover-inline.styles.js.map +0 -1
  1581. package/cjs/popover-v2/popover-inline/popover-inline.styles_ziag9c.css +0 -2
  1582. package/cjs/popover-v2/popover-trigger.js +0 -2
  1583. package/cjs/popover-v2/popover-trigger.js.map +0 -1
  1584. package/cjs/popover-v2/popover-trigger.styles.js +0 -2
  1585. package/cjs/popover-v2/popover-trigger.styles.js.map +0 -1
  1586. package/cjs/popover-v2/popover-trigger.styles_1yq7ffk.css +0 -1
  1587. package/cjs/popover-v2/popover.js +0 -2
  1588. package/cjs/popover-v2/popover.js.map +0 -1
  1589. package/cjs/popover-v2/popover.styles.js +0 -2
  1590. package/cjs/popover-v2/popover.styles.js.map +0 -1
  1591. package/cjs/popover-v2/popover.styles_lslc72.css +0 -4
  1592. package/cjs/progress-indicator/progress-indicator.style.js +0 -39
  1593. package/cjs/progress-indicator/progress-indicator.style.js.map +0 -1
  1594. package/cjs/schedule/schedule-header/schedule-header.style.js +0 -38
  1595. package/cjs/schedule/schedule-header/schedule-header.style.js.map +0 -1
  1596. package/cjs/schedule/schedule-week-view/slot-content.js +0 -2
  1597. package/cjs/schedule/schedule-week-view/slot-content.js.map +0 -1
  1598. package/cjs/schedule/schedule-week-view/slot-content.styles.js +0 -40
  1599. package/cjs/schedule/schedule-week-view/slot-content.styles.js.map +0 -1
  1600. package/cjs/shared/dropdown-list/dropdown-label.styles_1dwmd8f.css +0 -19
  1601. package/cjs/shared/dropdown-list/dropdown-list.styles_1qveyb9.css +0 -29
  1602. package/cjs/shared/dropdown-list/dropdown-search.styles_4r9oma.css +0 -7
  1603. package/cjs/shared/dropdown-list/expandable-element.styles_5o9f9w.css +0 -6
  1604. package/cjs/shared/dropdown-wrapper/dropdown-wrapper.styles_v10jbi.css +0 -3
  1605. package/cjs/shared/input-wrapper/input-wrapper.styles_1kc4xhb.css +0 -11
  1606. package/cjs/shared/internal-calendar/calendar-manager.styles_1q13ylk.css +0 -22
  1607. package/cjs/shared/internal-calendar/day-cell/day-cell.styles_vazxvn.css +0 -8
  1608. package/cjs/shared/internal-calendar/internal-calendar-month.styles_1pk3ynj.css +0 -8
  1609. package/cjs/shared/internal-calendar/internal-calendar-year.styles_1azy42u.css +0 -9
  1610. package/cjs/shared/internal-calendar/standard/standard-calendar-day-view.styles_1dbvup3.css +0 -3
  1611. package/cjs/shared/standalone-date-input/standalone-date-input.styles_1mqophx.css +0 -14
  1612. package/cjs/shared/styles/index.js +0 -2
  1613. package/cjs/shared/styles/index.js.map +0 -1
  1614. package/cjs/sidenav/sidenav-drawer-item.styles_yp8cga.css +0 -6
  1615. package/cjs/sidenav/sidenav-drawer-subitem.styles_1ylzfn5.css +0 -1
  1616. package/cjs/sidenav/sidenav-item.styles_1eew8px.css +0 -7
  1617. package/cjs/tab/tab-link-chain.styles_1nreqrp.css +0 -14
  1618. package/cjs/tag/tag.style_10tn8i.css +0 -17
  1619. package/cjs/text-list/text-list.styles_1gohl3f.css +0 -16
  1620. package/cjs/theme/utils/media-query.js +0 -2
  1621. package/cjs/theme/utils/media-query.js.map +0 -1
  1622. package/cjs/time-slot-bar-week/time-slot-bar-week-days.style.js +0 -101
  1623. package/cjs/time-slot-bar-week/time-slot-bar-week-days.style.js.map +0 -1
  1624. package/cjs/time-slot-bar-week/time-slot-bar-week.style.js +0 -10
  1625. package/cjs/time-slot-bar-week/time-slot-bar-week.style.js.map +0 -1
  1626. package/cjs/time-slot-week-view/time-slot-week-days.style.js +0 -53
  1627. package/cjs/time-slot-week-view/time-slot-week-days.style.js.map +0 -1
  1628. package/cjs/timeline/timeline.style.js +0 -100
  1629. package/cjs/timeline/timeline.style.js.map +0 -1
  1630. package/cjs/timepicker/timepicker.styles_zmkhl8.css +0 -1
  1631. package/cjs/timetable/timetable-header/timetable-header.style.js +0 -28
  1632. package/cjs/timetable/timetable-header/timetable-header.style.js.map +0 -1
  1633. package/cjs/timetable/timetable-row/row-bar.style.js +0 -5
  1634. package/cjs/timetable/timetable-row/row-bar.style.js.map +0 -1
  1635. package/cjs/timetable/timetable-row/row-cell.style.js +0 -53
  1636. package/cjs/timetable/timetable-row/row-cell.style.js.map +0 -1
  1637. package/cjs/timetable/timetable.style.js +0 -172
  1638. package/cjs/timetable/timetable.style.js.map +0 -1
  1639. package/cjs/toggle/toggle.styles_1yzqsu.css +0 -38
  1640. package/cjs/tooltip/index.js +0 -2
  1641. package/cjs/tooltip/index.js.map +0 -1
  1642. package/cjs/tooltip/tooltip-hoc.js +0 -2
  1643. package/cjs/tooltip/tooltip-hoc.js.map +0 -1
  1644. package/cjs/tooltip/tooltip.js +0 -2
  1645. package/cjs/tooltip/tooltip.js.map +0 -1
  1646. package/cjs/tooltip/tooltip.styles.js +0 -192
  1647. package/cjs/tooltip/tooltip.styles.js.map +0 -1
  1648. package/cjs/typography/typography.styles_1jqils.css +0 -9
  1649. package/cjs/unit-number/unit-number-input.style.js +0 -27
  1650. package/cjs/unit-number/unit-number-input.style.js.map +0 -1
  1651. package/cjs/v2_color/color.js +0 -2
  1652. package/cjs/v2_color/color.js.map +0 -1
  1653. package/cjs/v2_color/index.js +0 -2
  1654. package/cjs/v2_color/index.js.map +0 -1
  1655. package/cjs/v2_design-token/design-token.js +0 -2
  1656. package/cjs/v2_design-token/design-token.js.map +0 -1
  1657. package/cjs/v2_design-token/index.js +0 -2
  1658. package/cjs/v2_design-token/index.js.map +0 -1
  1659. package/cjs/v2_layout/col-div.js +0 -2
  1660. package/cjs/v2_layout/col-div.js.map +0 -1
  1661. package/cjs/v2_layout/col-div.style.js +0 -17
  1662. package/cjs/v2_layout/col-div.style.js.map +0 -1
  1663. package/cjs/v2_layout/container.js +0 -49
  1664. package/cjs/v2_layout/container.js.map +0 -1
  1665. package/cjs/v2_layout/content.js +0 -2
  1666. package/cjs/v2_layout/content.js.map +0 -1
  1667. package/cjs/v2_layout/index.js +0 -2
  1668. package/cjs/v2_layout/index.js.map +0 -1
  1669. package/cjs/v2_layout/section.js +0 -20
  1670. package/cjs/v2_layout/section.js.map +0 -1
  1671. package/cjs/v2_media/index.js +0 -2
  1672. package/cjs/v2_media/index.js.map +0 -1
  1673. package/cjs/v2_media/media.js +0 -2
  1674. package/cjs/v2_media/media.js.map +0 -1
  1675. package/cjs/v2_spec/color-spec/base-color-set.js +0 -2
  1676. package/cjs/v2_spec/color-spec/base-color-set.js.map +0 -1
  1677. package/cjs/v2_spec/color-spec/bookingsg-color-set.js +0 -2
  1678. package/cjs/v2_spec/color-spec/bookingsg-color-set.js.map +0 -1
  1679. package/cjs/v2_spec/color-spec/ccube-color-set.js +0 -2
  1680. package/cjs/v2_spec/color-spec/ccube-color-set.js.map +0 -1
  1681. package/cjs/v2_spec/color-spec/mylegacy-color-set.js +0 -2
  1682. package/cjs/v2_spec/color-spec/mylegacy-color-set.js.map +0 -1
  1683. package/cjs/v2_spec/color-spec/oneservice-color-set.js +0 -2
  1684. package/cjs/v2_spec/color-spec/oneservice-color-set.js.map +0 -1
  1685. package/cjs/v2_spec/color-spec/rbs-color-set.js +0 -2
  1686. package/cjs/v2_spec/color-spec/rbs-color-set.js.map +0 -1
  1687. package/cjs/v2_spec/design-token-spec/base-design-token-set.js +0 -8
  1688. package/cjs/v2_spec/design-token-spec/base-design-token-set.js.map +0 -1
  1689. package/cjs/v2_spec/design-token-spec/rbs-design-token-set.js +0 -8
  1690. package/cjs/v2_spec/design-token-spec/rbs-design-token-set.js.map +0 -1
  1691. package/cjs/v2_spec/media-spec.js +0 -2
  1692. package/cjs/v2_spec/media-spec.js.map +0 -1
  1693. package/cjs/v2_spec/text-spec/base-plus-jakarta-sans-text-style-set.js +0 -2
  1694. package/cjs/v2_spec/text-spec/base-plus-jakarta-sans-text-style-set.js.map +0 -1
  1695. package/cjs/v2_spec/text-spec/base-text-style-set.js +0 -2
  1696. package/cjs/v2_spec/text-spec/base-text-style-set.js.map +0 -1
  1697. package/cjs/v2_spec/text-spec/font-spec.js +0 -2
  1698. package/cjs/v2_spec/text-spec/font-spec.js.map +0 -1
  1699. package/cjs/v2_spec/text-spec/oneservice-text-style-set.js +0 -2
  1700. package/cjs/v2_spec/text-spec/oneservice-text-style-set.js.map +0 -1
  1701. package/cjs/v2_text/helper.js +0 -31
  1702. package/cjs/v2_text/helper.js.map +0 -1
  1703. package/cjs/v2_text/index.js +0 -2
  1704. package/cjs/v2_text/index.js.map +0 -1
  1705. package/cjs/v2_text/text-style.js +0 -2
  1706. package/cjs/v2_text/text-style.js.map +0 -1
  1707. package/cjs/v2_text/text.js +0 -107
  1708. package/cjs/v2_text/text.js.map +0 -1
  1709. package/cjs/v2_text/types.js +0 -2
  1710. package/cjs/v2_text/types.js.map +0 -1
  1711. package/cjs/v2_text-list/index.js +0 -2
  1712. package/cjs/v2_text-list/index.js.map +0 -1
  1713. package/cjs/v2_text-list/ordered-list.js +0 -2
  1714. package/cjs/v2_text-list/ordered-list.js.map +0 -1
  1715. package/cjs/v2_text-list/text-list.styles.js +0 -62
  1716. package/cjs/v2_text-list/text-list.styles.js.map +0 -1
  1717. package/cjs/v2_text-list/unordered-list.js +0 -2
  1718. package/cjs/v2_text-list/unordered-list.js.map +0 -1
  1719. package/cjs/v2_theme/color-theme-helper.js +0 -2
  1720. package/cjs/v2_theme/color-theme-helper.js.map +0 -1
  1721. package/cjs/v2_theme/design-token-helper.js +0 -2
  1722. package/cjs/v2_theme/design-token-helper.js.map +0 -1
  1723. package/cjs/v2_theme/helper.js +0 -2
  1724. package/cjs/v2_theme/helper.js.map +0 -1
  1725. package/cjs/v2_theme/index.js +0 -2
  1726. package/cjs/v2_theme/index.js.map +0 -1
  1727. package/cjs/v2_theme/text-theme-helper.js +0 -2
  1728. package/cjs/v2_theme/text-theme-helper.js.map +0 -1
  1729. package/cjs/v2_theme/types.js +0 -2
  1730. package/cjs/v2_theme/types.js.map +0 -1
  1731. package/cjs/v2_transition/index.js +0 -2
  1732. package/cjs/v2_transition/index.js.map +0 -1
  1733. package/cjs/v3_theme/border/specs/default-border-set.js +0 -2
  1734. package/cjs/v3_theme/border/specs/default-border-set.js.map +0 -1
  1735. package/cjs/v3_theme/border/theme-helper.js +0 -2
  1736. package/cjs/v3_theme/border/theme-helper.js.map +0 -1
  1737. package/cjs/v3_theme/border-util/specs/default-border-util-set.js +0 -2
  1738. package/cjs/v3_theme/border-util/specs/default-border-util-set.js.map +0 -1
  1739. package/cjs/v3_theme/border-util/theme-helper.js +0 -2
  1740. package/cjs/v3_theme/border-util/theme-helper.js.map +0 -1
  1741. package/cjs/v3_theme/border-util/utils.js +0 -8
  1742. package/cjs/v3_theme/border-util/utils.js.map +0 -1
  1743. package/cjs/v3_theme/breakpoint/media-query-helper.js +0 -2
  1744. package/cjs/v3_theme/breakpoint/media-query-helper.js.map +0 -1
  1745. package/cjs/v3_theme/breakpoint/specs/default-breakpoint-set.js +0 -2
  1746. package/cjs/v3_theme/breakpoint/specs/default-breakpoint-set.js.map +0 -1
  1747. package/cjs/v3_theme/breakpoint/theme-helper.js +0 -2
  1748. package/cjs/v3_theme/breakpoint/theme-helper.js.map +0 -1
  1749. package/cjs/v3_theme/colour-primitive/specs/a11yplayground-colour-set.js +0 -2
  1750. package/cjs/v3_theme/colour-primitive/specs/a11yplayground-colour-set.js.map +0 -1
  1751. package/cjs/v3_theme/colour-primitive/specs/bookingsg-colour-set.js +0 -2
  1752. package/cjs/v3_theme/colour-primitive/specs/bookingsg-colour-set.js.map +0 -1
  1753. package/cjs/v3_theme/colour-primitive/specs/ccube-colour-set.js +0 -2
  1754. package/cjs/v3_theme/colour-primitive/specs/ccube-colour-set.js.map +0 -1
  1755. package/cjs/v3_theme/colour-primitive/specs/imda-colour-set.js +0 -2
  1756. package/cjs/v3_theme/colour-primitive/specs/imda-colour-set.js.map +0 -1
  1757. package/cjs/v3_theme/colour-primitive/specs/lifesg-colour-set.js +0 -2
  1758. package/cjs/v3_theme/colour-primitive/specs/lifesg-colour-set.js.map +0 -1
  1759. package/cjs/v3_theme/colour-primitive/specs/mylegacy-colour-set.js +0 -2
  1760. package/cjs/v3_theme/colour-primitive/specs/mylegacy-colour-set.js.map +0 -1
  1761. package/cjs/v3_theme/colour-primitive/specs/oneservice-colour-set.js +0 -2
  1762. package/cjs/v3_theme/colour-primitive/specs/oneservice-colour-set.js.map +0 -1
  1763. package/cjs/v3_theme/colour-primitive/specs/pa-colour-set.js +0 -2
  1764. package/cjs/v3_theme/colour-primitive/specs/pa-colour-set.js.map +0 -1
  1765. package/cjs/v3_theme/colour-primitive/specs/rbs-colour-set.js +0 -2
  1766. package/cjs/v3_theme/colour-primitive/specs/rbs-colour-set.js.map +0 -1
  1767. package/cjs/v3_theme/colour-primitive/specs/smgs-colour-set.js +0 -2
  1768. package/cjs/v3_theme/colour-primitive/specs/smgs-colour-set.js.map +0 -1
  1769. package/cjs/v3_theme/colour-primitive/specs/spf-colour-set.js +0 -2
  1770. package/cjs/v3_theme/colour-primitive/specs/spf-colour-set.js.map +0 -1
  1771. package/cjs/v3_theme/colour-primitive/specs/supportgowhere-colour-set.js +0 -2
  1772. package/cjs/v3_theme/colour-primitive/specs/supportgowhere-colour-set.js.map +0 -1
  1773. package/cjs/v3_theme/colour-primitive/theme-helper.js +0 -2
  1774. package/cjs/v3_theme/colour-primitive/theme-helper.js.map +0 -1
  1775. package/cjs/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.js +0 -2
  1776. package/cjs/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.js.map +0 -1
  1777. package/cjs/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.js +0 -2
  1778. package/cjs/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.js.map +0 -1
  1779. package/cjs/v3_theme/colour-semantic/specs/pa-semantic-tokens.js +0 -2
  1780. package/cjs/v3_theme/colour-semantic/specs/pa-semantic-tokens.js.map +0 -1
  1781. package/cjs/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.js +0 -2
  1782. package/cjs/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.js.map +0 -1
  1783. package/cjs/v3_theme/colour-semantic/theme-helper.js +0 -2
  1784. package/cjs/v3_theme/colour-semantic/theme-helper.js.map +0 -1
  1785. package/cjs/v3_theme/components/specs/a11yplayground-component-token-set.js +0 -2
  1786. package/cjs/v3_theme/components/specs/a11yplayground-component-token-set.js.map +0 -1
  1787. package/cjs/v3_theme/components/specs/default-component-token-set.js +0 -2
  1788. package/cjs/v3_theme/components/specs/default-component-token-set.js.map +0 -1
  1789. package/cjs/v3_theme/components/specs/lifesg-component-token-set.js +0 -2
  1790. package/cjs/v3_theme/components/specs/lifesg-component-token-set.js.map +0 -1
  1791. package/cjs/v3_theme/components/specs/pa-component-token-set.js +0 -2
  1792. package/cjs/v3_theme/components/specs/pa-component-token-set.js.map +0 -1
  1793. package/cjs/v3_theme/components/specs/smgs-component-token-set.js +0 -2
  1794. package/cjs/v3_theme/components/specs/smgs-component-token-set.js.map +0 -1
  1795. package/cjs/v3_theme/components/specs/spf-component-token-set.js +0 -2
  1796. package/cjs/v3_theme/components/specs/spf-component-token-set.js.map +0 -1
  1797. package/cjs/v3_theme/components/theme-helper.js +0 -2
  1798. package/cjs/v3_theme/components/theme-helper.js.map +0 -1
  1799. package/cjs/v3_theme/ds-theme-provider.js +0 -2
  1800. package/cjs/v3_theme/ds-theme-provider.js.map +0 -1
  1801. package/cjs/v3_theme/font/specs/a11yplayground-font-set.js +0 -2
  1802. package/cjs/v3_theme/font/specs/a11yplayground-font-set.js.map +0 -1
  1803. package/cjs/v3_theme/font/specs/bookingsg-font-set.js +0 -2
  1804. package/cjs/v3_theme/font/specs/bookingsg-font-set.js.map +0 -1
  1805. package/cjs/v3_theme/font/specs/default-font-set.js +0 -2
  1806. package/cjs/v3_theme/font/specs/default-font-set.js.map +0 -1
  1807. package/cjs/v3_theme/font/specs/imda-font-set.js +0 -2
  1808. package/cjs/v3_theme/font/specs/imda-font-set.js.map +0 -1
  1809. package/cjs/v3_theme/font/specs/oneservice-font-set.js +0 -2
  1810. package/cjs/v3_theme/font/specs/oneservice-font-set.js.map +0 -1
  1811. package/cjs/v3_theme/font/specs/pa-font-set.js +0 -2
  1812. package/cjs/v3_theme/font/specs/pa-font-set.js.map +0 -1
  1813. package/cjs/v3_theme/font/specs/smgs-font-set.js +0 -2
  1814. package/cjs/v3_theme/font/specs/smgs-font-set.js.map +0 -1
  1815. package/cjs/v3_theme/font/specs/spf-font-set.js +0 -2
  1816. package/cjs/v3_theme/font/specs/spf-font-set.js.map +0 -1
  1817. package/cjs/v3_theme/font/specs/supportgowhere-font-set.js +0 -2
  1818. package/cjs/v3_theme/font/specs/supportgowhere-font-set.js.map +0 -1
  1819. package/cjs/v3_theme/font/theme-helper.js +0 -2
  1820. package/cjs/v3_theme/font/theme-helper.js.map +0 -1
  1821. package/cjs/v3_theme/font/utils.js +0 -10
  1822. package/cjs/v3_theme/font/utils.js.map +0 -1
  1823. package/cjs/v3_theme/font-spec/specs/a11yplayground-font-spec-set.js +0 -2
  1824. package/cjs/v3_theme/font-spec/specs/a11yplayground-font-spec-set.js.map +0 -1
  1825. package/cjs/v3_theme/font-spec/specs/bookingsg-font-spec-set.js +0 -2
  1826. package/cjs/v3_theme/font-spec/specs/bookingsg-font-spec-set.js.map +0 -1
  1827. package/cjs/v3_theme/font-spec/specs/default-font-spec-set.js +0 -2
  1828. package/cjs/v3_theme/font-spec/specs/default-font-spec-set.js.map +0 -1
  1829. package/cjs/v3_theme/font-spec/specs/imda-font-spec-set.js +0 -2
  1830. package/cjs/v3_theme/font-spec/specs/imda-font-spec-set.js.map +0 -1
  1831. package/cjs/v3_theme/font-spec/specs/mylegacy-font-spec-set.js +0 -2
  1832. package/cjs/v3_theme/font-spec/specs/mylegacy-font-spec-set.js.map +0 -1
  1833. package/cjs/v3_theme/font-spec/specs/oneservice-font-spec-set.js +0 -2
  1834. package/cjs/v3_theme/font-spec/specs/oneservice-font-spec-set.js.map +0 -1
  1835. package/cjs/v3_theme/font-spec/specs/pa-font-spec-set.js +0 -2
  1836. package/cjs/v3_theme/font-spec/specs/pa-font-spec-set.js.map +0 -1
  1837. package/cjs/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.js +0 -2
  1838. package/cjs/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.js.map +0 -1
  1839. package/cjs/v3_theme/font-spec/specs/smgs-font-spec-set.js +0 -2
  1840. package/cjs/v3_theme/font-spec/specs/smgs-font-spec-set.js.map +0 -1
  1841. package/cjs/v3_theme/font-spec/specs/spf-font-spec-set.js +0 -2
  1842. package/cjs/v3_theme/font-spec/specs/spf-font-spec-set.js.map +0 -1
  1843. package/cjs/v3_theme/font-spec/specs/supportgowhere-font-spec-set.js +0 -2
  1844. package/cjs/v3_theme/font-spec/specs/supportgowhere-font-spec-set.js.map +0 -1
  1845. package/cjs/v3_theme/font-spec/theme-helper.js +0 -2
  1846. package/cjs/v3_theme/font-spec/theme-helper.js.map +0 -1
  1847. package/cjs/v3_theme/helpers.js +0 -2
  1848. package/cjs/v3_theme/helpers.js.map +0 -1
  1849. package/cjs/v3_theme/index.js +0 -2
  1850. package/cjs/v3_theme/index.js.map +0 -1
  1851. package/cjs/v3_theme/motion/specs/default-motion-set.js +0 -2
  1852. package/cjs/v3_theme/motion/specs/default-motion-set.js.map +0 -1
  1853. package/cjs/v3_theme/motion/theme-helper.js +0 -2
  1854. package/cjs/v3_theme/motion/theme-helper.js.map +0 -1
  1855. package/cjs/v3_theme/radius/specs/default-radius-set.js +0 -2
  1856. package/cjs/v3_theme/radius/specs/default-radius-set.js.map +0 -1
  1857. package/cjs/v3_theme/radius/specs/spf-radius-set.js +0 -2
  1858. package/cjs/v3_theme/radius/specs/spf-radius-set.js.map +0 -1
  1859. package/cjs/v3_theme/radius/theme-helper.js +0 -2
  1860. package/cjs/v3_theme/radius/theme-helper.js.map +0 -1
  1861. package/cjs/v3_theme/shadow/specs/default-shadow-set.js +0 -2
  1862. package/cjs/v3_theme/shadow/specs/default-shadow-set.js.map +0 -1
  1863. package/cjs/v3_theme/shadow/theme-helper.js +0 -2
  1864. package/cjs/v3_theme/shadow/theme-helper.js.map +0 -1
  1865. package/cjs/v3_theme/spacing/specs/default-spacing-set.js +0 -2
  1866. package/cjs/v3_theme/spacing/specs/default-spacing-set.js.map +0 -1
  1867. package/cjs/v3_theme/spacing/theme-helper.js +0 -2
  1868. package/cjs/v3_theme/spacing/theme-helper.js.map +0 -1
  1869. package/cjs/v3_theme/use-theme-mode.js +0 -2
  1870. package/cjs/v3_theme/use-theme-mode.js.map +0 -1
  1871. package/codemods/common.ts +0 -8
  1872. package/codemods/data.ts +0 -16
  1873. package/codemods/deprecate-v2-tokens/data.ts +0 -283
  1874. package/codemods/deprecate-v2-tokens/index.ts +0 -89
  1875. package/codemods/migrate-colour/data.ts +0 -95
  1876. package/codemods/migrate-colour/index.ts +0 -104
  1877. package/codemods/migrate-layout/data.ts +0 -5
  1878. package/codemods/migrate-layout/index.ts +0 -108
  1879. package/codemods/migrate-media-query/data.ts +0 -20
  1880. package/codemods/migrate-media-query/index.ts +0 -113
  1881. package/codemods/migrate-text/data.ts +0 -48
  1882. package/codemods/migrate-text/index.ts +0 -196
  1883. package/codemods/migrate-text-list/data.ts +0 -16
  1884. package/codemods/migrate-text-list/index.ts +0 -111
  1885. package/common.d.ts +0 -8
  1886. package/countdown-timer/countdown-timer.style.d.ts +0 -42
  1887. package/countdown-timer/countdown-timer.style.js +0 -58
  1888. package/countdown-timer/countdown-timer.style.js.map +0 -1
  1889. package/date-input/date-input.style.d.ts +0 -1
  1890. package/date-input/date-input.style.js +0 -4
  1891. package/date-input/date-input.style.js.map +0 -1
  1892. package/date-navigator/date-navigator.styles_1cotsgz.css +0 -4
  1893. package/date-range-input/date-range-input.style.d.ts +0 -8
  1894. package/date-range-input/date-range-input.style.js +0 -17
  1895. package/date-range-input/date-range-input.style.js.map +0 -1
  1896. package/deprecate-v2-tokens/data.d.ts +0 -8
  1897. package/external/react-responsive/dist/react-responsive.js +0 -65
  1898. package/external/react-responsive/dist/react-responsive.js.map +0 -1
  1899. package/file-upload/file-list.d.ts +0 -18
  1900. package/file-upload/file-list.js +0 -2
  1901. package/file-upload/file-list.js.map +0 -1
  1902. package/file-upload/file-list.styles.d.ts +0 -6
  1903. package/file-upload/file-list.styles.js +0 -21
  1904. package/file-upload/file-list.styles.js.map +0 -1
  1905. package/form/form-label.styles_rk98yd.css +0 -6
  1906. package/fullscreen-image-carousel/fullscreen-image-carousel.style.d.ts +0 -116
  1907. package/fullscreen-image-carousel/fullscreen-image-carousel.style.js +0 -298
  1908. package/fullscreen-image-carousel/fullscreen-image-carousel.style.js.map +0 -1
  1909. package/fullscreen-image-carousel/stateful-image.style.d.ts +0 -7
  1910. package/fullscreen-image-carousel/stateful-image.style.js +0 -13
  1911. package/fullscreen-image-carousel/stateful-image.style.js.map +0 -1
  1912. package/image-button/image-button.styles_qtt605.css +0 -5
  1913. package/input-group/input-group-list-addon.styles_1my6j2v.css +0 -9
  1914. package/input-group/input-group.styles_fpy81r.css +0 -3
  1915. package/input-range-select/input-range-select.style.d.ts +0 -3
  1916. package/input-range-select/input-range-select.style.js +0 -36
  1917. package/input-range-select/input-range-select.style.js.map +0 -1
  1918. package/input-textarea/textarea-counter.styles_adg5h1.css +0 -1
  1919. package/input-textarea/textarea.styles_g0zgyq.css +0 -5
  1920. package/language-switcher/dropdown-variant.style.d.ts +0 -11
  1921. package/language-switcher/dropdown-variant.style.js +0 -62
  1922. package/language-switcher/dropdown-variant.style.js.map +0 -1
  1923. package/language-switcher/link-container-variant.style.d.ts +0 -8
  1924. package/language-switcher/link-container-variant.style.js +0 -51
  1925. package/language-switcher/link-container-variant.style.js.map +0 -1
  1926. package/markup/markup.utils.d.ts +0 -2
  1927. package/markup/markup.utils.js +0 -2
  1928. package/markup/markup.utils.js.map +0 -1
  1929. package/masked-input/masked-input.style.d.ts +0 -48
  1930. package/masked-input/masked-input.style.js +0 -87
  1931. package/masked-input/masked-input.style.js.map +0 -1
  1932. package/masonry/index.d.ts +0 -1
  1933. package/masonry/index.js +0 -2
  1934. package/masonry/index.js.map +0 -1
  1935. package/masonry/masonry.d.ts +0 -7
  1936. package/masonry/masonry.js +0 -2
  1937. package/masonry/masonry.js.map +0 -1
  1938. package/masonry/masonry.style.d.ts +0 -6
  1939. package/masonry/masonry.style.js +0 -42
  1940. package/masonry/masonry.style.js.map +0 -1
  1941. package/masonry/types.d.ts +0 -32
  1942. package/menu/menu-content.styles_1b7d6qf.css +0 -2
  1943. package/migrate-colour/data.d.ts +0 -270
  1944. package/migrate-colour/index.d.ts +0 -7
  1945. package/migrate-layout/data.d.ts +0 -5
  1946. package/migrate-layout/index.d.ts +0 -2
  1947. package/migrate-media-query/data.d.ts +0 -20
  1948. package/migrate-media-query/index.d.ts +0 -2
  1949. package/migrate-text/data.d.ts +0 -46
  1950. package/migrate-text/index.d.ts +0 -2
  1951. package/migrate-text-list/data.d.ts +0 -16
  1952. package/migrate-text-list/index.d.ts +0 -2
  1953. package/modal/modal-box.styles_1xrlxhd.css +0 -2
  1954. package/modal/modal.styles_1sav73f.css +0 -11
  1955. package/modal-v2/modal-v2.styles_1irpyi6.css +0 -3
  1956. package/otp-verification/contact-input-section-styles.d.ts +0 -14
  1957. package/otp-verification/contact-input-section-styles.js +0 -113
  1958. package/otp-verification/contact-input-section-styles.js.map +0 -1
  1959. package/otp-verification/otp-verification-styles.d.ts +0 -1
  1960. package/otp-verification/otp-verification-styles.js +0 -6
  1961. package/otp-verification/otp-verification-styles.js.map +0 -1
  1962. package/otp-verification/verification-section-styles.d.ts +0 -23
  1963. package/otp-verification/verification-section-styles.js +0 -27
  1964. package/otp-verification/verification-section-styles.js.map +0 -1
  1965. package/pagination/pagination.styles_1u898rb.css +0 -14
  1966. package/pill/pill.styles_1wiyl8.css +0 -17
  1967. package/popover/popover-hoc.d.ts +0 -4
  1968. package/popover/popover-hoc.js +0 -2
  1969. package/popover/popover-hoc.js.map +0 -1
  1970. package/popover-v2/index.d.ts +0 -4
  1971. package/popover-v2/index.js +0 -2
  1972. package/popover-v2/index.js.map +0 -1
  1973. package/popover-v2/popover-inline/popover-inline.js.map +0 -1
  1974. package/popover-v2/popover-inline/popover-inline.styles.js +0 -2
  1975. package/popover-v2/popover-inline/popover-inline.styles.js.map +0 -1
  1976. package/popover-v2/popover-inline/popover-inline.styles_ziag9c.css +0 -2
  1977. package/popover-v2/popover-trigger.d.ts +0 -2
  1978. package/popover-v2/popover-trigger.js +0 -2
  1979. package/popover-v2/popover-trigger.js.map +0 -1
  1980. package/popover-v2/popover-trigger.styles.js +0 -2
  1981. package/popover-v2/popover-trigger.styles.js.map +0 -1
  1982. package/popover-v2/popover-trigger.styles_1yq7ffk.css +0 -1
  1983. package/popover-v2/popover.d.ts +0 -2
  1984. package/popover-v2/popover.js +0 -2
  1985. package/popover-v2/popover.js.map +0 -1
  1986. package/popover-v2/popover.styles.d.ts +0 -10
  1987. package/popover-v2/popover.styles.js +0 -2
  1988. package/popover-v2/popover.styles.js.map +0 -1
  1989. package/popover-v2/popover.styles_lslc72.css +0 -4
  1990. package/popover-v2/types.d.ts +0 -59
  1991. package/progress-indicator/progress-indicator.style.d.ts +0 -47
  1992. package/progress-indicator/progress-indicator.style.js +0 -39
  1993. package/progress-indicator/progress-indicator.style.js.map +0 -1
  1994. package/schedule/schedule-header/schedule-header.style.d.ts +0 -25
  1995. package/schedule/schedule-header/schedule-header.style.js +0 -38
  1996. package/schedule/schedule-header/schedule-header.style.js.map +0 -1
  1997. package/schedule/schedule-week-view/slot-content.d.ts +0 -8
  1998. package/schedule/schedule-week-view/slot-content.js +0 -2
  1999. package/schedule/schedule-week-view/slot-content.js.map +0 -1
  2000. package/schedule/schedule-week-view/slot-content.styles.d.ts +0 -27
  2001. package/schedule/schedule-week-view/slot-content.styles.js +0 -40
  2002. package/schedule/schedule-week-view/slot-content.styles.js.map +0 -1
  2003. package/schedule/shared/index.d.ts +0 -2
  2004. package/shared/dropdown-list/dropdown-label.styles_1dwmd8f.css +0 -19
  2005. package/shared/dropdown-list/dropdown-list.styles_1qveyb9.css +0 -29
  2006. package/shared/dropdown-list/dropdown-search.styles_4r9oma.css +0 -7
  2007. package/shared/dropdown-list/expandable-element.styles_5o9f9w.css +0 -6
  2008. package/shared/dropdown-wrapper/dropdown-wrapper.styles_v10jbi.css +0 -3
  2009. package/shared/input-wrapper/input-wrapper.styles_1kc4xhb.css +0 -11
  2010. package/shared/internal-calendar/calendar-manager.styles_1q13ylk.css +0 -22
  2011. package/shared/internal-calendar/day-cell/day-cell.styles_vazxvn.css +0 -8
  2012. package/shared/internal-calendar/internal-calendar-month.styles_1pk3ynj.css +0 -8
  2013. package/shared/internal-calendar/internal-calendar-year.styles_1azy42u.css +0 -9
  2014. package/shared/internal-calendar/standard/standard-calendar-day-view.styles_1dbvup3.css +0 -3
  2015. package/shared/standalone-date-input/standalone-date-input.styles_1mqophx.css +0 -14
  2016. package/shared/styles/index.js +0 -2
  2017. package/shared/styles/index.js.map +0 -1
  2018. package/sidenav/sidenav-drawer-item.styles_yp8cga.css +0 -6
  2019. package/sidenav/sidenav-drawer-subitem.styles_1ylzfn5.css +0 -1
  2020. package/sidenav/sidenav-item.styles_1eew8px.css +0 -7
  2021. package/tab/tab-link-chain.styles_1nreqrp.css +0 -14
  2022. package/tag/tag.style_10tn8i.css +0 -17
  2023. package/text-list/text-list.styles_1gohl3f.css +0 -16
  2024. package/theme/utils/media-query.d.ts +0 -6
  2025. package/theme/utils/media-query.js +0 -2
  2026. package/theme/utils/media-query.js.map +0 -1
  2027. package/time-slot-bar-week/time-slot-bar-week-days.style.d.ts +0 -65
  2028. package/time-slot-bar-week/time-slot-bar-week-days.style.js +0 -101
  2029. package/time-slot-bar-week/time-slot-bar-week-days.style.js.map +0 -1
  2030. package/time-slot-bar-week/time-slot-bar-week.style.d.ts +0 -1
  2031. package/time-slot-bar-week/time-slot-bar-week.style.js +0 -10
  2032. package/time-slot-bar-week/time-slot-bar-week.style.js.map +0 -1
  2033. package/time-slot-week-view/time-slot-week-days.style.d.ts +0 -22
  2034. package/time-slot-week-view/time-slot-week-days.style.js +0 -53
  2035. package/time-slot-week-view/time-slot-week-days.style.js.map +0 -1
  2036. package/timeline/timeline.style.d.ts +0 -55
  2037. package/timeline/timeline.style.js +0 -100
  2038. package/timeline/timeline.style.js.map +0 -1
  2039. package/timepicker/timepicker.styles_zmkhl8.css +0 -1
  2040. package/timetable/timetable-header/timetable-header.style.d.ts +0 -31
  2041. package/timetable/timetable-header/timetable-header.style.js +0 -28
  2042. package/timetable/timetable-header/timetable-header.style.js.map +0 -1
  2043. package/timetable/timetable-row/row-bar.style.d.ts +0 -1
  2044. package/timetable/timetable-row/row-bar.style.js +0 -5
  2045. package/timetable/timetable-row/row-bar.style.js.map +0 -1
  2046. package/timetable/timetable-row/row-cell.style.d.ts +0 -60
  2047. package/timetable/timetable-row/row-cell.style.js +0 -53
  2048. package/timetable/timetable-row/row-cell.style.js.map +0 -1
  2049. package/timetable/timetable.style.d.ts +0 -102
  2050. package/timetable/timetable.style.js +0 -172
  2051. package/timetable/timetable.style.js.map +0 -1
  2052. package/toggle/toggle.styles_1yzqsu.css +0 -38
  2053. package/tooltip/index.d.ts +0 -3
  2054. package/tooltip/index.js +0 -2
  2055. package/tooltip/index.js.map +0 -1
  2056. package/tooltip/tooltip-hoc.d.ts +0 -3
  2057. package/tooltip/tooltip-hoc.js +0 -2
  2058. package/tooltip/tooltip-hoc.js.map +0 -1
  2059. package/tooltip/tooltip.d.ts +0 -3
  2060. package/tooltip/tooltip.js +0 -2
  2061. package/tooltip/tooltip.js.map +0 -1
  2062. package/tooltip/tooltip.styles.d.ts +0 -10
  2063. package/tooltip/tooltip.styles.js +0 -192
  2064. package/tooltip/tooltip.styles.js.map +0 -1
  2065. package/tooltip/types.d.ts +0 -22
  2066. package/typography/typography.styles_1jqils.css +0 -9
  2067. package/unit-number/unit-number-input.style.d.ts +0 -52
  2068. package/unit-number/unit-number-input.style.js +0 -27
  2069. package/unit-number/unit-number-input.style.js.map +0 -1
  2070. package/v2_color/color.d.ts +0 -5
  2071. package/v2_color/color.js +0 -2
  2072. package/v2_color/color.js.map +0 -1
  2073. package/v2_color/index.d.ts +0 -2
  2074. package/v2_color/index.js +0 -2
  2075. package/v2_color/index.js.map +0 -1
  2076. package/v2_color/types.d.ts +0 -62
  2077. package/v2_design-token/design-token.d.ts +0 -23
  2078. package/v2_design-token/design-token.js +0 -2
  2079. package/v2_design-token/design-token.js.map +0 -1
  2080. package/v2_design-token/index.d.ts +0 -2
  2081. package/v2_design-token/index.js +0 -2
  2082. package/v2_design-token/index.js.map +0 -1
  2083. package/v2_design-token/types.d.ts +0 -28
  2084. package/v2_layout/col-div.d.ts +0 -4
  2085. package/v2_layout/col-div.js +0 -2
  2086. package/v2_layout/col-div.js.map +0 -1
  2087. package/v2_layout/col-div.style.d.ts +0 -9
  2088. package/v2_layout/col-div.style.js +0 -17
  2089. package/v2_layout/col-div.style.js.map +0 -1
  2090. package/v2_layout/container.d.ts +0 -4
  2091. package/v2_layout/container.js +0 -49
  2092. package/v2_layout/container.js.map +0 -1
  2093. package/v2_layout/content.d.ts +0 -4
  2094. package/v2_layout/content.js +0 -2
  2095. package/v2_layout/content.js.map +0 -1
  2096. package/v2_layout/index.d.ts +0 -8
  2097. package/v2_layout/index.js +0 -2
  2098. package/v2_layout/index.js.map +0 -1
  2099. package/v2_layout/section.d.ts +0 -4
  2100. package/v2_layout/section.js +0 -20
  2101. package/v2_layout/section.js.map +0 -1
  2102. package/v2_layout/types.d.ts +0 -66
  2103. package/v2_media/index.d.ts +0 -2
  2104. package/v2_media/index.js +0 -2
  2105. package/v2_media/index.js.map +0 -1
  2106. package/v2_media/media.d.ts +0 -8
  2107. package/v2_media/media.js +0 -2
  2108. package/v2_media/media.js.map +0 -1
  2109. package/v2_media/types.d.ts +0 -20
  2110. package/v2_spec/color-spec/base-color-set.d.ts +0 -2
  2111. package/v2_spec/color-spec/base-color-set.js +0 -2
  2112. package/v2_spec/color-spec/base-color-set.js.map +0 -1
  2113. package/v2_spec/color-spec/bookingsg-color-set.d.ts +0 -2
  2114. package/v2_spec/color-spec/bookingsg-color-set.js +0 -2
  2115. package/v2_spec/color-spec/bookingsg-color-set.js.map +0 -1
  2116. package/v2_spec/color-spec/ccube-color-set.d.ts +0 -2
  2117. package/v2_spec/color-spec/ccube-color-set.js +0 -2
  2118. package/v2_spec/color-spec/ccube-color-set.js.map +0 -1
  2119. package/v2_spec/color-spec/mylegacy-color-set.d.ts +0 -2
  2120. package/v2_spec/color-spec/mylegacy-color-set.js +0 -2
  2121. package/v2_spec/color-spec/mylegacy-color-set.js.map +0 -1
  2122. package/v2_spec/color-spec/oneservice-color-set.d.ts +0 -2
  2123. package/v2_spec/color-spec/oneservice-color-set.js +0 -2
  2124. package/v2_spec/color-spec/oneservice-color-set.js.map +0 -1
  2125. package/v2_spec/color-spec/rbs-color-set.d.ts +0 -2
  2126. package/v2_spec/color-spec/rbs-color-set.js +0 -2
  2127. package/v2_spec/color-spec/rbs-color-set.js.map +0 -1
  2128. package/v2_spec/design-token-spec/base-design-token-set.d.ts +0 -2
  2129. package/v2_spec/design-token-spec/base-design-token-set.js +0 -8
  2130. package/v2_spec/design-token-spec/base-design-token-set.js.map +0 -1
  2131. package/v2_spec/design-token-spec/rbs-design-token-set.d.ts +0 -2
  2132. package/v2_spec/design-token-spec/rbs-design-token-set.js +0 -8
  2133. package/v2_spec/design-token-spec/rbs-design-token-set.js.map +0 -1
  2134. package/v2_spec/media-spec.d.ts +0 -2
  2135. package/v2_spec/media-spec.js +0 -2
  2136. package/v2_spec/media-spec.js.map +0 -1
  2137. package/v2_spec/text-spec/base-plus-jakarta-sans-text-style-set.d.ts +0 -2
  2138. package/v2_spec/text-spec/base-plus-jakarta-sans-text-style-set.js +0 -2
  2139. package/v2_spec/text-spec/base-plus-jakarta-sans-text-style-set.js.map +0 -1
  2140. package/v2_spec/text-spec/base-text-style-set.d.ts +0 -2
  2141. package/v2_spec/text-spec/base-text-style-set.js +0 -2
  2142. package/v2_spec/text-spec/base-text-style-set.js.map +0 -1
  2143. package/v2_spec/text-spec/font-spec.d.ts +0 -15
  2144. package/v2_spec/text-spec/font-spec.js +0 -2
  2145. package/v2_spec/text-spec/font-spec.js.map +0 -1
  2146. package/v2_spec/text-spec/oneservice-text-style-set.d.ts +0 -2
  2147. package/v2_spec/text-spec/oneservice-text-style-set.js +0 -2
  2148. package/v2_spec/text-spec/oneservice-text-style-set.js.map +0 -1
  2149. package/v2_spec/text-spec/types.d.ts +0 -4
  2150. package/v2_text/helper.d.ts +0 -7
  2151. package/v2_text/helper.js +0 -31
  2152. package/v2_text/helper.js.map +0 -1
  2153. package/v2_text/index.d.ts +0 -4
  2154. package/v2_text/index.js +0 -2
  2155. package/v2_text/index.js.map +0 -1
  2156. package/v2_text/text-style.d.ts +0 -5
  2157. package/v2_text/text-style.js +0 -2
  2158. package/v2_text/text-style.js.map +0 -1
  2159. package/v2_text/text.d.ts +0 -22
  2160. package/v2_text/text.js +0 -107
  2161. package/v2_text/text.js.map +0 -1
  2162. package/v2_text/types.d.ts +0 -44
  2163. package/v2_text/types.js +0 -2
  2164. package/v2_text/types.js.map +0 -1
  2165. package/v2_text-list/index.d.ts +0 -6
  2166. package/v2_text-list/index.js +0 -2
  2167. package/v2_text-list/index.js.map +0 -1
  2168. package/v2_text-list/ordered-list.d.ts +0 -3
  2169. package/v2_text-list/ordered-list.js +0 -2
  2170. package/v2_text-list/ordered-list.js.map +0 -1
  2171. package/v2_text-list/text-list.styles.d.ts +0 -13
  2172. package/v2_text-list/text-list.styles.js +0 -62
  2173. package/v2_text-list/text-list.styles.js.map +0 -1
  2174. package/v2_text-list/types.d.ts +0 -26
  2175. package/v2_text-list/unordered-list.d.ts +0 -3
  2176. package/v2_text-list/unordered-list.js +0 -2
  2177. package/v2_text-list/unordered-list.js.map +0 -1
  2178. package/v2_theme/color-theme-helper.d.ts +0 -1
  2179. package/v2_theme/color-theme-helper.js +0 -2
  2180. package/v2_theme/color-theme-helper.js.map +0 -1
  2181. package/v2_theme/design-token-helper.d.ts +0 -2
  2182. package/v2_theme/design-token-helper.js +0 -2
  2183. package/v2_theme/design-token-helper.js.map +0 -1
  2184. package/v2_theme/helper.d.ts +0 -16
  2185. package/v2_theme/helper.js +0 -2
  2186. package/v2_theme/helper.js.map +0 -1
  2187. package/v2_theme/index.d.ts +0 -8
  2188. package/v2_theme/index.js +0 -2
  2189. package/v2_theme/index.js.map +0 -1
  2190. package/v2_theme/text-theme-helper.d.ts +0 -1
  2191. package/v2_theme/text-theme-helper.js +0 -2
  2192. package/v2_theme/text-theme-helper.js.map +0 -1
  2193. package/v2_theme/types.d.ts +0 -48
  2194. package/v2_theme/types.js +0 -2
  2195. package/v2_theme/types.js.map +0 -1
  2196. package/v2_transition/index.d.ts +0 -5
  2197. package/v2_transition/index.js +0 -2
  2198. package/v2_transition/index.js.map +0 -1
  2199. package/v3_theme/border/specs/default-border-set.d.ts +0 -2
  2200. package/v3_theme/border/specs/default-border-set.js +0 -2
  2201. package/v3_theme/border/specs/default-border-set.js.map +0 -1
  2202. package/v3_theme/border/theme-helper.d.ts +0 -10
  2203. package/v3_theme/border/theme-helper.js +0 -2
  2204. package/v3_theme/border/theme-helper.js.map +0 -1
  2205. package/v3_theme/border/types.d.ts +0 -12
  2206. package/v3_theme/border-util/specs/default-border-util-set.d.ts +0 -2
  2207. package/v3_theme/border-util/specs/default-border-util-set.js +0 -2
  2208. package/v3_theme/border-util/specs/default-border-util-set.js.map +0 -1
  2209. package/v3_theme/border-util/theme-helper.d.ts +0 -8
  2210. package/v3_theme/border-util/theme-helper.js +0 -2
  2211. package/v3_theme/border-util/theme-helper.js.map +0 -1
  2212. package/v3_theme/border-util/types.d.ts +0 -19
  2213. package/v3_theme/border-util/utils.d.ts +0 -11
  2214. package/v3_theme/border-util/utils.js +0 -8
  2215. package/v3_theme/border-util/utils.js.map +0 -1
  2216. package/v3_theme/breakpoint/media-query-helper.d.ts +0 -9
  2217. package/v3_theme/breakpoint/media-query-helper.js +0 -2
  2218. package/v3_theme/breakpoint/media-query-helper.js.map +0 -1
  2219. package/v3_theme/breakpoint/specs/default-breakpoint-set.d.ts +0 -2
  2220. package/v3_theme/breakpoint/specs/default-breakpoint-set.js +0 -2
  2221. package/v3_theme/breakpoint/specs/default-breakpoint-set.js.map +0 -1
  2222. package/v3_theme/breakpoint/theme-helper.d.ts +0 -39
  2223. package/v3_theme/breakpoint/theme-helper.js +0 -2
  2224. package/v3_theme/breakpoint/theme-helper.js.map +0 -1
  2225. package/v3_theme/breakpoint/types.d.ts +0 -41
  2226. package/v3_theme/colour-primitive/specs/a11yplayground-colour-set.d.ts +0 -2
  2227. package/v3_theme/colour-primitive/specs/a11yplayground-colour-set.js +0 -2
  2228. package/v3_theme/colour-primitive/specs/a11yplayground-colour-set.js.map +0 -1
  2229. package/v3_theme/colour-primitive/specs/bookingsg-colour-set.d.ts +0 -2
  2230. package/v3_theme/colour-primitive/specs/bookingsg-colour-set.js +0 -2
  2231. package/v3_theme/colour-primitive/specs/bookingsg-colour-set.js.map +0 -1
  2232. package/v3_theme/colour-primitive/specs/ccube-colour-set.d.ts +0 -2
  2233. package/v3_theme/colour-primitive/specs/ccube-colour-set.js +0 -2
  2234. package/v3_theme/colour-primitive/specs/ccube-colour-set.js.map +0 -1
  2235. package/v3_theme/colour-primitive/specs/imda-colour-set.d.ts +0 -2
  2236. package/v3_theme/colour-primitive/specs/imda-colour-set.js +0 -2
  2237. package/v3_theme/colour-primitive/specs/imda-colour-set.js.map +0 -1
  2238. package/v3_theme/colour-primitive/specs/lifesg-colour-set.d.ts +0 -2
  2239. package/v3_theme/colour-primitive/specs/lifesg-colour-set.js +0 -2
  2240. package/v3_theme/colour-primitive/specs/lifesg-colour-set.js.map +0 -1
  2241. package/v3_theme/colour-primitive/specs/mylegacy-colour-set.d.ts +0 -2
  2242. package/v3_theme/colour-primitive/specs/mylegacy-colour-set.js +0 -2
  2243. package/v3_theme/colour-primitive/specs/mylegacy-colour-set.js.map +0 -1
  2244. package/v3_theme/colour-primitive/specs/oneservice-colour-set.d.ts +0 -2
  2245. package/v3_theme/colour-primitive/specs/oneservice-colour-set.js +0 -2
  2246. package/v3_theme/colour-primitive/specs/oneservice-colour-set.js.map +0 -1
  2247. package/v3_theme/colour-primitive/specs/pa-colour-set.d.ts +0 -2
  2248. package/v3_theme/colour-primitive/specs/pa-colour-set.js +0 -2
  2249. package/v3_theme/colour-primitive/specs/pa-colour-set.js.map +0 -1
  2250. package/v3_theme/colour-primitive/specs/rbs-colour-set.d.ts +0 -2
  2251. package/v3_theme/colour-primitive/specs/rbs-colour-set.js +0 -2
  2252. package/v3_theme/colour-primitive/specs/rbs-colour-set.js.map +0 -1
  2253. package/v3_theme/colour-primitive/specs/smgs-colour-set.d.ts +0 -2
  2254. package/v3_theme/colour-primitive/specs/smgs-colour-set.js +0 -2
  2255. package/v3_theme/colour-primitive/specs/smgs-colour-set.js.map +0 -1
  2256. package/v3_theme/colour-primitive/specs/spf-colour-set.d.ts +0 -2
  2257. package/v3_theme/colour-primitive/specs/spf-colour-set.js +0 -2
  2258. package/v3_theme/colour-primitive/specs/spf-colour-set.js.map +0 -1
  2259. package/v3_theme/colour-primitive/specs/supportgowhere-colour-set.d.ts +0 -2
  2260. package/v3_theme/colour-primitive/specs/supportgowhere-colour-set.js +0 -2
  2261. package/v3_theme/colour-primitive/specs/supportgowhere-colour-set.js.map +0 -1
  2262. package/v3_theme/colour-primitive/theme-helper.d.ts +0 -10
  2263. package/v3_theme/colour-primitive/theme-helper.js +0 -2
  2264. package/v3_theme/colour-primitive/theme-helper.js.map +0 -1
  2265. package/v3_theme/colour-primitive/types.d.ts +0 -98
  2266. package/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.d.ts +0 -3
  2267. package/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.js +0 -2
  2268. package/v3_theme/colour-semantic/specs/a11yplayground-semantic-tokens.js.map +0 -1
  2269. package/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.d.ts +0 -3
  2270. package/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.js +0 -2
  2271. package/v3_theme/colour-semantic/specs/lifesg-semantic-tokens.js.map +0 -1
  2272. package/v3_theme/colour-semantic/specs/pa-semantic-tokens.d.ts +0 -2
  2273. package/v3_theme/colour-semantic/specs/pa-semantic-tokens.js +0 -2
  2274. package/v3_theme/colour-semantic/specs/pa-semantic-tokens.js.map +0 -1
  2275. package/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.d.ts +0 -3
  2276. package/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.js +0 -2
  2277. package/v3_theme/colour-semantic/specs/sgwdigitallobby-tokens.js.map +0 -1
  2278. package/v3_theme/colour-semantic/theme-helper.d.ts +0 -10
  2279. package/v3_theme/colour-semantic/theme-helper.js +0 -2
  2280. package/v3_theme/colour-semantic/theme-helper.js.map +0 -1
  2281. package/v3_theme/colour-semantic/types.d.ts +0 -123
  2282. package/v3_theme/components/specs/a11yplayground-component-token-set.d.ts +0 -2
  2283. package/v3_theme/components/specs/a11yplayground-component-token-set.js +0 -2
  2284. package/v3_theme/components/specs/a11yplayground-component-token-set.js.map +0 -1
  2285. package/v3_theme/components/specs/default-component-token-set.d.ts +0 -2
  2286. package/v3_theme/components/specs/default-component-token-set.js +0 -2
  2287. package/v3_theme/components/specs/default-component-token-set.js.map +0 -1
  2288. package/v3_theme/components/specs/lifesg-component-token-set.d.ts +0 -2
  2289. package/v3_theme/components/specs/lifesg-component-token-set.js +0 -2
  2290. package/v3_theme/components/specs/lifesg-component-token-set.js.map +0 -1
  2291. package/v3_theme/components/specs/pa-component-token-set.d.ts +0 -2
  2292. package/v3_theme/components/specs/pa-component-token-set.js +0 -2
  2293. package/v3_theme/components/specs/pa-component-token-set.js.map +0 -1
  2294. package/v3_theme/components/specs/smgs-component-token-set.d.ts +0 -2
  2295. package/v3_theme/components/specs/smgs-component-token-set.js +0 -2
  2296. package/v3_theme/components/specs/smgs-component-token-set.js.map +0 -1
  2297. package/v3_theme/components/specs/spf-component-token-set.d.ts +0 -2
  2298. package/v3_theme/components/specs/spf-component-token-set.js +0 -2
  2299. package/v3_theme/components/specs/spf-component-token-set.js.map +0 -1
  2300. package/v3_theme/components/theme-helper.d.ts +0 -17
  2301. package/v3_theme/components/theme-helper.js +0 -2
  2302. package/v3_theme/components/theme-helper.js.map +0 -1
  2303. package/v3_theme/components/types.d.ts +0 -44
  2304. package/v3_theme/ds-theme-provider.d.ts +0 -2
  2305. package/v3_theme/ds-theme-provider.js +0 -2
  2306. package/v3_theme/ds-theme-provider.js.map +0 -1
  2307. package/v3_theme/font/specs/a11yplayground-font-set.d.ts +0 -2
  2308. package/v3_theme/font/specs/a11yplayground-font-set.js +0 -2
  2309. package/v3_theme/font/specs/a11yplayground-font-set.js.map +0 -1
  2310. package/v3_theme/font/specs/bookingsg-font-set.d.ts +0 -2
  2311. package/v3_theme/font/specs/bookingsg-font-set.js +0 -2
  2312. package/v3_theme/font/specs/bookingsg-font-set.js.map +0 -1
  2313. package/v3_theme/font/specs/default-font-set.d.ts +0 -2
  2314. package/v3_theme/font/specs/default-font-set.js +0 -2
  2315. package/v3_theme/font/specs/default-font-set.js.map +0 -1
  2316. package/v3_theme/font/specs/imda-font-set.d.ts +0 -2
  2317. package/v3_theme/font/specs/imda-font-set.js +0 -2
  2318. package/v3_theme/font/specs/imda-font-set.js.map +0 -1
  2319. package/v3_theme/font/specs/oneservice-font-set.d.ts +0 -2
  2320. package/v3_theme/font/specs/oneservice-font-set.js +0 -2
  2321. package/v3_theme/font/specs/oneservice-font-set.js.map +0 -1
  2322. package/v3_theme/font/specs/pa-font-set.d.ts +0 -2
  2323. package/v3_theme/font/specs/pa-font-set.js +0 -2
  2324. package/v3_theme/font/specs/pa-font-set.js.map +0 -1
  2325. package/v3_theme/font/specs/smgs-font-set.d.ts +0 -2
  2326. package/v3_theme/font/specs/smgs-font-set.js +0 -2
  2327. package/v3_theme/font/specs/smgs-font-set.js.map +0 -1
  2328. package/v3_theme/font/specs/spf-font-set.d.ts +0 -2
  2329. package/v3_theme/font/specs/spf-font-set.js +0 -2
  2330. package/v3_theme/font/specs/spf-font-set.js.map +0 -1
  2331. package/v3_theme/font/specs/supportgowhere-font-set.d.ts +0 -2
  2332. package/v3_theme/font/specs/supportgowhere-font-set.js +0 -2
  2333. package/v3_theme/font/specs/supportgowhere-font-set.js.map +0 -1
  2334. package/v3_theme/font/theme-helper.d.ts +0 -7
  2335. package/v3_theme/font/theme-helper.js +0 -2
  2336. package/v3_theme/font/theme-helper.js.map +0 -1
  2337. package/v3_theme/font/types.d.ts +0 -54
  2338. package/v3_theme/font/utils.d.ts +0 -4
  2339. package/v3_theme/font/utils.js +0 -10
  2340. package/v3_theme/font/utils.js.map +0 -1
  2341. package/v3_theme/font-spec/specs/a11yplayground-font-spec-set.d.ts +0 -2
  2342. package/v3_theme/font-spec/specs/a11yplayground-font-spec-set.js +0 -2
  2343. package/v3_theme/font-spec/specs/a11yplayground-font-spec-set.js.map +0 -1
  2344. package/v3_theme/font-spec/specs/bookingsg-font-spec-set.d.ts +0 -2
  2345. package/v3_theme/font-spec/specs/bookingsg-font-spec-set.js +0 -2
  2346. package/v3_theme/font-spec/specs/bookingsg-font-spec-set.js.map +0 -1
  2347. package/v3_theme/font-spec/specs/default-font-spec-set.d.ts +0 -2
  2348. package/v3_theme/font-spec/specs/default-font-spec-set.js +0 -2
  2349. package/v3_theme/font-spec/specs/default-font-spec-set.js.map +0 -1
  2350. package/v3_theme/font-spec/specs/imda-font-spec-set.d.ts +0 -2
  2351. package/v3_theme/font-spec/specs/imda-font-spec-set.js +0 -2
  2352. package/v3_theme/font-spec/specs/imda-font-spec-set.js.map +0 -1
  2353. package/v3_theme/font-spec/specs/mylegacy-font-spec-set.d.ts +0 -2
  2354. package/v3_theme/font-spec/specs/mylegacy-font-spec-set.js +0 -2
  2355. package/v3_theme/font-spec/specs/mylegacy-font-spec-set.js.map +0 -1
  2356. package/v3_theme/font-spec/specs/oneservice-font-spec-set.d.ts +0 -2
  2357. package/v3_theme/font-spec/specs/oneservice-font-spec-set.js +0 -2
  2358. package/v3_theme/font-spec/specs/oneservice-font-spec-set.js.map +0 -1
  2359. package/v3_theme/font-spec/specs/pa-font-spec-set.d.ts +0 -2
  2360. package/v3_theme/font-spec/specs/pa-font-spec-set.js +0 -2
  2361. package/v3_theme/font-spec/specs/pa-font-spec-set.js.map +0 -1
  2362. package/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.d.ts +0 -2
  2363. package/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.js +0 -2
  2364. package/v3_theme/font-spec/specs/sgw-digital-lobby-font-spec-set.js.map +0 -1
  2365. package/v3_theme/font-spec/specs/smgs-font-spec-set.d.ts +0 -2
  2366. package/v3_theme/font-spec/specs/smgs-font-spec-set.js +0 -2
  2367. package/v3_theme/font-spec/specs/smgs-font-spec-set.js.map +0 -1
  2368. package/v3_theme/font-spec/specs/spf-font-spec-set.d.ts +0 -2
  2369. package/v3_theme/font-spec/specs/spf-font-spec-set.js +0 -2
  2370. package/v3_theme/font-spec/specs/spf-font-spec-set.js.map +0 -1
  2371. package/v3_theme/font-spec/specs/supportgowhere-font-spec-set.d.ts +0 -2
  2372. package/v3_theme/font-spec/specs/supportgowhere-font-spec-set.js +0 -2
  2373. package/v3_theme/font-spec/specs/supportgowhere-font-spec-set.js.map +0 -1
  2374. package/v3_theme/font-spec/theme-helper.d.ts +0 -6
  2375. package/v3_theme/font-spec/theme-helper.js +0 -2
  2376. package/v3_theme/font-spec/theme-helper.js.map +0 -1
  2377. package/v3_theme/font-spec/types.d.ts +0 -53
  2378. package/v3_theme/helpers.d.ts +0 -7
  2379. package/v3_theme/helpers.js +0 -2
  2380. package/v3_theme/helpers.js.map +0 -1
  2381. package/v3_theme/index.d.ts +0 -670
  2382. package/v3_theme/index.js +0 -2
  2383. package/v3_theme/index.js.map +0 -1
  2384. package/v3_theme/internal-types.d.ts +0 -4
  2385. package/v3_theme/motion/specs/default-motion-set.d.ts +0 -2
  2386. package/v3_theme/motion/specs/default-motion-set.js +0 -2
  2387. package/v3_theme/motion/specs/default-motion-set.js.map +0 -1
  2388. package/v3_theme/motion/theme-helper.d.ts +0 -6
  2389. package/v3_theme/motion/theme-helper.js +0 -2
  2390. package/v3_theme/motion/theme-helper.js.map +0 -1
  2391. package/v3_theme/motion/types.d.ts +0 -17
  2392. package/v3_theme/radius/specs/default-radius-set.d.ts +0 -2
  2393. package/v3_theme/radius/specs/default-radius-set.js +0 -2
  2394. package/v3_theme/radius/specs/default-radius-set.js.map +0 -1
  2395. package/v3_theme/radius/specs/spf-radius-set.d.ts +0 -2
  2396. package/v3_theme/radius/specs/spf-radius-set.js +0 -2
  2397. package/v3_theme/radius/specs/spf-radius-set.js.map +0 -1
  2398. package/v3_theme/radius/theme-helper.d.ts +0 -6
  2399. package/v3_theme/radius/theme-helper.js +0 -2
  2400. package/v3_theme/radius/theme-helper.js.map +0 -1
  2401. package/v3_theme/radius/types.d.ts +0 -13
  2402. package/v3_theme/shadow/specs/default-shadow-set.d.ts +0 -2
  2403. package/v3_theme/shadow/specs/default-shadow-set.js +0 -2
  2404. package/v3_theme/shadow/specs/default-shadow-set.js.map +0 -1
  2405. package/v3_theme/shadow/theme-helper.d.ts +0 -7
  2406. package/v3_theme/shadow/theme-helper.js +0 -2
  2407. package/v3_theme/shadow/theme-helper.js.map +0 -1
  2408. package/v3_theme/shadow/types.d.ts +0 -21
  2409. package/v3_theme/spacing/specs/default-spacing-set.d.ts +0 -2
  2410. package/v3_theme/spacing/specs/default-spacing-set.js +0 -2
  2411. package/v3_theme/spacing/specs/default-spacing-set.js.map +0 -1
  2412. package/v3_theme/spacing/theme-helper.d.ts +0 -6
  2413. package/v3_theme/spacing/theme-helper.js +0 -2
  2414. package/v3_theme/spacing/theme-helper.js.map +0 -1
  2415. package/v3_theme/spacing/types.d.ts +0 -26
  2416. package/v3_theme/types.d.ts +0 -78
  2417. package/v3_theme/use-theme-mode.d.ts +0 -4
  2418. package/v3_theme/use-theme-mode.js +0 -2
  2419. package/v3_theme/use-theme-mode.js.map +0 -1
  2420. /package/cjs/{popover-v2 → popover}/popover-inline/popover-inline.js +0 -0
  2421. /package/{deprecate-v2-tokens → migrate-popover}/index.d.ts +0 -0
  2422. /package/{popover-v2 → popover}/popover-inline/index.d.ts +0 -0
  2423. /package/{popover-v2 → popover}/popover-inline/popover-inline.d.ts +0 -0
  2424. /package/{popover-v2 → popover}/popover-inline/popover-inline.js +0 -0
  2425. /package/{popover-v2 → popover}/popover-inline/popover-inline.styles.d.ts +0 -0
  2426. /package/{popover-v2 → popover}/popover-trigger.styles.d.ts +0 -0
@@ -3,8 +3,6 @@ import { execSync } from "child_process";
3
3
  import * as fs from "fs";
4
4
  import * as path from "path";
5
5
 
6
- import { Theme } from "./common";
7
-
8
6
  const codemodsDir =
9
7
  process.env.ENV === "dev"
10
8
  ? path.join(process.cwd(), "codemods")
@@ -14,12 +12,7 @@ const codemodsDir =
14
12
  );
15
13
 
16
14
  enum Codemod {
17
- DeprecateV2Tokens = "deprecate-v2-tokens",
18
- MigrateColour = "migrate-colour",
19
- MigrateLayout = "migrate-layout",
20
- MigrateMediaQuery = "migrate-media-query",
21
- MigrateText = "migrate-text",
22
- MigrateTextList = "migrate-text-list",
15
+ MigratePopover = "migrate-popover",
23
16
  }
24
17
 
25
18
  const theme = {
@@ -27,15 +20,8 @@ const theme = {
27
20
  };
28
21
 
29
22
  const CodemodDescriptions: { [key in Codemod]: string } = {
30
- [Codemod.DeprecateV2Tokens]: "Migrate deprecated V2 imports",
31
- [Codemod.MigrateColour]: "Replace V2_Color with new Colour tokens",
32
- [Codemod.MigrateLayout]: "Replace V2_Layout with new Layout components",
33
- [Codemod.MigrateMediaQuery]:
34
- "Replace V2 media queries with new Breakpoint tokens",
35
- [Codemod.MigrateText]:
36
- "Replace V2_Text with new Typography components and V2_TextStyleHelper.getTextStyle() with Font",
37
- [Codemod.MigrateTextList]:
38
- "Replace V2_TextList with new Textlist components",
23
+ [Codemod.MigratePopover]:
24
+ "Replace deprecated Popover and migrate PopoverV2 imports",
39
25
  };
40
26
 
41
27
  const TargetDirectoryPaths = {
@@ -45,7 +31,6 @@ const TargetDirectoryPaths = {
45
31
 
46
32
  interface UserSelection {
47
33
  selectedCodemods: string[];
48
- selectedTheme: Theme | null;
49
34
  targetPath: string;
50
35
  }
51
36
 
@@ -65,16 +50,12 @@ function listCodemods(): { name: string; value: string }[] {
65
50
  }
66
51
 
67
52
  function runCodemods(selection: UserSelection): void {
68
- const { selectedCodemods, targetPath, selectedTheme } = selection;
53
+ const { selectedCodemods, targetPath } = selection;
69
54
 
70
55
  selectedCodemods.forEach((codemod) => {
71
56
  const codemodPath = path.join(codemodsDir, codemod, "index.ts");
72
57
  let command = `npx --yes jscodeshift --parser=tsx -t ${codemodPath} ${targetPath}`;
73
58
 
74
- if (codemod === Codemod.MigrateColour && selectedTheme) {
75
- command = `npx --yes jscodeshift --parser=tsx -t ${codemodPath} --mapping=${selectedTheme} ${targetPath}`;
76
- }
77
-
78
59
  console.log(
79
60
  `Running codemod: ${codemod} on target path: ${targetPath}`
80
61
  );
@@ -133,24 +114,6 @@ async function chooseTargetPath(): Promise<string | null> {
133
114
  return selectedOption;
134
115
  }
135
116
 
136
- async function chooseTheme(): Promise<Theme | null> {
137
- const themeOptions = [
138
- { name: "LifeSG", value: Theme.LifeSG },
139
- { name: "BookingSG", value: Theme.BookingSG },
140
- { name: "MyLegacy", value: Theme.MyLegacy },
141
- { name: "CCube", value: Theme.CCube },
142
- { name: "RBS", value: Theme.RBS },
143
- { name: "OneService", value: Theme.OneService },
144
- ];
145
-
146
- const selectedTheme = await select({
147
- message: "Select the theme that your project is using:",
148
- choices: themeOptions,
149
- });
150
-
151
- return selectedTheme;
152
- }
153
-
154
117
  async function getCodemodSelections(): Promise<UserSelection> {
155
118
  const codemods = listCodemods();
156
119
  if (codemods.length === 0) {
@@ -164,31 +127,21 @@ async function getCodemodSelections(): Promise<UserSelection> {
164
127
  theme,
165
128
  });
166
129
 
167
- let selectedTheme: Theme | null = null;
168
- if (selectedCodemods.includes(Codemod.MigrateColour)) {
169
- selectedTheme = await chooseTheme();
170
- }
171
-
172
130
  const targetPath = await chooseTargetPath();
173
131
  if (!targetPath) {
174
132
  throw new Error("No target path selected or provided");
175
133
  }
176
134
 
177
- return { selectedCodemods, selectedTheme, targetPath };
135
+ return { selectedCodemods, targetPath };
178
136
  }
179
137
 
180
138
  async function getConfirmation(selection: UserSelection) {
181
- const { selectedCodemods, selectedTheme, targetPath } = selection;
139
+ const { selectedCodemods, targetPath } = selection;
182
140
 
183
141
  const codemods = selectedCodemods.join(", ");
184
142
  const finalConfirmationMessage =
185
143
  `\nYou are about to run the following codemods: ${codemods}\n` +
186
- `Target path: ${targetPath}\n` +
187
- `${
188
- selectedTheme
189
- ? `Selected theme for "migrate-colour": ${selectedTheme}\n`
190
- : ""
191
- }`;
144
+ `Target path: ${targetPath}\n`;
192
145
 
193
146
  console.log(finalConfirmationMessage);
194
147
 
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"../_virtual/_tslib.js";import{jsx as t,Fragment as r,jsxs as i}from"react/jsx-runtime";import n from"../external/lodash/throttle.js";import{useRef as o,useState as s,useContext as a,useEffect as l}from"react";import{useInView as m}from"../external/react-intersection-observer/index.js";import{r as d}from"../external/react-responsive/dist/react-responsive.js";import{ThemeContext as c}from"styled-components";import{inertValue as u,VisuallyHidden as f}from"../shared/accessibility/index.js";import{TimeHelper as p}from"../util/time-helper.js";import{V3_Breakpoint as v}from"../v3_theme/index.js";import{Wrapper as h,Countdown as x,FixedCountdown as b,TimerIcon as w,TimeLeft as $,Timer as y}from"./countdown-timer.style.js";import{useTimer as g}from"./use-timer.js";const j=j=>{var{className:T,align:I="right",timer:M,timestamp:N,notifyTimer:F,offset:S,mobileOffset:C,show:O,fixed:_=!0,reminderInterval:k=120,"data-testid":z,onFinish:E,onNotify:L,onTick:V}=j,W=e(j,["className","align","timer","timestamp","notifyTimer","offset","mobileOffset","show","fixed","reminderInterval","data-testid","onFinish","onNotify","onTick"]);const B=o(null),Q=o(!1),[R,q]=s(0),[A,D]=s(0),[G,H]=s(0),[J,K]=s(!1),[P,U]=s(""),[X,Y]=g(M,N,J),{ref:Z,inView:ee}=m({threshold:1,rootMargin:-1*R+"px 0px 0px 0px",initialInView:!0}),te=!_||ee,re="number"==typeof F&&X<=F,ie=a(c),ne=v["sm-max"]({theme:ie}),oe=d.useMediaQuery({maxWidth:ne});l((()=>{K(O)}),[O]),l((()=>{0===X?de():"number"==typeof F&&X<=F&&(le(),me())}),[X]),l((()=>{const e=function(){var e,t;const r=null!==(e=null==S?void 0:S.top)&&void 0!==e?e:168,i=null!==(t=null==C?void 0:C.top)&&void 0!==t?t:80,n=oe?i:r;return n}();q(e)}),[oe,null==S?void 0:S.top,null==C?void 0:C.top]),l((()=>{if(B.current){const e=n(se,300);return se(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}}),[B.current]),l((()=>{const e=Y-X;0!==e&&(e%k==0&&("number"!=typeof F||X>F)&&U(ce(X)),"number"==typeof F&&X===F&&U(ce(X)))}),[X,Y,k,F]),l((()=>{Q.current=!1}),[Y,O]);const se=()=>{if(!B.current)return;const e=B.current.getBoundingClientRect();H(e.x),D(e.right)},ae=()=>{const e=ce(X);U(e)},le=()=>{V&&V(X)},me=()=>{L&&!Q.current&&(Q.current=!0,L())},de=()=>{K(!1),E&&E()};const ce=e=>{const{minutes:t,seconds:r}=p.toMinutesSeconds(e),i=1===t?"minute":"minutes",n=1===r?"second":"seconds";return t>0&&r>0?`Time left: ${t} ${i} and ${r} ${n}`:t>0?`Time left: ${t} ${i}`:`Time left: ${r} ${n}`},ue=()=>{const{minutes:e,seconds:n}=p.toMinutesSeconds(X),o=1!==e?"mins":"min",s=1!==n?"secs":"sec";return i(r,{children:[t(w,{$warn:re}),t($,{children:"Time left:"}),i(y,{"aria-label":ce(X),children:[e," ",o," ",String(n).padStart(2,"0")," ",s]}),t(f,{"aria-live":"number"==typeof F&&X<=F?"assertive":"polite","aria-atomic":"true",children:P})]})};return J||0===X?i(h,Object.assign({className:T},W,{children:[t("div",{ref:Z}),t(x,{"data-testid":z,"data-id":"countdown-wrapper",ref:B,inert:u(!te),$visible:te,$warn:re,tabIndex:0,role:"timer","aria-label":"Countdown timer",onFocus:ae,children:ue()}),B.current&&!te&&(()=>{var e,r;const i=null!==(e=null==S?void 0:S.left)&&void 0!==e?e:"left"===I?G:void 0,n=null!==(r=null==S?void 0:S.right)&&void 0!==r?r:"right"===I?Math.floor(document.body.clientWidth-A):void 0;return t(b,{"data-testid":z,"data-id":"fixed-countdown-wrapper",$warn:re,$top:R,$left:i,$right:n,tabIndex:0,role:"timer","aria-label":"Countdown timer",onFocus:ae,children:ue()})})()]})):t(r,{})};export{j as CountdownTimer};
1
+ import{__rest as e}from"../_virtual/_tslib.js";import{jsx as t,Fragment as r,jsxs as i}from"react/jsx-runtime";import{ClockIcon as o}from"@lifesg/react-icons";import n from"clsx";import s from"../external/lodash/throttle.js";import{useRef as m,useState as a,useEffect as l}from"react";import{useInView as d}from"../external/react-intersection-observer/index.js";import{inertValue as u,VisuallyHidden as c}from"../shared/accessibility/index.js";import"../theme/theme-provider/index.js";import{formatUnitValue as p}from"../theme/utils/css-variable.js";import"../theme/theme-provider/context.js";import"../theme/tokens/border.js";import"../theme/tokens/colour.js";import"../theme/tokens/font.js";import"../theme/tokens/media-query.js";import{useApplyStyle as f}from"../theme/utils/use-apply-styles.js";import{useMaxWidthMediaQuery as h}from"../theme/utils/use-media-query.js";import"../util/calendar-helper.js";import"../external/dayjs/dayjs.min.js";import"../util/simple-id-generator.js";import"../util/string-helper.js";import"@react-aria/live-announcer";import{useIsMounted as v}from"../util/use-mount.js";import{TimeHelper as x}from"../util/time-helper.js";import{tokens as j,wrapper as w,countdown as b,countdownInline as y,countdownHidden as g,countdownFixed as N,timerIcon as T,timeLeft as $,timer as k}from"./countdown-timer.styles.js";import{useTimer as C}from"./use-timer.js";const I=I=>{var{className:F,align:M="right",timer:S,timestamp:O,notifyTimer:q,offset:z,mobileOffset:E,show:L,fixed:V=!0,reminderInterval:_=120,"data-testid":B,onFinish:R,onNotify:W,onTick:A}=I,D=e(I,["className","align","timer","timestamp","notifyTimer","offset","mobileOffset","show","fixed","reminderInterval","data-testid","onFinish","onNotify","onTick"]);const G=m(null),H=m(null),J=m(!1),[K,P]=a(0),[Q,U]=a(0),[X,Y]=a(0),[Z,ee]=a(!1),[te,re]=a(""),ie=v(),[oe,ne]=C(S,O,Z),{ref:se,inView:me}=d({threshold:1,rootMargin:-1*K+"px 0px 0px 0px",initialInView:!0}),ae=!V||me,le="number"==typeof q&&oe<=q,de=h("sm");f(H,{[j.fixedCountdown.top]:p(K,"px"),[j.fixedCountdown.left]:p(function(){var e;return ie&&"left"===M?null!==(e=null==z?void 0:z.left)&&void 0!==e?e:X:void 0}(),"px"),[j.fixedCountdown.right]:p(function(){var e;return ie&&"right"===M?null!==(e=null==z?void 0:z.right)&&void 0!==e?e:Math.floor(document.body.clientWidth-Q):void 0}(),"px")}),l((()=>{ee(L)}),[L]),l((()=>{0===oe?he():"number"==typeof q&&oe<=q&&(pe(),fe())}),[oe]),l((()=>{const e=function(){var e,t;const r=null!==(e=null==z?void 0:z.top)&&void 0!==e?e:168,i=null!==(t=null==E?void 0:E.top)&&void 0!==t?t:80,o=de?i:r;return o}();P(e)}),[de,null==z?void 0:z.top,null==E?void 0:E.top]),l((()=>{if(G.current){const e=s(ue,300);return ue(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}}),[G.current]),l((()=>{const e=ne-oe;0!==e&&(e%_==0&&("number"!=typeof q||oe>q)&&re(ve(oe)),"number"==typeof q&&oe===q&&re(ve(oe)))}),[oe,ne,_,q]),l((()=>{J.current=!1}),[ne,L]);const ue=()=>{if(!G.current)return;const e=G.current.getBoundingClientRect();Y(e.x),U(e.right)},ce=()=>{const e=ve(oe);re(e)},pe=()=>{A&&A(oe)},fe=()=>{W&&!J.current&&(J.current=!0,W())},he=()=>{ee(!1),R&&R()};const ve=e=>{const{minutes:t,seconds:r}=x.toMinutesSeconds(e),i=1===t?"minute":"minutes",o=1===r?"second":"seconds";return t>0&&r>0?`Time left: ${t} ${i} and ${r} ${o}`:t>0?`Time left: ${t} ${i}`:`Time left: ${r} ${o}`},xe=()=>{const{minutes:e,seconds:n}=x.toMinutesSeconds(oe),s=1!==e?"mins":"min",m=1!==n?"secs":"sec";return i(r,{children:[t(o,{className:T,"data-warn":!!le}),t("div",{className:$,children:"Time left:"}),i("div",{className:k,"aria-label":ve(oe),children:[e," ",s," ",String(n).padStart(2,"0")," ",m]}),t(c,{"aria-live":"number"==typeof q&&oe<=q?"assertive":"polite","aria-atomic":"true",children:te})]})};return Z||0===oe?i("div",Object.assign({className:n(w,F)},D,{children:[t("div",{ref:se}),t("div",{"data-testid":B,"data-id":"countdown-wrapper","data-warn":!!le,ref:G,inert:u(!ae),className:n(b,y,!ae&&g),tabIndex:0,role:"timer","aria-label":"Countdown timer",onFocus:ce,children:xe()}),G.current&&!ae&&t("div",{ref:H,"data-testid":B,"data-id":"fixed-countdown-wrapper","data-warn":!!le,className:n(b,N),tabIndex:0,role:"timer","aria-label":"Countdown timer",onFocus:ce,children:xe()})]})):t(r,{})};export{I as CountdownTimer};
2
2
  //# sourceMappingURL=countdown-timer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"countdown-timer.js","sources":["../../src/countdown-timer/countdown-timer.tsx"],"sourcesContent":["import throttle from \"lodash/throttle\";\nimport { useContext, useEffect, useRef, useState } from \"react\";\nimport { useInView } from \"react-intersection-observer\";\nimport { useMediaQuery } from \"react-responsive\";\nimport { ThemeContext } from \"styled-components\";\n\nimport { inertValue, VisuallyHidden } from \"../shared/accessibility\";\nimport { TimeHelper } from \"../util/time-helper\";\nimport { V3_Breakpoint } from \"../v3_theme\";\nimport {\n Countdown,\n FixedCountdown,\n TimeLeft,\n Timer,\n TimerIcon,\n Wrapper,\n} from \"./countdown-timer.style\";\nimport type { CountdownTimerProps } from \"./types\";\nimport { useTimer } from \"./use-timer\";\n\nexport const CountdownTimer = ({\n className,\n align = \"right\",\n timer,\n timestamp,\n notifyTimer,\n offset,\n mobileOffset,\n show,\n fixed = true,\n reminderInterval = 120,\n \"data-testid\": testId,\n onFinish,\n onNotify,\n onTick,\n ...otherProps\n}: CountdownTimerProps) => {\n // =============================================================================\n // CONST, STATE, REF\n // =============================================================================\n\n const wrapperRef = useRef<HTMLDivElement>(null);\n const isNotified = useRef<boolean>(false);\n const [offsetY, setOffsetY] = useState<number>(0);\n const [clientRectRight, setClientRectRight] = useState<number>(0);\n const [clientRectX, setClientRectX] = useState<number>(0);\n const [isPlaying, setIsPlaying] = useState(false);\n const [announcement, setAnnouncement] = useState<string>(\"\");\n\n const [remainingSeconds, initialSeconds] = useTimer(\n timer,\n timestamp,\n isPlaying\n );\n const { ref: stickyRef, inView } = useInView({\n threshold: 1,\n rootMargin: `${offsetY * -1}px 0px 0px 0px`,\n initialInView: true,\n });\n const isVisible = !fixed || inView;\n const warn =\n typeof notifyTimer === \"number\" && remainingSeconds <= notifyTimer;\n\n const theme = useContext(ThemeContext);\n const mobileBreakpoint = V3_Breakpoint[\"sm-max\"]({ theme });\n const isMobile = useMediaQuery({ maxWidth: mobileBreakpoint });\n\n // =============================================================================\n // EFFECTS\n // =============================================================================\n\n useEffect(() => {\n setIsPlaying(show);\n }, [show]);\n\n useEffect(() => {\n if (remainingSeconds === 0) {\n performOnFinishHandler();\n } else if (\n typeof notifyTimer === \"number\" &&\n remainingSeconds <= notifyTimer\n ) {\n performOnTickHandler();\n performOnNotifyHandler();\n }\n }, [remainingSeconds]);\n\n useEffect(() => {\n const y = getOffsetY();\n setOffsetY(y);\n }, [isMobile, offset?.top, mobileOffset?.top]);\n\n useEffect(() => {\n if (wrapperRef.current) {\n const handleResize = throttle(handleWindowResize, 300);\n handleWindowResize();\n\n window.addEventListener(\"resize\", handleResize);\n\n return () => {\n window.removeEventListener(\"resize\", handleResize);\n };\n }\n }, [wrapperRef.current]);\n\n // Announcements\n useEffect(() => {\n const timeElapsed = initialSeconds - remainingSeconds;\n if (timeElapsed === 0) return;\n // Polite notification\n if (timeElapsed % reminderInterval === 0) {\n if (\n typeof notifyTimer !== \"number\" ||\n remainingSeconds > notifyTimer\n ) {\n setAnnouncement(getAccessibleTimeText(remainingSeconds));\n }\n }\n\n // Assertive notification\n if (\n typeof notifyTimer === \"number\" &&\n remainingSeconds === notifyTimer\n ) {\n setAnnouncement(getAccessibleTimeText(remainingSeconds));\n }\n }, [remainingSeconds, initialSeconds, reminderInterval, notifyTimer]);\n\n useEffect(() => {\n // reset\n isNotified.current = false;\n }, [initialSeconds, show]);\n\n // =============================================================================\n // EVENT HANDLERS\n // =============================================================================\n const handleWindowResize = () => {\n if (!wrapperRef.current) return;\n\n const clientRect = wrapperRef.current.getBoundingClientRect();\n\n setClientRectX(clientRect.x);\n setClientRectRight(clientRect.right);\n };\n\n const handleOnFocus = () => {\n const focusMessage = getAccessibleTimeText(remainingSeconds);\n setAnnouncement(focusMessage);\n };\n\n // =============================================================================\n // HELPER FUNCTIONS\n // =============================================================================\n\n const performOnTickHandler = () => {\n if (onTick) {\n onTick(remainingSeconds);\n }\n };\n\n const performOnNotifyHandler = () => {\n if (onNotify && !isNotified.current) {\n isNotified.current = true;\n onNotify();\n }\n };\n\n const performOnFinishHandler = () => {\n setIsPlaying(false);\n\n if (onFinish) onFinish();\n };\n\n function getOffsetY() {\n const desktopTop = offset?.top ?? 168;\n const mobileTop = mobileOffset?.top ?? 80;\n const offsetY = isMobile ? mobileTop : desktopTop;\n\n return offsetY;\n }\n\n const getAccessibleTimeText = (seconds: number): string => {\n const { minutes, seconds: secs } = TimeHelper.toMinutesSeconds(seconds);\n\n const minuteText = minutes === 1 ? \"minute\" : \"minutes\";\n const secondText = secs === 1 ? \"second\" : \"seconds\";\n\n if (minutes > 0 && secs > 0) {\n return `Time left: ${minutes} ${minuteText} and ${secs} ${secondText}`;\n } else if (minutes > 0) {\n return `Time left: ${minutes} ${minuteText}`;\n } else {\n return `Time left: ${secs} ${secondText}`;\n }\n };\n // =============================================================================\n // RENDER FUNCTION\n // =============================================================================\n\n const renderPeriodicAndWarningAnnouncement = () => (\n <VisuallyHidden\n aria-live={\n typeof notifyTimer === \"number\" &&\n remainingSeconds <= notifyTimer\n ? \"assertive\"\n : \"polite\"\n }\n aria-atomic=\"true\"\n >\n {announcement}\n </VisuallyHidden>\n );\n\n const renderTimer = () => {\n const { minutes, seconds } =\n TimeHelper.toMinutesSeconds(remainingSeconds);\n const m = minutes !== 1 ? \"mins\" : \"min\";\n const s = seconds !== 1 ? \"secs\" : \"sec\";\n return (\n <>\n <TimerIcon $warn={warn} />\n <TimeLeft>Time left:</TimeLeft>\n <Timer aria-label={getAccessibleTimeText(remainingSeconds)}>\n {minutes} {m} {String(seconds).padStart(2, \"0\")} {s}\n </Timer>\n {renderPeriodicAndWarningAnnouncement()}\n </>\n );\n };\n\n const renderCountdown = () => {\n return (\n <Countdown\n data-testid={testId}\n data-id=\"countdown-wrapper\"\n ref={wrapperRef}\n inert={inertValue(!isVisible)}\n $visible={isVisible}\n $warn={warn}\n tabIndex={0}\n role=\"timer\"\n aria-label=\"Countdown timer\"\n onFocus={handleOnFocus}\n >\n {renderTimer()}\n </Countdown>\n );\n };\n\n const renderFixedCountdown = () => {\n const left =\n offset?.left ?? (align === \"left\" ? clientRectX : undefined);\n\n const right =\n offset?.right ??\n (align === \"right\"\n ? Math.floor(document.body.clientWidth - clientRectRight)\n : undefined);\n\n return (\n <FixedCountdown\n data-testid={testId}\n data-id=\"fixed-countdown-wrapper\"\n $warn={warn}\n $top={offsetY}\n $left={left}\n $right={right}\n tabIndex={0}\n role=\"timer\"\n aria-label=\"Countdown timer\"\n onFocus={handleOnFocus}\n >\n {renderTimer()}\n </FixedCountdown>\n );\n };\n\n if (!isPlaying && remainingSeconds !== 0) return <></>;\n\n return (\n <Wrapper className={className} {...otherProps}>\n <div ref={stickyRef}></div>\n {renderCountdown()}\n {wrapperRef.current && !isVisible && renderFixedCountdown()}\n </Wrapper>\n );\n};\n"],"names":["CountdownTimer","_a","className","align","timer","timestamp","notifyTimer","offset","mobileOffset","show","fixed","reminderInterval","testId","onFinish","onNotify","onTick","otherProps","__rest","wrapperRef","useRef","isNotified","offsetY","setOffsetY","useState","clientRectRight","setClientRectRight","clientRectX","setClientRectX","isPlaying","setIsPlaying","announcement","setAnnouncement","remainingSeconds","initialSeconds","useTimer","ref","stickyRef","inView","useInView","threshold","rootMargin","initialInView","isVisible","warn","theme","useContext","ThemeContext","mobileBreakpoint","V3_Breakpoint","isMobile","useMediaQuery","maxWidth","useEffect","performOnFinishHandler","performOnTickHandler","performOnNotifyHandler","y","desktopTop","top","mobileTop","_b","getOffsetY","current","handleResize","throttle","handleWindowResize","window","addEventListener","removeEventListener","timeElapsed","getAccessibleTimeText","clientRect","getBoundingClientRect","x","right","handleOnFocus","focusMessage","seconds","minutes","secs","TimeHelper","toMinutesSeconds","minuteText","secondText","renderTimer","m","s","_jsxs","_Fragment","children","_jsx","TimerIcon","$warn","TimeLeft","Timer","String","padStart","VisuallyHidden","Wrapper","Object","assign","Countdown","inert","inertValue","$visible","tabIndex","role","onFocus","left","undefined","Math","floor","document","body","clientWidth","FixedCountdown","$left","$right","renderFixedCountdown"],"mappings":"sxBAoBO,MAAMA,EAAkBC,IAAA,IAAAC,UAC3BA,EAASC,MACTA,EAAQ,QAAOC,MACfA,EAAKC,UACLA,EAASC,YACTA,EAAWC,OACXA,EAAMC,aACNA,EAAYC,KACZA,EAAIC,MACJA,GAAQ,EAAIC,iBACZA,EAAmB,IACnB,cAAeC,EAAMC,SACrBA,EAAQC,SACRA,EAAQC,OACRA,GAAMd,EACHe,EAAUC,EAAAhB,EAfc,gKAqB3B,MAAMiB,EAAaC,EAAuB,MACpCC,EAAaD,GAAgB,IAC5BE,EAASC,GAAcC,EAAiB,IACxCC,EAAiBC,GAAsBF,EAAiB,IACxDG,EAAaC,GAAkBJ,EAAiB,IAChDK,EAAWC,GAAgBN,GAAS,IACpCO,EAAcC,GAAmBR,EAAiB,KAElDS,EAAkBC,GAAkBC,EACvC9B,EACAC,EACAuB,IAEIO,IAAKC,EAASC,OAAEA,IAAWC,EAAU,CACzCC,UAAW,EACXC,YAAyB,EAAVnB,EAAH,iBACZoB,eAAe,IAEbC,IAAahC,GAAS2B,GACtBM,GACqB,iBAAhBrC,GAA4B0B,GAAoB1B,EAErDsC,GAAQC,EAAWC,GACnBC,GAAmBC,EAAc,UAAU,CAAEJ,WAC7CK,GAAWC,EAAAA,cAAc,CAAEC,SAAUJ,KAM3CK,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JlE,EAAW4C,UAAYpB,IAlCH,cACzB,MAAMkE,EACU,QAAZ3G,EAAAM,aAAM,EAANA,EAAQqG,YAAI,IAAA3G,EAAAA,EAAe,SAAVE,EAAmBuB,OAAcmF,EAEhDnC,EACW,QAAbd,EAAArD,aAAM,EAANA,EAAQmE,aAAK,IAAAd,EAAAA,EACF,UAAVzD,EACK2G,KAAKC,MAAMC,SAASC,KAAKC,YAAc1F,QACvCqF,EAEV,OACInB,EAACyB,EAAc,CAAA,cACEvG,EAAM,UACX,0BAAyBgF,MAC1BjD,QACDtB,EAAO+F,MACNR,EAAIS,OACH3C,EACR+B,SAAU,EACVC,KAAK,qBACM,kBACXC,QAAShC,GAAac,SAErBL,MACY,EAUoBkC,OANI5B,OAOnC"}
1
+ {"version":3,"file":"countdown-timer.js","sources":["../../src/countdown-timer/countdown-timer.tsx"],"sourcesContent":["import { ClockIcon } from \"@lifesg/react-icons\";\nimport clsx from \"clsx\";\nimport throttle from \"lodash/throttle\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useInView } from \"react-intersection-observer\";\n\nimport { inertValue, VisuallyHidden } from \"../shared/accessibility\";\nimport {\n formatUnitValue,\n useApplyStyle,\n useMaxWidthMediaQuery,\n} from \"../theme\";\nimport { useIsMounted } from \"../util\";\nimport { TimeHelper } from \"../util/time-helper\";\nimport * as styles from \"./countdown-timer.styles\";\nimport type { CountdownTimerProps } from \"./types\";\nimport { useTimer } from \"./use-timer\";\n\nexport const CountdownTimer = ({\n className,\n align = \"right\",\n timer,\n timestamp,\n notifyTimer,\n offset,\n mobileOffset,\n show,\n fixed = true,\n reminderInterval = 120,\n \"data-testid\": testId,\n onFinish,\n onNotify,\n onTick,\n ...otherProps\n}: CountdownTimerProps) => {\n // =============================================================================\n // CONST, STATE, REF\n // =============================================================================\n\n const wrapperRef = useRef<HTMLDivElement>(null);\n const fixedCountdownRef = useRef<HTMLDivElement>(null);\n\n const isNotified = useRef<boolean>(false);\n const [offsetY, setOffsetY] = useState<number>(0);\n const [clientRectRight, setClientRectRight] = useState<number>(0);\n const [clientRectX, setClientRectX] = useState<number>(0);\n const [isPlaying, setIsPlaying] = useState(false);\n const [announcement, setAnnouncement] = useState<string>(\"\");\n\n const isMounted = useIsMounted();\n const [remainingSeconds, initialSeconds] = useTimer(\n timer,\n timestamp,\n isPlaying\n );\n const { ref: stickyRef, inView } = useInView({\n threshold: 1,\n rootMargin: `${offsetY * -1}px 0px 0px 0px`,\n initialInView: true,\n });\n const isVisible = !fixed || inView;\n const warn =\n typeof notifyTimer === \"number\" && remainingSeconds <= notifyTimer;\n\n const isMobile = useMaxWidthMediaQuery(\"sm\");\n\n // =============================================================================\n // EFFECTS\n // =============================================================================\n\n useApplyStyle(fixedCountdownRef, {\n [styles.tokens.fixedCountdown.top]: formatUnitValue(offsetY, \"px\"),\n [styles.tokens.fixedCountdown.left]: formatUnitValue(\n getOffsetLeft(),\n \"px\"\n ),\n [styles.tokens.fixedCountdown.right]: formatUnitValue(\n getOffsetRight(),\n \"px\"\n ),\n });\n\n useEffect(() => {\n setIsPlaying(show);\n }, [show]);\n\n useEffect(() => {\n if (remainingSeconds === 0) {\n performOnFinishHandler();\n } else if (\n typeof notifyTimer === \"number\" &&\n remainingSeconds <= notifyTimer\n ) {\n performOnTickHandler();\n performOnNotifyHandler();\n }\n }, [remainingSeconds]);\n\n useEffect(() => {\n const y = getOffsetY();\n setOffsetY(y);\n }, [isMobile, offset?.top, mobileOffset?.top]);\n\n useEffect(() => {\n if (wrapperRef.current) {\n const handleResize = throttle(handleWindowResize, 300);\n handleWindowResize();\n\n window.addEventListener(\"resize\", handleResize);\n\n return () => {\n window.removeEventListener(\"resize\", handleResize);\n };\n }\n }, [wrapperRef.current]);\n\n // Announcements\n useEffect(() => {\n const timeElapsed = initialSeconds - remainingSeconds;\n if (timeElapsed === 0) return;\n // Polite notification\n if (timeElapsed % reminderInterval === 0) {\n if (\n typeof notifyTimer !== \"number\" ||\n remainingSeconds > notifyTimer\n ) {\n setAnnouncement(getAccessibleTimeText(remainingSeconds));\n }\n }\n\n // Assertive notification\n if (\n typeof notifyTimer === \"number\" &&\n remainingSeconds === notifyTimer\n ) {\n setAnnouncement(getAccessibleTimeText(remainingSeconds));\n }\n }, [remainingSeconds, initialSeconds, reminderInterval, notifyTimer]);\n\n useEffect(() => {\n // reset\n isNotified.current = false;\n }, [initialSeconds, show]);\n\n // =============================================================================\n // EVENT HANDLERS\n // =============================================================================\n const handleWindowResize = () => {\n if (!wrapperRef.current) return;\n\n const clientRect = wrapperRef.current.getBoundingClientRect();\n\n setClientRectX(clientRect.x);\n setClientRectRight(clientRect.right);\n };\n\n const handleOnFocus = () => {\n const focusMessage = getAccessibleTimeText(remainingSeconds);\n setAnnouncement(focusMessage);\n };\n\n // =============================================================================\n // HELPER FUNCTIONS\n // =============================================================================\n\n const performOnTickHandler = () => {\n if (onTick) {\n onTick(remainingSeconds);\n }\n };\n\n const performOnNotifyHandler = () => {\n if (onNotify && !isNotified.current) {\n isNotified.current = true;\n onNotify();\n }\n };\n\n const performOnFinishHandler = () => {\n setIsPlaying(false);\n\n if (onFinish) onFinish();\n };\n\n function getOffsetY() {\n const desktopTop = offset?.top ?? 168;\n const mobileTop = mobileOffset?.top ?? 80;\n const offsetY = isMobile ? mobileTop : desktopTop;\n\n return offsetY;\n }\n\n function getOffsetLeft() {\n if (!isMounted || align !== \"left\") return undefined;\n return offset?.left ?? clientRectX;\n }\n\n function getOffsetRight() {\n if (!isMounted || align !== \"right\") return undefined;\n return (\n offset?.right ??\n Math.floor(document.body.clientWidth - clientRectRight)\n );\n }\n\n const getAccessibleTimeText = (seconds: number): string => {\n const { minutes, seconds: secs } = TimeHelper.toMinutesSeconds(seconds);\n\n const minuteText = minutes === 1 ? \"minute\" : \"minutes\";\n const secondText = secs === 1 ? \"second\" : \"seconds\";\n\n if (minutes > 0 && secs > 0) {\n return `Time left: ${minutes} ${minuteText} and ${secs} ${secondText}`;\n } else if (minutes > 0) {\n return `Time left: ${minutes} ${minuteText}`;\n } else {\n return `Time left: ${secs} ${secondText}`;\n }\n };\n // =============================================================================\n // RENDER FUNCTION\n // =============================================================================\n\n const renderPeriodicAndWarningAnnouncement = () => (\n <VisuallyHidden\n aria-live={\n typeof notifyTimer === \"number\" &&\n remainingSeconds <= notifyTimer\n ? \"assertive\"\n : \"polite\"\n }\n aria-atomic=\"true\"\n >\n {announcement}\n </VisuallyHidden>\n );\n\n const renderTimer = () => {\n const { minutes, seconds } =\n TimeHelper.toMinutesSeconds(remainingSeconds);\n const m = minutes !== 1 ? \"mins\" : \"min\";\n const s = seconds !== 1 ? \"secs\" : \"sec\";\n return (\n <>\n <ClockIcon className={styles.timerIcon} data-warn={!!warn} />\n <div className={styles.timeLeft}>Time left:</div>\n <div\n className={styles.timer}\n aria-label={getAccessibleTimeText(remainingSeconds)}\n >\n {minutes} {m} {String(seconds).padStart(2, \"0\")} {s}\n </div>\n {renderPeriodicAndWarningAnnouncement()}\n </>\n );\n };\n\n const renderInlineCountdown = () => {\n return (\n <div\n data-testid={testId}\n data-id=\"countdown-wrapper\"\n data-warn={!!warn}\n ref={wrapperRef}\n inert={inertValue(!isVisible)}\n className={clsx(\n styles.countdown,\n styles.countdownInline,\n !isVisible && styles.countdownHidden\n )}\n tabIndex={0}\n role=\"timer\"\n aria-label=\"Countdown timer\"\n onFocus={handleOnFocus}\n >\n {renderTimer()}\n </div>\n );\n };\n\n const renderFixedCountdown = () => {\n return (\n <div\n ref={fixedCountdownRef}\n data-testid={testId}\n data-id=\"fixed-countdown-wrapper\"\n data-warn={!!warn}\n className={clsx(styles.countdown, styles.countdownFixed)}\n tabIndex={0}\n role=\"timer\"\n aria-label=\"Countdown timer\"\n onFocus={handleOnFocus}\n >\n {renderTimer()}\n </div>\n );\n };\n\n if (!isPlaying && remainingSeconds !== 0) return <></>;\n\n return (\n <div className={clsx(styles.wrapper, className)} {...otherProps}>\n <div ref={stickyRef}></div>\n {renderInlineCountdown()}\n {wrapperRef.current && !isVisible && renderFixedCountdown()}\n </div>\n );\n};\n"],"names":["CountdownTimer","_a","className","align","timer","timestamp","notifyTimer","offset","mobileOffset","show","fixed","reminderInterval","testId","onFinish","onNotify","onTick","otherProps","__rest","wrapperRef","useRef","fixedCountdownRef","isNotified","offsetY","setOffsetY","useState","clientRectRight","setClientRectRight","clientRectX","setClientRectX","isPlaying","setIsPlaying","announcement","setAnnouncement","isMounted","useIsMounted","remainingSeconds","initialSeconds","useTimer","ref","stickyRef","inView","useInView","threshold","rootMargin","initialInView","isVisible","warn","isMobile","useMaxWidthMediaQuery","useApplyStyle","styles.tokens","fixedCountdown","top","formatUnitValue","left","getOffsetLeft","right","Math","floor","document","body","clientWidth","getOffsetRight","useEffect","performOnFinishHandler","performOnTickHandler","performOnNotifyHandler","y","desktopTop","mobileTop","_b","getOffsetY","current","handleResize","throttle","handleWindowResize","window","addEventListener","removeEventListener","timeElapsed","getAccessibleTimeText","clientRect","getBoundingClientRect","x","handleOnFocus","focusMessage","seconds","minutes","secs","TimeHelper","toMinutesSeconds","minuteText","secondText","renderTimer","m","s","_jsxs","_Fragment","children","_jsx","ClockIcon","styles.timerIcon","styles.timeLeft","styles.timer","String","padStart","VisuallyHidden","Object","assign","clsx","styles.wrapper","inert","inertValue","styles.countdown","styles.countdownInline","styles.countdownHidden","tabIndex","role","onFocus","styles.countdownFixed"],"mappings":"u2CAkBO,MAAMA,EAAkBC,IAAA,IAAAC,UAC3BA,EAASC,MACTA,EAAQ,QAAOC,MACfA,EAAKC,UACLA,EAASC,YACTA,EAAWC,OACXA,EAAMC,aACNA,EAAYC,KACZA,EAAIC,MACJA,GAAQ,EAAIC,iBACZA,EAAmB,IACnB,cAAeC,EAAMC,SACrBA,EAAQC,SACRA,EAAQC,OACRA,GAAMd,EACHe,EAAUC,EAAAhB,EAfc,gKAqB3B,MAAMiB,EAAaC,EAAuB,MACpCC,EAAoBD,EAAuB,MAE3CE,EAAaF,GAAgB,IAC5BG,EAASC,GAAcC,EAAiB,IACxCC,EAAiBC,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B,cAAcH,KAAQI,GACjC,EAoBEC,GAAc,KAChB,MAAMN,QAAEA,EAAOD,QAAEA,GACbG,EAAWC,iBAAiBvD,IAC1B2D,EAAgB,IAAZP,EAAgB,OAAS,MAC7BQ,EAAgB,IAAZT,EAAgB,OAAS,MACnC,OACIU,EAAAC,EAAA,CAAAC,SAAA,CACIC,EAACC,EAAS,CAAClG,UAAWmG,EAAgB,cAAevD,KACrDqD,EAAA,MAAA,CAAKjG,UAAWoG,EAAeJ,SAAA,eAC/BF,EAAA,MAAA,CACI9F,UAAWqG,EAAY,aACXvB,GAAsB7C,IAAiB+D,SAAA,CAElDX,EAAO,IAAGO,EAAC,IAAGU,OAAOlB,GAASmB,SAAS,EAAG,KAAI,IAAGV,KA1B9DI,EAACO,EAAc,CAAA,YAEgB,iBAAhBpG,GACP6B,IAAoB7B,EACd,YACA,SAAQ,cAEN,gBAEXyB,OAoBE,EA6CX,OAAKF,GAAkC,IAArBM,GAGd6D,EAAA,MAAAW,OAAAC,OAAA,CAAK1G,UAAW2G,EAAKC,EAAgB5G,IAAgBc,aACjDmF,EAAA,MAAA,CAAK7D,IAAKC,KA3CV4D,EAAA,MAAA,CAAA,cACiBvF,EAAM,UACX,oBAAmB,cACdkC,GACbR,IAAKpB,EACL6F,MAAOC,GAAYnE,IACnB3C,UAAW2G,EACPI,EACAC,GACCrE,IAAasE,GAElBC,SAAU,EACVC,KAAK,QAAO,aACD,kBACXC,QAASlC,GAAac,SAErBL,OA6BJ3E,EAAWsD,UAAY3B,IAtBxBsD,SACI7D,IAAKlB,EAAiB,cACTR,YACL,0BAAyB,cACpBkC,GACb5C,UAAW2G,EAAKI,EAAkBM,GAClCH,SAAU,EACVC,KAAK,qBACM,kBACXC,QAASlC,YAERS,WAKoCM,OAOvC"}
@@ -0,0 +1,15 @@
1
+ export declare const tokens: {
2
+ readonly fixedCountdown: {
3
+ readonly top: "--fds-internal-countdownTimer-fixedCountdown-top";
4
+ readonly left: "--fds-internal-countdownTimer-fixedCountdown-left";
5
+ readonly right: "--fds-internal-countdownTimer-fixedCountdown-right";
6
+ };
7
+ };
8
+ export declare const wrapper: import("@linaria/core").LinariaClassName;
9
+ export declare const countdown: import("@linaria/core").LinariaClassName;
10
+ export declare const countdownHidden: import("@linaria/core").LinariaClassName;
11
+ export declare const countdownInline: import("@linaria/core").LinariaClassName;
12
+ export declare const countdownFixed: import("@linaria/core").LinariaClassName;
13
+ export declare const timeLeft: import("@linaria/core").LinariaClassName;
14
+ export declare const timer: import("@linaria/core").LinariaClassName;
15
+ export declare const timerIcon: import("@linaria/core").LinariaClassName;
@@ -0,0 +1,2 @@
1
+ import"./countdown-timer.styles_ipn1b0.css";const t={fixedCountdown:{top:"--fds-internal-countdownTimer-fixedCountdown-top",left:"--fds-internal-countdownTimer-fixedCountdown-left",right:"--fds-internal-countdownTimer-fixedCountdown-right"}},n="wav7a6b",o="c1ji5mw9",i="csdqyky",d="cibq1kp",e="c1ehax2j",r="t6f42l5",w="t19x1azi",c="t1pvvziw";export{o as countdown,e as countdownFixed,i as countdownHidden,d as countdownInline,r as timeLeft,w as timer,c as timerIcon,t as tokens,n as wrapper};
2
+ //# sourceMappingURL=countdown-timer.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countdown-timer.styles.js","sources":["../../src/countdown-timer/countdown-timer.styles.ts"],"sourcesContent":["import { css } from \"@linaria/core\";\n\nimport {\n Border,\n Colour,\n Font,\n MediaQuery,\n Radius,\n Shadow,\n Spacing,\n} from \"../theme\";\n\nexport const tokens = {\n fixedCountdown: {\n top: \"--fds-internal-countdownTimer-fixedCountdown-top\",\n left: \"--fds-internal-countdownTimer-fixedCountdown-left\",\n right: \"--fds-internal-countdownTimer-fixedCountdown-right\",\n },\n} as const;\n\nexport const wrapper = css`\n width: 100%;\n`;\n\nexport const countdown = css`\n ${Font[\"body-baseline-regular\"]}\n display: flex;\n align-items: center;\n padding: ${Spacing[\"spacing-8\"]} ${Spacing[\"spacing-16\"]};\n border-radius: ${Radius[\"sm\"]};\n color: ${Colour[\"text-primary\"]};\n border: ${Border[\"width-010\"]} ${Border[\"solid\"]};\n border-color: ${Colour[\"border-primary\"]};\n background-color: ${Colour[\"bg\"]};\n\n ${MediaQuery.MaxWidth.sm} {\n padding: ${Spacing[\"spacing-16\"]};\n }\n\n &[data-warn=\"true\"] {\n color: ${Colour[\"text-error\"]};\n border-color: ${Colour[\"border-error\"]};\n }\n`;\n\nexport const countdownHidden = css`\n opacity: 0;\n`;\n\nexport const countdownInline = css`\n position: relative;\n`;\n\nexport const countdownFixed = css`\n position: fixed;\n z-index: 10;\n\n /* reset variables to prevent leaking to child components */\n ${tokens.fixedCountdown.top}: initial;\n ${tokens.fixedCountdown.left}: initial;\n ${tokens.fixedCountdown.right}: initial;\n top: var(${tokens.fixedCountdown.top});\n left: var(${tokens.fixedCountdown.left});\n right: var(${tokens.fixedCountdown.right});\n\n box-shadow: ${Shadow[\"xs-focus-strong\"]};\n\n ${MediaQuery.MaxWidth.sm} {\n left: 0;\n right: 0;\n border-radius: 0;\n border-left: none;\n border-right: none;\n box-shadow: none;\n }\n\n &[data-warn=\"true\"] {\n box-shadow: ${Shadow[\"xs-error-strong\"]};\n }\n`;\n\nexport const timeLeft = css`\n font-weight: ${Font.Spec[\"weight-bold\"]};\n margin-left: ${Spacing[\"spacing-8\"]};\n margin-right: ${Spacing[\"spacing-24\"]};\n\n ${MediaQuery.MaxWidth.sm} {\n margin-right: ${Spacing[\"spacing-48\"]};\n }\n`;\n\nexport const timer = css`\n font-weight: ${Font.Spec[\"weight-semibold\"]};\n margin-left: auto;\n`;\n\nexport const timerIcon = css`\n color: ${Colour[\"icon-primary\"]};\n\n &[data-warn=\"true\"] {\n color: ${Colour[\"icon-error\"]};\n }\n`;\n"],"names":["tokens","fixedCountdown","top","left","right","wrapper","countdown","countdownHidden","countdownInline","countdownFixed","timeLeft","timer","timerIcon"],"mappings":"2EAYO,MAAMA,EAAS,CAClBC,eAAgB,CACZC,IAAK,mDACLC,KAAM,oDACNC,MAAO,uDAIFC,EAAO,UAIPC,EAAS,WAqBTC,EAAe,UAIfC,EAAe,UAIfC,EAAc,WA4BdC,EAAQ,UAURC,EAAK,WAKLC,EAAS"}
@@ -0,0 +1,8 @@
1
+ .wav7a6b{width:100%;}
2
+ .c1ji5mw9{font-family:var(--fds-font-family-body);font-variant:var(--fds-font-variant);font-size:var(--fds-font-body-size-baseline);font-weight:var(--fds-font-weight-regular);line-height:var(--fds-font-body-lh-baseline);letter-spacing:var(--fds-font-body-ls-baseline);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;padding:var(--fds-spacing-8) var(--fds-spacing-16);border-radius:var(--fds-radius-sm);color:var(--fds-colour-text-primary);border:var(--fds-border-width-010) var(--fds-border-style-solid);border-color:var(--fds-colour-border-primary);background-color:var(--fds-colour-bg);}:where(body.fds-breakpoint-sm-max) .c1ji5mw9{padding:var(--fds-spacing-16);}.c1ji5mw9[data-warn="true"]{color:var(--fds-colour-text-error);border-color:var(--fds-colour-border-error);}
3
+ .csdqyky{opacity:0;}
4
+ .cibq1kp{position:relative;}
5
+ .c1ehax2j{position:fixed;z-index:10;--fds-internal-countdownTimer-fixedCountdown-top:initial;--fds-internal-countdownTimer-fixedCountdown-left:initial;--fds-internal-countdownTimer-fixedCountdown-right:initial;top:var(--fds-internal-countdownTimer-fixedCountdown-top);left:var(--fds-internal-countdownTimer-fixedCountdown-left);right:var(--fds-internal-countdownTimer-fixedCountdown-right);box-shadow:var(--fds-shadow-xs-focus-strong);}:where(body.fds-breakpoint-sm-max) .c1ehax2j{left:0;right:0;border-radius:0;border-left:none;border-right:none;box-shadow:none;}.c1ehax2j[data-warn="true"]{box-shadow:var(--fds-shadow-xs-error-strong);}
6
+ .t6f42l5{font-weight:var(--fds-font-weight-bold);margin-left:var(--fds-spacing-8);margin-right:var(--fds-spacing-24);}:where(body.fds-breakpoint-sm-max) .t6f42l5{margin-right:var(--fds-spacing-48);}
7
+ .t19x1azi{font-weight:var(--fds-font-weight-semibold);margin-left:auto;}
8
+ .t1pvvziw{color:var(--fds-colour-icon-primary);}.t1pvvziw[data-warn="true"]{color:var(--fds-colour-icon-error);}
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"../_virtual/_tslib.js";import{jsxs as r,jsx as o}from"react/jsx-runtime";import t from"clsx";import{forwardRef as s,useRef as i}from"react";import"../theme/theme-provider/index.js";import"../theme/theme-provider/context.js";import{BorderThickness as m}from"../theme/tokens/border.js";import{Colour as l}from"../theme/tokens/colour.js";import"../theme/tokens/font.js";import"../theme/tokens/media-query.js";import{Radius as n}from"../theme/tokens/radius.js";import{toCssValue as a}from"../theme/utils/token-resolver.js";import{useApplyStyle as u}from"../theme/utils/use-apply-styles.js";import{useResolvedTokenValue as d}from"../theme/utils/use-design-token.js";import"../util/calendar-helper.js";import"../external/dayjs/dayjs.min.js";import{mergeRefs as c}from"../util/merge-refs.js";import"../util/simple-id-generator.js";import"../util/string-helper.js";import"@react-aria/live-announcer";import{isColourToken as p,isRadiusToken as h,isThicknessToken as j}from"../util/styling-helper.js";import{tokens as f,root as k,overlay as b}from"./dashed-border.styles.js";import{createSvgBackgroundImage as g}from"./dashed-border.utils.js";const v=s(((s,v)=>{const{enabled:y=!0,thickness:C=m["width-010"],radius:x=n.none,colour:z=l.border,backgroundColor:N,className:T,children:w}=s,B=e(s,["enabled","thickness","radius","colour","backgroundColor","className","children"]),S=d({value:C,fallback:m["width-010"],isToken:j,normalizeCustom:a}),_=d({value:x,fallback:n.none,isToken:h,normalizeCustom:a}),q=d({value:z,fallback:l.border,isToken:p,normalizeCustom:String}),I=d({value:N,fallback:"none",isToken:p,normalizeCustom:String}),O=y||!!N,R=g({radius:_,colour:q,thickness:S,enabled:y}),A=i(null),D=i(null),E=v?c(A,v):A;return u(A,{[f.rootRadius]:_,[f.rootBackgroundColor]:N?I:null}),u(D,{[f.overlayBackgroundImage]:O?R:null}),r("div",Object.assign({ref:E,className:t(k,T)},B,{children:[O&&o("div",{"aria-hidden":"true",className:b,ref:D}),w]}))}));export{v as DashedBorder};
1
+ import{__rest as e}from"../_virtual/_tslib.js";import{jsxs as r,jsx as o}from"react/jsx-runtime";import t from"clsx";import{forwardRef as s,useRef as i}from"react";import"../theme/theme-provider/index.js";import"../theme/theme-provider/context.js";import{BorderThickness as m}from"../theme/tokens/border.js";import{Colour as l}from"../theme/tokens/colour.js";import"../theme/tokens/font.js";import"../theme/tokens/media-query.js";import{Radius as a}from"../theme/tokens/radius.js";import{useApplyStyle as n}from"../theme/utils/use-apply-styles.js";import{useResolvedTokenValue as u}from"../theme/utils/use-design-token.js";import"../theme/utils/use-media-query.js";import{toCssValue as d}from"../theme/utils/token-resolver.js";import"../util/calendar-helper.js";import"../external/dayjs/dayjs.min.js";import{mergeRefs as p}from"../util/merge-refs.js";import"../util/simple-id-generator.js";import"../util/string-helper.js";import"@react-aria/live-announcer";import{isColourToken as c,isRadiusToken as h,isThicknessToken as j}from"../util/styling-helper.js";import{tokens as f,root as k,overlay as b}from"./dashed-border.styles.js";import{createSvgBackgroundImage as g}from"./dashed-border.utils.js";const v=s(((s,v)=>{const{enabled:y=!0,thickness:C=m["width-010"],radius:x=a.none,colour:z=l.border,backgroundColor:N,className:T,children:q}=s,w=e(s,["enabled","thickness","radius","colour","backgroundColor","className","children"]),B=u({value:C,fallback:m["width-010"],isToken:j,normalizeCustom:d}),S=u({value:x,fallback:a.none,isToken:h,normalizeCustom:d}),_=u({value:z,fallback:l.border,isToken:c,normalizeCustom:String}),I=u({value:N,fallback:"none",isToken:c,normalizeCustom:String}),O=y||!!N,R=g({radius:S,colour:_,thickness:B,enabled:y}),A=i(null),D=i(null),E=v?p(A,v):A;return n(A,{[f.rootRadius]:S,[f.rootBackgroundColor]:N?I:null}),n(D,{[f.overlayBackgroundImage]:O?R:null}),r("div",Object.assign({ref:E,className:t(k,T)},w,{children:[O&&o("div",{"aria-hidden":"true",className:b,ref:D}),q]}))}));export{v as DashedBorder};
2
2
  //# sourceMappingURL=dashed-border.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dashed-border.js","sources":["../../src/dashed-border/dashed-border.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { forwardRef, useRef } from \"react\";\n\nimport {\n BorderThickness,\n Colour,\n Radius,\n toCssValue,\n useApplyStyle,\n useResolvedTokenValue,\n} from \"../theme\";\nimport { mergeRefs } from \"../util\";\nimport {\n isColourToken,\n isRadiusToken,\n isThicknessToken,\n} from \"../util/styling-helper\";\nimport * as styles from \"./dashed-border.styles\";\nimport { createSvgBackgroundImage } from \"./dashed-border.utils\";\nimport type { DashedBorderProps } from \"./types\";\n\nconst Component = (\n props: DashedBorderProps,\n ref: React.Ref<HTMLDivElement>\n) => {\n const {\n enabled = true,\n thickness = BorderThickness[\"width-010\"],\n radius = Radius[\"none\"],\n colour = Colour[\"border\"],\n backgroundColor,\n className,\n children,\n ...otherProps\n } = props;\n\n const effectiveThickness = useResolvedTokenValue({\n value: thickness,\n fallback: BorderThickness[\"width-010\"],\n isToken: isThicknessToken,\n normalizeCustom: toCssValue,\n });\n\n const effectiveRadius = useResolvedTokenValue({\n value: radius,\n fallback: Radius[\"none\"],\n isToken: isRadiusToken,\n normalizeCustom: toCssValue,\n });\n\n const effectiveColour = useResolvedTokenValue({\n value: colour,\n fallback: Colour[\"border\"],\n isToken: isColourToken,\n normalizeCustom: String,\n });\n\n const effectiveBackgroundColor = useResolvedTokenValue({\n value: backgroundColor,\n fallback: \"none\",\n isToken: isColourToken,\n normalizeCustom: String,\n });\n\n const showSvg = enabled || !!backgroundColor;\n const overlayBackgroundImage = createSvgBackgroundImage({\n radius: effectiveRadius,\n colour: effectiveColour,\n thickness: effectiveThickness,\n enabled,\n });\n const rootRef = useRef<HTMLDivElement>(null);\n const overlayRef = useRef<HTMLDivElement>(null);\n const mergedRootRef = ref ? mergeRefs(rootRef, ref) : rootRef;\n\n useApplyStyle(rootRef, {\n [styles.tokens.rootRadius]: effectiveRadius,\n [styles.tokens.rootBackgroundColor]: backgroundColor\n ? effectiveBackgroundColor\n : null,\n });\n\n useApplyStyle(overlayRef, {\n [styles.tokens.overlayBackgroundImage]: showSvg\n ? overlayBackgroundImage\n : null,\n });\n\n return (\n <div\n ref={mergedRootRef}\n className={clsx(styles.root, className)}\n {...otherProps}\n >\n {showSvg && (\n <div\n aria-hidden=\"true\"\n className={styles.overlay}\n ref={overlayRef}\n />\n )}\n {children}\n </div>\n );\n};\n\nexport const DashedBorder = forwardRef(Component);\n"],"names":["DashedBorder","forwardRef","props","ref","enabled","thickness","BorderThickness","radius","Radius","colour","Colour","backgroundColor","className","children","otherProps","__rest","effectiveThickness","useResolvedTokenValue","value","fallback","isToken","isThicknessToken","normalizeCustom","toCssValue","effectiveRadius","isRadiusToken","effectiveColour","isColourToken","String","effectiveBackgroundColor","showSvg","overlayBackgroundImage","createSvgBackgroundImage","rootRef","useRef","overlayRef","mergedRootRef","mergeRefs","useApplyStyle","styles.tokens","rootRadius","rootBackgroundColor","_jsxs","Object","assign","clsx","styles.root","_jsx","styles.overlay"],"mappings":"qoCAqBA,MAqFaA,EAAeC,GArFV,CACdC,EACAC,KAEA,MAAMC,QACFA,GAAU,EAAIC,UACdA,EAAYC,EAAgB,aAAYC,OACxCA,EAASC,EAAa,KAACC,OACvBA,EAASC,EAAe,OAACC,gBACzBA,EAAeC,UACfA,EAASC,SACTA,GAEAX,EADGY,EAAUC,EACbb,EATE,CAAA,UAAA,YAAA,SAAA,SAAA,kBAAA,YAAA,aAWAc,EAAqBC,EAAsB,CAC7CC,MAAOb,EACPc,SAAUb,EAAgB,aAC1Bc,QAASC,EACTC,gBAAiBC,IAGfC,EAAkBP,EAAsB,CAC1CC,MAAOX,EACPY,SAAUX,EAAa,KACvBY,QAASK,EACTH,gBAAiBC,IAGfG,EAAkBT,EAAsB,CAC1CC,MAAOT,EACPU,SAAUT,EAAe,OACzBU,QAASO,EACTL,gBAAiBM,SAGfC,EAA2BZ,EAAsB,CACnDC,MAAOP,EACPQ,SAAU,OACVC,QAASO,EACTL,gBAAiBM,SAGfE,EAAU1B,KAAaO,EACvBoB,EAAyBC,EAAyB,CACpDzB,OAAQiB,EACRf,OAAQiB,EACRrB,UAAWW,EACXZ,YAEE6B,EAAUC,EAAuB,MACjCC,EAAaD,EAAuB,MACpCE,EAAgBjC,EAAMkC,EAAUJ,EAAS9B,GAAO8B,EAetD,OAbAK,EAAcL,EAAS,CACnB,CAACM,EAAcC,YAAahB,EAC5B,CAACe,EAAcE,qBAAsB9B,EAC/BkB,EACA,OAGVS,EAAcH,EAAY,CACtB,CAACI,EAAcR,wBAAyBD,EAClCC,EACA,OAINW,EAAA,MAAAC,OAAAC,OAAA,CACIzC,IAAKiC,EACLxB,UAAWiC,EAAKC,EAAalC,IACzBE,EAAU,CAAAD,SAAA,CAEbiB,GACGiB,uBACgB,OACZnC,UAAWoC,EACX7C,IAAKgC,IAGZtB,KACC"}
1
+ {"version":3,"file":"dashed-border.js","sources":["../../src/dashed-border/dashed-border.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { forwardRef, useRef } from \"react\";\n\nimport { BorderThickness, Colour, Radius, useApplyStyle } from \"../theme\";\nimport { toCssValue, useResolvedTokenValue } from \"../theme/utils\";\nimport { mergeRefs } from \"../util\";\nimport {\n isColourToken,\n isRadiusToken,\n isThicknessToken,\n} from \"../util/styling-helper\";\nimport * as styles from \"./dashed-border.styles\";\nimport { createSvgBackgroundImage } from \"./dashed-border.utils\";\nimport type { DashedBorderProps } from \"./types\";\n\nconst Component = (\n props: DashedBorderProps,\n ref: React.Ref<HTMLDivElement>\n) => {\n const {\n enabled = true,\n thickness = BorderThickness[\"width-010\"],\n radius = Radius[\"none\"],\n colour = Colour[\"border\"],\n backgroundColor,\n className,\n children,\n ...otherProps\n } = props;\n\n const effectiveThickness = useResolvedTokenValue({\n value: thickness,\n fallback: BorderThickness[\"width-010\"],\n isToken: isThicknessToken,\n normalizeCustom: toCssValue,\n });\n\n const effectiveRadius = useResolvedTokenValue({\n value: radius,\n fallback: Radius[\"none\"],\n isToken: isRadiusToken,\n normalizeCustom: toCssValue,\n });\n\n const effectiveColour = useResolvedTokenValue({\n value: colour,\n fallback: Colour[\"border\"],\n isToken: isColourToken,\n normalizeCustom: String,\n });\n\n const effectiveBackgroundColor = useResolvedTokenValue({\n value: backgroundColor,\n fallback: \"none\",\n isToken: isColourToken,\n normalizeCustom: String,\n });\n\n const showSvg = enabled || !!backgroundColor;\n const overlayBackgroundImage = createSvgBackgroundImage({\n radius: effectiveRadius,\n colour: effectiveColour,\n thickness: effectiveThickness,\n enabled,\n });\n const rootRef = useRef<HTMLDivElement>(null);\n const overlayRef = useRef<HTMLDivElement>(null);\n const mergedRootRef = ref ? mergeRefs(rootRef, ref) : rootRef;\n\n useApplyStyle(rootRef, {\n [styles.tokens.rootRadius]: effectiveRadius,\n [styles.tokens.rootBackgroundColor]: backgroundColor\n ? effectiveBackgroundColor\n : null,\n });\n\n useApplyStyle(overlayRef, {\n [styles.tokens.overlayBackgroundImage]: showSvg\n ? overlayBackgroundImage\n : null,\n });\n\n return (\n <div\n ref={mergedRootRef}\n className={clsx(styles.root, className)}\n {...otherProps}\n >\n {showSvg && (\n <div\n aria-hidden=\"true\"\n className={styles.overlay}\n ref={overlayRef}\n />\n )}\n {children}\n </div>\n );\n};\n\nexport const DashedBorder = forwardRef(Component);\n"],"names":["DashedBorder","forwardRef","props","ref","enabled","thickness","BorderThickness","radius","Radius","colour","Colour","backgroundColor","className","children","otherProps","__rest","effectiveThickness","useResolvedTokenValue","value","fallback","isToken","isThicknessToken","normalizeCustom","toCssValue","effectiveRadius","isRadiusToken","effectiveColour","isColourToken","String","effectiveBackgroundColor","showSvg","overlayBackgroundImage","createSvgBackgroundImage","rootRef","useRef","overlayRef","mergedRootRef","mergeRefs","useApplyStyle","styles.tokens","rootRadius","rootBackgroundColor","_jsxs","Object","assign","clsx","styles.root","_jsx","styles.overlay"],"mappings":"+qCAeA,MAqFaA,EAAeC,GArFV,CACdC,EACAC,KAEA,MAAMC,QACFA,GAAU,EAAIC,UACdA,EAAYC,EAAgB,aAAYC,OACxCA,EAASC,EAAa,KAACC,OACvBA,EAASC,EAAe,OAACC,gBACzBA,EAAeC,UACfA,EAASC,SACTA,GAEAX,EADGY,EAAUC,EACbb,EATE,CAAA,UAAA,YAAA,SAAA,SAAA,kBAAA,YAAA,aAWAc,EAAqBC,EAAsB,CAC7CC,MAAOb,EACPc,SAAUb,EAAgB,aAC1Bc,QAASC,EACTC,gBAAiBC,IAGfC,EAAkBP,EAAsB,CAC1CC,MAAOX,EACPY,SAAUX,EAAa,KACvBY,QAASK,EACTH,gBAAiBC,IAGfG,EAAkBT,EAAsB,CAC1CC,MAAOT,EACPU,SAAUT,EAAe,OACzBU,QAASO,EACTL,gBAAiBM,SAGfC,EAA2BZ,EAAsB,CACnDC,MAAOP,EACPQ,SAAU,OACVC,QAASO,EACTL,gBAAiBM,SAGfE,EAAU1B,KAAaO,EACvBoB,EAAyBC,EAAyB,CACpDzB,OAAQiB,EACRf,OAAQiB,EACRrB,UAAWW,EACXZ,YAEE6B,EAAUC,EAAuB,MACjCC,EAAaD,EAAuB,MACpCE,EAAgBjC,EAAMkC,EAAUJ,EAAS9B,GAAO8B,EAetD,OAbAK,EAAcL,EAAS,CACnB,CAACM,EAAcC,YAAahB,EAC5B,CAACe,EAAcE,qBAAsB9B,EAC/BkB,EACA,OAGVS,EAAcH,EAAY,CACtB,CAACI,EAAcR,wBAAyBD,EAClCC,EACA,OAINW,EAAA,MAAAC,OAAAC,OAAA,CACIzC,IAAKiC,EACLxB,UAAWiC,EAAKC,EAAalC,IACzBE,EAAU,CAAAD,SAAA,CAEbiB,GACGiB,uBACgB,OACZnC,UAAWoC,EACX7C,IAAKgC,IAGZtB,KACC"}
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"../_virtual/_tslib.js";import{jsxs as t,jsx as i,Fragment as r}from"react/jsx-runtime";import{ArrowUpIcon as n,ArrowDownIcon as l}from"@lifesg/react-icons";import{useRef as o,useState as d,useCallback as c,useEffect as a}from"react";import{useInView as s}from"../external/react-intersection-observer/index.js";import{useResizeDetector as u}from"../external/react-resize-detector/build/index.esm.js";import"../animations/loading-dots/loading-dots.js";import{LoadingDotsSpinner as h}from"../animations/loading-dots-spinner/loading-dots-spinner.js";import"../animations/loading-spinner/loading-spinner.js";import"../theme/theme-provider/context.js";import{Checkbox as m}from"../checkbox/checkbox.js";import{ErrorDisplay as p}from"../error-display/error-display.js";import{VisuallyHidden as g,concatIds as b}from"../shared/accessibility/index.js";import{Typography as f}from"../typography/index.js";import"../util/calendar-helper.js";import"../external/dayjs/dayjs.min.js";import{useId as y}from"../util/simple-id-generator.js";import"../util/string-helper.js";import"@react-aria/live-announcer";import{useEventListener as w}from"../util/use-event-listener.js";import{TableWrapper as $,TableContainer as v,Table as S,TableBody as C,HeaderRow as k,EmptyViewCell as j,BodyRow as x,LoaderWrapper as H,ActionBarWrapper as B,ActionBar as R,TextButton as A,HeaderCell as I,CheckBoxWrapper as N,HeaderCellWrapper as V,ErrorDisplayTitle as K,BodyCell as M,BodyCellContent as L}from"./data-table.styles.js";const Y=Y=>{var{id:z,headers:D,rows:E,className:W,sortIndicators:_,alternatingRows:q,loadState:F="success",enableMultiSelect:O,selectedIds:T,disabledIds:G,enableActionBar:J,enableSelectAll:P,enableStickyHeader:Q,emptyView:U,actionBarContent:X,renderCustomEmptyView:Z,onHeaderClick:ee,onSelect:te,onSelectAll:ie,onClearSelectionClick:re}=Y,ne=e(Y,["id","headers","rows","className","sortIndicators","alternatingRows","loadState","enableMultiSelect","selectedIds","disabledIds","enableActionBar","enableSelectAll","enableStickyHeader","emptyView","actionBarContent","renderCustomEmptyView","onHeaderClick","onSelect","onSelectAll","onClearSelectionClick"]);const le=o(null),oe=o(null),de=o(null),ce=o(null),ae=o(null),se=y(),ue=D.filter((e=>"string"!=typeof e&&!!e.keyColumn)),[he,me]=d(!1),[pe,ge]=d(!1),[be,fe]=d(!1),[ye,we]=d(!1),[$e,ve]=d(!1),{ref:Se,inView:Ce}=s(),ke=c((()=>{if(!ae.current||!ce.current)return;const e=ae.current.scrollHeight>ae.current.clientHeight;me(e),e?ce.current.style.transform="translateY(0)":Ye()}),[]);a((()=>{ke()}),[]),u({onResize:ke});w("scroll",(()=>{requestAnimationFrame((()=>{he?Le():Ye()})),ae.current&&fe(ae.current.getBoundingClientRect().bottom<=window.innerHeight)}),"window"),a((()=>{ze()}),[E]);const je=()=>(null==T?void 0:T.length)===(null==E?void 0:E.length),xe=e=>!!(null==T?void 0:T.includes(e)),He=e=>!!q&&e%2==1,Be=e=>!!(null==G?void 0:G.includes(e)),Re=e=>{if(ne["data-testid"])return`${ne["data-testid"]}-${e}`},Ae=()=>D.length+(O?1:0),Ie=e=>null==_?void 0:_[e],Ne=e=>{const t=Ie(e);if(t)return"asc"===t?"ascending":"descending"},Ve=e=>` by ${"asc"===Ie(e)?"descending":"ascending"} order`,Ke=(e,t)=>`${se}-row-${e}-${t}-key-column`,Me=e=>{const t=ue.map((t=>Ke(e,t.fieldKey)));return b(...t)},Le=()=>{if(!ae.current)return;const e=ae.current.getBoundingClientRect();we(e.bottom>window.innerHeight+30&&e.top<window.innerHeight-200)},Ye=()=>{if(!(le.current&&oe.current&&ae.current&&ce.current&&de.current))return;const e=oe.current.getBoundingClientRect();if(e.top>window.innerHeight){const t=e.bottom-window.innerHeight,i=le.current.getBoundingClientRect().height-de.current.clientHeight-32,r=Math.min(t,i);ce.current.style.transform=`translateY(-${r}px)`}else ce.current.style.transform="translateY(0)"},ze=()=>{le.current&&ae.current&&ve(le.current.clientHeight+(J?56:0)<ae.current.clientHeight)},De=e=>{const{fieldKey:r,label:n,clickable:l=!1,style:o}="string"==typeof e?{fieldKey:e,label:e,style:void 0}:e,d=!!Ie(r),c=(e=>`${se}-header-${e}`)(r);return t(I,{"data-testid":Re(`header-${r}`),$clickable:l,scope:"col","aria-sort":Ne(r),style:o,$isCheckbox:!1,children:[t(V,{id:c,children:["string"==typeof n?i(f.BodyBL,{weight:"bold",children:n}):n,Ee(r)]}),(l||d)&&i(g,{children:t("button",{onClick:()=>null==ee?void 0:ee(r),children:[d&&"Sort ",i("span",{"aria-labelledby":c}),d&&Ve(r)]})})]},r)},Ee=e=>{const t=null==_?void 0:_[e];return t?"asc"===t?i(n,{"aria-hidden":!0,"data-testid":Re(`header-${e}-arrowup`)}):i(l,{"aria-hidden":!0,"data-testid":Re(`header-${e}-arrowdown`)}):i(r,{})},We=()=>i(I,{"data-testid":Re("header-selection"),$clickable:!1,$isCheckbox:!0,scope:"col",children:t(N,{children:[i(g,{children:"Row selection"}),P&&i(m,{checked:je(),indeterminate:!!T&&0!==T.length&&!je(),"aria-label":"Select all rows",onClick:()=>{ie&&ie(je())}})]})}),_e=(e,t)=>{const r="string"!=typeof e?e.style:void 0,n="string"==typeof e?e:e.fieldKey,l=t.id.toString(),o=t[n],d=`${l}-${n}`;return i(M,{"data-testid":Re(`row-${d}`),id:Ke(l,n),style:r,$isCheckbox:!1,children:"string"==typeof o||"number"==typeof o?i(L,{children:o}):"function"==typeof o?o(t,{isSelected:xe(l)}):o},d)},qe=e=>{const t=e.id.toString();return i(M,{"data-testid":Re(`row-${t}-selection`),$isCheckbox:!0,children:i(N,{children:i(m,{checked:xe(t),"aria-labelledby":Me(t),onClick:()=>{te&&te(t,!xe(t))},disabled:Be(t),focusableWhenDisabled:Be(t)})})})},Fe=()=>i(p,Object.assign({type:"no-item-found"},U,{title:(null==U?void 0:U.title)?"string"==typeof U.title?i(K,{weight:"bold",children:U.title}):U.title:i(K,{weight:"bold",children:"No <items> found"}),description:(null==U?void 0:U.description)?U.description:"No matching rows"}));return t($,{id:z||"table-wrapper","data-testid":ne["data-testid"]||"table",className:W,ref:ae,onScroll:()=>{he&&ae.current&&ge(ae.current.scrollTop+ae.current.clientHeight>=ae.current.scrollHeight)},tabIndex:0,children:[i(v,{children:t(S,{$end:be,$scrollable:he,ref:le,$stickyHeader:Q,children:[i("thead",{ref:de,children:t(k,{children:[O&&We(),D.map(De)]})}),i(C,{$showLastRowBottomBorder:$e,children:"success"===F?!E||E.length<1?i("tr",{children:i(j,{colSpan:Ae(),children:Z?Z():Fe()})}):i(r,{children:null==E?void 0:E.map(((e,i)=>t(x,{"data-testid":Re(`row-${e.id.toString()}`),$alternating:He(i),$isSelectable:O,$isSelected:xe(e.id.toString()),children:[O&&qe(e),D.map((t=>_e(t,e)))]},e.id.toString())))}):i("tr",{children:i("td",{colSpan:Ae(),children:i(H,{role:"status","aria-live":"polite","aria-label":"Loading table",children:"loading"===F&&i(h,{})})})})})]})}),J&&T&&T.length>0&&(()=>{var e,r,n,l;const o=null!==(e=null==T?void 0:T.length)&&void 0!==e?e:0;return i(B,{ref:ce,$fixed:ye,$left:null===(n=null===(r=null==le?void 0:le.current)||void 0===r?void 0:r.getBoundingClientRect())||void 0===n?void 0:n.left,$width:null===(l=null==le?void 0:le.current)||void 0===l?void 0:l.clientWidth,children:t(R,{$float:(he?!pe:!Ce)||ye,$scrollable:he,children:[i(f.BodyMD,{weight:"semibold",children:`${o} item${o>1?"s":""} selected`}),i(A,{type:"button","aria-label":`Clear selection of ${o} item${1===o?"":"s"}`,onClick:re,children:"Clear selection"}),X]})})})(),i("div",{ref:e=>{oe.current=e,Se(e)}})]})};export{Y as DataTable};
1
+ import{__rest as e}from"../_virtual/_tslib.js";import{jsxs as t,jsx as r,Fragment as i}from"react/jsx-runtime";import{ArrowUpIcon as n,ArrowDownIcon as l}from"@lifesg/react-icons";import o from"clsx";import{useRef as a,useState as s,useCallback as c,useEffect as d}from"react";import{useInView as m}from"../external/react-intersection-observer/index.js";import{useResizeDetector as u}from"../external/react-resize-detector/build/index.esm.js";import"../animations/loading-dots/loading-dots.js";import{LoadingDotsSpinner as p}from"../animations/loading-dots-spinner/loading-dots-spinner.js";import"../animations/loading-spinner/loading-spinner.js";import"../theme/theme-provider/context.js";import{Checkbox as h}from"../checkbox/checkbox.js";import{ErrorDisplay as g}from"../error-display/error-display.js";import{VisuallyHidden as f,concatIds as y}from"../shared/accessibility/index.js";import{BasicButton as b}from"../shared/input-wrapper/input-wrapper.js";import"../theme/theme-provider/index.js";import"../theme/tokens/border.js";import"../theme/tokens/colour.js";import"../theme/tokens/font.js";import"../theme/tokens/media-query.js";import{useApplyStyle as w}from"../theme/utils/use-apply-styles.js";import"../theme/utils/use-media-query.js";import{Typography as v}from"../typography/index.js";import"../util/calendar-helper.js";import"../external/dayjs/dayjs.min.js";import{useId as j}from"../util/simple-id-generator.js";import"../util/string-helper.js";import"@react-aria/live-announcer";import{useEventListener as N}from"../util/use-event-listener.js";import{tokens as S,tableContainer as $,table as k,tableWrapper as C,stickyHeader as x,headerRow as H,bodyRow as B,emptyStateCell as R,bodyRowWithBottomBorder as A,bodyRowAlternating as I,bodyRowSelectable as M,bodyRowSelected as V,loadingStateWrapper as W,actionBarButton as K,actionBar as L,actionBarFloating as q,actionBarWrapper as Y,actionBarWrapperFloating as z,selectionCheckboxWrapper as D,headerCell as E,headerCellCheckbox as _,headerCellContent as F,headerCellClickable as O,emptyStateTitle as P,bodyCell as T,bodyCellCheckbox as G,bodyCellText as J}from"./data-table.styles.js";const Q=Q=>{var{id:U,headers:X,rows:Z,className:ee,sortIndicators:te,alternatingRows:re,loadState:ie="success",enableMultiSelect:ne,selectedIds:le,disabledIds:oe,enableActionBar:ae,enableSelectAll:se,enableStickyHeader:ce,emptyView:de,actionBarContent:me,renderCustomEmptyView:ue,onHeaderClick:pe,onSelect:he,onSelectAll:ge,onClearSelectionClick:fe}=Q,ye=e(Q,["id","headers","rows","className","sortIndicators","alternatingRows","loadState","enableMultiSelect","selectedIds","disabledIds","enableActionBar","enableSelectAll","enableStickyHeader","emptyView","actionBarContent","renderCustomEmptyView","onHeaderClick","onSelect","onSelectAll","onClearSelectionClick"]);const be=a(null),we=a(null),ve=a(null),je=a(null),Ne=a(null),Se=j(),$e=X.filter((e=>"string"!=typeof e&&!!e.keyColumn)),[ke,Ce]=s(!1),[xe,He]=s(!1),[Be,Re]=s(!1),[Ae,Ie]=s(!1),{ref:Me,inView:Ve}=m();w(je,{[S.actionBarWrapperLeft]:Be&&be.current?`${be.current.getBoundingClientRect().left}px`:void 0,[S.actionBarWrapperWidth]:Be&&be.current?`${be.current.clientWidth}px`:void 0});const We=c((()=>{if(!Ne.current||!je.current)return;const e=Ne.current.scrollHeight>Ne.current.clientHeight;Ce(e),e?je.current.style.transform="translateY(0)":Ge()}),[]);d((()=>{We()}),[]),u({onResize:We});N("scroll",(()=>{requestAnimationFrame((()=>{ke?Te():Ge()}))}),"window"),d((()=>{Je()}),[Z]);const Ke=()=>!!(Z&&Z.length&&le)&&le.length===Z.length,Le=e=>!!(null==le?void 0:le.includes(e)),qe=e=>!!re&&e%2==1,Ye=e=>!!(null==oe?void 0:oe.includes(e)),ze=e=>{if(ye["data-testid"])return`${ye["data-testid"]}-${e}`},De=()=>X.length+(ne?1:0),Ee=e=>null==te?void 0:te[e],_e=e=>{const t=Ee(e);if(t)return"asc"===t?"ascending":"descending"},Fe=e=>` by ${"asc"===Ee(e)?"descending":"ascending"} order`,Oe=(e,t)=>`${Se}-row-${e}-${t}-key-column`,Pe=e=>{const t=$e.map((t=>Oe(e,t.fieldKey)));return y(...t)},Te=()=>{if(!Ne.current)return;const e=Ne.current.getBoundingClientRect();Re(e.bottom>window.innerHeight+30&&e.top<window.innerHeight-200)},Ge=()=>{if(!(be.current&&we.current&&Ne.current&&je.current&&ve.current))return;const e=we.current.getBoundingClientRect();if(e.top>window.innerHeight){const t=e.bottom-window.innerHeight,r=be.current.getBoundingClientRect().height-ve.current.clientHeight-32,i=Math.min(t,r);je.current.style.transform=`translateY(-${i}px)`}else je.current.style.transform="translateY(0)"},Je=()=>{be.current&&Ne.current&&Ie(be.current.clientHeight+(ae?56:0)<Ne.current.clientHeight)},Qe=e=>{const{fieldKey:i,label:n,clickable:l=!1,style:a}="string"==typeof e?{fieldKey:e,label:e,style:void 0}:e,s=!!Ee(i),c=(e=>`${Se}-header-${e}`)(i);return t("th",{"data-testid":ze(`header-${i}`),className:o(E,l&&O),scope:"col","aria-sort":_e(i),style:a,onClick:()=>(e=>{null==pe||pe(e)})(i),children:[t("div",{className:F,id:c,children:["string"==typeof n?r(v.BodyBL,{weight:"bold",children:n}):n,Ue(i)]}),(l||s)&&r(f,{children:t("button",{onClick:e=>((e,t)=>{e.stopPropagation(),null==pe||pe(t)})(e,i),children:[s&&"Sort ",r("span",{"aria-labelledby":c}),s&&Fe(i)]})})]},i)},Ue=e=>{const t=null==te?void 0:te[e];return t?"asc"===t?r(n,{"aria-hidden":!0,"data-testid":ze(`header-${e}-arrowup`)}):r(l,{"aria-hidden":!0,"data-testid":ze(`header-${e}-arrowdown`)}):r(i,{})},Xe=()=>r("th",{"data-testid":ze("header-selection"),className:o(E,_),scope:"col",children:t("div",{className:D,children:[r(f,{children:"Row selection"}),se&&r(h,{checked:Ke(),indeterminate:!!le&&0!==le.length&&!Ke(),disabled:!Z||!Z.length||!le,"aria-label":"Select all rows",onClick:()=>{ge&&ge(Ke())}})]})}),Ze=(e,t)=>{const i="string"==typeof e?void 0:e.style,n="string"==typeof e?e:e.fieldKey,l=t.id.toString(),o=t[n],a=`${l}-${n}`;let s;return s="string"==typeof o||"number"==typeof o?r(v.BodyBL,{className:J,children:o}):"function"==typeof o?o(t,{isSelected:Le(l)}):o,r("td",{"data-testid":ze(`row-${a}`),id:Oe(l,n),className:T,style:i,children:s},a)},et=e=>{const t=e.id.toString();return r("td",{"data-testid":ze(`row-${t}-selection`),className:o(T,G),children:r("div",{className:D,children:r(h,{checked:Le(t),"aria-labelledby":Pe(t),onClick:()=>{he&&he(t,!Le(t))},disabled:Ye(t),focusableWhenDisabled:Ye(t)})})})},tt=()=>{let e;return e=(null==de?void 0:de.title)?"string"==typeof de.title?r(v.HeadingSM,{className:P,weight:"bold",children:de.title}):de.title:r(v.HeadingSM,{className:P,weight:"bold",children:"No <items> found"}),r(g,Object.assign({type:"no-item-found"},de,{title:e,description:(null==de?void 0:de.description)?de.description:"No matching rows"}))};return t("div",{id:U||"table-wrapper","data-testid":ye["data-testid"]||"table",className:o(C,ee),ref:Ne,onScroll:()=>{ke&&Ne.current&&He(Ne.current.scrollTop+Ne.current.clientHeight>=Ne.current.scrollHeight)},tabIndex:0,children:[r("div",{className:$,children:t("table",{ref:be,className:o(k),children:[r("thead",{ref:ve,className:ce?x:void 0,children:t("tr",{className:H,children:[ne&&Xe(),X.map(Qe)]})}),r("tbody",{children:"success"===ie?!Z||Z.length<1?r("tr",{className:B,children:r("td",{className:R,colSpan:De(),children:ue?ue():tt()})}):r(i,{children:null==Z?void 0:Z.map(((e,r)=>t("tr",{"data-testid":ze(`row-${e.id.toString()}`),className:o(B,Ae&&A,qe(r)&&I,ne&&M,Le(e.id.toString())&&V),children:[ne&&et(e),X.map((t=>Ze(t,e)))]},e.id.toString())))}):r("tr",{className:B,children:r("td",{colSpan:De(),children:r("div",{className:W,role:"status","aria-live":"polite","aria-label":"Loading table",children:"loading"===ie&&r(p,{})})})})})]})}),ae&&le&&le.length>0&&(()=>{var e;const i=null!==(e=null==le?void 0:le.length)&&void 0!==e?e:0,n=ke&&!xe||!ke&&!Ve||Be;return r("div",{ref:je,className:o(Y,Be&&z),children:t("div",{className:o(L,n&&q),children:[r(v.BodyMD,{weight:"semibold",children:`${i} item${i>1?"s":""} selected`}),r(b,{className:K,type:"button","aria-label":`Clear selection of ${i} item${1===i?"":"s"}`,onClick:fe,children:"Clear selection"}),me]})})})(),r("div",{ref:e=>{we.current=e,Me(e)}})]})};export{Q as DataTable};
2
2
  //# sourceMappingURL=data-table.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-table.js","sources":["../../src/data-table/data-table.tsx"],"sourcesContent":["import { ArrowDownIcon, ArrowUpIcon } from \"@lifesg/react-icons\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport { useInView } from \"react-intersection-observer\";\nimport { useResizeDetector } from \"react-resize-detector\";\n\nimport { LoadingDotsSpinner } from \"../animations\";\nimport { Checkbox } from \"../checkbox\";\nimport { ErrorDisplay } from \"../error-display\";\nimport { concatIds, VisuallyHidden } from \"../shared/accessibility\";\nimport { Typography } from \"../typography\";\nimport { useId } from \"../util\";\nimport { useEventListener } from \"../util/use-event-listener\";\nimport {\n ActionBar,\n ActionBarWrapper,\n BodyCell,\n BodyCellContent,\n BodyRow,\n CheckBoxWrapper,\n EmptyViewCell,\n ErrorDisplayTitle,\n HeaderCell,\n HeaderCellWrapper,\n HeaderRow,\n LoaderWrapper,\n Table,\n TableBody,\n TableContainer,\n TableWrapper,\n TextButton,\n} from \"./data-table.styles\";\nimport type { DataTableProps, HeaderProps, RowProps } from \"./types\";\n\nexport const DataTable = ({\n id,\n headers,\n rows,\n className,\n sortIndicators,\n alternatingRows,\n loadState = \"success\",\n enableMultiSelect,\n selectedIds,\n disabledIds,\n enableActionBar,\n enableSelectAll,\n enableStickyHeader,\n emptyView,\n actionBarContent,\n renderCustomEmptyView,\n onHeaderClick,\n onSelect,\n onSelectAll,\n onClearSelectionClick,\n ...otherProps\n}: DataTableProps) => {\n // =============================================================================\n // CONST, STATE, REF\n // =============================================================================\n const tableRef = useRef<HTMLTableElement>(null);\n const tableEndRef = useRef<HTMLDivElement | null>(null);\n const headerRef = useRef<HTMLTableSectionElement>(null);\n const actionBarRef = useRef<HTMLDivElement>(null);\n const wrapperRef = useRef<HTMLDivElement>(null);\n const internalId = useId();\n const keyColumns = headers.filter(\n (header): header is Exclude<HeaderProps, string> => {\n return typeof header !== \"string\" && !!header.keyColumn;\n }\n );\n\n const [scrollable, setScrollable] = useState(false);\n const [scrollEnd, setScrollEnd] = useState(false);\n const [tableEnd, setTableEnd] = useState(false);\n const [isFloatingActionBar, setIsFloatingActionBar] = useState(false);\n const [showLastBorder, setShowLastBorder] = useState(false);\n\n const { ref: endRef, inView: end } = useInView();\n\n // =============================================================================\n // EFFECTS, EVENT LISTENERS\n // ============================================================================\n const onResize = useCallback(() => {\n if (!wrapperRef.current || !actionBarRef.current) {\n return;\n }\n const scrollable =\n wrapperRef.current.scrollHeight > wrapperRef.current.clientHeight;\n setScrollable(scrollable);\n\n if (scrollable) {\n actionBarRef.current.style.transform = `translateY(0)`;\n } else {\n calculateStickyInViewport();\n }\n }, []);\n\n useEffect(() => {\n onResize();\n }, []);\n\n useResizeDetector({ onResize });\n\n const scrollHandler = () => {\n requestAnimationFrame(() => {\n if (scrollable) {\n calculateFixedInViewport();\n } else {\n calculateStickyInViewport();\n }\n });\n\n if (wrapperRef.current) {\n setTableEnd(\n wrapperRef.current.getBoundingClientRect().bottom <=\n window.innerHeight\n );\n }\n };\n\n useEventListener(\"scroll\", scrollHandler, \"window\");\n\n useEffect(() => {\n checkLastBorder();\n }, [rows]);\n\n // ===========================================================================\n // HELPER FUNCTIONS\n // ===========================================================================\n const isAllCheckboxSelected = (): boolean => {\n return selectedIds?.length === rows?.length;\n };\n\n const isIndeterminateCheckbox = (): boolean => {\n return (\n !!selectedIds &&\n selectedIds.length !== 0 &&\n !isAllCheckboxSelected()\n );\n };\n\n const isRowSelected = (rowId: string): boolean => {\n return !!selectedIds?.includes(rowId);\n };\n\n const isAlternatingRow = (index: number): boolean => {\n return !!alternatingRows && index % 2 === 1;\n };\n\n const isDisabledRow = (rowId: string): boolean => {\n return !!disabledIds?.includes(rowId);\n };\n\n const getDataTestId = (subStr: string) => {\n if (!otherProps[\"data-testid\"]) return undefined;\n return `${otherProps[\"data-testid\"]}-${subStr}`;\n };\n\n const getTotalColumns = (): number => {\n return headers.length + (enableMultiSelect ? 1 : 0);\n };\n\n const getSortDirection = (fieldKey: string) => {\n return sortIndicators?.[fieldKey];\n };\n\n const getHeaderAriaSort = (fieldKey: string) => {\n const sortDirection = getSortDirection(fieldKey);\n\n if (!sortDirection) {\n return undefined;\n }\n\n return sortDirection === \"asc\" ? \"ascending\" : \"descending\";\n };\n\n const getSortButtonAriaLabel = (fieldKey: string) => {\n const nextSortDirection =\n getSortDirection(fieldKey) === \"asc\" ? \"descending\" : \"ascending\";\n\n return ` by ${nextSortDirection} order`;\n };\n\n const getHeaderWrapperId = (fieldKey: string) => {\n return `${internalId}-header-${fieldKey}`;\n };\n const getCellId = (rowId: string, fieldKey: string) => {\n return `${internalId}-row-${rowId}-${fieldKey}-key-column`;\n };\n\n const getRowCheckboxAriaLabelledBy = (rowId: string) => {\n const keyColumnIds = keyColumns.map((header) =>\n getCellId(rowId, header.fieldKey)\n );\n\n return concatIds(...keyColumnIds);\n };\n\n const calculateFixedInViewport = () => {\n if (!wrapperRef.current) {\n return;\n }\n const wrapperBounds = wrapperRef.current.getBoundingClientRect();\n setIsFloatingActionBar(\n wrapperBounds.bottom > window.innerHeight + 30 &&\n wrapperBounds.top < window.innerHeight - 200\n );\n };\n\n const calculateStickyInViewport = () => {\n if (\n !tableRef.current ||\n !tableEndRef.current ||\n !wrapperRef.current ||\n !actionBarRef.current ||\n !headerRef.current\n ) {\n return;\n }\n\n const endBounds = tableEndRef.current.getBoundingClientRect();\n\n if (endBounds.top > window.innerHeight) {\n const bottomOffset = endBounds.bottom - window.innerHeight;\n const bottomToHeaderOffset =\n tableRef.current.getBoundingClientRect().height -\n headerRef.current.clientHeight -\n 32;\n const maxBottomOffset = Math.min(\n bottomOffset,\n bottomToHeaderOffset\n );\n\n actionBarRef.current.style.transform = `translateY(-${maxBottomOffset}px)`;\n } else {\n actionBarRef.current.style.transform = `translateY(0)`;\n }\n };\n\n const checkLastBorder = () => {\n if (!tableRef.current || !wrapperRef.current) {\n return;\n }\n // 56 pixels added due to the behavior of action bar\n setShowLastBorder(\n tableRef.current.clientHeight + (enableActionBar ? 56 : 0) <\n wrapperRef.current.clientHeight\n );\n };\n\n // =============================================================================\n // RENDER FUNCTIONS\n // =============================================================================\n const renderHeaders = () => (\n <thead ref={headerRef}>\n <HeaderRow>\n {enableMultiSelect && renderHeaderCheckBox()}\n {headers.map(renderHeaderCell)}\n </HeaderRow>\n </thead>\n );\n\n const renderHeaderCell = (header: HeaderProps) => {\n const {\n fieldKey,\n label,\n clickable = false,\n style,\n } = typeof header === \"string\"\n ? {\n fieldKey: header,\n label: header,\n style: undefined,\n }\n : header;\n\n const isSortable = !!getSortDirection(fieldKey);\n const headerCellWrapperId = getHeaderWrapperId(fieldKey);\n\n return (\n <HeaderCell\n data-testid={getDataTestId(`header-${fieldKey}`)}\n key={fieldKey}\n $clickable={clickable}\n scope=\"col\"\n aria-sort={getHeaderAriaSort(fieldKey)}\n style={style}\n $isCheckbox={false}\n >\n <HeaderCellWrapper id={headerCellWrapperId}>\n {typeof label === \"string\" ? (\n <Typography.BodyBL weight=\"bold\">\n {label}\n </Typography.BodyBL>\n ) : (\n label\n )}\n {renderSortedArrow(fieldKey)}\n </HeaderCellWrapper>\n {(clickable || isSortable) && (\n <VisuallyHidden>\n <button onClick={() => onHeaderClick?.(fieldKey)}>\n {isSortable && \"Sort \"}\n <span aria-labelledby={headerCellWrapperId} />\n {isSortable && getSortButtonAriaLabel(fieldKey)}\n </button>\n </VisuallyHidden>\n )}\n </HeaderCell>\n );\n };\n\n const renderSortedArrow = (fieldKey: string) => {\n const isSorted = sortIndicators?.[fieldKey];\n\n if (!isSorted) {\n return <></>;\n }\n if (isSorted === \"asc\") {\n return (\n <ArrowUpIcon\n aria-hidden\n data-testid={getDataTestId(`header-${fieldKey}-arrowup`)}\n />\n );\n }\n return (\n <ArrowDownIcon\n aria-hidden\n data-testid={getDataTestId(`header-${fieldKey}-arrowdown`)}\n />\n );\n };\n\n const renderHeaderCheckBox = () => {\n return (\n <HeaderCell\n data-testid={getDataTestId(\"header-selection\")}\n $clickable={false}\n $isCheckbox={true}\n scope=\"col\"\n >\n <CheckBoxWrapper>\n <VisuallyHidden>Row selection</VisuallyHidden>\n {enableSelectAll && (\n <Checkbox\n checked={isAllCheckboxSelected()}\n indeterminate={isIndeterminateCheckbox()}\n aria-label=\"Select all rows\"\n onClick={() => {\n if (onSelectAll) {\n onSelectAll(isAllCheckboxSelected());\n }\n }}\n />\n )}\n </CheckBoxWrapper>\n </HeaderCell>\n );\n };\n\n const renderRows = () => {\n return !rows || rows.length < 1 ? (\n <tr>\n <EmptyViewCell colSpan={getTotalColumns()}>\n {renderCustomEmptyView\n ? renderCustomEmptyView()\n : renderBasicEmptyView()}\n </EmptyViewCell>\n </tr>\n ) : (\n <>\n {rows?.map((row: RowProps, index: number) => (\n <BodyRow\n data-testid={getDataTestId(`row-${row.id.toString()}`)}\n key={row.id.toString()}\n $alternating={isAlternatingRow(index)}\n $isSelectable={enableMultiSelect}\n $isSelected={isRowSelected(row.id.toString())}\n >\n {enableMultiSelect && renderRowCheckBox(row)}\n\n {headers.map((header) => renderRowCell(header, row))}\n </BodyRow>\n ))}\n </>\n );\n };\n\n const renderRowCell = (header: HeaderProps, row: RowProps) => {\n const style = typeof header !== \"string\" ? header.style : undefined;\n const fieldKey = typeof header === \"string\" ? header : header.fieldKey;\n const rowId = row.id.toString();\n const cellData = row[fieldKey];\n const cellId = `${rowId}-${fieldKey}`;\n\n return (\n <BodyCell\n data-testid={getDataTestId(`row-${cellId}`)}\n key={cellId}\n id={getCellId(rowId, fieldKey)}\n style={style}\n $isCheckbox={false}\n >\n {typeof cellData === \"string\" ||\n typeof cellData === \"number\" ? (\n <BodyCellContent>{cellData}</BodyCellContent>\n ) : typeof cellData === \"function\" ? (\n cellData(row, { isSelected: isRowSelected(rowId) })\n ) : (\n cellData\n )}\n </BodyCell>\n );\n };\n\n const renderRowCheckBox = (row: RowProps) => {\n const rowId = row.id.toString();\n\n return (\n <BodyCell\n data-testid={getDataTestId(`row-${rowId}-selection`)}\n $isCheckbox={true}\n >\n <CheckBoxWrapper>\n <Checkbox\n checked={isRowSelected(rowId)}\n aria-labelledby={getRowCheckboxAriaLabelledBy(rowId)}\n onClick={() => {\n if (onSelect) {\n onSelect(rowId, !isRowSelected(rowId));\n }\n }}\n disabled={isDisabledRow(rowId)}\n focusableWhenDisabled={isDisabledRow(rowId)}\n />\n </CheckBoxWrapper>\n </BodyCell>\n );\n };\n\n const renderBasicEmptyView = () => {\n return (\n <ErrorDisplay\n type={\"no-item-found\"}\n {...emptyView}\n title={\n emptyView?.title ? (\n typeof emptyView.title === \"string\" ? (\n <ErrorDisplayTitle weight=\"bold\">\n {emptyView.title}\n </ErrorDisplayTitle>\n ) : (\n emptyView.title\n )\n ) : (\n <ErrorDisplayTitle weight=\"bold\">\n {\"No <items> found\"}\n </ErrorDisplayTitle>\n )\n }\n description={\n emptyView?.description\n ? emptyView.description\n : \"No matching rows\"\n }\n />\n );\n };\n\n const renderLoader = () => {\n return (\n <tr>\n <td colSpan={getTotalColumns()}>\n <LoaderWrapper\n role=\"status\"\n aria-live=\"polite\"\n aria-label=\"Loading table\"\n >\n {loadState === \"loading\" && <LoadingDotsSpinner />}\n </LoaderWrapper>\n </td>\n </tr>\n );\n };\n\n const renderSelectionBar = () => {\n const count = selectedIds?.length ?? 0;\n\n return (\n <ActionBarWrapper\n ref={actionBarRef}\n $fixed={isFloatingActionBar}\n $left={tableRef?.current?.getBoundingClientRect()?.left}\n $width={tableRef?.current?.clientWidth}\n >\n <ActionBar\n $float={\n (scrollable ? !scrollEnd : !end) || isFloatingActionBar\n }\n $scrollable={scrollable}\n >\n <Typography.BodyMD weight=\"semibold\">{`${count} item${\n count > 1 ? \"s\" : \"\"\n } selected`}</Typography.BodyMD>\n <TextButton\n type=\"button\"\n aria-label={`Clear selection of ${count} item${\n count === 1 ? \"\" : \"s\"\n }`}\n onClick={onClearSelectionClick}\n >\n Clear selection\n </TextButton>\n {actionBarContent}\n </ActionBar>\n </ActionBarWrapper>\n );\n };\n\n return (\n <TableWrapper\n id={id || \"table-wrapper\"}\n data-testid={otherProps[\"data-testid\"] || \"table\"}\n className={className}\n ref={wrapperRef}\n onScroll={() => {\n if (scrollable && wrapperRef.current) {\n setScrollEnd(\n wrapperRef.current.scrollTop +\n wrapperRef.current.clientHeight >=\n wrapperRef.current.scrollHeight\n );\n }\n }}\n tabIndex={0} // scrollable container must be focusable to support keyboard users\n >\n <TableContainer>\n <Table\n $end={tableEnd}\n $scrollable={scrollable}\n ref={tableRef}\n $stickyHeader={enableStickyHeader}\n >\n {renderHeaders()}\n <TableBody $showLastRowBottomBorder={showLastBorder}>\n {loadState === \"success\"\n ? renderRows()\n : renderLoader()}\n </TableBody>\n </Table>\n </TableContainer>\n {enableActionBar &&\n selectedIds &&\n selectedIds.length > 0 &&\n renderSelectionBar()}\n <div\n ref={(r) => {\n tableEndRef.current = r;\n endRef(r);\n }}\n />\n </TableWrapper>\n );\n};\n"],"names":["DataTable","_a","id","headers","rows","className","sortIndicators","alternatingRows","loadState","enableMultiSelect","selectedIds","disabledIds","enableActionBar","enableSelectAll","enableStickyHeader","emptyView","actionBarContent","renderCustomEmptyView","onHeaderClick","onSelect","onSelectAll","onClearSelectionClick","otherProps","__rest","tableRef","useRef","tableEndRef","headerRef","actionBarRef","wrapperRef","internalId","useId","keyColumns","filter","header","keyColumn","scrollable","setScrollable","useState","scrollEnd","setScrollEnd","tableEnd","setTableEnd","isFloatingActionBar","setIsFloatingActionBar","showLastBorder","setShowLastBorder","ref","endRef","inView","end","useInView","onResize","useCallback","current","scrollHeight","clientHeight","style","transform","calculateStickyInViewport","useEffect","useResizeDetector","useEventListener","requestAnimationFrame","calculateFixedInViewport","getBoundingClientRect","bottom","window","innerHeight","checkLastBorder","isAllCheckboxSelected","length","isRowSelected","rowId","includes","isAlternatingRow","index","isDisabledRow","getDataTestId","subStr","getTotalColumns","getSortDirection","fieldKey","getHeaderAriaSort","sortDirection","getSortButtonAriaLabel","getCellId","getRowCheckboxAriaLabelledBy","keyColumnIds","map","concatIds","wrapperBounds","top","endBounds","bottomOffset","bottomToHeaderOffset","height","maxBottomOffset","Math","min","renderHeaderCell","label","clickable","undefined","isSortable","headerCellWrapperId","getHeaderWrapperId","_jsxs","HeaderCell","$clickable","scope","$isCheckbox","HeaderCellWrapper","children","_jsx","Typography","BodyBL","weight","renderSortedArrow","VisuallyHidden","onClick","isSorted","ArrowUpIcon","ArrowDownIcon","renderHeaderCheckBox","CheckBoxWrapper","Checkbox","checked","indeterminate","renderRowCell","row","toString","cellData","cellId","BodyCell","BodyCellContent","isSelected","renderRowCheckBox","disabled","focusableWhenDisabled","renderBasicEmptyView","ErrorDisplay","Object","assign","type","title","ErrorDisplayTitle","description","TableWrapper","onScroll","scrollTop","tabIndex","TableContainer","Table","$end","$stickyHeader","HeaderRow","TableBody","$showLastRowBottomBorder","EmptyViewCell","colSpan","BodyRow","$alternating","$isSelectable","$isSelected","LoaderWrapper","role","LoadingDotsSpinner","count","ActionBarWrapper","$fixed","$left","_c","_b","left","$width","_d","clientWidth","ActionBar","$float","$scrollable","BodyMD","TextButton","renderSelectionBar","r"],"mappings":"8+CAiCO,MAAMA,EAAaC,QAAAC,GACtBA,EAAEC,QACFA,EAAOC,KACPA,EAAIC,UACJA,EAASC,eACTA,EAAcC,gBACdA,EAAeC,UACfA,EAAY,UAASC,kBACrBA,EAAiBC,YACjBA,EAAWC,YACXA,EAAWC,gBACXA,EAAeC,gBACfA,EAAeC,mBACfA,EAAkBC,UAClBA,EAASC,iBACTA,EAAgBC,sBAChBA,EAAqBC,cACrBA,GAAaC,SACbA,GAAQC,YACRA,GAAWC,sBACXA,MACGC,GAAUC,EAAAtB,EArBS,CAAA,KAAA,UAAA,OAAA,YAAA,iBAAA,kBAAA,YAAA,oBAAA,cAAA,cAAA,kBAAA,kBAAA,qBAAA,YAAA,mBAAA,wBAAA,gBAAA,WAAA,cAAA,0BA0BtB,MAAMuB,GAAWC,EAAyB,MACpCC,GAAcD,EAA8B,MAC5CE,GAAYF,EAAgC,MAC5CG,GAAeH,EAAuB,MACtCI,GAAaJ,EAAuB,MACpCK,GAAaC,IACbC,GAAa7B,EAAQ8B,QACtBC,GAC4B,iBAAXA,KAAyBA,EAAOC,aAI/CC,GAAYC,IAAiBC,GAAS,IACtCC,GAAWC,IAAgBF,GAAS,IACpCG,GAAUC,IAAeJ,GAAS,IAClCK,GAAqBC,IAA0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O,WAAUJ,SAAE,GAAGuD,SACrCA,EAAQ,EAAI,IAAM,gBAEtBtD,EAACoE,EAAU,CACPtC,KAAK,SAAQ,aACD,sBAAsBwB,SACpB,IAAVA,EAAc,GAAK,MAEvBhD,QAASnG,GAAqB4F,SAAA,oBAIjCjG,MAEU,EAuCfuK,GACJrE,EAAA,MAAA,CACInE,IAAMyI,IACF9J,GAAY4B,QAAUkI,EACtBxI,GAAOwI,EAAE,MAGN"}
1
+ {"version":3,"file":"data-table.js","sources":["../../src/data-table/data-table.tsx"],"sourcesContent":["import { ArrowDownIcon, ArrowUpIcon } from \"@lifesg/react-icons\";\nimport clsx from \"clsx\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport { useInView } from \"react-intersection-observer\";\nimport { useResizeDetector } from \"react-resize-detector\";\n\nimport { LoadingDotsSpinner } from \"../animations\";\nimport { Checkbox } from \"../checkbox\";\nimport { ErrorDisplay } from \"../error-display\";\nimport { concatIds, VisuallyHidden } from \"../shared/accessibility\";\nimport { BasicButton } from \"../shared/input-wrapper\";\nimport { useApplyStyle } from \"../theme\";\nimport { Typography } from \"../typography\";\nimport { useId } from \"../util\";\nimport { useEventListener } from \"../util/use-event-listener\";\nimport * as styles from \"./data-table.styles\";\nimport type { DataTableProps, HeaderProps, RowProps } from \"./types\";\n\nexport const DataTable = ({\n id,\n headers,\n rows,\n className,\n sortIndicators,\n alternatingRows,\n loadState = \"success\",\n enableMultiSelect,\n selectedIds,\n disabledIds,\n enableActionBar,\n enableSelectAll,\n enableStickyHeader,\n emptyView,\n actionBarContent,\n renderCustomEmptyView,\n onHeaderClick,\n onSelect,\n onSelectAll,\n onClearSelectionClick,\n ...otherProps\n}: DataTableProps) => {\n // =============================================================================\n // CONST, STATE, REF\n // =============================================================================\n const tableRef = useRef<HTMLTableElement>(null);\n const tableEndRef = useRef<HTMLDivElement | null>(null);\n const headerRef = useRef<HTMLTableSectionElement>(null);\n const actionBarRef = useRef<HTMLDivElement>(null);\n const wrapperRef = useRef<HTMLDivElement>(null);\n const internalId = useId();\n const keyColumns = headers.filter(\n (header): header is Exclude<HeaderProps, string> => {\n return typeof header !== \"string\" && !!header.keyColumn;\n }\n );\n\n const [scrollable, setScrollable] = useState(false);\n const [scrollEnd, setScrollEnd] = useState(false);\n const [isFloatingActionBar, setIsFloatingActionBar] = useState(false);\n const [showLastBorder, setShowLastBorder] = useState(false);\n\n const { ref: endRef, inView: end } = useInView();\n\n useApplyStyle(actionBarRef, {\n [styles.tokens.actionBarWrapperLeft]:\n isFloatingActionBar && tableRef.current\n ? `${tableRef.current.getBoundingClientRect().left}px`\n : undefined,\n [styles.tokens.actionBarWrapperWidth]:\n isFloatingActionBar && tableRef.current\n ? `${tableRef.current.clientWidth}px`\n : undefined,\n });\n\n // =============================================================================\n // EFFECTS, EVENT LISTENERS\n // ============================================================================\n const onResize = useCallback(() => {\n if (!wrapperRef.current || !actionBarRef.current) {\n return;\n }\n const scrollable =\n wrapperRef.current.scrollHeight > wrapperRef.current.clientHeight;\n setScrollable(scrollable);\n\n if (scrollable) {\n actionBarRef.current.style.transform = `translateY(0)`;\n } else {\n calculateStickyInViewport();\n }\n }, []);\n\n useEffect(() => {\n onResize();\n }, []);\n\n useResizeDetector({ onResize });\n\n const scrollHandler = () => {\n requestAnimationFrame(() => {\n if (scrollable) {\n calculateFixedInViewport();\n } else {\n calculateStickyInViewport();\n }\n });\n };\n\n useEventListener(\"scroll\", scrollHandler, \"window\");\n\n useEffect(() => {\n checkLastBorder();\n }, [rows]);\n\n // ===========================================================================\n // HELPER FUNCTIONS\n // ===========================================================================\n const isAllCheckboxSelected = (): boolean => {\n if (!rows || !rows.length || !selectedIds) {\n return false;\n }\n return selectedIds.length === rows.length;\n };\n\n const isIndeterminateCheckbox = (): boolean => {\n return (\n !!selectedIds &&\n selectedIds.length !== 0 &&\n !isAllCheckboxSelected()\n );\n };\n\n const isHeaderCheckboxDisabled = (): boolean => {\n return !rows || !rows.length || !selectedIds;\n };\n\n const isRowSelected = (rowId: string): boolean => {\n return !!selectedIds?.includes(rowId);\n };\n\n const isAlternatingRow = (index: number): boolean => {\n return !!alternatingRows && index % 2 === 1;\n };\n\n const isDisabledRow = (rowId: string): boolean => {\n return !!disabledIds?.includes(rowId);\n };\n\n const getDataTestId = (subStr: string) => {\n if (!otherProps[\"data-testid\"]) return undefined;\n return `${otherProps[\"data-testid\"]}-${subStr}`;\n };\n\n const getTotalColumns = (): number => {\n return headers.length + (enableMultiSelect ? 1 : 0);\n };\n\n const getSortDirection = (fieldKey: string) => {\n return sortIndicators?.[fieldKey];\n };\n\n const getHeaderAriaSort = (fieldKey: string) => {\n const sortDirection = getSortDirection(fieldKey);\n\n if (!sortDirection) {\n return undefined;\n }\n\n return sortDirection === \"asc\" ? \"ascending\" : \"descending\";\n };\n\n const getSortButtonAriaLabel = (fieldKey: string) => {\n const nextSortDirection =\n getSortDirection(fieldKey) === \"asc\" ? \"descending\" : \"ascending\";\n\n return ` by ${nextSortDirection} order`;\n };\n\n const getHeaderCellId = (fieldKey: string) => {\n return `${internalId}-header-${fieldKey}`;\n };\n const getCellId = (rowId: string, fieldKey: string) => {\n return `${internalId}-row-${rowId}-${fieldKey}-key-column`;\n };\n\n const getRowCheckboxAriaLabelledBy = (rowId: string) => {\n const keyColumnIds = keyColumns.map((header) =>\n getCellId(rowId, header.fieldKey)\n );\n\n return concatIds(...keyColumnIds);\n };\n\n const calculateFixedInViewport = () => {\n if (!wrapperRef.current) {\n return;\n }\n const wrapperBounds = wrapperRef.current.getBoundingClientRect();\n setIsFloatingActionBar(\n wrapperBounds.bottom > window.innerHeight + 30 &&\n wrapperBounds.top < window.innerHeight - 200\n );\n };\n\n const calculateStickyInViewport = () => {\n if (\n !tableRef.current ||\n !tableEndRef.current ||\n !wrapperRef.current ||\n !actionBarRef.current ||\n !headerRef.current\n ) {\n return;\n }\n\n const endBounds = tableEndRef.current.getBoundingClientRect();\n\n if (endBounds.top > window.innerHeight) {\n const bottomOffset = endBounds.bottom - window.innerHeight;\n const bottomToHeaderOffset =\n tableRef.current.getBoundingClientRect().height -\n headerRef.current.clientHeight -\n 32;\n const maxBottomOffset = Math.min(\n bottomOffset,\n bottomToHeaderOffset\n );\n\n actionBarRef.current.style.transform = `translateY(-${maxBottomOffset}px)`;\n } else {\n actionBarRef.current.style.transform = `translateY(0)`;\n }\n };\n\n const checkLastBorder = () => {\n if (!tableRef.current || !wrapperRef.current) {\n return;\n }\n // 56 pixels added due to the behavior of action bar\n setShowLastBorder(\n tableRef.current.clientHeight + (enableActionBar ? 56 : 0) <\n wrapperRef.current.clientHeight\n );\n };\n\n // =============================================================================\n // EVENT HANDLERS\n // =============================================================================\n const handleHeaderClick = (fieldKey: string) => {\n onHeaderClick?.(fieldKey);\n };\n\n const handleHeaderButtonClick = (\n event: React.MouseEvent<HTMLButtonElement>,\n fieldKey: string\n ) => {\n event.stopPropagation();\n onHeaderClick?.(fieldKey);\n };\n\n // =============================================================================\n // RENDER FUNCTIONS\n // =============================================================================\n const renderHeaders = () => (\n <thead\n ref={headerRef}\n className={enableStickyHeader ? styles.stickyHeader : undefined}\n >\n <tr className={styles.headerRow}>\n {enableMultiSelect && renderHeaderCheckBox()}\n {headers.map(renderHeaderCell)}\n </tr>\n </thead>\n );\n\n const renderHeaderCell = (header: HeaderProps) => {\n const {\n fieldKey,\n label,\n clickable = false,\n style,\n } = typeof header === \"string\"\n ? {\n fieldKey: header,\n label: header,\n style: undefined,\n }\n : header;\n\n const isSortable = !!getSortDirection(fieldKey);\n const headerCellId = getHeaderCellId(fieldKey);\n return (\n <th\n data-testid={getDataTestId(`header-${fieldKey}`)}\n key={fieldKey}\n className={clsx(\n styles.headerCell,\n clickable && styles.headerCellClickable\n )}\n scope=\"col\"\n aria-sort={getHeaderAriaSort(fieldKey)}\n style={style}\n onClick={() => handleHeaderClick(fieldKey)}\n >\n <div className={styles.headerCellContent} id={headerCellId}>\n {typeof label === \"string\" ? (\n <Typography.BodyBL weight=\"bold\">\n {label}\n </Typography.BodyBL>\n ) : (\n label\n )}\n {renderSortedArrow(fieldKey)}\n </div>\n {(clickable || isSortable) && (\n <VisuallyHidden>\n <button\n onClick={(event) =>\n handleHeaderButtonClick(event, fieldKey)\n }\n >\n {isSortable && \"Sort \"}\n <span aria-labelledby={headerCellId} />\n {isSortable && getSortButtonAriaLabel(fieldKey)}\n </button>\n </VisuallyHidden>\n )}\n </th>\n );\n };\n\n const renderSortedArrow = (fieldKey: string) => {\n const isSorted = sortIndicators?.[fieldKey];\n\n if (!isSorted) {\n return <></>;\n }\n if (isSorted === \"asc\") {\n return (\n <ArrowUpIcon\n aria-hidden\n data-testid={getDataTestId(`header-${fieldKey}-arrowup`)}\n />\n );\n }\n return (\n <ArrowDownIcon\n aria-hidden\n data-testid={getDataTestId(`header-${fieldKey}-arrowdown`)}\n />\n );\n };\n\n const renderHeaderCheckBox = () => {\n return (\n <th\n data-testid={getDataTestId(\"header-selection\")}\n className={clsx(styles.headerCell, styles.headerCellCheckbox)}\n scope=\"col\"\n >\n <div className={styles.selectionCheckboxWrapper}>\n <VisuallyHidden>Row selection</VisuallyHidden>\n {enableSelectAll && (\n <Checkbox\n checked={isAllCheckboxSelected()}\n indeterminate={isIndeterminateCheckbox()}\n disabled={isHeaderCheckboxDisabled()}\n aria-label=\"Select all rows\"\n onClick={() => {\n if (onSelectAll) {\n onSelectAll(isAllCheckboxSelected());\n }\n }}\n />\n )}\n </div>\n </th>\n );\n };\n\n const renderRows = () => {\n return !rows || rows.length < 1 ? (\n <tr className={styles.bodyRow}>\n <td\n className={styles.emptyStateCell}\n colSpan={getTotalColumns()}\n >\n {renderCustomEmptyView\n ? renderCustomEmptyView()\n : renderBasicEmptyView()}\n </td>\n </tr>\n ) : (\n <>\n {rows?.map((row: RowProps, index: number) => (\n <tr\n data-testid={getDataTestId(`row-${row.id.toString()}`)}\n key={row.id.toString()}\n className={clsx(\n styles.bodyRow,\n showLastBorder && styles.bodyRowWithBottomBorder,\n isAlternatingRow(index) &&\n styles.bodyRowAlternating,\n enableMultiSelect && styles.bodyRowSelectable,\n isRowSelected(row.id.toString()) &&\n styles.bodyRowSelected\n )}\n >\n {enableMultiSelect && renderRowCheckBox(row)}\n\n {headers.map((header) => renderRowCell(header, row))}\n </tr>\n ))}\n </>\n );\n };\n\n const renderRowCell = (header: HeaderProps, row: RowProps) => {\n const style = typeof header === \"string\" ? undefined : header.style;\n const fieldKey = typeof header === \"string\" ? header : header.fieldKey;\n const rowId = row.id.toString();\n const cellData = row[fieldKey];\n const cellId = `${rowId}-${fieldKey}`;\n\n let cellContent: React.ReactNode;\n if (typeof cellData === \"string\" || typeof cellData === \"number\") {\n cellContent = (\n <Typography.BodyBL className={styles.bodyCellText}>\n {cellData}\n </Typography.BodyBL>\n );\n } else if (typeof cellData === \"function\") {\n cellContent = cellData(row, { isSelected: isRowSelected(rowId) });\n } else {\n cellContent = cellData;\n }\n\n return (\n <td\n data-testid={getDataTestId(`row-${cellId}`)}\n key={cellId}\n id={getCellId(rowId, fieldKey)}\n className={styles.bodyCell}\n style={style}\n >\n {cellContent}\n </td>\n );\n };\n\n const renderRowCheckBox = (row: RowProps) => {\n const rowId = row.id.toString();\n\n return (\n <td\n data-testid={getDataTestId(`row-${rowId}-selection`)}\n className={clsx(styles.bodyCell, styles.bodyCellCheckbox)}\n >\n <div className={styles.selectionCheckboxWrapper}>\n <Checkbox\n checked={isRowSelected(rowId)}\n aria-labelledby={getRowCheckboxAriaLabelledBy(rowId)}\n onClick={() => {\n if (onSelect) {\n onSelect(rowId, !isRowSelected(rowId));\n }\n }}\n disabled={isDisabledRow(rowId)}\n focusableWhenDisabled={isDisabledRow(rowId)}\n />\n </div>\n </td>\n );\n };\n\n const renderBasicEmptyView = () => {\n let emptyTitle: JSX.Element;\n if (!emptyView?.title) {\n emptyTitle = (\n <Typography.HeadingSM\n className={styles.emptyStateTitle}\n weight=\"bold\"\n >\n {\"No <items> found\"}\n </Typography.HeadingSM>\n );\n } else if (typeof emptyView.title === \"string\") {\n emptyTitle = (\n <Typography.HeadingSM\n className={styles.emptyStateTitle}\n weight=\"bold\"\n >\n {emptyView.title}\n </Typography.HeadingSM>\n );\n } else {\n emptyTitle = emptyView.title;\n }\n\n return (\n <ErrorDisplay\n type={\"no-item-found\"}\n {...emptyView}\n title={emptyTitle}\n description={\n emptyView?.description\n ? emptyView.description\n : \"No matching rows\"\n }\n />\n );\n };\n\n const renderLoader = () => {\n return (\n <tr className={styles.bodyRow}>\n <td colSpan={getTotalColumns()}>\n <div\n className={styles.loadingStateWrapper}\n role=\"status\"\n aria-live=\"polite\"\n aria-label=\"Loading table\"\n >\n {loadState === \"loading\" && <LoadingDotsSpinner />}\n </div>\n </td>\n </tr>\n );\n };\n\n const renderSelectionBar = () => {\n const count = selectedIds?.length ?? 0;\n const hasNotReachedScrollableEnd = scrollable && !scrollEnd;\n const hasNotReachedTableEnd = !scrollable && !end;\n const shouldUseFloatingActionBar =\n hasNotReachedScrollableEnd ||\n hasNotReachedTableEnd ||\n isFloatingActionBar;\n\n return (\n <div\n ref={actionBarRef}\n className={clsx(\n styles.actionBarWrapper,\n isFloatingActionBar && styles.actionBarWrapperFloating\n )}\n >\n <div\n className={clsx(\n styles.actionBar,\n shouldUseFloatingActionBar && styles.actionBarFloating\n )}\n >\n <Typography.BodyMD weight=\"semibold\">{`${count} item${\n count > 1 ? \"s\" : \"\"\n } selected`}</Typography.BodyMD>\n <BasicButton\n className={styles.actionBarButton}\n type=\"button\"\n aria-label={`Clear selection of ${count} item${\n count === 1 ? \"\" : \"s\"\n }`}\n onClick={onClearSelectionClick}\n >\n Clear selection\n </BasicButton>\n {actionBarContent}\n </div>\n </div>\n );\n };\n\n return (\n <div\n id={id || \"table-wrapper\"}\n data-testid={otherProps[\"data-testid\"] || \"table\"}\n className={clsx(styles.tableWrapper, className)}\n ref={wrapperRef}\n onScroll={() => {\n if (scrollable && wrapperRef.current) {\n setScrollEnd(\n wrapperRef.current.scrollTop +\n wrapperRef.current.clientHeight >=\n wrapperRef.current.scrollHeight\n );\n }\n }}\n tabIndex={0} // scrollable container must be focusable to support keyboard users\n >\n <div className={styles.tableContainer}>\n <table ref={tableRef} className={clsx(styles.table)}>\n {renderHeaders()}\n <tbody>\n {loadState === \"success\"\n ? renderRows()\n : renderLoader()}\n </tbody>\n </table>\n </div>\n {enableActionBar &&\n selectedIds &&\n selectedIds.length > 0 &&\n renderSelectionBar()}\n <div\n ref={(r) => {\n tableEndRef.current = r;\n endRef(r);\n }}\n />\n </div>\n );\n};\n"],"names":["DataTable","_a","id","headers","rows","className","sortIndicators","alternatingRows","loadState","enableMultiSelect","selectedIds","disabledIds","enableActionBar","enableSelectAll","enableStickyHeader","emptyView","actionBarContent","renderCustomEmptyView","onHeaderClick","onSelect","onSelectAll","onClearSelectionClick","otherProps","__rest","tableRef","useRef","tableEndRef","headerRef","actionBarRef","wrapperRef","internalId","useId","keyColumns","filter","header","keyColumn","scrollable","setScrollable","useState","scrollEnd","setScrollEnd","isFloatingActionBar","setIsFloatingActionBar","showLastBorder","setShowLastBorder","ref","endRef","inView","end","useInView","useApplyStyle","styles.tokens","actionBarWrapperLeft","current","getBoundingClientRect","left","undefined","actionBarWrapperWidth","clientWidth","onResize","useCallback","scrollHeight","clientHeight","style","transform","calculateStickyInViewport","useEffect","useResizeDetector","useEventListener","requestAnimationFrame","calculateFixedInViewport","checkLastBorder","isAllCheckboxSelected","length","isRowSelected","rowId","includes","isAlternatingRow","index","isDisabledRow","getDataTestId","subStr","getTotalColumns","getSortDirection","fieldKey","getHeaderAriaSort","sortDirection","getSortButtonAriaLabel","getCellId","getRowCheckboxAriaLabelledBy","keyColumnIds","map","concatIds","wrapperBounds","bottom","window","innerHeight","top","endBounds","bottomOffset","bottomToHeaderOffset","height","maxBottomOffset","Math","min","renderHeaderCell","label","clickable","isSortable","headerCellId","getHeaderCellId","_jsxs","clsx","styles.headerCell","styles.headerCellClickable","scope","onClick","handleHeaderClick","children","styles.headerCellContent","_jsx","Typography","BodyBL","weight","renderSortedArrow","VisuallyHidden","event","stopPropagation","handleHeaderButtonClick","isSorted","ArrowUpIcon","ArrowDownIcon","renderHeaderCheckBox","styles.headerCellCheckbox","styles.selectionCheckboxWrapper","Checkbox","checked","indeterminate","disabled","renderRowCell","row","toString","cellData","cellId","cellContent","styles.bodyCellText","isSelected","styles.bodyCell","renderRowCheckBox","styles.bodyCellCheckbox","focusableWhenDisabled","renderBasicEmptyView","emptyTitle","title","HeadingSM","styles.emptyStateTitle","ErrorDisplay","Object","assign","type","description","styles.tableWrapper","onScroll","scrollTop","tabIndex","styles.tableContainer","styles.table","styles.stickyHeader","styles.headerRow","styles.bodyRow","styles.emptyStateCell","colSpan","_Fragment","styles.bodyRowWithBottomBorder","styles.bodyRowAlternating","styles.bodyRowSelectable","styles.bodyRowSelected","styles.loadingStateWrapper","role","LoadingDotsSpinner","count","shouldUseFloatingActionBar","styles.actionBarWrapper","styles.actionBarWrapperFloating","styles.actionBar","styles.actionBarFloating","BodyMD","BasicButton","styles.actionBarButton","renderSelectionBar","r"],"mappings":"smEAkBO,MAAMA,EAAaC,QAAAC,GACtBA,EAAEC,QACFA,EAAOC,KACPA,EAAIC,UACJA,GAASC,eACTA,GAAcC,gBACdA,GAAeC,UACfA,GAAY,UAASC,kBACrBA,GAAiBC,YACjBA,GAAWC,YACXA,GAAWC,gBACXA,GAAeC,gBACfA,GAAeC,mBACfA,GAAkBC,UAClBA,GAASC,iBACTA,GAAgBC,sBAChBA,GAAqBC,cACrBA,GAAaC,SACbA,GAAQC,YACRA,GAAWC,sBACXA,MACGC,GAAUC,EAAAtB,EArBS,CAAA,KAAA,UAAA,OAAA,YAAA,iBAAA,kBAAA,YAAA,oBAAA,cAAA,cAAA,kBAAA,kBAAA,qBAAA,YAAA,mBAAA,wBAAA,gBAAA,WAAA,cAAA,0BA0BtB,MAAMuB,GAAWC,EAAyB,MACpCC,GAAcD,EAA8B,MAC5CE,GAAYF,EAAgC,MAC5CG,GAAeH,EAAuB,MACtCI,GAAaJ,EAAuB,MACp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