@simplybusiness/mobius 10.2.0 → 10.3.0

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 (337) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/components/AddressLookup/AddressLookup.js +219 -162
  3. package/dist/cjs/components/AddressLookup/AddressLookup.js.map +4 -4
  4. package/dist/cjs/components/AddressLookup/index.js +219 -162
  5. package/dist/cjs/components/AddressLookup/index.js.map +4 -4
  6. package/dist/cjs/components/Alert/Alert.js +10 -7
  7. package/dist/cjs/components/Alert/Alert.js.map +2 -2
  8. package/dist/cjs/components/Alert/index.js +10 -7
  9. package/dist/cjs/components/Alert/index.js.map +2 -2
  10. package/dist/cjs/components/Box/Box.js +18 -3
  11. package/dist/cjs/components/Box/Box.js.map +3 -3
  12. package/dist/cjs/components/Box/index.js +18 -3
  13. package/dist/cjs/components/Box/index.js.map +3 -3
  14. package/dist/cjs/components/Breadcrumbs/BreadcrumbItem.js +18 -3
  15. package/dist/cjs/components/Breadcrumbs/BreadcrumbItem.js.map +3 -3
  16. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  17. package/dist/cjs/components/Breadcrumbs/index.js +18 -3
  18. package/dist/cjs/components/Breadcrumbs/index.js.map +3 -3
  19. package/dist/cjs/components/Checkbox/Checkbox.js +186 -129
  20. package/dist/cjs/components/Checkbox/Checkbox.js.map +4 -4
  21. package/dist/cjs/components/Checkbox/CheckboxGroup.js +191 -134
  22. package/dist/cjs/components/Checkbox/CheckboxGroup.js.map +4 -4
  23. package/dist/cjs/components/Checkbox/index.js +199 -142
  24. package/dist/cjs/components/Checkbox/index.js.map +4 -4
  25. package/dist/cjs/components/Combobox/Combobox.js +214 -157
  26. package/dist/cjs/components/Combobox/Combobox.js.map +4 -4
  27. package/dist/cjs/components/Combobox/index.js +214 -157
  28. package/dist/cjs/components/Combobox/index.js.map +4 -4
  29. package/dist/cjs/components/DateField/DateField.js +187 -130
  30. package/dist/cjs/components/DateField/DateField.js.map +4 -4
  31. package/dist/cjs/components/DateField/index.js +187 -130
  32. package/dist/cjs/components/DateField/index.js.map +4 -4
  33. package/dist/cjs/components/ErrorMessage/ErrorMessage.js +178 -121
  34. package/dist/cjs/components/ErrorMessage/ErrorMessage.js.map +4 -4
  35. package/dist/cjs/components/ErrorMessage/index.js +178 -121
  36. package/dist/cjs/components/ErrorMessage/index.js.map +4 -4
  37. package/dist/cjs/components/ExpandableText/ExpandableText.js +178 -121
  38. package/dist/cjs/components/ExpandableText/ExpandableText.js.map +4 -4
  39. package/dist/cjs/components/ExpandableText/index.js +178 -121
  40. package/dist/cjs/components/ExpandableText/index.js.map +4 -4
  41. package/dist/cjs/components/Grid/Grid.js +2 -2
  42. package/dist/cjs/components/Grid/Grid.js.map +2 -2
  43. package/dist/cjs/components/Grid/Item.js +3 -3
  44. package/dist/cjs/components/Grid/Item.js.map +2 -2
  45. package/dist/cjs/components/Grid/index.js +5 -5
  46. package/dist/cjs/components/Grid/index.js.map +2 -2
  47. package/dist/cjs/components/List/List.js +15 -7
  48. package/dist/cjs/components/List/List.js.map +2 -2
  49. package/dist/cjs/components/List/index.js +15 -7
  50. package/dist/cjs/components/List/index.js.map +2 -2
  51. package/dist/cjs/components/Logo/Logo.js.map +2 -2
  52. package/dist/cjs/components/Logo/index.js.map +2 -2
  53. package/dist/cjs/components/MaskedField/MaskedField.js +181 -124
  54. package/dist/cjs/components/MaskedField/MaskedField.js.map +4 -4
  55. package/dist/cjs/components/MaskedField/index.js +181 -124
  56. package/dist/cjs/components/MaskedField/index.js.map +4 -4
  57. package/dist/cjs/components/Modal/Header.js +38 -21
  58. package/dist/cjs/components/Modal/Header.js.map +3 -3
  59. package/dist/cjs/components/Modal/Modal.js +13 -3
  60. package/dist/cjs/components/Modal/Modal.js.map +2 -2
  61. package/dist/cjs/components/Modal/ModalContext.js +4 -1
  62. package/dist/cjs/components/Modal/ModalContext.js.map +2 -2
  63. package/dist/cjs/components/Modal/index.js +63 -39
  64. package/dist/cjs/components/Modal/index.js.map +3 -3
  65. package/dist/cjs/components/Modal/types.js.map +1 -1
  66. package/dist/cjs/components/Modal/useModal.js +6 -3
  67. package/dist/cjs/components/Modal/useModal.js.map +2 -2
  68. package/dist/cjs/components/NumberField/NumberField.js +181 -124
  69. package/dist/cjs/components/NumberField/NumberField.js.map +4 -4
  70. package/dist/cjs/components/NumberField/index.js +181 -124
  71. package/dist/cjs/components/NumberField/index.js.map +4 -4
  72. package/dist/cjs/components/PasswordField/PasswordField.js +181 -124
  73. package/dist/cjs/components/PasswordField/PasswordField.js.map +4 -4
  74. package/dist/cjs/components/PasswordField/ShowHideButton.js +178 -121
  75. package/dist/cjs/components/PasswordField/ShowHideButton.js.map +4 -4
  76. package/dist/cjs/components/PasswordField/index.js +181 -124
  77. package/dist/cjs/components/PasswordField/index.js.map +4 -4
  78. package/dist/cjs/components/Radio/Radio.js +178 -121
  79. package/dist/cjs/components/Radio/Radio.js.map +4 -4
  80. package/dist/cjs/components/Radio/RadioGroup.js +178 -121
  81. package/dist/cjs/components/Radio/RadioGroup.js.map +4 -4
  82. package/dist/cjs/components/Radio/index.js +178 -121
  83. package/dist/cjs/components/Radio/index.js.map +4 -4
  84. package/dist/cjs/components/SVG/SVG.js.map +2 -2
  85. package/dist/cjs/components/SVG/index.js.map +2 -2
  86. package/dist/cjs/components/Segment/Segment.js +2 -2
  87. package/dist/cjs/components/Segment/Segment.js.map +2 -2
  88. package/dist/cjs/components/Segment/index.js +2 -2
  89. package/dist/cjs/components/Segment/index.js.map +2 -2
  90. package/dist/cjs/components/Select/Select.js +178 -121
  91. package/dist/cjs/components/Select/Select.js.map +4 -4
  92. package/dist/cjs/components/Select/index.js +178 -121
  93. package/dist/cjs/components/Select/index.js.map +4 -4
  94. package/dist/cjs/components/Table/HeaderCell.js +2 -2
  95. package/dist/cjs/components/Table/HeaderCell.js.map +2 -2
  96. package/dist/cjs/components/Table/index.js +2 -2
  97. package/dist/cjs/components/Table/index.js.map +2 -2
  98. package/dist/cjs/components/Text/Text.js +10 -7
  99. package/dist/cjs/components/Text/Text.js.map +2 -2
  100. package/dist/cjs/components/Text/index.js +10 -7
  101. package/dist/cjs/components/Text/index.js.map +2 -2
  102. package/dist/cjs/components/TextArea/TextArea.js +178 -121
  103. package/dist/cjs/components/TextArea/TextArea.js.map +4 -4
  104. package/dist/cjs/components/TextArea/index.js +178 -121
  105. package/dist/cjs/components/TextArea/index.js.map +4 -4
  106. package/dist/cjs/components/TextField/TextField.js +181 -124
  107. package/dist/cjs/components/TextField/TextField.js.map +4 -4
  108. package/dist/cjs/components/TextField/index.js +181 -124
  109. package/dist/cjs/components/TextField/index.js.map +4 -4
  110. package/dist/cjs/components/TextOrHTML/TextOrHTML.js +10 -7
  111. package/dist/cjs/components/TextOrHTML/TextOrHTML.js.map +2 -2
  112. package/dist/cjs/components/TextOrHTML/index.js +10 -7
  113. package/dist/cjs/components/TextOrHTML/index.js.map +2 -2
  114. package/dist/cjs/components/index.js +205 -148
  115. package/dist/cjs/components/index.js.map +4 -4
  116. package/dist/cjs/index.js +205 -148
  117. package/dist/cjs/index.js.map +4 -4
  118. package/dist/cjs/meta.json +844 -539
  119. package/dist/cjs/utils/filterUnsetValues.js +36 -0
  120. package/dist/cjs/utils/filterUnsetValues.js.map +7 -0
  121. package/dist/cjs/utils/index.js +13 -0
  122. package/dist/cjs/utils/index.js.map +3 -3
  123. package/dist/esm/{chunk-NYFCN7EA.js → chunk-6GGDGE7D.js} +4 -4
  124. package/dist/esm/{chunk-OUKMP3DO.js → chunk-7JT4DKQA.js} +2 -2
  125. package/dist/esm/chunk-CZWEMAKZ.js +16 -0
  126. package/dist/esm/chunk-CZWEMAKZ.js.map +7 -0
  127. package/dist/esm/{chunk-Q5YY6HPF.js → chunk-DZVBN6ZI.js} +5 -5
  128. package/dist/esm/{chunk-OC6ULO4M.js → chunk-EJLNC5X5.js} +2 -2
  129. package/dist/esm/{chunk-LVZ2T6AY.js → chunk-EZ4S7XVZ.js} +16 -8
  130. package/dist/esm/chunk-EZ4S7XVZ.js.map +7 -0
  131. package/dist/esm/chunk-FIAL4HTE.js +1 -0
  132. package/dist/esm/{chunk-YLL2DKVF.js → chunk-FQ6P6JB5.js} +3 -3
  133. package/dist/esm/chunk-FQ6P6JB5.js.map +7 -0
  134. package/dist/esm/{chunk-OZ2IUZIJ.js → chunk-HP2NRM7T.js} +2 -2
  135. package/dist/esm/{chunk-RR4UQSOZ.js → chunk-I6EUIFUJ.js} +11 -11
  136. package/dist/esm/{chunk-3IMYDZRT.js → chunk-JFDDW3IV.js} +1 -1
  137. package/dist/esm/chunk-JFDDW3IV.js.map +7 -0
  138. package/dist/esm/{chunk-4IB5ROL6.js → chunk-KXLTGNKF.js} +12 -5
  139. package/dist/esm/chunk-KXLTGNKF.js.map +7 -0
  140. package/dist/esm/{chunk-TL4OCKNP.js → chunk-LWRY3VIB.js} +2 -2
  141. package/dist/esm/chunk-MPB5F6QL.js +53 -0
  142. package/dist/esm/chunk-MPB5F6QL.js.map +7 -0
  143. package/dist/esm/{chunk-DNMS6KEY.js → chunk-PARKMZYZ.js} +4 -4
  144. package/dist/esm/{chunk-DNMS6KEY.js.map → chunk-PARKMZYZ.js.map} +2 -2
  145. package/dist/esm/chunk-Q5MIALGZ.js +15 -0
  146. package/dist/esm/{chunk-ZHX7Z5IU.js.map → chunk-Q5MIALGZ.js.map} +2 -2
  147. package/dist/esm/{chunk-N5WGQAHM.js → chunk-QWD72EVP.js} +4 -4
  148. package/dist/esm/{chunk-KLXMVFIR.js → chunk-TBKQA5ZF.js} +5 -2
  149. package/dist/esm/{chunk-KLXMVFIR.js.map → chunk-TBKQA5ZF.js.map} +2 -2
  150. package/dist/esm/{chunk-B243ELKZ.js → chunk-TJCUKTFX.js} +10 -4
  151. package/dist/esm/chunk-TJCUKTFX.js.map +7 -0
  152. package/dist/esm/{chunk-P5ZPHAQT.js → chunk-UCNWPF7R.js} +3 -3
  153. package/dist/esm/chunk-UCNWPF7R.js.map +7 -0
  154. package/dist/esm/{chunk-S37ULE57.js → chunk-VASDBM4Z.js} +1 -1
  155. package/dist/esm/{chunk-S37ULE57.js.map → chunk-VASDBM4Z.js.map} +2 -2
  156. package/dist/esm/{chunk-QRHDVVRK.js → chunk-VIDKIVA6.js} +2 -2
  157. package/dist/esm/{chunk-SDGIWQ3R.js → chunk-WP5OEMNG.js} +3 -3
  158. package/dist/esm/{chunk-SDGIWQ3R.js.map → chunk-WP5OEMNG.js.map} +2 -2
  159. package/dist/esm/{chunk-MLN5ELQR.js → chunk-WXRQIMMM.js} +1 -1
  160. package/dist/esm/chunk-WXRQIMMM.js.map +7 -0
  161. package/dist/esm/{chunk-O47IW7HD.js → chunk-YCE2KOB2.js} +5 -5
  162. package/dist/esm/{chunk-SNRPWCHL.js → chunk-ZS5MFZHD.js} +11 -8
  163. package/dist/esm/chunk-ZS5MFZHD.js.map +7 -0
  164. package/dist/esm/components/Accordion/Accordion.js +7 -6
  165. package/dist/esm/components/Accordion/AccordionLink.js +6 -5
  166. package/dist/esm/components/Accordion/AccordionList.js +8 -7
  167. package/dist/esm/components/Accordion/index.js +8 -7
  168. package/dist/esm/components/AddressLookup/AddressLookup.js +41 -40
  169. package/dist/esm/components/AddressLookup/__mocks__/LoqateAddressLookupService.js +2 -1
  170. package/dist/esm/components/AddressLookup/__mocks__/LoqateAddressLookupService.js.map +1 -1
  171. package/dist/esm/components/AddressLookup/index.js +41 -40
  172. package/dist/esm/components/Alert/Alert.js +4 -4
  173. package/dist/esm/components/Alert/index.js +4 -4
  174. package/dist/esm/components/Box/Box.js +3 -2
  175. package/dist/esm/components/Box/index.js +3 -2
  176. package/dist/esm/components/Breadcrumbs/BreadcrumbItem.js +4 -3
  177. package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +1 -1
  178. package/dist/esm/components/Breadcrumbs/index.js +7 -6
  179. package/dist/esm/components/Checkbox/Checkbox.js +41 -40
  180. package/dist/esm/components/Checkbox/CheckboxGroup.js +41 -40
  181. package/dist/esm/components/Checkbox/index.js +41 -40
  182. package/dist/esm/components/Combobox/Combobox.js +41 -40
  183. package/dist/esm/components/Combobox/index.js +41 -40
  184. package/dist/esm/components/Container/Container.js +2 -1
  185. package/dist/esm/components/Container/index.js +2 -1
  186. package/dist/esm/components/DateField/DateField.js +41 -40
  187. package/dist/esm/components/DateField/index.js +41 -40
  188. package/dist/esm/components/Drawer/Drawer.js +4 -3
  189. package/dist/esm/components/Drawer/index.js +4 -3
  190. package/dist/esm/components/ErrorMessage/ErrorMessage.js +41 -40
  191. package/dist/esm/components/ErrorMessage/index.js +41 -40
  192. package/dist/esm/components/ExpandableText/ExpandableText.js +41 -40
  193. package/dist/esm/components/ExpandableText/index.js +41 -40
  194. package/dist/esm/components/Fieldset/Fieldset.js +2 -1
  195. package/dist/esm/components/Fieldset/index.js +2 -1
  196. package/dist/esm/components/Flex/Flex.js +2 -1
  197. package/dist/esm/components/Flex/index.js +2 -1
  198. package/dist/esm/components/Flex/propUtils.js +2 -1
  199. package/dist/esm/components/Grid/Grid.js +3 -2
  200. package/dist/esm/components/Grid/Item.js +5 -4
  201. package/dist/esm/components/Grid/index.js +7 -6
  202. package/dist/esm/components/List/List.js +1 -1
  203. package/dist/esm/components/List/index.js +1 -1
  204. package/dist/esm/components/Logo/Logo.js +1 -1
  205. package/dist/esm/components/Logo/index.js +1 -1
  206. package/dist/esm/components/MaskedField/MaskedField.js +41 -40
  207. package/dist/esm/components/MaskedField/MaskedField.js.map +1 -1
  208. package/dist/esm/components/MaskedField/index.js +41 -40
  209. package/dist/esm/components/Modal/Header.js +3 -3
  210. package/dist/esm/components/Modal/Modal.js +6 -5
  211. package/dist/esm/components/Modal/ModalContext.js +1 -1
  212. package/dist/esm/components/Modal/index.js +10 -9
  213. package/dist/esm/components/Modal/useModal.js +2 -2
  214. package/dist/esm/components/NumberField/NumberField.js +41 -40
  215. package/dist/esm/components/NumberField/index.js +41 -40
  216. package/dist/esm/components/PasswordField/PasswordField.js +41 -40
  217. package/dist/esm/components/PasswordField/ShowHideButton.js +41 -40
  218. package/dist/esm/components/PasswordField/index.js +41 -40
  219. package/dist/esm/components/Radio/Radio.js +41 -40
  220. package/dist/esm/components/Radio/RadioGroup.js +41 -40
  221. package/dist/esm/components/Radio/index.js +41 -40
  222. package/dist/esm/components/SVG/SVG.js +1 -1
  223. package/dist/esm/components/SVG/index.js +1 -1
  224. package/dist/esm/components/Segment/Segment.js +1 -1
  225. package/dist/esm/components/Segment/index.js +1 -1
  226. package/dist/esm/components/Select/Select.js +41 -40
  227. package/dist/esm/components/Select/index.js +41 -40
  228. package/dist/esm/components/Slider/Slider.js +4 -3
  229. package/dist/esm/components/Slider/index.js +4 -3
  230. package/dist/esm/components/Table/HeaderCell.js +1 -1
  231. package/dist/esm/components/Table/index.js +2 -2
  232. package/dist/esm/components/Text/Text.js +1 -1
  233. package/dist/esm/components/Text/index.js +1 -1
  234. package/dist/esm/components/TextArea/TextArea.js +41 -40
  235. package/dist/esm/components/TextArea/index.js +41 -40
  236. package/dist/esm/components/TextField/TextField.js +41 -40
  237. package/dist/esm/components/TextField/index.js +41 -40
  238. package/dist/esm/components/TextOrHTML/TextOrHTML.js +2 -2
  239. package/dist/esm/components/TextOrHTML/index.js +2 -2
  240. package/dist/esm/components/Title/Title.js +2 -1
  241. package/dist/esm/components/Title/index.js +2 -1
  242. package/dist/esm/components/Toast/index.js +3 -3
  243. package/dist/esm/components/Trust/Trust.js +2 -1
  244. package/dist/esm/components/Trust/index.js +2 -1
  245. package/dist/esm/components/index.js +54 -53
  246. package/dist/esm/hooks/index.js +6 -5
  247. package/dist/esm/hooks/useDialog/index.js +2 -1
  248. package/dist/esm/hooks/useDialog/useDialog.js +2 -1
  249. package/dist/esm/hooks/useDialogPolyfill/index.js +2 -1
  250. package/dist/esm/hooks/useDialogPolyfill/useDialogPolyfill.js +2 -1
  251. package/dist/esm/index.js +56 -55
  252. package/dist/esm/meta.json +5690 -5359
  253. package/dist/esm/utils/filterUnsetValues.js +8 -0
  254. package/dist/esm/utils/filterUnsetValues.js.map +7 -0
  255. package/dist/esm/utils/index.js +5 -1
  256. package/dist/tsconfig.build.tsbuildinfo +1 -1
  257. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  258. package/dist/types/components/Grid/Grid.d.ts +1 -1
  259. package/dist/types/components/Grid/Item.d.ts +1 -1
  260. package/dist/types/components/List/List.d.ts +1 -1
  261. package/dist/types/components/Logo/Logo.d.ts +8 -0
  262. package/dist/types/components/Modal/types.d.ts +2 -0
  263. package/dist/types/components/Modal/useModal.d.ts +2 -0
  264. package/dist/types/components/SVG/SVG.d.ts +4 -0
  265. package/dist/types/components/Segment/Segment.d.ts +4 -3
  266. package/dist/types/components/Table/HeaderCell.d.ts +2 -1
  267. package/dist/types/components/Text/Text.d.ts +1 -1
  268. package/dist/types/utils/filterUnsetValues.d.ts +6 -0
  269. package/dist/types/utils/index.d.ts +1 -0
  270. package/package.json +4 -4
  271. package/src/components/Accordion/Accordion.test.tsx +7 -0
  272. package/src/components/Box/Box.test.tsx +24 -0
  273. package/src/components/Box/Box.tsx +11 -3
  274. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +130 -0
  275. package/src/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
  276. package/src/components/Button/Button.test.tsx +77 -0
  277. package/src/components/Container/Container.test.tsx +19 -0
  278. package/src/components/Divider/Divider.test.tsx +18 -0
  279. package/src/components/Flex/Flex.test.tsx +7 -0
  280. package/src/components/Grid/Grid.test.tsx +30 -0
  281. package/src/components/Grid/Grid.tsx +2 -2
  282. package/src/components/Grid/Item.tsx +3 -3
  283. package/src/components/Icon/Icon.test.tsx +33 -0
  284. package/src/components/Image/Image.test.tsx +7 -0
  285. package/src/components/Label/Label.test.tsx +7 -0
  286. package/src/components/Link/Link.test.tsx +44 -0
  287. package/src/components/List/List.test.tsx +11 -0
  288. package/src/components/List/List.tsx +6 -2
  289. package/src/components/Logo/Logo.test.tsx +36 -0
  290. package/src/components/Logo/Logo.tsx +8 -0
  291. package/src/components/Modal/Header.tsx +13 -2
  292. package/src/components/Modal/Modal.test.tsx +19 -1
  293. package/src/components/Modal/Modal.tsx +11 -2
  294. package/src/components/Modal/ModalContext.tsx +2 -0
  295. package/src/components/Modal/types.ts +2 -0
  296. package/src/components/Modal/useModal.ts +2 -2
  297. package/src/components/Option/Option.test.tsx +67 -0
  298. package/src/components/Progress/Progress.test.tsx +7 -0
  299. package/src/components/SVG/SVG.test.tsx +40 -0
  300. package/src/components/SVG/SVG.tsx +4 -0
  301. package/src/components/Segment/Segment.test.tsx +72 -0
  302. package/src/components/Segment/Segment.tsx +7 -4
  303. package/src/components/Stack/Stack.test.tsx +41 -1
  304. package/src/components/Table/HeaderCell.tsx +3 -2
  305. package/src/components/Table/Table.test.tsx +180 -0
  306. package/src/components/Text/Text.test.tsx +80 -0
  307. package/src/components/Text/Text.tsx +13 -8
  308. package/src/components/TextAreaInput/TextAreaInput.test.tsx +51 -0
  309. package/src/components/Trust/Trust.test.tsx +52 -1
  310. package/src/components/VisuallyHidden/VisuallyHidden.test.tsx +66 -0
  311. package/src/utils/filterUndefinedProps.test.ts +11 -0
  312. package/src/utils/filterUnsetValues.test.ts +16 -0
  313. package/src/utils/filterUnsetValues.ts +17 -0
  314. package/src/utils/index.ts +1 -0
  315. package/dist/esm/chunk-3IMYDZRT.js.map +0 -7
  316. package/dist/esm/chunk-4IB5ROL6.js.map +0 -7
  317. package/dist/esm/chunk-B243ELKZ.js.map +0 -7
  318. package/dist/esm/chunk-DSYPZETD.js +0 -1
  319. package/dist/esm/chunk-LVZ2T6AY.js.map +0 -7
  320. package/dist/esm/chunk-MLN5ELQR.js.map +0 -7
  321. package/dist/esm/chunk-P5ZPHAQT.js.map +0 -7
  322. package/dist/esm/chunk-SNRPWCHL.js.map +0 -7
  323. package/dist/esm/chunk-XNVA7FCA.js +0 -39
  324. package/dist/esm/chunk-XNVA7FCA.js.map +0 -7
  325. package/dist/esm/chunk-YLL2DKVF.js.map +0 -7
  326. package/dist/esm/chunk-ZHX7Z5IU.js +0 -15
  327. /package/dist/esm/{chunk-NYFCN7EA.js.map → chunk-6GGDGE7D.js.map} +0 -0
  328. /package/dist/esm/{chunk-OUKMP3DO.js.map → chunk-7JT4DKQA.js.map} +0 -0
  329. /package/dist/esm/{chunk-Q5YY6HPF.js.map → chunk-DZVBN6ZI.js.map} +0 -0
  330. /package/dist/esm/{chunk-OC6ULO4M.js.map → chunk-EJLNC5X5.js.map} +0 -0
  331. /package/dist/esm/{chunk-DSYPZETD.js.map → chunk-FIAL4HTE.js.map} +0 -0
  332. /package/dist/esm/{chunk-OZ2IUZIJ.js.map → chunk-HP2NRM7T.js.map} +0 -0
  333. /package/dist/esm/{chunk-RR4UQSOZ.js.map → chunk-I6EUIFUJ.js.map} +0 -0
  334. /package/dist/esm/{chunk-TL4OCKNP.js.map → chunk-LWRY3VIB.js.map} +0 -0
  335. /package/dist/esm/{chunk-N5WGQAHM.js.map → chunk-QWD72EVP.js.map} +0 -0
  336. /package/dist/esm/{chunk-QRHDVVRK.js.map → chunk-VIDKIVA6.js.map} +0 -0
  337. /package/dist/esm/{chunk-O47IW7HD.js.map → chunk-YCE2KOB2.js.map} +0 -0
@@ -226,6 +226,24 @@ var init_filterUndefinedProps = __esm({
226
226
  }
227
227
  });
228
228
 
229
+ // src/utils/filterUnsetValues.ts
230
+ var filterUnsetValues;
231
+ var init_filterUnsetValues = __esm({
232
+ "src/utils/filterUnsetValues.ts"() {
233
+ "use strict";
234
+ filterUnsetValues = (props) => {
235
+ const filtered = {};
236
+ Object.keys(props).forEach((key) => {
237
+ const value = props[key];
238
+ if (value !== void 0 && value !== null && value !== "") {
239
+ filtered[key] = value;
240
+ }
241
+ });
242
+ return filtered;
243
+ };
244
+ }
245
+ });
246
+
229
247
  // src/utils/getSpacingValue.ts
230
248
  var getSpacingValue;
231
249
  var init_getSpacingValue = __esm({
@@ -317,6 +335,7 @@ var init_utils = __esm({
317
335
  init_delay();
318
336
  init_excludeControls();
319
337
  init_filterUndefinedProps();
338
+ init_filterUnsetValues();
320
339
  init_getSpacingValue();
321
340
  init_mergeRefs();
322
341
  init_polyfill_tests();
@@ -1146,15 +1165,18 @@ var init_Text = __esm({
1146
1165
  import_Text = require("@simplybusiness/mobius/src/components/Text/Text.css");
1147
1166
  import_jsx_runtime7 = require("react/jsx-runtime");
1148
1167
  getElementType = (variant, elementType) => {
1149
- if (variant) {
1150
- return ["h1", "h2", "h3", "h4"].includes(variant) ? variant : "p";
1168
+ if (elementType) {
1169
+ return elementType;
1170
+ }
1171
+ if (variant && ["h1", "h2", "h3", "h4"].includes(variant)) {
1172
+ return variant;
1151
1173
  }
1152
- return elementType || "p";
1174
+ return "p";
1153
1175
  };
1154
- Text = ({ ref, elementType: Component = "p", ...props }) => {
1176
+ Text = ({ ref, elementType, ...props }) => {
1155
1177
  const { variant, className, spacing, ...otherProps } = props;
1156
- const elementType = getElementType(variant, Component);
1157
- const variantType = variant || elementType;
1178
+ const Element = getElementType(variant, elementType);
1179
+ const variantType = variant || Element;
1158
1180
  const classes = (0, import_dedupe7.default)(
1159
1181
  "mobius",
1160
1182
  "mobius-text",
@@ -1162,7 +1184,7 @@ var init_Text = __esm({
1162
1184
  { [`--has-line-height-${spacing}`]: spacing },
1163
1185
  className
1164
1186
  );
1165
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Component, { ref, ...otherProps, className: classes });
1187
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Element, { ref, ...otherProps, className: classes });
1166
1188
  };
1167
1189
  Text.displayName = "Text";
1168
1190
  }
@@ -1326,7 +1348,7 @@ var init_Box = __esm({
1326
1348
  ...otherProps
1327
1349
  } = props;
1328
1350
  const classes = (0, import_dedupe9.default)("mobius", "mobius-box", otherProps.className);
1329
- const styleProps = filterUndefinedProps({
1351
+ const fromProps = filterUndefinedProps({
1330
1352
  padding: getSpacingValue(padding),
1331
1353
  paddingInline: getSpacingValue(paddingInline || paddingX),
1332
1354
  paddingBlock: getSpacingValue(paddingBlock || paddingY),
@@ -1339,8 +1361,11 @@ var init_Box = __esm({
1339
1361
  maxWidth,
1340
1362
  maxHeight,
1341
1363
  width,
1342
- height,
1343
- ...style
1364
+ height
1365
+ });
1366
+ const styleProps = filterUndefinedProps({
1367
+ ...fromProps,
1368
+ ...style ? filterUnsetValues(style) : {}
1344
1369
  });
1345
1370
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Element, { ref, style: styleProps, ...otherProps, className: classes });
1346
1371
  };
@@ -2444,7 +2469,7 @@ var init_Grid = __esm({
2444
2469
  import_dedupe23 = __toESM(require("classnames/dedupe"));
2445
2470
  init_utils();
2446
2471
  import_jsx_runtime29 = require("react/jsx-runtime");
2447
- Grid = ({ ref: _ref, ...props }) => {
2472
+ Grid = ({ ref, ...props }) => {
2448
2473
  const {
2449
2474
  columns = 12,
2450
2475
  gap,
@@ -2472,7 +2497,7 @@ var init_Grid = __esm({
2472
2497
  justifyItems,
2473
2498
  ...style
2474
2499
  });
2475
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { style: styles, className: classes, ...rest });
2500
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { ref, style: styles, className: classes, ...rest });
2476
2501
  };
2477
2502
  Grid.displayName = "Grid";
2478
2503
  }
@@ -2497,7 +2522,7 @@ var init_Item2 = __esm({
2497
2522
  {}
2498
2523
  );
2499
2524
  DEFAULT_SPAN = 12;
2500
- GridItem = ({ ref: _ref, ...props }) => {
2525
+ GridItem = ({ ref, ...props }) => {
2501
2526
  const {
2502
2527
  breakpoint: { size: breakpointSize }
2503
2528
  } = useBreakpoint();
@@ -2523,7 +2548,7 @@ var init_Item2 = __esm({
2523
2548
  xxl
2524
2549
  });
2525
2550
  const [responsiveSpan, setResponsiveSpan] = (0, import_react21.useState)();
2526
- const classes = (0, import_dedupe24.default)("mobius-grid__item", className);
2551
+ const classes = (0, import_dedupe24.default)("mobius", "mobius-grid__item", className);
2527
2552
  (0, import_react21.useEffect)(() => {
2528
2553
  setResponsiveSpan(breakpointMap[breakpointSize]);
2529
2554
  }, [breakpointSize, breakpointMap]);
@@ -2532,7 +2557,7 @@ var init_Item2 = __esm({
2532
2557
  alignSelf,
2533
2558
  justifySelf
2534
2559
  };
2535
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { style: { ...styles }, className: classes, ...rest });
2560
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { ref, style: { ...styles }, className: classes, ...rest });
2536
2561
  };
2537
2562
  GridItem.displayName = "GridItem";
2538
2563
  }
@@ -2678,14 +2703,22 @@ var init_List = __esm({
2678
2703
  },
2679
2704
  otherProps.className
2680
2705
  );
2681
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Component, { ref, ...mappedProps, className: classes, children: import_react22.Children.map(children, (child) => {
2682
- if ((0, import_react22.isValidElement)(child)) {
2683
- return (0, import_react22.cloneElement)(child, {
2684
- parentIcon: icon
2685
- });
2706
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2707
+ Component,
2708
+ {
2709
+ ref,
2710
+ ...mappedProps,
2711
+ className: classes,
2712
+ children: import_react22.Children.map(children, (child) => {
2713
+ if ((0, import_react22.isValidElement)(child)) {
2714
+ return (0, import_react22.cloneElement)(child, {
2715
+ parentIcon: icon
2716
+ });
2717
+ }
2718
+ return child;
2719
+ })
2686
2720
  }
2687
- return child;
2688
- }) });
2721
+ );
2689
2722
  };
2690
2723
  List.displayName = "List";
2691
2724
  }
@@ -2856,7 +2889,10 @@ var init_ModalContext = __esm({
2856
2889
  ModalContext = (0, import_react23.createContext)({
2857
2890
  onClose: () => {
2858
2891
  },
2859
- closeLabel: void 0
2892
+ closeLabel: void 0,
2893
+ titleId: void 0,
2894
+ setTitleId: () => {
2895
+ }
2860
2896
  });
2861
2897
  }
2862
2898
  });
@@ -2869,54 +2905,68 @@ var init_useModal = __esm({
2869
2905
  import_react24 = require("react");
2870
2906
  init_ModalContext();
2871
2907
  useModal = () => {
2872
- const { onClose, closeLabel } = (0, import_react24.useContext)(ModalContext);
2873
- return { onClose, closeLabel };
2908
+ const { onClose, closeLabel, titleId, setTitleId } = (0, import_react24.useContext)(ModalContext);
2909
+ return { onClose, closeLabel, titleId, setTitleId };
2874
2910
  };
2875
2911
  }
2876
2912
  });
2877
2913
 
2878
2914
  // src/components/Modal/Header.tsx
2879
- var import_icons8, import_jsx_runtime39, Header2;
2915
+ var import_react25, import_icons8, import_jsx_runtime39, Header2;
2880
2916
  var init_Header2 = __esm({
2881
2917
  "src/components/Modal/Header.tsx"() {
2882
2918
  "use strict";
2919
+ import_react25 = require("react");
2883
2920
  import_icons8 = require("@simplybusiness/icons");
2884
2921
  init_Button2();
2885
2922
  init_Icon2();
2886
2923
  init_useModal();
2887
2924
  import_jsx_runtime39 = require("react/jsx-runtime");
2888
2925
  Header2 = ({ ref, children, ...otherProps }) => {
2889
- const { onClose, closeLabel } = useModal();
2890
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("header", { ref, ...otherProps, className: "mobius-modal__header", children: [
2891
- children,
2892
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2893
- Button,
2894
- {
2895
- "aria-label": "Close",
2896
- variant: "basic",
2897
- onPress: onClose,
2898
- className: "mobius-modal__close",
2899
- children: [
2900
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { icon: import_icons8.cross }),
2901
- " ",
2902
- closeLabel
2903
- ]
2904
- }
2905
- )
2906
- ] });
2926
+ const { onClose, closeLabel, setTitleId } = useModal();
2927
+ const titleId = (0, import_react25.useId)();
2928
+ (0, import_react25.useEffect)(() => {
2929
+ setTitleId(titleId);
2930
+ }, [titleId, setTitleId]);
2931
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2932
+ "header",
2933
+ {
2934
+ ref,
2935
+ ...otherProps,
2936
+ className: "mobius-modal__header",
2937
+ id: titleId,
2938
+ children: [
2939
+ children,
2940
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2941
+ Button,
2942
+ {
2943
+ "aria-label": "Close",
2944
+ variant: "basic",
2945
+ onPress: onClose,
2946
+ className: "mobius-modal__close",
2947
+ children: [
2948
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { icon: import_icons8.cross }),
2949
+ " ",
2950
+ closeLabel
2951
+ ]
2952
+ }
2953
+ )
2954
+ ]
2955
+ }
2956
+ );
2907
2957
  };
2908
2958
  Header2.displayName = "Header";
2909
2959
  }
2910
2960
  });
2911
2961
 
2912
2962
  // src/components/Modal/Modal.tsx
2913
- var import_dedupe32, import_react25, import_Modal, import_jsx_runtime40, TRANSITION_CSS_VARIABLE2, Modal;
2963
+ var import_dedupe32, import_react26, import_Modal, import_jsx_runtime40, TRANSITION_CSS_VARIABLE2, Modal;
2914
2964
  var init_Modal = __esm({
2915
2965
  "src/components/Modal/Modal.tsx"() {
2916
2966
  "use strict";
2917
2967
  "use client";
2918
2968
  import_dedupe32 = __toESM(require("classnames/dedupe"));
2919
- import_react25 = require("react");
2969
+ import_react26 = require("react");
2920
2970
  init_hooks();
2921
2971
  init_utils();
2922
2972
  init_polyfill_tests();
@@ -2936,11 +2986,11 @@ var init_Modal = __esm({
2936
2986
  animation,
2937
2987
  ...rest
2938
2988
  } = props;
2939
- const [shouldTransition, setShouldTransition] = (0, import_react25.useState)(false);
2940
- (0, import_react25.useEffect)(() => {
2989
+ const [shouldTransition, setShouldTransition] = (0, import_react26.useState)(false);
2990
+ (0, import_react26.useEffect)(() => {
2941
2991
  setShouldTransition(supportsDialog());
2942
2992
  }, []);
2943
- const dialogRef = (0, import_react25.useRef)(null);
2993
+ const dialogRef = (0, import_react26.useRef)(null);
2944
2994
  const { close } = useDialog({
2945
2995
  ref: dialogRef,
2946
2996
  isOpen,
@@ -2964,12 +3014,18 @@ var init_Modal = __esm({
2964
3014
  },
2965
3015
  className
2966
3016
  );
2967
- const contextValue = (0, import_react25.useMemo)(
3017
+ const [titleId, setTitleId] = (0, import_react26.useState)(void 0);
3018
+ const handleSetTitleId = (0, import_react26.useCallback)((id) => {
3019
+ setTitleId(id);
3020
+ }, []);
3021
+ const contextValue = (0, import_react26.useMemo)(
2968
3022
  () => ({
2969
3023
  onClose: close,
2970
- closeLabel
3024
+ closeLabel,
3025
+ titleId,
3026
+ setTitleId: handleSetTitleId
2971
3027
  }),
2972
- [close, closeLabel]
3028
+ [close, closeLabel, titleId, handleSetTitleId]
2973
3029
  );
2974
3030
  return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2975
3031
  "dialog",
@@ -2977,6 +3033,7 @@ var init_Modal = __esm({
2977
3033
  ref: mergeRefs([dialogRef, ref]),
2978
3034
  onCancel: close,
2979
3035
  className: modalClasses,
3036
+ "aria-labelledby": titleId,
2980
3037
  ...rest,
2981
3038
  children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ModalContext.Provider, { value: contextValue, children })
2982
3039
  }
@@ -3003,13 +3060,13 @@ var init_Modal2 = __esm({
3003
3060
  });
3004
3061
 
3005
3062
  // src/components/NumberField/NumberField.tsx
3006
- var import_dedupe33, import_react26, import_NumberField, import_jsx_runtime41, NumberField;
3063
+ var import_dedupe33, import_react27, import_NumberField, import_jsx_runtime41, NumberField;
3007
3064
  var init_NumberField = __esm({
3008
3065
  "src/components/NumberField/NumberField.tsx"() {
3009
3066
  "use strict";
3010
3067
  "use client";
3011
3068
  import_dedupe33 = __toESM(require("classnames/dedupe"));
3012
- import_react26 = require("react");
3069
+ import_react27 = require("react");
3013
3070
  init_TextField2();
3014
3071
  import_NumberField = require("@simplybusiness/mobius/src/components/NumberField/NumberField.css");
3015
3072
  import_jsx_runtime41 = require("react/jsx-runtime");
@@ -3028,9 +3085,9 @@ var init_NumberField = __esm({
3028
3085
  onBlur: customOnBlur,
3029
3086
  ...rest
3030
3087
  } = otherProps;
3031
- const focusedInputRef = (0, import_react26.useRef)(null);
3032
- const wheelHandler = (0, import_react26.useCallback)((ev) => ev.preventDefault(), []);
3033
- (0, import_react26.useEffect)(() => {
3088
+ const focusedInputRef = (0, import_react27.useRef)(null);
3089
+ const wheelHandler = (0, import_react27.useCallback)((ev) => ev.preventDefault(), []);
3090
+ (0, import_react27.useEffect)(() => {
3034
3091
  return () => {
3035
3092
  focusedInputRef.current?.removeEventListener("wheel", wheelHandler);
3036
3093
  focusedInputRef.current = null;
@@ -3162,13 +3219,13 @@ var init_ShowHideButton = __esm({
3162
3219
  });
3163
3220
 
3164
3221
  // src/components/PasswordField/PasswordField.tsx
3165
- var import_dedupe34, import_react27, import_PasswordField, import_jsx_runtime44, PasswordField;
3222
+ var import_dedupe34, import_react28, import_PasswordField, import_jsx_runtime44, PasswordField;
3166
3223
  var init_PasswordField = __esm({
3167
3224
  "src/components/PasswordField/PasswordField.tsx"() {
3168
3225
  "use strict";
3169
3226
  "use client";
3170
3227
  import_dedupe34 = __toESM(require("classnames/dedupe"));
3171
- import_react27 = require("react");
3228
+ import_react28 = require("react");
3172
3229
  init_mergeRefs();
3173
3230
  init_TextField2();
3174
3231
  init_ShowHideButton();
@@ -3180,10 +3237,10 @@ var init_PasswordField = __esm({
3180
3237
  autoComplete = "current-password",
3181
3238
  ...props
3182
3239
  }) => {
3183
- const [show, setShow] = (0, import_react27.useState)(false);
3240
+ const [show, setShow] = (0, import_react28.useState)(false);
3184
3241
  const type = show ? "text" : "password";
3185
3242
  const classes = (0, import_dedupe34.default)("mobius-password-field", className);
3186
- const localRef = (0, import_react27.useRef)(null);
3243
+ const localRef = (0, import_react28.useRef)(null);
3187
3244
  const handleShowHideButtonClick = () => {
3188
3245
  const selectionStart = localRef.current?.selectionStart;
3189
3246
  const selectionEnd = localRef.current?.selectionEnd;
@@ -3220,14 +3277,14 @@ var init_PasswordField2 = __esm({
3220
3277
  });
3221
3278
 
3222
3279
  // src/components/Popover/Popover.tsx
3223
- var import_react28, import_icons10, import_dedupe35, import_react29, import_mobius_hooks4, import_Popover, import_jsx_runtime45;
3280
+ var import_react29, import_icons10, import_dedupe35, import_react30, import_mobius_hooks4, import_Popover, import_jsx_runtime45;
3224
3281
  var init_Popover = __esm({
3225
3282
  "src/components/Popover/Popover.tsx"() {
3226
3283
  "use strict";
3227
- import_react28 = require("@floating-ui/react");
3284
+ import_react29 = require("@floating-ui/react");
3228
3285
  import_icons10 = require("@simplybusiness/icons");
3229
3286
  import_dedupe35 = __toESM(require("classnames/dedupe"));
3230
- import_react29 = require("react");
3287
+ import_react30 = require("react");
3231
3288
  import_mobius_hooks4 = require("@simplybusiness/mobius-hooks");
3232
3289
  import_Popover = require("@simplybusiness/mobius/src/components/Popover/Popover.css");
3233
3290
  import_jsx_runtime45 = require("react/jsx-runtime");
@@ -3254,13 +3311,13 @@ function warnAboutInvalidValues(value, minValue, maxValue) {
3254
3311
  console.warn("Progress value is greater than maxValue");
3255
3312
  }
3256
3313
  }
3257
- var import_dedupe36, import_react30, import_Progress, import_jsx_runtime46, sanitizedValue, getLabelComponent, DEFAULT_VALUE, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, Progress;
3314
+ var import_dedupe36, import_react31, import_Progress, import_jsx_runtime46, sanitizedValue, getLabelComponent, DEFAULT_VALUE, DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, Progress;
3258
3315
  var init_Progress = __esm({
3259
3316
  "src/components/Progress/Progress.tsx"() {
3260
3317
  "use strict";
3261
3318
  "use client";
3262
3319
  import_dedupe36 = __toESM(require("classnames/dedupe"));
3263
- import_react30 = require("react");
3320
+ import_react31 = require("react");
3264
3321
  init_Label2();
3265
3322
  init_VisuallyHidden2();
3266
3323
  import_Progress = require("@simplybusiness/mobius/src/components/Progress/Progress.css");
@@ -3297,8 +3354,8 @@ var init_Progress = __esm({
3297
3354
  DEFAULT_MIN_VALUE = 0;
3298
3355
  DEFAULT_MAX_VALUE = 100;
3299
3356
  Progress = ({ ref, ...props }) => {
3300
- const progressId = (0, import_react30.useId)();
3301
- const progressLabelId = (0, import_react30.useId)();
3357
+ const progressId = (0, import_react31.useId)();
3358
+ const progressLabelId = (0, import_react31.useId)();
3302
3359
  const {
3303
3360
  id,
3304
3361
  label,
@@ -3363,13 +3420,13 @@ var init_Progress2 = __esm({
3363
3420
  });
3364
3421
 
3365
3422
  // src/components/Radio/Radio.tsx
3366
- var import_dedupe37, import_react31, import_Radio, import_jsx_runtime47, Radio;
3423
+ var import_dedupe37, import_react32, import_Radio, import_jsx_runtime47, Radio;
3367
3424
  var init_Radio = __esm({
3368
3425
  "src/components/Radio/Radio.tsx"() {
3369
3426
  "use strict";
3370
3427
  "use client";
3371
3428
  import_dedupe37 = __toESM(require("classnames/dedupe"));
3372
- import_react31 = require("react");
3429
+ import_react32 = require("react");
3373
3430
  init_ErrorMessage2();
3374
3431
  init_Label2();
3375
3432
  import_Radio = require("@simplybusiness/mobius/src/components/Radio/Radio.css");
@@ -3397,19 +3454,19 @@ var init_Radio = __esm({
3397
3454
  const isMultiline = label && children;
3398
3455
  const isControlled = selected !== void 0;
3399
3456
  const isChecked = isControlled ? selected === value : defaultChecked;
3400
- const contentRef = (0, import_react31.useRef)(null);
3401
- const prevOverflowRef = (0, import_react31.useRef)({
3457
+ const contentRef = (0, import_react32.useRef)(null);
3458
+ const prevOverflowRef = (0, import_react32.useRef)({
3402
3459
  vertical: false,
3403
3460
  horizontal: false
3404
3461
  });
3405
- const hasIconFirst = (0, import_react31.useMemo)(() => {
3406
- if (!children || import_react31.Children.count(children) === 0) return false;
3407
- const firstChild = import_react31.Children.toArray(children)[0];
3408
- if (!(0, import_react31.isValidElement)(firstChild)) return false;
3462
+ const hasIconFirst = (0, import_react32.useMemo)(() => {
3463
+ if (!children || import_react32.Children.count(children) === 0) return false;
3464
+ const firstChild = import_react32.Children.toArray(children)[0];
3465
+ if (!(0, import_react32.isValidElement)(firstChild)) return false;
3409
3466
  const props2 = firstChild.props;
3410
3467
  return "icon" in props2 && props2.icon !== void 0;
3411
3468
  }, [children]);
3412
- (0, import_react31.useLayoutEffect)(() => {
3469
+ (0, import_react32.useLayoutEffect)(() => {
3413
3470
  if (!contentRef.current || !onOverflow) return;
3414
3471
  if (orientation === "vertical") {
3415
3472
  return;
@@ -3490,13 +3547,13 @@ var init_Radio = __esm({
3490
3547
  });
3491
3548
 
3492
3549
  // src/components/Radio/RadioGroup.tsx
3493
- var import_dedupe38, import_react32, import_jsx_runtime48, getDefaultVal, RadioGroup;
3550
+ var import_dedupe38, import_react33, import_jsx_runtime48, getDefaultVal, RadioGroup;
3494
3551
  var init_RadioGroup = __esm({
3495
3552
  "src/components/Radio/RadioGroup.tsx"() {
3496
3553
  "use strict";
3497
3554
  "use client";
3498
3555
  import_dedupe38 = __toESM(require("classnames/dedupe"));
3499
- import_react32 = require("react");
3556
+ import_react33 = require("react");
3500
3557
  init_hooks();
3501
3558
  init_spaceDelimitedList();
3502
3559
  init_ErrorMessage2();
@@ -3530,15 +3587,15 @@ var init_RadioGroup = __esm({
3530
3587
  ...rest
3531
3588
  } = props;
3532
3589
  const defaultSelected = getDefaultVal(children, value || defaultValue);
3533
- const [selected, setSelected] = (0, import_react32.useState)(defaultSelected);
3534
- const overflowsRef = (0, import_react32.useRef)({});
3535
- const [hasOverflow, setHasOverflow] = (0, import_react32.useState)(false);
3536
- (0, import_react32.useEffect)(() => {
3590
+ const [selected, setSelected] = (0, import_react33.useState)(defaultSelected);
3591
+ const overflowsRef = (0, import_react33.useRef)({});
3592
+ const [hasOverflow, setHasOverflow] = (0, import_react33.useState)(false);
3593
+ (0, import_react33.useEffect)(() => {
3537
3594
  if (value !== void 0) {
3538
3595
  setSelected(value);
3539
3596
  }
3540
3597
  }, [value]);
3541
- const handleOverflow = (0, import_react32.useCallback)(
3598
+ const handleOverflow = (0, import_react33.useCallback)(
3542
3599
  (radioValue, overflow) => {
3543
3600
  overflowsRef.current = {
3544
3601
  ...overflowsRef.current,
@@ -3572,15 +3629,15 @@ var init_RadioGroup = __esm({
3572
3629
  [`--is-${effectiveOrientation}`]: true
3573
3630
  });
3574
3631
  const labelClasses = (0, import_dedupe38.default)(radioClasses, validationClasses);
3575
- const errorMessageId = (0, import_react32.useId)();
3576
- const defaultNameAttrId = (0, import_react32.useId)();
3632
+ const errorMessageId = (0, import_react33.useId)();
3633
+ const defaultNameAttrId = (0, import_react33.useId)();
3577
3634
  const nameAttribute = name || defaultNameAttrId;
3578
3635
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
3579
3636
  const describedBy = spaceDelimitedList([
3580
3637
  shouldErrorMessageShow,
3581
3638
  props["aria-describedby"]
3582
3639
  ]);
3583
- const labelId = (0, import_react32.useId)();
3640
+ const labelId = (0, import_react33.useId)();
3584
3641
  return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
3585
3642
  "div",
3586
3643
  {
@@ -3599,10 +3656,10 @@ var init_RadioGroup = __esm({
3599
3656
  role: "radiogroup",
3600
3657
  children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Stack, { gap: "xs", children: [
3601
3658
  label && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Label, { htmlFor: name, id: labelId, className: labelClasses, children: label }),
3602
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: radioWrapperClasses, children: import_react32.Children.map(children, (child) => {
3603
- if ((0, import_react32.isValidElement)(child)) {
3659
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: radioWrapperClasses, children: import_react33.Children.map(children, (child) => {
3660
+ if ((0, import_react33.isValidElement)(child)) {
3604
3661
  const childValue = child.props.value;
3605
- return (0, import_react32.cloneElement)(
3662
+ return (0, import_react33.cloneElement)(
3606
3663
  child,
3607
3664
  {
3608
3665
  orientation: effectiveOrientation,
@@ -3669,7 +3726,7 @@ var init_Segment = __esm({
3669
3726
  import_dedupe40 = __toESM(require("classnames/dedupe"));
3670
3727
  import_Segment = require("@simplybusiness/mobius/src/components/Segment/Segment.css");
3671
3728
  import_jsx_runtime50 = require("react/jsx-runtime");
3672
- Segment = (props) => {
3729
+ Segment = ({ ref, ...props }) => {
3673
3730
  const { heading, children, colour, inverted, className, ...rest } = props;
3674
3731
  const classes = (0, import_dedupe40.default)(
3675
3732
  "mobius",
@@ -3678,7 +3735,7 @@ var init_Segment = __esm({
3678
3735
  { inverted },
3679
3736
  className
3680
3737
  );
3681
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: classes, ...rest, children: [
3738
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { ref, className: classes, ...rest, children: [
3682
3739
  heading && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mobius-segment__heading", children: heading }),
3683
3740
  children
3684
3741
  ] });
@@ -3697,14 +3754,14 @@ var init_Segment2 = __esm({
3697
3754
  });
3698
3755
 
3699
3756
  // src/components/Select/Select.tsx
3700
- var import_icons11, import_dedupe41, import_react33, import_Select, import_jsx_runtime51, Select;
3757
+ var import_icons11, import_dedupe41, import_react34, import_Select, import_jsx_runtime51, Select;
3701
3758
  var init_Select = __esm({
3702
3759
  "src/components/Select/Select.tsx"() {
3703
3760
  "use strict";
3704
3761
  "use client";
3705
3762
  import_icons11 = require("@simplybusiness/icons");
3706
3763
  import_dedupe41 = __toESM(require("classnames/dedupe"));
3707
- import_react33 = require("react");
3764
+ import_react34 = require("react");
3708
3765
  init_hooks();
3709
3766
  init_useLabel2();
3710
3767
  init_spaceDelimitedList();
@@ -3751,7 +3808,7 @@ var init_Select = __esm({
3751
3808
  otherProps.className
3752
3809
  );
3753
3810
  const iconClasses = (0, import_dedupe41.default)("mobius-select__icon", sharedClasses);
3754
- const errorMessageId = (0, import_react33.useId)();
3811
+ const errorMessageId = (0, import_react34.useId)();
3755
3812
  const shouldErrorMessageShow = errorMessage ? errorMessageId : void 0;
3756
3813
  const describedBy = spaceDelimitedList([
3757
3814
  shouldErrorMessageShow,
@@ -3799,13 +3856,13 @@ var init_Select2 = __esm({
3799
3856
  });
3800
3857
 
3801
3858
  // src/components/Slider/Slider.tsx
3802
- var import_dedupe42, import_react34, import_Slider, import_jsx_runtime52;
3859
+ var import_dedupe42, import_react35, import_Slider, import_jsx_runtime52;
3803
3860
  var init_Slider = __esm({
3804
3861
  "src/components/Slider/Slider.tsx"() {
3805
3862
  "use strict";
3806
3863
  "use client";
3807
3864
  import_dedupe42 = __toESM(require("classnames/dedupe"));
3808
- import_react34 = require("react");
3865
+ import_react35 = require("react");
3809
3866
  import_Slider = require("@simplybusiness/mobius/src/components/Slider/Slider.css");
3810
3867
  import_jsx_runtime52 = require("react/jsx-runtime");
3811
3868
  }
@@ -3820,17 +3877,17 @@ var init_Slider2 = __esm({
3820
3877
  });
3821
3878
 
3822
3879
  // src/components/SVG/SVG.tsx
3823
- var import_react35, import_dedupe43, import_jsx_runtime53, SVG;
3880
+ var import_react36, import_dedupe43, import_jsx_runtime53, SVG;
3824
3881
  var init_SVG = __esm({
3825
3882
  "src/components/SVG/SVG.tsx"() {
3826
3883
  "use strict";
3827
- import_react35 = require("react");
3884
+ import_react36 = require("react");
3828
3885
  import_dedupe43 = __toESM(require("classnames/dedupe"));
3829
3886
  import_jsx_runtime53 = require("react/jsx-runtime");
3830
3887
  SVG = ({ ref, ...props }) => {
3831
3888
  const { children, className, ...otherProps } = props;
3832
3889
  const classes = (0, import_dedupe43.default)("mobius", "mobius-svg", className);
3833
- const svgNode = import_react35.Children.only(children);
3890
+ const svgNode = import_react36.Children.only(children);
3834
3891
  const { children: svgChildren, viewBox, xmlns } = svgNode.props;
3835
3892
  return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
3836
3893
  "svg",
@@ -3857,12 +3914,12 @@ var init_SVG2 = __esm({
3857
3914
  });
3858
3915
 
3859
3916
  // src/components/Switch/Switch.tsx
3860
- var import_react36, import_dedupe44, import_Switch, import_jsx_runtime54, Switch;
3917
+ var import_react37, import_dedupe44, import_Switch, import_jsx_runtime54, Switch;
3861
3918
  var init_Switch = __esm({
3862
3919
  "src/components/Switch/Switch.tsx"() {
3863
3920
  "use strict";
3864
3921
  "use client";
3865
- import_react36 = require("react");
3922
+ import_react37 = require("react");
3866
3923
  import_dedupe44 = __toESM(require("classnames/dedupe"));
3867
3924
  init_VisuallyHidden2();
3868
3925
  import_Switch = require("@simplybusiness/mobius/src/components/Switch/Switch.css");
@@ -3875,8 +3932,8 @@ var init_Switch = __esm({
3875
3932
  isDisabled = false,
3876
3933
  ...otherProps
3877
3934
  } = props;
3878
- const [enabled, setEnabled] = (0, import_react36.useState)(checked);
3879
- (0, import_react36.useEffect)(() => {
3935
+ const [enabled, setEnabled] = (0, import_react37.useState)(checked);
3936
+ (0, import_react37.useEffect)(() => {
3880
3937
  setEnabled(checked);
3881
3938
  }, [checked]);
3882
3939
  const classes = (0, import_dedupe44.default)(
@@ -4005,13 +4062,13 @@ var init_HeaderCell = __esm({
4005
4062
  "use strict";
4006
4063
  import_dedupe50 = __toESM(require("classnames/dedupe"));
4007
4064
  import_jsx_runtime60 = require("react/jsx-runtime");
4008
- HeaderCell = ({ ref, ...props }) => {
4065
+ HeaderCell = ({ ref, scope = "col", ...props }) => {
4009
4066
  const classes = (0, import_dedupe50.default)(
4010
4067
  "mobius",
4011
4068
  "mobius-table__head-cell",
4012
4069
  props.className
4013
4070
  );
4014
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("th", { ...props, ref, className: classes });
4071
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("th", { ...props, ref, scope, className: classes });
4015
4072
  };
4016
4073
  HeaderCell.displayName = "Table.HeaderCell";
4017
4074
  }
@@ -4216,12 +4273,12 @@ var init_Toast = __esm({
4216
4273
  });
4217
4274
 
4218
4275
  // src/components/Trust/Trust.tsx
4219
- var import_dedupe55, import_react37, import_jsx_runtime65;
4276
+ var import_dedupe55, import_react38, import_jsx_runtime65;
4220
4277
  var init_Trust = __esm({
4221
4278
  "src/components/Trust/Trust.tsx"() {
4222
4279
  "use strict";
4223
4280
  import_dedupe55 = __toESM(require("classnames/dedupe"));
4224
- import_react37 = require("react");
4281
+ import_react38 = require("react");
4225
4282
  import_jsx_runtime65 = require("react/jsx-runtime");
4226
4283
  }
4227
4284
  });
@@ -4243,13 +4300,13 @@ var init_Trust2 = __esm({
4243
4300
  });
4244
4301
 
4245
4302
  // src/components/ExpandableText/ExpandableText.tsx
4246
- var import_dedupe56, import_react38, import_ExpandableText, import_jsx_runtime66, ExpandableText;
4303
+ var import_dedupe56, import_react39, import_ExpandableText, import_jsx_runtime66, ExpandableText;
4247
4304
  var init_ExpandableText = __esm({
4248
4305
  "src/components/ExpandableText/ExpandableText.tsx"() {
4249
4306
  "use strict";
4250
4307
  "use client";
4251
4308
  import_dedupe56 = __toESM(require("classnames/dedupe"));
4252
- import_react38 = require("react");
4309
+ import_react39 = require("react");
4253
4310
  init_src();
4254
4311
  import_ExpandableText = require("@simplybusiness/mobius/src/components/ExpandableText/ExpandableText.css");
4255
4312
  import_jsx_runtime66 = require("react/jsx-runtime");
@@ -4266,14 +4323,14 @@ var init_ExpandableText = __esm({
4266
4323
  onToggle,
4267
4324
  ...otherProps
4268
4325
  } = props;
4269
- const [isExpanded, setIsExpanded] = (0, import_react38.useState)(false);
4270
- const [isCollapsed, setIsCollapsed] = (0, import_react38.useState)(false);
4271
- const textRef = (0, import_react38.useRef)(null);
4326
+ const [isExpanded, setIsExpanded] = (0, import_react39.useState)(false);
4327
+ const [isCollapsed, setIsCollapsed] = (0, import_react39.useState)(false);
4328
+ const textRef = (0, import_react39.useRef)(null);
4272
4329
  const { down } = useBreakpoint();
4273
- const baseId = (0, import_react38.useId)();
4330
+ const baseId = (0, import_react39.useId)();
4274
4331
  const expandButtonId = `expandable-text-expand-${baseId}`;
4275
4332
  const shouldCollapse = breakpoint ? down(breakpoint) : true;
4276
- (0, import_react38.useEffect)(() => {
4333
+ (0, import_react39.useEffect)(() => {
4277
4334
  if (!shouldCollapse || !textRef.current) {
4278
4335
  setIsCollapsed(false);
4279
4336
  return;
@@ -4350,17 +4407,17 @@ var MaskedField_exports = {};
4350
4407
  __export(MaskedField_exports, {
4351
4408
  MaskedField: () => MaskedField
4352
4409
  });
4353
- var import_react39, import_react_imask, import_jsx_runtime67, useAcceptHandler, useCombinedRef, useBlurHandler, ControlledMaskedField, UncontrolledMaskedField, MaskedField;
4410
+ var import_react40, import_react_imask, import_jsx_runtime67, useAcceptHandler, useCombinedRef, useBlurHandler, ControlledMaskedField, UncontrolledMaskedField, MaskedField;
4354
4411
  var init_MaskedField = __esm({
4355
4412
  "src/components/MaskedField/MaskedField.tsx"() {
4356
4413
  "use strict";
4357
4414
  "use client";
4358
- import_react39 = require("react");
4415
+ import_react40 = require("react");
4359
4416
  import_react_imask = require("react-imask");
4360
4417
  init_TextField2();
4361
4418
  import_jsx_runtime67 = require("react/jsx-runtime");
4362
4419
  useAcceptHandler = (onChange, useMaskedValue, name) => {
4363
- return (0, import_react39.useCallback)(
4420
+ return (0, import_react40.useCallback)(
4364
4421
  (maskedValue, maskInstance) => {
4365
4422
  if (!onChange) {
4366
4423
  return;
@@ -4376,7 +4433,7 @@ var init_MaskedField = __esm({
4376
4433
  );
4377
4434
  };
4378
4435
  useCombinedRef = (imaskRef, forwardedRef) => {
4379
- return (0, import_react39.useCallback)(
4436
+ return (0, import_react40.useCallback)(
4380
4437
  (element) => {
4381
4438
  imaskRef.current = element;
4382
4439
  if (typeof forwardedRef === "function") {
@@ -4389,7 +4446,7 @@ var init_MaskedField = __esm({
4389
4446
  );
4390
4447
  };
4391
4448
  useBlurHandler = (onBlur, maskRef, useMaskedValue, name) => {
4392
- return (0, import_react39.useCallback)(
4449
+ return (0, import_react40.useCallback)(
4393
4450
  (event) => {
4394
4451
  if (!onBlur || !maskRef.current) {
4395
4452
  return;
@@ -4419,7 +4476,7 @@ var init_MaskedField = __esm({
4419
4476
  const { ref: imaskRef, maskRef, setValue } = (0, import_react_imask.useIMask)(mask, { onAccept });
4420
4477
  const combinedRef = useCombinedRef(imaskRef, forwardedRef);
4421
4478
  const handleBlur = useBlurHandler(onBlur, maskRef, useMaskedValue, name);
4422
- (0, import_react39.useEffect)(() => {
4479
+ (0, import_react40.useEffect)(() => {
4423
4480
  if (!maskRef.current) {
4424
4481
  return;
4425
4482
  }
@@ -4689,15 +4746,15 @@ var init_ErrorMessage2 = __esm({
4689
4746
  });
4690
4747
 
4691
4748
  // src/components/TextField/adornmentWithClassName.ts
4692
- var import_dedupe58, import_react40, adornmentWithClassName;
4749
+ var import_dedupe58, import_react41, adornmentWithClassName;
4693
4750
  var init_adornmentWithClassName = __esm({
4694
4751
  "src/components/TextField/adornmentWithClassName.ts"() {
4695
4752
  "use strict";
4696
4753
  import_dedupe58 = __toESM(require("classnames/dedupe"));
4697
- import_react40 = require("react");
4754
+ import_react41 = require("react");
4698
4755
  adornmentWithClassName = (component, validationClasses, className) => {
4699
4756
  if (!component) return null;
4700
- return (0, import_react40.cloneElement)(component, {
4757
+ return (0, import_react41.cloneElement)(component, {
4701
4758
  className: (0, import_dedupe58.default)(
4702
4759
  component.props.className,
4703
4760
  validationClasses,
@@ -4857,11 +4914,11 @@ var init_utils2 = __esm({
4857
4914
  });
4858
4915
 
4859
4916
  // src/components/Combobox/Option.tsx
4860
- var import_react41, import_dedupe60, import_jsx_runtime71, Option2;
4917
+ var import_react42, import_dedupe60, import_jsx_runtime71, Option2;
4861
4918
  var init_Option3 = __esm({
4862
4919
  "src/components/Combobox/Option.tsx"() {
4863
4920
  "use strict";
4864
- import_react41 = require("react");
4921
+ import_react42 = require("react");
4865
4922
  import_dedupe60 = __toESM(require("classnames/dedupe"));
4866
4923
  init_utils2();
4867
4924
  import_jsx_runtime71 = require("react/jsx-runtime");
@@ -4873,13 +4930,13 @@ var init_Option3 = __esm({
4873
4930
  optionTestIdPrefix,
4874
4931
  id
4875
4932
  }) => {
4876
- const optionRef = (0, import_react41.useRef)(null);
4933
+ const optionRef = (0, import_react42.useRef)(null);
4877
4934
  const optionValue = getOptionValue(option) || "";
4878
4935
  const testId = buildOptionTestId(
4879
4936
  optionTestIdPrefix || "combobox-option",
4880
4937
  optionValue
4881
4938
  );
4882
- (0, import_react41.useEffect)(() => {
4939
+ (0, import_react42.useEffect)(() => {
4883
4940
  if (isHighlighted && optionRef.current && optionRef.current.scrollIntoView) {
4884
4941
  optionRef.current.scrollIntoView({ block: "nearest" });
4885
4942
  }
@@ -4995,10 +5052,10 @@ var init_Listbox = __esm({
4995
5052
 
4996
5053
  // src/components/Combobox/useComboboxHighlight.tsx
4997
5054
  function useComboboxHighlight(options) {
4998
- const [highlightedIndex, setHighlightedIndex] = (0, import_react42.useState)(
5055
+ const [highlightedIndex, setHighlightedIndex] = (0, import_react43.useState)(
4999
5056
  options && options.length ? 0 : -1
5000
5057
  );
5001
- const [highlightedGroupIndex, setHighlightedGroupIndex] = (0, import_react42.useState)(0);
5058
+ const [highlightedGroupIndex, setHighlightedGroupIndex] = (0, import_react43.useState)(0);
5002
5059
  function highlightNextOption() {
5003
5060
  const isGroup = isOptionGroup(options);
5004
5061
  if (!options) {
@@ -5074,11 +5131,11 @@ function useComboboxHighlight(options) {
5074
5131
  clearHighlight
5075
5132
  };
5076
5133
  }
5077
- var import_react42;
5134
+ var import_react43;
5078
5135
  var init_useComboboxHighlight = __esm({
5079
5136
  "src/components/Combobox/useComboboxHighlight.tsx"() {
5080
5137
  "use strict";
5081
- import_react42 = require("react");
5138
+ import_react43 = require("react");
5082
5139
  init_utils2();
5083
5140
  }
5084
5141
  });
@@ -5093,19 +5150,19 @@ function useComboboxOptions({
5093
5150
  skipNextDebounceRef,
5094
5151
  onSearched
5095
5152
  }) {
5096
- const [filteredOptions, setFilteredOptions] = (0, import_react43.useState)(void 0);
5153
+ const [filteredOptions, setFilteredOptions] = (0, import_react44.useState)(void 0);
5097
5154
  const debouncedInputValue = (0, import_mobius_hooks5.useDebouncedValue)(
5098
5155
  inputValue,
5099
5156
  // Don't debounce synchronous options
5100
5157
  options ? 0 : delay
5101
5158
  );
5102
- const [isLoading, setIsLoading] = (0, import_react43.useState)(false);
5103
- const [error3, setError] = (0, import_react43.useState)(null);
5104
- const asyncOptionsRef = (0, import_react43.useRef)(asyncOptions);
5159
+ const [isLoading, setIsLoading] = (0, import_react44.useState)(false);
5160
+ const [error3, setError] = (0, import_react44.useState)(null);
5161
+ const asyncOptionsRef = (0, import_react44.useRef)(asyncOptions);
5105
5162
  asyncOptionsRef.current = asyncOptions;
5106
- const onSearchedRef = (0, import_react43.useRef)(onSearched);
5163
+ const onSearchedRef = (0, import_react44.useRef)(onSearched);
5107
5164
  onSearchedRef.current = onSearched;
5108
- (0, import_react43.useEffect)(() => {
5165
+ (0, import_react44.useEffect)(() => {
5109
5166
  const controller = new AbortController();
5110
5167
  const { signal } = controller;
5111
5168
  const fetchOptions = async () => {
@@ -5163,24 +5220,24 @@ function useComboboxOptions({
5163
5220
  isError: error3 != null
5164
5221
  };
5165
5222
  }
5166
- var import_mobius_hooks5, import_react43;
5223
+ var import_mobius_hooks5, import_react44;
5167
5224
  var init_useComboboxOptions = __esm({
5168
5225
  "src/components/Combobox/useComboboxOptions.ts"() {
5169
5226
  "use strict";
5170
5227
  import_mobius_hooks5 = require("@simplybusiness/mobius-hooks");
5171
- import_react43 = require("react");
5228
+ import_react44 = require("react");
5172
5229
  init_utils2();
5173
5230
  }
5174
5231
  });
5175
5232
 
5176
5233
  // src/components/Combobox/Combobox.tsx
5177
- var import_mobius_hooks6, import_dedupe62, import_react44, import_Combobox, import_jsx_runtime73, ComboboxInner, Combobox;
5234
+ var import_mobius_hooks6, import_dedupe62, import_react45, import_Combobox, import_jsx_runtime73, ComboboxInner, Combobox;
5178
5235
  var init_Combobox = __esm({
5179
5236
  "src/components/Combobox/Combobox.tsx"() {
5180
5237
  "use strict";
5181
5238
  import_mobius_hooks6 = require("@simplybusiness/mobius-hooks");
5182
5239
  import_dedupe62 = __toESM(require("classnames/dedupe"));
5183
- import_react44 = require("react");
5240
+ import_react45 = require("react");
5184
5241
  init_hooks();
5185
5242
  init_TextField2();
5186
5243
  init_VisuallyHidden2();
@@ -5215,11 +5272,11 @@ var init_Combobox = __esm({
5215
5272
  errorMessage,
5216
5273
  ...otherProps
5217
5274
  } = props;
5218
- const skipNextDebounceRef = (0, import_react44.useRef)(false);
5219
- const fallbackRef = (0, import_react44.useRef)(null);
5220
- const [inputValue, setInputValue] = (0, import_react44.useState)(defaultValue || "");
5221
- const [isOpen, setIsOpen] = (0, import_react44.useState)(false);
5222
- const [isChanging, setIsChanging] = (0, import_react44.useState)(false);
5275
+ const skipNextDebounceRef = (0, import_react45.useRef)(false);
5276
+ const fallbackRef = (0, import_react45.useRef)(null);
5277
+ const [inputValue, setInputValue] = (0, import_react45.useState)(defaultValue || "");
5278
+ const [isOpen, setIsOpen] = (0, import_react45.useState)(false);
5279
+ const [isChanging, setIsChanging] = (0, import_react45.useState)(false);
5223
5280
  const { filteredOptions, updateFilteredOptions, isLoading, error: error3 } = useComboboxOptions({
5224
5281
  options,
5225
5282
  asyncOptions,
@@ -5228,7 +5285,7 @@ var init_Combobox = __esm({
5228
5285
  minSearchLength,
5229
5286
  skipNextDebounceRef
5230
5287
  });
5231
- const [validationError, setValidationError] = (0, import_react44.useState)(
5288
+ const [validationError, setValidationError] = (0, import_react45.useState)(
5232
5289
  error3?.message || errorMessage
5233
5290
  );
5234
5291
  const {
@@ -5241,14 +5298,14 @@ var init_Combobox = __esm({
5241
5298
  clearHighlight
5242
5299
  } = useComboboxHighlight(filteredOptions);
5243
5300
  const inputRef = ref || fallbackRef;
5244
- const listboxId = (0, import_react44.useId)();
5245
- const statusId = (0, import_react44.useId)();
5246
- const blurTimeoutRef = (0, import_react44.useRef)(null);
5247
- const userInteractedRef = (0, import_react44.useRef)(false);
5248
- const justSelectedRef = (0, import_react44.useRef)(false);
5301
+ const listboxId = (0, import_react45.useId)();
5302
+ const statusId = (0, import_react45.useId)();
5303
+ const blurTimeoutRef = (0, import_react45.useRef)(null);
5304
+ const userInteractedRef = (0, import_react45.useRef)(false);
5305
+ const justSelectedRef = (0, import_react45.useRef)(false);
5249
5306
  const { down } = useBreakpoint();
5250
5307
  const isMobile = down("md");
5251
- (0, import_react44.useEffect)(() => {
5308
+ (0, import_react45.useEffect)(() => {
5252
5309
  setValidationError(error3?.message || errorMessage);
5253
5310
  }, [error3, errorMessage]);
5254
5311
  const getEmptyValue = () => {
@@ -5277,7 +5334,7 @@ var init_Combobox = __esm({
5277
5334
  justSelectedRef.current = false;
5278
5335
  }
5279
5336
  };
5280
- (0, import_react44.useEffect)(() => {
5337
+ (0, import_react45.useEffect)(() => {
5281
5338
  if (!inputRef || typeof inputRef === "function") return;
5282
5339
  const inputElement = inputRef.current;
5283
5340
  if (!inputElement) return;
@@ -5430,12 +5487,12 @@ var init_Combobox = __esm({
5430
5487
  default:
5431
5488
  }
5432
5489
  };
5433
- (0, import_react44.useEffect)(() => {
5490
+ (0, import_react45.useEffect)(() => {
5434
5491
  if (value) {
5435
5492
  setInputValue(value);
5436
5493
  }
5437
5494
  }, [value]);
5438
- (0, import_react44.useEffect)(() => {
5495
+ (0, import_react45.useEffect)(() => {
5439
5496
  if (asyncOptions && isChanging) {
5440
5497
  setIsOpen(!!filteredOptions && filteredOptions.length > 0);
5441
5498
  }
@@ -5559,12 +5616,12 @@ function optionsFromResponse({ Items }, addressLookupService) {
5559
5616
  }
5560
5617
  }));
5561
5618
  }
5562
- var import_icons13, import_react45, import_jsx_runtime74, AddressLookup;
5619
+ var import_icons13, import_react46, import_jsx_runtime74, AddressLookup;
5563
5620
  var init_AddressLookup = __esm({
5564
5621
  "src/components/AddressLookup/AddressLookup.tsx"() {
5565
5622
  "use strict";
5566
5623
  import_icons13 = require("@simplybusiness/icons");
5567
- import_react45 = require("react");
5624
+ import_react46 = require("react");
5568
5625
  init_Combobox2();
5569
5626
  init_Icon2();
5570
5627
  init_utils3();
@@ -5578,15 +5635,15 @@ var init_AddressLookup = __esm({
5578
5635
  errorMessage,
5579
5636
  ...otherProps
5580
5637
  }) => {
5581
- const [error3, _setError] = (0, import_react45.useState)(null);
5582
- const setError = (0, import_react45.useCallback)(
5638
+ const [error3, _setError] = (0, import_react46.useState)(null);
5639
+ const setError = (0, import_react46.useCallback)(
5583
5640
  (newError) => {
5584
5641
  if (newError != null) onError?.(newError);
5585
5642
  _setError(newError);
5586
5643
  },
5587
5644
  [onError]
5588
5645
  );
5589
- const asyncOptions = (0, import_react45.useCallback)(
5646
+ const asyncOptions = (0, import_react46.useCallback)(
5590
5647
  async (searchTerm) => {
5591
5648
  try {
5592
5649
  const response = await addressLookupService.search(searchTerm);