@preply/ds-docs 9.0.0 → 9.1.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 (252) hide show
  1. package/dist/assets/{00.LayoutFlex.stories-Dg87GSaL.js → 00.LayoutFlex.stories-BYXnY64p.js} +1 -1
  2. package/dist/assets/{00.applications-DuAVl9Uu.js → 00.applications-BsH2V3W_.js} +1 -1
  3. package/dist/assets/{00.favicons.guide-DVJeHh68.js → 00.favicons.guide-eBYOUVUH.js} +1 -1
  4. package/dist/assets/{00.token-explorer-CeGesqx6.js → 00.token-explorer-B2ulyaA-.js} +1 -1
  5. package/dist/assets/{00.using-responsive-props-EFJN_f6o.js → 00.using-responsive-props-CTjUYXUc.js} +1 -1
  6. package/dist/assets/{01.semantic-tokens-BXgFVzXr.js → 01.semantic-tokens-DaqL26gu.js} +1 -1
  7. package/dist/assets/{01.using-shorthand-props-IXrWatuj.js → 01.using-shorthand-props-CwDUu5-3.js} +1 -1
  8. package/dist/assets/{10.Combinations.stories-zbnD3HFM.js → 10.Combinations.stories-DyRUlGlL.js} +1 -1
  9. package/dist/assets/{10.fonts.guide-DCwKlvbu.js → 10.fonts.guide-DeXmgJeZ.js} +1 -1
  10. package/dist/assets/{10.ssr-D01_bXEP.js → 10.ssr-Cc4-BW5H.js} +1 -1
  11. package/dist/assets/11.fonts.explorer-ZD_-8450.js +2 -0
  12. package/dist/assets/{11.ssr.app-router-Bo3eKddM.js → 11.ssr.app-router-D1SE_zWj.js} +1 -1
  13. package/dist/assets/{20.libraries-jKMh3ar0.js → 20.libraries-DfhUsp74.js} +1 -1
  14. package/dist/assets/{2025-q4-ds-cleanup-Bu4orcOa.js → 2025-q4-ds-cleanup-DGnTtnn3.js} +1 -1
  15. package/dist/assets/{30.icons.explorer-C9IE62G2.js → 30.icons.explorer-D0CP2r0K.js} +2 -2
  16. package/dist/assets/{30.storybook-DIp10jfK.js → 30.storybook-fiICi3pf.js} +1 -1
  17. package/dist/assets/{40.illustrations.explorer-D23bTPy_.js → 40.illustrations.explorer-BAusB8PF.js} +1 -1
  18. package/dist/assets/{90.advanced-DqmrsXoy.js → 90.advanced-DcSeiSZJ.js} +1 -1
  19. package/dist/assets/{Accordion-DxNzeFBJ.js → Accordion-BEPo4ld1.js} +4 -4
  20. package/dist/assets/{Accordion.stories-anse7uf1.js → Accordion.stories-BQqvv6_w.js} +1 -1
  21. package/dist/assets/{Accordion.tests.stories-DoGc7az7.js → Accordion.tests.stories-CbPTut9X.js} +1 -1
  22. package/dist/assets/{AlertBanner.primitives.stories-f7g-qsm5.js → AlertBanner.primitives.stories-B8wM25gx.js} +1 -1
  23. package/dist/assets/{AlertBanner.stories-DDbmK3Yc.js → AlertBanner.stories-CMG9DJ2x.js} +21 -9
  24. package/dist/assets/{AlertBannerText-CVGRB8DE.js → AlertBannerText-CmhnTe_E.js} +41 -41
  25. package/dist/assets/{AlertDialog.stories-DnaVSU9D.js → AlertDialog.stories-DizQy7gK.js} +1 -1
  26. package/dist/assets/{Avatar-BysKY9Is.js → Avatar-DooDODLU.js} +1 -1
  27. package/dist/assets/{Avatar.stories-BByTHGPI.js → Avatar.stories-D7qshDw_.js} +1 -1
  28. package/dist/assets/{AvatarWithStatus.stories-F9rm0dfc.js → AvatarWithStatus.stories-Dj6jZHHV.js} +1 -1
  29. package/dist/assets/{Badge-DgknZ2WQ.js → Badge-BOSHGFZw.js} +2 -2
  30. package/dist/assets/{Badge.stories-Cyx1byUJ.js → Badge.stories-D2WAGDpD.js} +1 -1
  31. package/dist/assets/{Box.stories-Bk6oJz6t.js → Box.stories-CHbntlOv.js} +1 -1
  32. package/dist/assets/{BubbleCounter.stories-D5J9h2cc.js → BubbleCounter.stories-DTv3QqdJ.js} +1 -1
  33. package/dist/assets/{Button-Dwk3YNxM.js → Button-C8B7W2Qo.js} +1 -1
  34. package/dist/assets/{Button-8TyghF-W.js → Button-KCBOR544.js} +3 -3
  35. package/dist/assets/{Button.stories-BCxVpHzQ.js → Button.stories-pEk6dWrs.js} +1 -1
  36. package/dist/assets/{ButtonBase-D85CySUD.js → ButtonBase-D1x6yeKi.js} +2 -2
  37. package/dist/assets/{CalloutBanner.stories-CeOpX8jY.js → CalloutBanner.stories-C-mTLhQp.js} +20 -20
  38. package/dist/assets/{Checkbox-sClu0CX-.js → Checkbox-BpQ-rwun.js} +3 -3
  39. package/dist/assets/{Checkbox.stories-DnFx9Fe8.js → Checkbox.stories-DsN55u_O.js} +1 -1
  40. package/dist/assets/{Checkbox.tests.stories-mrARYS3G.js → Checkbox.tests.stories-Bep_STbH.js} +1 -1
  41. package/dist/assets/{Chips.stories-tq4wQiCV.js → Chips.stories-Da8J7RES.js} +1 -1
  42. package/dist/assets/{Color-ASIRERSW-CCDuOJcx.js → Color-ASIRERSW-DWyFOMGN.js} +1 -1
  43. package/dist/assets/{ComposingPopovers.stories-BHJBVB7G.js → ComposingPopovers.stories-qqCHKKj8.js} +1 -1
  44. package/dist/assets/CountryFlag-CSGb4nau.js +49 -0
  45. package/dist/assets/{CountryFlag.stories-PLGwrkX-.js → CountryFlag.stories-DQpEMYMX.js} +1 -1
  46. package/dist/assets/{CountryFlag.test.stories-DyIRt-yG.js → CountryFlag.test.stories-CzcCUxia.js} +1 -1
  47. package/dist/assets/{Dialog-CbS23AlC.js → Dialog-Bmg2gpCM.js} +3 -3
  48. package/dist/assets/Dialog.primitives-DLgD-yog.css +1 -0
  49. package/dist/assets/Dialog.primitives.stories-CSDdsj-9.js +213 -0
  50. package/dist/assets/Dialog.stories-BfS-yGJK.js +248 -0
  51. package/dist/assets/{Dialog.test.stories-BbYJTVXB.js → Dialog.test.stories-DngMxsX4.js} +4 -4
  52. package/dist/assets/{DialogActions-DqsdBLDH.js → DialogActions-DTUDyqFX.js} +34 -34
  53. package/dist/assets/DialogTitle-8iZEMHpI.css +1 -0
  54. package/dist/assets/{DialogTitle-Cwjppmjv.js → DialogTitle-DJPc1ITB.js} +52 -52
  55. package/dist/assets/DismissibleChips-CRFGhm8B.js +1 -0
  56. package/dist/assets/{DismissibleChips.stories-SUVqKwVa.js → DismissibleChips.stories-Bi-ob_1G.js} +1 -1
  57. package/dist/assets/{Divider-UpivNe1W.js → Divider-CPpmQZmq.js} +1 -1
  58. package/dist/assets/{Divider.stories-FPMS1aC5.js → Divider.stories-CfHb5qbc.js} +1 -1
  59. package/dist/assets/{DocsRenderer-GHJI37HO-inYhWn1T.js → DocsRenderer-GHJI37HO-DtP4EKUP.js} +2 -2
  60. package/dist/assets/{DropdownMenu-RBToMXkL.js → DropdownMenu-N9_otewg.js} +430 -430
  61. package/dist/assets/{DropdownMenu.stories-BpEhFeX_.js → DropdownMenu.stories-CEAGHTed.js} +1 -1
  62. package/dist/assets/{FieldButton-D-3o-lMh.js → FieldButton-CCXniKhy.js} +1 -1
  63. package/dist/assets/{FieldButton.stories-Cc6AvbxX.js → FieldButton.stories-CJM_6H-S.js} +1 -1
  64. package/dist/assets/{FormControl-BwXDY9-m.js → FormControl-CygcWV_h.js} +1 -1
  65. package/dist/assets/{FormControl.stories-CI2bBHKa.js → FormControl.stories-C5u8y2E-.js} +1 -1
  66. package/dist/assets/{Heading-IAeZxORQ.js → Heading-Bie8QWaf.js} +1 -1
  67. package/dist/assets/{Heading.stories-B8NU4XH8.js → Heading.stories-D0fztdY8.js} +1 -1
  68. package/dist/assets/{Icon-CeynEPoQ.js → Icon-BX3I9JNh.js} +2 -2
  69. package/dist/assets/{Icon-RSC-DFJrR2oE.js → Icon-RSC-D3qlB5DK.js} +1 -1
  70. package/dist/assets/{Icon.stories-BuiwbRD-.js → Icon.stories-By891-S7.js} +1 -1
  71. package/dist/assets/IconButton-DVKNd7ZK.js +8 -0
  72. package/dist/assets/{IconTile.stories-D1hs9-qb.js → IconTile.stories-Dns_iBHK.js} +1 -1
  73. package/dist/assets/{Input-CqcqWEMs.js → Input-DwA6-keB.js} +18 -18
  74. package/dist/assets/{InputContainer-BFzIl3Vh.js → InputContainer-BM2ePliH.js} +1 -1
  75. package/dist/assets/{IntegrationWithReactHookForm.stories-HiLJZYEt.js → IntegrationWithReactHookForm.stories-mIoeMj7y.js} +1 -1
  76. package/dist/assets/{IntlFormattedCurrency.stories-YQIIjsGq.js → IntlFormattedCurrency.stories-7qKke3dW.js} +9 -9
  77. package/dist/assets/{IntlFormattedDateTime.stories-DLOaS3DY.js → IntlFormattedDateTime.stories-C2pI0ems.js} +7 -7
  78. package/dist/assets/{LayoutFlex-FxpGriXb.js → LayoutFlex-0WdUDfah.js} +1 -1
  79. package/dist/assets/{LayoutFlex-C9OAa1US.js → LayoutFlex-BnIoY5YK.js} +1 -1
  80. package/dist/assets/{LayoutFlexItem-B-MjINJK.js → LayoutFlexItem-9sCC-db-.js} +1 -1
  81. package/dist/assets/{LayoutGrid-DxGs2sRc.js → LayoutGrid-DfyCnoOo.js} +1 -1
  82. package/dist/assets/{LayoutGrid-YA3eCKBR.js → LayoutGrid-DqPWofJQ.js} +1 -1
  83. package/dist/assets/{LayoutGrid.stories-_KpVIpCb.js → LayoutGrid.stories-CPzyKie2.js} +1 -1
  84. package/dist/assets/{LayoutGridItem-C13waGcp.js → LayoutGridItem-BhNbXpRk.js} +1 -1
  85. package/dist/assets/{Link-D4CS5-70.js → Link-C686zlPi.js} +1 -1
  86. package/dist/assets/{Link.stories-dnKLDj_t.js → Link.stories-NTXG_YAN.js} +1 -1
  87. package/dist/assets/{Loader.stories-C_tJzTNQ.js → Loader.stories-CobXaiZW.js} +1 -1
  88. package/dist/assets/MultiSelectChips-DJ1p23QD.js +2 -0
  89. package/dist/assets/{MultiSelectChips.stories-Cup_MZ5f.js → MultiSelectChips.stories-D8qk9Xh6.js} +1 -1
  90. package/dist/assets/{NativeSelectField.stories-yUJmHEFy.js → NativeSelectField.stories-BDO41u_T.js} +21 -21
  91. package/dist/assets/{NumberField-B9tJ_84a.js → NumberField-DmosE2JM.js} +4 -4
  92. package/dist/assets/{NumberField.stories-CWKhXBUS.js → NumberField.stories-Dcw2SaBe.js} +1 -1
  93. package/dist/assets/{ObserveIntersection-cLHrROGT.js → ObserveIntersection-Be6WqdPA.js} +2 -2
  94. package/dist/assets/{ObserveIntersection.stories-vF80i0Li.js → ObserveIntersection.stories-DZmhDs2t.js} +1 -1
  95. package/dist/assets/{OnboardingTooltip-h7CPBh1u.js → OnboardingTooltip-CsTure6K.js} +1 -1
  96. package/dist/assets/{OnboardingTooltip.stories-DkNlz-Ad.js → OnboardingTooltip.stories-C_B-G4_v.js} +1 -1
  97. package/dist/assets/{OnboardingTooltip.tests.stories-B3eXtCbM.js → OnboardingTooltip.tests.stories-CpZhGhGz.js} +1 -1
  98. package/dist/assets/{OnboardingTour-DjRE-J8f.js → OnboardingTour-Dsl4caiq.js} +1 -1
  99. package/dist/assets/{OnboardingTour.stories-Dk65Z8oq.js → OnboardingTour.stories-DqC8M1Kd.js} +2 -2
  100. package/dist/assets/{OnboardingTour.tests.stories-Bnw00zW2.js → OnboardingTour.tests.stories-DGFSuiWj.js} +1 -1
  101. package/dist/assets/{PasswordField-XLhtbx29.js → PasswordField-DQuar8x2.js} +4 -4
  102. package/dist/assets/{PasswordField.stories-BtG0wGS0.js → PasswordField.stories-CZeXEfzi.js} +1 -1
  103. package/dist/assets/{PreplyLogo.stories-D1k24Ctu.js → PreplyLogo.stories-shAJfg57.js} +1 -1
  104. package/dist/assets/{ProgressBar.stories-9msYqEY0.js → ProgressBar.stories-iYTaP7-a.js} +1 -1
  105. package/dist/assets/{ProgressSteps-B2XQcdLG.js → ProgressSteps-Dq6mpMpu.js} +1 -1
  106. package/dist/assets/{ProgressSteps.stories-pl79KFEi.js → ProgressSteps.stories-DHMPLYQI.js} +1 -1
  107. package/dist/assets/{PromoDialog-CxF7WOnO.js → PromoDialog-D8vw3Grl.js} +1 -1
  108. package/dist/assets/{RangeSlider-B2Zouc8q.js → RangeSlider-Bhq0kPco.js} +1 -1
  109. package/dist/assets/{RangeSlider.stories-BAV1yY1C.js → RangeSlider.stories-g3pQNpDu.js} +1 -1
  110. package/dist/assets/{Rating.stories-BQVfxE6g.js → Rating.stories-CjioX0Al.js} +1 -1
  111. package/dist/assets/{RatingInput.stories-43LjC1w-.js → RatingInput.stories-D33p4lyo.js} +2 -2
  112. package/dist/assets/{SelectField-BvfGJpJ1.js → SelectField-Dndb8yfM.js} +12 -12
  113. package/dist/assets/{SelectField.stories-Il6MnDL1.js → SelectField.stories-CvIWxsEK.js} +1 -1
  114. package/dist/assets/{ShowOnIntersection.stories-FpYY0Q8q.js → ShowOnIntersection.stories-dFG1F9xz.js} +1 -1
  115. package/dist/assets/SingleSelectChips-BqEBu1qF.js +2 -0
  116. package/dist/assets/{SingleSelectChips.stories-CJZKH2U4.js → SingleSelectChips.stories-CUP8Bkco.js} +1 -1
  117. package/dist/assets/{Slider-B0S-MnFm.js → Slider-BECc3Wis.js} +1 -1
  118. package/dist/assets/{Slider.stories-B9M2oZ8y.js → Slider.stories-DjmgzkjU.js} +1 -1
  119. package/dist/assets/{Spinner-VeUQXU7V.js → Spinner-lj2QA4al.js} +1 -1
  120. package/dist/assets/{Stars-BBLs0oLi.js → Stars-jpVWvTeN.js} +1 -1
  121. package/dist/assets/{Steps-BxR2mZ1_.js → Steps-GOg1wsKY.js} +1 -1
  122. package/dist/assets/{Steps.stories-Dnws6acU.js → Steps.stories-kIC1j0Ik.js} +1 -1
  123. package/dist/assets/{Switch-CJwqtDn5.js → Switch-7aX4SIla.js} +1 -1
  124. package/dist/assets/{Switch.stories-DhI28GEc.js → Switch.stories-DT7OULK4.js} +1 -1
  125. package/dist/assets/{Text-CjzJNqHA.js → Text-CmJvwKqR.js} +1 -1
  126. package/dist/assets/{Text-CPACpRkz.js → Text-cq49jjad.js} +1 -1
  127. package/dist/assets/{Text.stories-B8yS59PB.js → Text.stories-CS1pqas4.js} +1 -1
  128. package/dist/assets/{TextField-DJcEjzcv.js → TextField-BkMawuql.js} +4 -4
  129. package/dist/assets/{TextField.stories-tVGWW2yJ.js → TextField.stories-CzFG171A.js} +1 -1
  130. package/dist/assets/{TextHighlighted.stories-BRgLkJWh.js → TextHighlighted.stories-CLRQJAB8.js} +1 -1
  131. package/dist/assets/{TextInline.stories-jXEa0vA8.js → TextInline.stories-DSzsl_kb.js} +1 -1
  132. package/dist/assets/{TextareaField-BG6B7Nx9.js → TextareaField-DBMUxHiI.js} +21 -21
  133. package/dist/assets/{TextareaField.stories-BD-9LN8n.js → TextareaField.stories-CUD2MBoL.js} +1 -1
  134. package/dist/assets/{Toast.stories-BKG1hvy6.js → Toast.stories-DPD668gP.js} +1 -1
  135. package/dist/assets/{TokyoUIAttach-8ypdmAyG.js → TokyoUIAttach-BtX3U917.js} +1 -1
  136. package/dist/assets/{TokyoUIAvailability7LateNight-DbyckCtx.js → TokyoUIAvailability7LateNight-CjHQEFhh.js} +1 -1
  137. package/dist/assets/{TokyoUICheck-DyeJxS4m.js → TokyoUICheck-DfGyg7qp.js} +1 -1
  138. package/dist/assets/{TokyoUICheckmark-E1IDF8Dm.js → TokyoUICheckmark-CittwpP4.js} +1 -1
  139. package/dist/assets/{TokyoUIChevronDown-Bqnin0me.js → TokyoUIChevronDown-D9z1Bocr.js} +1 -1
  140. package/dist/assets/{TokyoUIChevronRight-BUlmcwhk.js → TokyoUIChevronRight-DQBrjC0F.js} +1 -1
  141. package/dist/assets/{TokyoUIClose-DpSNWwxX.js → TokyoUIClose-C1pVTvLz.js} +1 -1
  142. package/dist/assets/{TokyoUIEmojiFrowning-Cns9Y9eQ.js → TokyoUIEmojiFrowning-D-sR3DAq.js} +1 -1
  143. package/dist/assets/{TokyoUIErrorWarning-BoJjXvv2.js → TokyoUIErrorWarning-CDZ53m2_.js} +1 -1
  144. package/dist/assets/{TokyoUIExerciseClosedGapsJumble-C_YhJafE.js → TokyoUIExerciseClosedGapsJumble-DYuDUGYW.js} +1 -1
  145. package/dist/assets/{TokyoUIEye-DBRRGjL1.js → TokyoUIEye-Bgb_ZF1l.js} +1 -1
  146. package/dist/assets/{TokyoUIFav-B5fsDXJO.js → TokyoUIFav-B1z6F-nK.js} +1 -1
  147. package/dist/assets/{TokyoUIInfo-B-nyxu9X.js → TokyoUIInfo-CwPA0O_V.js} +1 -1
  148. package/dist/assets/{TokyoUILanguage-DVvpEITD.js → TokyoUILanguage-Cnby-Siw.js} +1 -1
  149. package/dist/assets/{TokyoUILibraryExplore-DpTmvI5A.js → TokyoUILibraryExplore-D3Zqdc29.js} +1 -1
  150. package/dist/assets/{TokyoUILock-BenGJzbt.js → TokyoUILock-BVVVVd2O.js} +1 -1
  151. package/dist/assets/{TokyoUIMessages-wIafFsU2.js → TokyoUIMessages-B0IlDk1q.js} +1 -1
  152. package/dist/assets/{TokyoUIMinus-BEm8txMB.js → TokyoUIMinus-Bev2a7lF.js} +1 -1
  153. package/dist/assets/{TokyoUINotebook-KTkhwr1a.js → TokyoUINotebook-BCMFA3qu.js} +1 -1
  154. package/dist/assets/{TokyoUINotesWithPad-yqIw3i8c.js → TokyoUINotesWithPad-Bi4bu_3q.js} +1 -1
  155. package/dist/assets/{TokyoUIPhone-DeqV10GH.js → TokyoUIPhone-CX3CAtW4.js} +1 -1
  156. package/dist/assets/{TokyoUISettings-AUPAZo6H.js → TokyoUISettings-BlCV0s5R.js} +1 -1
  157. package/dist/assets/{TokyoUISparkle-Rlb1iC0a.js → TokyoUISparkle-C5euAhof.js} +1 -1
  158. package/dist/assets/{TokyoUIStarFilled-D232Uw9P.js → TokyoUIStarFilled-Dm7Rk3-6.js} +1 -1
  159. package/dist/assets/{TokyoUITag-CoRJX_jx.js → TokyoUITag-CxUsuh1h.js} +1 -1
  160. package/dist/assets/{TokyoUIUpload-B4cXgnHx.js → TokyoUIUpload-C50QSO0I.js} +1 -1
  161. package/dist/assets/{TokyoUIUser-utjsvyKG.js → TokyoUIUser-Cb3Rabu0.js} +1 -1
  162. package/dist/assets/{Tooltip-B2g58MT9.js → Tooltip-Zk6DNyQp.js} +1 -1
  163. package/dist/assets/{Tooltip.stories-U-p1zkCO.js → Tooltip.stories-DvCDg7L5.js} +1 -1
  164. package/dist/assets/{Tooltip.tests.stories-CZN7G-4k.js → Tooltip.tests.stories-DhLZuVsr.js} +1 -1
  165. package/dist/assets/{VisuallyHidden-oCB6vAK-.js → VisuallyHidden-lSSiGvdb.js} +1 -1
  166. package/dist/assets/{WithTooltip-IO6J4KBT-C9k24wac.js → WithTooltip-IO6J4KBT-BXUfDxdY.js} +1 -1
  167. package/dist/assets/{align-self-O6ejL7Ql.js → align-self-kXdO3hx1.js} +1 -1
  168. package/dist/assets/{axe-BzWvr5Jj.js → axe-D9-qZHEg.js} +1 -1
  169. package/dist/assets/{breakpoints-BjNHuaYo.js → breakpoints-C7qnntd1.js} +1 -1
  170. package/dist/assets/{breakpoints-C3Ozj99D.js → breakpoints-Cmpvj56z.js} +1 -1
  171. package/dist/assets/{breakpoints-DZ-M3yCb.js → breakpoints-QW-40zGS.js} +1 -1
  172. package/dist/assets/{changelog-DjYuyXm0.js → changelog-BWMxpTM2.js} +33 -1
  173. package/dist/assets/{client-B-EU1hAd.js → client-DvDoBCIp.js} +1 -1
  174. package/dist/assets/componentNames-hc9KR2nX.js +1 -0
  175. package/dist/assets/{constants-Dds16Uxa.js → constants-6ClT3n6m.js} +47 -47
  176. package/dist/assets/createRequiredContext-63KJmEaI.js +241 -0
  177. package/dist/assets/fonts-explorer-BKje7Hq_.css +1 -0
  178. package/dist/assets/fonts-explorer.stories-DP7h1C3f.js +130 -0
  179. package/dist/assets/{formatter-QJ4M4OGQ-BCmZt7NY.js → formatter-QJ4M4OGQ-kybJ6bB6.js} +1 -1
  180. package/dist/assets/{getTokenVar-CcURh2_L.js → getTokenVar-CszfVUbW.js} +1 -1
  181. package/dist/assets/getTokenVar-DntuTYid.js +1 -0
  182. package/dist/assets/{gradientBorders-CDHKf4Q9.js → gradientBorders-DRFre4M2.js} +1 -1
  183. package/dist/assets/{hover-C0jiF-AA.js → hover-D3OYWSUH.js} +1 -1
  184. package/dist/assets/{hover-DKZD2ovS.js → hover-DLl5EEx6.js} +1 -1
  185. package/dist/assets/{hover-B-P2TGdW.js → hover-DVoxXiPd.js} +1 -1
  186. package/dist/assets/{iframe-C8q8wjEm.js → iframe-CpMEswOF.js} +16 -16
  187. package/dist/assets/iframe-DR4kltvM.css +1 -0
  188. package/dist/assets/index-9rU-ZrVj.js +75 -0
  189. package/dist/assets/{index-YHu3r2_4.js → index-B_7ihsZD.js} +1 -1
  190. package/dist/assets/{index-BPdSA514.js → index-Cc28ZUNU.js} +1 -1
  191. package/dist/assets/{index-B2swU3YW.js → index-DT-MbRPK.js} +1 -1
  192. package/dist/assets/{index-BXUrJfTG.js → index-IVtS1ZoW.js} +1 -1
  193. package/dist/assets/{index-DYYdejgZ.js → index-dUCHvwfu.js} +1 -1
  194. package/dist/assets/{index-z06tkxNB.js → index-jLr7d-Kb.js} +1 -1
  195. package/dist/assets/{intro-BnVMZbuP.js → intro-1RVcci_B.js} +1 -1
  196. package/dist/assets/{layout-relative-Dd32P_-n.js → layout-relative-Bq7IHzTJ.js} +1 -1
  197. package/dist/assets/{layout-relative.module-1z75aSwo-DgGwh4VK.js → layout-relative.module-1z75aSwo-B4ha7m6U.js} +1 -1
  198. package/dist/assets/{layout-relative.module-C_WdSsa7.js → layout-relative.module-Bhi7U482.js} +1 -1
  199. package/dist/assets/{mcp-DPh13jjA.js → mcp-D4dEnAH6.js} +1 -1
  200. package/dist/assets/{message-C3RuDR6M.js → message-CTdBLxyt.js} +1 -1
  201. package/dist/assets/{migrating-from-less-BOBBwDyN.js → migrating-from-less-DyPFNe_D.js} +1 -1
  202. package/dist/assets/{playground.stories-ROyNG5YC.js → playground.stories-Cd-KauE2.js} +1 -1
  203. package/dist/assets/{react-18-CrwdWUsF.js → react-18-B6ZQhKaW.js} +1 -1
  204. package/dist/assets/{render-icon-DTP0kMmm.js → render-icon-CiYBms-s.js} +1 -1
  205. package/dist/assets/{render-icon-rjyGnIsi.js → render-icon-c7okze1K.js} +1 -1
  206. package/dist/assets/{shared-strings-CDaZX-3B.js → shared-strings-BChji30Y.js} +1 -1
  207. package/dist/assets/{styled-components.browser.esm-BYN4S5sO.js → styled-components.browser.esm-Cm3dhVk9.js} +1 -1
  208. package/dist/assets/{styled-components.browser.esm-Dlze6hxw.js → styled-components.browser.esm-DsMoKq9m.js} +1 -1
  209. package/dist/assets/{syntaxhighlighter-IQDEPFLK-6Oa5UCHB.js → syntaxhighlighter-IQDEPFLK-ckmVX3NN.js} +1 -1
  210. package/dist/assets/{text-accent-Bbx7l_cl.js → text-accent-DZ_ihUdH.js} +1 -1
  211. package/dist/assets/{text-centered-DmOdIfzx.js → text-centered-B26ac1NU.js} +1 -1
  212. package/dist/assets/{text-centered-Cg_ddFhQ.js → text-centered-DiwR-QSx.js} +1 -1
  213. package/dist/assets/{tokens-DeBguZpw.js → tokens-5M__FcH-.js} +1 -1
  214. package/dist/assets/{tokens-Db4wLFr3.js → tokens-B_sXFQpU.js} +1 -1
  215. package/dist/assets/{tokens-Cl9oUtjC.js → tokens-DO-XJjoF.js} +1 -1
  216. package/dist/assets/{tokens-CQefoo5n.js → tokens-DTCyqZ0W.js} +1 -1
  217. package/dist/assets/{useControllableState-POsCn5P8.js → useControllableState-ouxkeS_b.js} +1 -1
  218. package/dist/assets/useHostname-BVhrcDgi.js +1 -0
  219. package/dist/assets/{useMergeRefs-Cz2RkNaU.js → useMergeRefs-BVh7Ch_S.js} +1 -1
  220. package/dist/assets/{useMergeRefs-DkFVQgA0.js → useMergeRefs-DkQLsYW4.js} +1 -1
  221. package/dist/assets/{useOpenInteractionType-C_sBEUHJ.js → useOpenInteractionType-BBP_TXgz.js} +1 -1
  222. package/dist/assets/{usePortalElement-COVbROrS.js → usePortalElement-Cm2Hqn3J.js} +1 -1
  223. package/dist/assets/{useStableCallback-BE4-kfmF.js → useStableCallback-DHq1eG2Q.js} +1 -1
  224. package/dist/assets/{useToken-DL_qze01.js → useToken-CX1vf7pV.js} +1 -1
  225. package/dist/assets/{welcome-CDeJKqWI.js → welcome-CNokV_38.js} +1 -1
  226. package/dist/assets/{zeroheight-9HpbB1HN.js → zeroheight-8zVSToXs.js} +1 -1
  227. package/dist/iframe.html +2 -2
  228. package/dist/index.json +1 -1
  229. package/dist/preview-stats.json +9569 -9530
  230. package/dist/project.json +1 -1
  231. package/package.json +5 -5
  232. package/pages/30.guides/70.assets/11.fonts.explorer.mdx +4 -8
  233. package/pages/30.guides/70.assets/components/FontsExplorer/LanguageCard.tsx +101 -77
  234. package/pages/30.guides/70.assets/components/IllustrationsList.tsx +1 -0
  235. package/pages/30.guides/70.assets/fonts-explorer.stories.tsx +14 -0
  236. package/dist/assets/11.fonts-DNWYfYg9.css +0 -1
  237. package/dist/assets/11.fonts.explorer-DIrAevD7.js +0 -130
  238. package/dist/assets/CountryFlag-BfP2Z-xa.js +0 -49
  239. package/dist/assets/Dialog.primitives-Bjw8AO3e.css +0 -1
  240. package/dist/assets/Dialog.primitives.stories-DRUk60bF.js +0 -246
  241. package/dist/assets/Dialog.stories-bIEy9TKX.js +0 -251
  242. package/dist/assets/DialogTitle-CiauK9kk.css +0 -1
  243. package/dist/assets/DismissibleChips-nrw1ViqW.js +0 -1
  244. package/dist/assets/IconButton-CT1U16hq.js +0 -8
  245. package/dist/assets/MultiSelectChips-BykmuV_j.js +0 -2
  246. package/dist/assets/SingleSelectChips-Bnoxobtc.js +0 -2
  247. package/dist/assets/componentNames-Dts5uwdK.js +0 -1
  248. package/dist/assets/createRequiredContext-CPJES7T4.js +0 -241
  249. package/dist/assets/getTokenVar-B4d49odp.js +0 -1
  250. package/dist/assets/iframe-u_WKqRSx.css +0 -1
  251. package/dist/assets/index-BZjlzf6m.js +0 -75
  252. package/dist/assets/useHostname-MecFXBKz.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as o,M as s}from"./iframe-C8q8wjEm.js";import{useMDXComponents as t}from"./index-BPdSA514.js";import"./preload-helper-Dp1pzeXC.js";function n(r){const e={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...t(),...r.components};return o.jsxs(o.Fragment,{children:[o.jsx(s,{title:"Guides/Installation/Storybook"}),`
1
+ import{j as o,M as s}from"./iframe-CpMEswOF.js";import{useMDXComponents as t}from"./index-Cc28ZUNU.js";import"./preload-helper-Dp1pzeXC.js";function n(r){const e={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...t(),...r.components};return o.jsxs(o.Fragment,{children:[o.jsx(s,{title:"Guides/Installation/Storybook"}),`
2
2
  `,o.jsx(e.h1,{id:"installation-storybook",children:"Installation: Storybook"}),`
3
3
  `,o.jsxs(e.p,{children:["This guide applies to Storybook setups that document Preply components libraries, and assumes you have read and followed the steps outlined in the ",o.jsx(e.a,{href:"/story/guides-installation-libraries--page",children:"Installation: Libaries"})," guide."]}),`
4
4
  `,o.jsx(e.h2,{id:"packages",children:"Packages"}),`
@@ -1,4 +1,4 @@
1
- import{j as t,M as a}from"./iframe-C8q8wjEm.js";import{useMDXComponents as r}from"./index-BPdSA514.js";import{L as c}from"./LayoutGrid-DxGs2sRc.js";import{d as e}from"./styled-components.browser.esm-BYN4S5sO.js";import{g as i}from"./getTokenVar-B4d49odp.js";import{s as u,c as l}from"./tokens-CQefoo5n.js";import"./preload-helper-Dp1pzeXC.js";import"./breakpoints-BfMlrtxE.js";import"./layout-relative.module-1z75aSwo-DgGwh4VK.js";import"./constants-DYYVurUY.js";import"./filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js";import"./componentNames-Dts5uwdK.js";import"./emotion-unitless.esm-BZwEwAnk.js";const n=["https://static.preply.com/ds/illustrations/tokyo-ui/airplain.svg","https://static.preply.com/ds/illustrations/tokyo-ui/arrow.svg","https://static.preply.com/ds/illustrations/tokyo-ui/arrows-multiple.svg","https://static.preply.com/ds/illustrations/tokyo-ui/arrows-upwards.svg","https://static.preply.com/ds/illustrations/tokyo-ui/artist.svg","https://static.preply.com/ds/illustrations/tokyo-ui/awesome.svg","https://static.preply.com/ds/illustrations/tokyo-ui/back-to-school.svg","https://static.preply.com/ds/illustrations/tokyo-ui/bar-graph.svg","https://static.preply.com/ds/illustrations/tokyo-ui/bell.svg","https://static.preply.com/ds/illustrations/tokyo-ui/booking-a-lesson.svg","https://static.preply.com/ds/illustrations/tokyo-ui/books.svg","https://static.preply.com/ds/illustrations/tokyo-ui/books-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/books-3.svg","https://static.preply.com/ds/illustrations/tokyo-ui/brain.svg","https://static.preply.com/ds/illustrations/tokyo-ui/browser-permissions-chromium.svg","https://static.preply.com/ds/illustrations/tokyo-ui/browser-permissions-safari.svg","https://static.preply.com/ds/illustrations/tokyo-ui/bubbles.svg","https://static.preply.com/ds/illustrations/tokyo-ui/calendar.svg","https://static.preply.com/ds/illustrations/tokyo-ui/calendar-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/checkmark.svg","https://static.preply.com/ds/illustrations/tokyo-ui/clock.svg","https://static.preply.com/ds/illustrations/tokyo-ui/clock-yellow.svg","https://static.preply.com/ds/illustrations/tokyo-ui/clocks.svg","https://static.preply.com/ds/illustrations/tokyo-ui/coins.svg","https://static.preply.com/ds/illustrations/tokyo-ui/committed.svg","https://static.preply.com/ds/illustrations/tokyo-ui/confetti.svg","https://static.preply.com/ds/illustrations/tokyo-ui/cosmopolite.svg","https://static.preply.com/ds/illustrations/tokyo-ui/desk.svg","https://static.preply.com/ds/illustrations/tokyo-ui/desk-supplies.svg","https://static.preply.com/ds/illustrations/tokyo-ui/discount-badge.svg","https://static.preply.com/ds/illustrations/tokyo-ui/disco-ball.svg","https://static.preply.com/ds/illustrations/tokyo-ui/dog.svg","https://static.preply.com/ds/illustrations/tokyo-ui/first-steps.svg","https://static.preply.com/ds/illustrations/tokyo-ui/game-on.svg","https://static.preply.com/ds/illustrations/tokyo-ui/getting-started-down.svg","https://static.preply.com/ds/illustrations/tokyo-ui/getting-started.svg","https://static.preply.com/ds/illustrations/tokyo-ui/globe-spot.svg","https://static.preply.com/ds/illustrations/tokyo-ui/great-homework.svg","https://static.preply.com/ds/illustrations/tokyo-ui/growth.svg","https://static.preply.com/ds/illustrations/tokyo-ui/guitar.svg","https://static.preply.com/ds/illustrations/tokyo-ui/hard-work-1.svg","https://static.preply.com/ds/illustrations/tokyo-ui/hard-work-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/heart.svg","https://static.preply.com/ds/illustrations/tokyo-ui/it-guru.svg","https://static.preply.com/ds/illustrations/tokyo-ui/lamp-and-books.svg","https://static.preply.com/ds/illustrations/tokyo-ui/language-flash-cards.svg","https://static.preply.com/ds/illustrations/tokyo-ui/laptop.svg","https://static.preply.com/ds/illustrations/tokyo-ui/laptop-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/magnifying-glass.svg","https://static.preply.com/ds/illustrations/tokyo-ui/making-progress.svg","https://static.preply.com/ds/illustrations/tokyo-ui/map.svg","https://static.preply.com/ds/illustrations/tokyo-ui/meeting-with-tutor-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/meeting-with-tutor.svg","https://static.preply.com/ds/illustrations/tokyo-ui/messages.svg","https://static.preply.com/ds/illustrations/tokyo-ui/messaging.svg","https://static.preply.com/ds/illustrations/tokyo-ui/mobile-app.svg","https://static.preply.com/ds/illustrations/tokyo-ui/notes.svg","https://static.preply.com/ds/illustrations/tokyo-ui/open-book.svg","https://static.preply.com/ds/illustrations/tokyo-ui/pause-button.svg","https://static.preply.com/ds/illustrations/tokyo-ui/pencil-and-pen-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/pencil-and-pen.svg","https://static.preply.com/ds/illustrations/tokyo-ui/pig.svg","https://static.preply.com/ds/illustrations/tokyo-ui/play-button.svg","https://static.preply.com/ds/illustrations/tokyo-ui/polyglot-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/polyglot-pink.svg","https://static.preply.com/ds/illustrations/tokyo-ui/polyglot.svg","https://static.preply.com/ds/illustrations/tokyo-ui/present.svg","https://static.preply.com/ds/illustrations/tokyo-ui/professional.svg","https://static.preply.com/ds/illustrations/tokyo-ui/progress-steps.svg","https://static.preply.com/ds/illustrations/tokyo-ui/quote.svg","https://static.preply.com/ds/illustrations/tokyo-ui/rising-arrows.svg","https://static.preply.com/ds/illustrations/tokyo-ui/rock-on.svg","https://static.preply.com/ds/illustrations/tokyo-ui/routine-master.svg","https://static.preply.com/ds/illustrations/tokyo-ui/serious-learner.svg","https://static.preply.com/ds/illustrations/tokyo-ui/sheet.svg","https://static.preply.com/ds/illustrations/tokyo-ui/smiley.svg","https://static.preply.com/ds/illustrations/tokyo-ui/speech-bubble.svg","https://static.preply.com/ds/illustrations/tokyo-ui/star_coin.svg","https://static.preply.com/ds/illustrations/tokyo-ui/stop-button.svg","https://static.preply.com/ds/illustrations/tokyo-ui/stopwatch.svg","https://static.preply.com/ds/illustrations/tokyo-ui/system-permissions.svg","https://static.preply.com/ds/illustrations/tokyo-ui/testing-the-water.svg","https://static.preply.com/ds/illustrations/tokyo-ui/three-arrows.svg","https://static.preply.com/ds/illustrations/tokyo-ui/thumbs-up.svg","https://static.preply.com/ds/illustrations/tokyo-ui/you-did-great-today.svg","https://static.preply.com/ds/illustrations/tokyo-ui/warning.svg","https://static.preply.com/ds/illustrations/tokyo-ui/flashcards.svg"],y=e.div`
1
+ import{j as t,M as a}from"./iframe-CpMEswOF.js";import{useMDXComponents as r}from"./index-Cc28ZUNU.js";import{L as c}from"./LayoutGrid-DfyCnoOo.js";import{d as e}from"./styled-components.browser.esm-Cm3dhVk9.js";import{g as i}from"./getTokenVar-DntuTYid.js";import{s as u,c as l}from"./tokens-DTCyqZ0W.js";import"./preload-helper-Dp1pzeXC.js";import"./breakpoints-BfMlrtxE.js";import"./layout-relative.module-1z75aSwo-B4ha7m6U.js";import"./constants-DYYVurUY.js";import"./filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js";import"./componentNames-hc9KR2nX.js";import"./emotion-unitless.esm-BZwEwAnk.js";const n=["https://static.preply.com/ds/illustrations/tokyo-ui/airplain.svg","https://static.preply.com/ds/illustrations/tokyo-ui/arrow.svg","https://static.preply.com/ds/illustrations/tokyo-ui/arrows-multiple.svg","https://static.preply.com/ds/illustrations/tokyo-ui/arrows-upwards.svg","https://static.preply.com/ds/illustrations/tokyo-ui/artist.svg","https://static.preply.com/ds/illustrations/tokyo-ui/awesome.svg","https://static.preply.com/ds/illustrations/tokyo-ui/back-to-school.svg","https://static.preply.com/ds/illustrations/tokyo-ui/bar-graph.svg","https://static.preply.com/ds/illustrations/tokyo-ui/bell.svg","https://static.preply.com/ds/illustrations/tokyo-ui/booking-a-lesson.svg","https://static.preply.com/ds/illustrations/tokyo-ui/books.svg","https://static.preply.com/ds/illustrations/tokyo-ui/books-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/books-3.svg","https://static.preply.com/ds/illustrations/tokyo-ui/brain.svg","https://static.preply.com/ds/illustrations/tokyo-ui/browser-permissions-chromium.svg","https://static.preply.com/ds/illustrations/tokyo-ui/browser-permissions-safari.svg","https://static.preply.com/ds/illustrations/tokyo-ui/bubbles.svg","https://static.preply.com/ds/illustrations/tokyo-ui/calendar.svg","https://static.preply.com/ds/illustrations/tokyo-ui/calendar-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/checkmark.svg","https://static.preply.com/ds/illustrations/tokyo-ui/clock.svg","https://static.preply.com/ds/illustrations/tokyo-ui/clock-yellow.svg","https://static.preply.com/ds/illustrations/tokyo-ui/clocks.svg","https://static.preply.com/ds/illustrations/tokyo-ui/coins.svg","https://static.preply.com/ds/illustrations/tokyo-ui/committed.svg","https://static.preply.com/ds/illustrations/tokyo-ui/confetti.svg","https://static.preply.com/ds/illustrations/tokyo-ui/cosmopolite.svg","https://static.preply.com/ds/illustrations/tokyo-ui/desk.svg","https://static.preply.com/ds/illustrations/tokyo-ui/desk-supplies.svg","https://static.preply.com/ds/illustrations/tokyo-ui/discount-badge.svg","https://static.preply.com/ds/illustrations/tokyo-ui/disco-ball.svg","https://static.preply.com/ds/illustrations/tokyo-ui/dog.svg","https://static.preply.com/ds/illustrations/tokyo-ui/first-steps.svg","https://static.preply.com/ds/illustrations/tokyo-ui/game-on.svg","https://static.preply.com/ds/illustrations/tokyo-ui/getting-started-down.svg","https://static.preply.com/ds/illustrations/tokyo-ui/getting-started.svg","https://static.preply.com/ds/illustrations/tokyo-ui/globe-spot.svg","https://static.preply.com/ds/illustrations/tokyo-ui/great-homework.svg","https://static.preply.com/ds/illustrations/tokyo-ui/growth.svg","https://static.preply.com/ds/illustrations/tokyo-ui/guitar.svg","https://static.preply.com/ds/illustrations/tokyo-ui/hard-work-1.svg","https://static.preply.com/ds/illustrations/tokyo-ui/hard-work-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/heart.svg","https://static.preply.com/ds/illustrations/tokyo-ui/it-guru.svg","https://static.preply.com/ds/illustrations/tokyo-ui/lamp-and-books.svg","https://static.preply.com/ds/illustrations/tokyo-ui/language-flash-cards.svg","https://static.preply.com/ds/illustrations/tokyo-ui/laptop.svg","https://static.preply.com/ds/illustrations/tokyo-ui/laptop-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/magnifying-glass.svg","https://static.preply.com/ds/illustrations/tokyo-ui/making-progress.svg","https://static.preply.com/ds/illustrations/tokyo-ui/map.svg","https://static.preply.com/ds/illustrations/tokyo-ui/meeting-with-tutor-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/meeting-with-tutor.svg","https://static.preply.com/ds/illustrations/tokyo-ui/messages.svg","https://static.preply.com/ds/illustrations/tokyo-ui/messaging.svg","https://static.preply.com/ds/illustrations/tokyo-ui/mobile-app.svg","https://static.preply.com/ds/illustrations/tokyo-ui/notes.svg","https://static.preply.com/ds/illustrations/tokyo-ui/open-book.svg","https://static.preply.com/ds/illustrations/tokyo-ui/pause-button.svg","https://static.preply.com/ds/illustrations/tokyo-ui/pencil-and-pen-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/pencil-and-pen.svg","https://static.preply.com/ds/illustrations/tokyo-ui/pig.svg","https://static.preply.com/ds/illustrations/tokyo-ui/play-button.svg","https://static.preply.com/ds/illustrations/tokyo-ui/polyglot-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/polyglot-pink.svg","https://static.preply.com/ds/illustrations/tokyo-ui/polyglot.svg","https://static.preply.com/ds/illustrations/tokyo-ui/present.svg","https://static.preply.com/ds/illustrations/tokyo-ui/professional.svg","https://static.preply.com/ds/illustrations/tokyo-ui/progress-steps.svg","https://static.preply.com/ds/illustrations/tokyo-ui/quote.svg","https://static.preply.com/ds/illustrations/tokyo-ui/rising-arrows.svg","https://static.preply.com/ds/illustrations/tokyo-ui/rock-on.svg","https://static.preply.com/ds/illustrations/tokyo-ui/routine-master.svg","https://static.preply.com/ds/illustrations/tokyo-ui/serious-learner.svg","https://static.preply.com/ds/illustrations/tokyo-ui/sheet.svg","https://static.preply.com/ds/illustrations/tokyo-ui/smiley.svg","https://static.preply.com/ds/illustrations/tokyo-ui/speech-bubble.svg","https://static.preply.com/ds/illustrations/tokyo-ui/star_coin.svg","https://static.preply.com/ds/illustrations/tokyo-ui/stop-button.svg","https://static.preply.com/ds/illustrations/tokyo-ui/stopwatch.svg","https://static.preply.com/ds/illustrations/tokyo-ui/system-permissions.svg","https://static.preply.com/ds/illustrations/tokyo-ui/testing-the-water.svg","https://static.preply.com/ds/illustrations/tokyo-ui/three-arrows.svg","https://static.preply.com/ds/illustrations/tokyo-ui/thumbs-up.svg","https://static.preply.com/ds/illustrations/tokyo-ui/you-did-great-today.svg","https://static.preply.com/ds/illustrations/tokyo-ui/warning.svg","https://static.preply.com/ds/illustrations/tokyo-ui/flashcards.svg","https://static.preply.com/ds/illustrations/tokyo-ui/abc-dice.svg"],y=e.div`
2
2
  padding: ${i(u[12])};
3
3
  -webkit-background-size: 50px 50px;
4
4
  -moz-background-size: 50px 50px;
@@ -1,4 +1,4 @@
1
- import{j as e,M as i}from"./iframe-C8q8wjEm.js";import{useMDXComponents as t}from"./index-BPdSA514.js";import"./preload-helper-Dp1pzeXC.js";function r(n){const o={a:"a",code:"code",h1:"h1",p:"p",pre:"pre",...t(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Guides/Installation/Advanced"}),`
1
+ import{j as e,M as i}from"./iframe-CpMEswOF.js";import{useMDXComponents as t}from"./index-Cc28ZUNU.js";import"./preload-helper-Dp1pzeXC.js";function r(n){const o={a:"a",code:"code",h1:"h1",p:"p",pre:"pre",...t(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Guides/Installation/Advanced"}),`
2
2
  `,e.jsx(o.h1,{id:"installation-advanced",children:"Installation: Advanced"}),`
3
3
  `,e.jsxs(o.p,{children:["This page is about rolling out your own alternative to ",e.jsx(o.code,{children:"<RootProvider/>"})," (advanced usage)."]}),`
4
4
  `,e.jsxs(o.p,{children:["If you are looking for how to install, refer to the ",e.jsx(o.a,{href:"/story/guides-installation-applications--page",children:"installation guides"})," instead."]}),`
@@ -1,9 +1,9 @@
1
- import{r as o,j as r,g as s}from"./iframe-C8q8wjEm.js";import{F as y}from"./TokyoUIChevronDown-Bqnin0me.js";import{I as A}from"./Icon-CeynEPoQ.js";import{T as f}from"./Text-CPACpRkz.js";import{u as g}from"./useMergeRefs-DkFVQgA0.js";import{w as _}from"./componentNames-Dts5uwdK.js";const w="accordion__OKb-C",p={accordion:w,"--dsInternalSimulation-focus":"_--dsInternalSimulation-focus__7V0NR","--dsInternalSimulation-noAnimation":"_--dsInternalSimulation-noAnimation__nuNUW"};function I({ref:n,onOpenChange:e}){const a=o.useRef(null),l=g(a,n);return o.useEffect(()=>{if(!a.current)return;const t=a.current,i=()=>{e==null||e(t.open)};return t&&t.addEventListener("toggle",i),()=>{t&&t.removeEventListener("toggle",i)}},[e]),{mergedRef:e||n?l:null}}const c=({dataset:n,children:e,"aria-label":a})=>r.jsx("div",{className:p.accordion,"aria-label":a,...s(n),"data-preply-ds-component":_.Accordion,children:e}),u=o.forwardRef(function({open:e,name:a,dataset:l,children:t,onOpenChange:i,dsInternalSimulation:v},b){const{mergedRef:h}=I({ref:b,onOpenChange:i});return r.jsx("details",{ref:h,name:a,open:e,...s(l),className:p[`--dsInternalSimulation-${v}`],children:t})}),d=o.forwardRef(function({dataset:e,children:a,onClick:l},t){return r.jsxs("summary",{ref:t,...s(e),onClick:l,children:[r.jsx(f,{variant:"default-semibold",children:a}),r.jsx(A,{svg:y})]})}),m=o.forwardRef(function({dataset:e,children:a},l){return r.jsx(f,{tag:"div",variant:"small-regular",ref:l,...s(e),children:a})});try{c.displayName="Accordion",c.__docgenInfo={description:"An Accordion container.\n\nAdd `AccordionItem` children to render a list of disclosable contents.",displayName:"Accordion",props:{dataset:{defaultValue:null,description:`Sets data attributes on the DOM element.
1
+ import{r as o,j as r,g as s}from"./iframe-CpMEswOF.js";import{F as y}from"./TokyoUIChevronDown-D9z1Bocr.js";import{I as A}from"./Icon-BX3I9JNh.js";import{T as f}from"./Text-cq49jjad.js";import{u as g}from"./useMergeRefs-DkQLsYW4.js";import{w as _}from"./componentNames-hc9KR2nX.js";const w="accordion__OKb-C",p={accordion:w,"--dsInternalSimulation-focus":"_--dsInternalSimulation-focus__7V0NR","--dsInternalSimulation-noAnimation":"_--dsInternalSimulation-noAnimation__nuNUW"};function I({ref:n,onOpenChange:e}){const a=o.useRef(null),l=g(a,n);return o.useEffect(()=>{if(!a.current)return;const t=a.current,i=()=>{e==null||e(t.open)};return t&&t.addEventListener("toggle",i),()=>{t&&t.removeEventListener("toggle",i)}},[e]),{mergedRef:e||n?l:null}}const c=({dataset:n,children:e,"aria-label":a})=>r.jsx("div",{className:p.accordion,"aria-label":a,...s(n),"data-preply-ds-component":_.Accordion,children:e}),u=o.forwardRef(function({open:e,name:a,dataset:l,children:t,onOpenChange:i,dsInternalSimulation:v},b){const{mergedRef:h}=I({ref:b,onOpenChange:i});return r.jsx("details",{ref:h,name:a,open:e,...s(l),className:p[`--dsInternalSimulation-${v}`],children:t})}),d=o.forwardRef(function({dataset:e,children:a,onClick:l},t){return r.jsxs("summary",{ref:t,...s(e),onClick:l,children:[r.jsx(f,{variant:"default-semibold",children:a}),r.jsx(A,{svg:y})]})}),m=o.forwardRef(function({dataset:e,children:a},l){return r.jsx(f,{tag:"div",variant:"small-regular",ref:l,...s(e),children:a})});try{c.displayName="Accordion",c.__docgenInfo={description:"An Accordion container.\n\nAdd `AccordionItem` children to render a list of disclosable contents.",displayName:"Accordion",props:{dataset:{defaultValue:null,description:`Sets data attributes on the DOM element.
2
2
  @example <Accordion dataset={{ 'qa-id': 'benefits' }} /> // will add data-qa-id="benefits" to the HTML element.`,name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-label":{defaultValue:null,description:`Defines a string value that labels the current element.
3
- @see aria-labelledby.`,name:"aria-label",required:!1,type:{name:"enum",value:[{value:"string"}]}}}}}catch{}try{u.displayName="AccordionItem",u.__docgenInfo={description:"A single `Accordion` item, the wrapper of AccordionHeader and AccordionContent.",displayName:"AccordionItem",props:{"aria-label":{defaultValue:null,description:`Defines a string value that labels the current element.
3
+ @see aria-labelledby.`,name:"aria-label",required:!1,type:{name:"enum",value:[{value:"string"}]}}}}}catch{}try{u.displayName="AccordionItem",u.__docgenInfo={description:"A single `Accordion` item, the wrapper of AccordionHeader and AccordionContent.",displayName:"AccordionItem",props:{"aria-describedby":{defaultValue:null,description:`Identifies the element (or elements) that describes the object.
4
+ @see aria-labelledby`,name:"aria-describedby",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-label":{defaultValue:null,description:`Defines a string value that labels the current element.
4
5
  @see aria-labelledby.`,name:"aria-label",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-labelledby":{defaultValue:null,description:`Identifies the element (or elements) that labels the current element.
5
- @see aria-describedby.`,name:"aria-labelledby",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-describedby":{defaultValue:null,description:`Identifies the element (or elements) that describes the object.
6
- @see aria-labelledby`,name:"aria-describedby",required:!1,type:{name:"enum",value:[{value:"string"}]}},open:{defaultValue:null,description:"",name:"open",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},onOpenChange:{defaultValue:null,description:"Called whenever the users open/close the Accordion item (mapped to the internal HTML Details's\n`toggle` event).",name:"onOpenChange",required:!1,type:{name:"enum",value:[{value:"(open: boolean) => void"}]}},name:{defaultValue:null,description:`Allows to create exclusive Accordions. Just pass the same \`name\` to all the AccordionItem
6
+ @see aria-describedby.`,name:"aria-labelledby",required:!1,type:{name:"enum",value:[{value:"string"}]}},open:{defaultValue:null,description:"",name:"open",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},onOpenChange:{defaultValue:null,description:"Called whenever the users open/close the Accordion item (mapped to the internal HTML Details's\n`toggle` event).",name:"onOpenChange",required:!1,type:{name:"enum",value:[{value:"(open: boolean) => void"}]}},name:{defaultValue:null,description:`Allows to create exclusive Accordions. Just pass the same \`name\` to all the AccordionItem
7
7
  instances to make the whole Accordion exclusive.
8
8
  @example <Accordion>
9
9
  <AccordionItem name="choose-subscription-duration">
@@ -1,4 +1,4 @@
1
- import{j as e}from"./iframe-C8q8wjEm.js";import{A as r,a as n,b as t,c as o}from"./Accordion-DxNzeFBJ.js";import{T as p}from"./Text-CPACpRkz.js";import{H as T}from"./Heading-IAeZxORQ.js";import{B as W}from"./Button-8TyghF-W.js";import"./preload-helper-Dp1pzeXC.js";import"./TokyoUIChevronDown-Bqnin0me.js";import"./Icon-CeynEPoQ.js";import"./text-accent-Bbx7l_cl.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-rjyGnIsi.js";import"./componentNames-Dts5uwdK.js";import"./useMergeRefs-DkFVQgA0.js";import"./text-centered-Cg_ddFhQ.js";import"./ButtonBase-D85CySUD.js";import"./Spinner-VeUQXU7V.js";import"./useHostname-MecFXBKz.js";import"./index-CC6DAVyL.js";const X={title:"components/Accordion",component:r,args:{}},s={render:function(){return e.jsxs(r,{children:[e.jsxs(n,{children:[e.jsx(t,{children:"Is Preply the best platform for learning a language?"}),e.jsx(o,{children:"Of course it is!"})]}),e.jsxs(n,{children:[e.jsx(t,{children:"Why?"}),e.jsx(o,{children:"If you are wondering, it means you have not tried it out yet!"})]})]})}},a={render:function(){return e.jsxs(r,{children:[e.jsxs(n,{open:!0,children:[e.jsx(t,{children:"Is Preply the best platform for learning a language?"}),e.jsx(o,{children:"Of course it is!"})]}),e.jsxs(n,{open:!0,children:[e.jsx(t,{children:"Why?"}),e.jsx(o,{children:"If you are wondering, it means you have not tried it out yet!"})]})]})}},c={render:function(){return e.jsxs(r,{children:[e.jsxs(n,{children:[e.jsx(t,{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."}),e.jsx(o,{children:"Lorem ipsum"})]}),e.jsxs(n,{children:[e.jsx(t,{children:"Lorem ipsum"}),e.jsx(o,{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})]}),e.jsxs(n,{open:!0,children:[e.jsx(t,{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."}),e.jsx(o,{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})]})]})}},d={render:function(){return e.jsx(r,{children:e.jsxs(n,{open:!0,children:[e.jsx(t,{children:"Is Preply the best platform for learning a language?"}),e.jsxs(o,{children:[e.jsx(T,{variant:"large",tag:"div",children:"Yes!"}),e.jsx(p,{variant:"large-regular-italic",children:"What are you waiting for?"}),e.jsx(W,{children:"Book a lesson now!"})]})]})})}},l={render:function(){return e.jsxs(r,{children:[e.jsxs(n,{name:"choose-subscription-duration",children:[e.jsx(t,{children:"Two-week subscription"}),e.jsx(o,{children:"We will charge you every two weeks."})]}),e.jsxs(n,{name:"choose-subscription-duration",children:[e.jsx(t,{children:"Four-week subscription"}),e.jsx(o,{children:"We will charge you every four weeks."})]})]})}},u={render:function(){return e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{display:"flex",gap:"16px",flexDirection:"column"},children:[e.jsx(p,{variant:"default-regular-italic",children:"closed"}),e.jsx("div",{style:{display:"flex",gap:"16px"},children:e.jsx(r,{children:e.jsxs(n,{children:[e.jsx(t,{children:"Header"}),e.jsx(o,{children:"Content"})]})})})]}),e.jsxs("div",{style:{display:"flex",gap:"16px",flexDirection:"column"},children:[e.jsx(p,{variant:"default-regular-italic",children:"open"}),e.jsx("div",{style:{display:"flex",gap:"16px"},children:e.jsx(r,{children:e.jsxs(n,{open:!0,children:[e.jsx(t,{children:"Header"}),e.jsx(o,{children:"Content"})]})})})]}),e.jsxs("div",{style:{display:"flex",gap:"16px",flexDirection:"column"},children:[e.jsx(p,{variant:"default-regular-italic",children:"focus"}),e.jsx("div",{style:{display:"flex",gap:"16px"},children:e.jsx(r,{children:e.jsxs(n,{dsInternalSimulation:"focus",children:[e.jsx(t,{children:"Header"}),e.jsx(o,{children:"Content"})]})})})]})]})}};var m,h,y;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`{
1
+ import{j as e}from"./iframe-CpMEswOF.js";import{A as r,a as n,b as t,c as o}from"./Accordion-BEPo4ld1.js";import{T as p}from"./Text-cq49jjad.js";import{H as T}from"./Heading-Bie8QWaf.js";import{B as W}from"./Button-KCBOR544.js";import"./preload-helper-Dp1pzeXC.js";import"./TokyoUIChevronDown-D9z1Bocr.js";import"./Icon-BX3I9JNh.js";import"./text-accent-DZ_ihUdH.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-c7okze1K.js";import"./componentNames-hc9KR2nX.js";import"./useMergeRefs-DkQLsYW4.js";import"./text-centered-DiwR-QSx.js";import"./ButtonBase-D1x6yeKi.js";import"./Spinner-lj2QA4al.js";import"./useHostname-BVhrcDgi.js";import"./index-CC6DAVyL.js";const X={title:"components/Accordion",component:r,args:{}},s={render:function(){return e.jsxs(r,{children:[e.jsxs(n,{children:[e.jsx(t,{children:"Is Preply the best platform for learning a language?"}),e.jsx(o,{children:"Of course it is!"})]}),e.jsxs(n,{children:[e.jsx(t,{children:"Why?"}),e.jsx(o,{children:"If you are wondering, it means you have not tried it out yet!"})]})]})}},a={render:function(){return e.jsxs(r,{children:[e.jsxs(n,{open:!0,children:[e.jsx(t,{children:"Is Preply the best platform for learning a language?"}),e.jsx(o,{children:"Of course it is!"})]}),e.jsxs(n,{open:!0,children:[e.jsx(t,{children:"Why?"}),e.jsx(o,{children:"If you are wondering, it means you have not tried it out yet!"})]})]})}},c={render:function(){return e.jsxs(r,{children:[e.jsxs(n,{children:[e.jsx(t,{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."}),e.jsx(o,{children:"Lorem ipsum"})]}),e.jsxs(n,{children:[e.jsx(t,{children:"Lorem ipsum"}),e.jsx(o,{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})]}),e.jsxs(n,{open:!0,children:[e.jsx(t,{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."}),e.jsx(o,{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})]})]})}},d={render:function(){return e.jsx(r,{children:e.jsxs(n,{open:!0,children:[e.jsx(t,{children:"Is Preply the best platform for learning a language?"}),e.jsxs(o,{children:[e.jsx(T,{variant:"large",tag:"div",children:"Yes!"}),e.jsx(p,{variant:"large-regular-italic",children:"What are you waiting for?"}),e.jsx(W,{children:"Book a lesson now!"})]})]})})}},l={render:function(){return e.jsxs(r,{children:[e.jsxs(n,{name:"choose-subscription-duration",children:[e.jsx(t,{children:"Two-week subscription"}),e.jsx(o,{children:"We will charge you every two weeks."})]}),e.jsxs(n,{name:"choose-subscription-duration",children:[e.jsx(t,{children:"Four-week subscription"}),e.jsx(o,{children:"We will charge you every four weeks."})]})]})}},u={render:function(){return e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{display:"flex",gap:"16px",flexDirection:"column"},children:[e.jsx(p,{variant:"default-regular-italic",children:"closed"}),e.jsx("div",{style:{display:"flex",gap:"16px"},children:e.jsx(r,{children:e.jsxs(n,{children:[e.jsx(t,{children:"Header"}),e.jsx(o,{children:"Content"})]})})})]}),e.jsxs("div",{style:{display:"flex",gap:"16px",flexDirection:"column"},children:[e.jsx(p,{variant:"default-regular-italic",children:"open"}),e.jsx("div",{style:{display:"flex",gap:"16px"},children:e.jsx(r,{children:e.jsxs(n,{open:!0,children:[e.jsx(t,{children:"Header"}),e.jsx(o,{children:"Content"})]})})})]}),e.jsxs("div",{style:{display:"flex",gap:"16px",flexDirection:"column"},children:[e.jsx(p,{variant:"default-regular-italic",children:"focus"}),e.jsx("div",{style:{display:"flex",gap:"16px"},children:e.jsx(r,{children:e.jsxs(n,{dsInternalSimulation:"focus",children:[e.jsx(t,{children:"Header"}),e.jsx(o,{children:"Content"})]})})})]})]})}};var m,h,y;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`{
2
2
  render: function Story() {
3
3
  return <Accordion>
4
4
  <AccordionItem>
@@ -1,4 +1,4 @@
1
- import{j as e}from"./iframe-C8q8wjEm.js";import{A as d,a as c,b as s,c as l}from"./Accordion-DxNzeFBJ.js";import{c as G}from"./OnboardingTour-DjRE-J8f.js";import"./preload-helper-Dp1pzeXC.js";import"./TokyoUIChevronDown-Bqnin0me.js";import"./Icon-CeynEPoQ.js";import"./text-accent-Bbx7l_cl.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-rjyGnIsi.js";import"./componentNames-Dts5uwdK.js";import"./Text-CPACpRkz.js";import"./text-centered-Cg_ddFhQ.js";import"./useMergeRefs-DkFVQgA0.js";import"./OnboardingTooltip-h7CPBh1u.js";import"./TokyoUIClose-DpSNWwxX.js";import"./Button-8TyghF-W.js";import"./ButtonBase-D85CySUD.js";import"./Spinner-VeUQXU7V.js";import"./useHostname-MecFXBKz.js";import"./index-CC6DAVyL.js";import"./Heading-IAeZxORQ.js";import"./index-B2swU3YW.js";import"./shared-strings-CDaZX-3B.js";import"./message-C3RuDR6M.js";import"./index-DYYdejgZ.js";const{userEvent:i,expect:o,within:U,waitFor:f,fn:z}=__STORYBOOK_MODULE_TEST__,Ce={title:"Components/Accordion/Tests",component:d,parameters:{controls:{disable:!0},chromatic:{disableSnapshot:!0}},tags:["!autodocs","!a11y-test","test"]},y={render:function(){return e.jsx(d,{"aria-label":"accordionLabel",children:e.jsxs(c,{children:[e.jsx(s,{children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{children:"Of course it is!"})]})})},play:async({canvasElement:n})=>{const r=U(n).getByLabelText("accordionLabel");o(r).toBeVisible()}},m={args:{},render:function(){return e.jsxs(d,{children:[e.jsxs(c,{children:[e.jsx(s,{children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{children:"Of course it is!"})]}),e.jsxs(c,{children:[e.jsx(s,{children:"Why?"}),e.jsx(l,{children:"If you are wondering, it means you have not tried it out yet!"})]})]})},play:async({canvas:n,step:t})=>{const r=n.getByText("Is Preply the best platform for learning a language?"),a=n.getByText("Of course it is!"),u=n.getByText("Why?"),p=n.getByText("If you are wondering, it means you have not tried it out yet!");await t("Contents are hidden",async()=>{o(a).not.toBeVisible(),o(p).not.toBeVisible()}),await t("Content 1 is revelable",async()=>{await i.click(r),o(a).toBeVisible()}),await t("Content 2 is revelable",async()=>{await i.click(u),o(p).toBeVisible()}),await t("Both contents are visible (non-exclusivity check)",async()=>{o(a).toBeVisible(),o(p).toBeVisible()}),await t("Item 1 is hidable",async()=>{await i.click(r),o(a).not.toBeVisible()}),await t("Item 2 is hidable",async()=>{await i.click(u),o(p).not.toBeVisible()})}},h={args:{},render:function(){return e.jsx(d,{children:e.jsxs(c,{dsInternalSimulation:"noAnimation",children:[e.jsx(s,{children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{children:"Of course it is!"})]})})},play:async({canvas:n,step:t})=>{const r=n.getByText("Is Preply the best platform for learning a language?"),a=n.getByText("Of course it is!");await t("Contents are hidden",async()=>{o(a).not.toBeVisible()}),await t("Content is revelable",async()=>{await i.click(r),o(a).toBeVisible()}),await t("Content is hidable",async()=>{await i.click(r),o(a).not.toBeVisible()})}},g={args:{},render:function(){return e.jsxs(d,{children:[e.jsxs(c,{name:"choose-subscription-duration",children:[e.jsx(s,{children:"Two-week subscription"}),e.jsx(l,{children:"We will charge you every two weeks."})]}),e.jsxs(c,{name:"choose-subscription-duration",children:[e.jsx(s,{children:"Four-week subscription"}),e.jsx(l,{children:"We will charge you every four weeks."})]})]})},play:async({canvas:n,step:t})=>{const r=n.getByText("Two-week subscription"),a=n.getByText("We will charge you every two weeks."),u=n.getByText("Four-week subscription"),p=n.getByText("We will charge you every four weeks.");await t("Contents are hidden",async()=>{o(a).not.toBeVisible(),o(p).not.toBeVisible()}),await t("Content 1 is revelable",async()=>{await i.click(r),o(a).toBeVisible()}),await t("Content 2 is revelable",async()=>{await i.click(u),o(p).toBeVisible()}),await t("Item 1 is hidden",async()=>{o(a).not.toBeVisible()})}},b={args:{onOpenChange:z()},render:function(t){return e.jsx(d,{children:e.jsxs(c,{onOpenChange:t.onOpenChange,children:[e.jsx(s,{children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{children:"Of course it is!"})]})})},play:async({canvas:n,args:t,step:r})=>{const a=n.getByText("Is Preply the best platform for learning a language?");await r("onOpenChange is not called",async()=>{o(t.onOpenChange).not.toBeCalled()}),await r("onOpenChange is called with true",async()=>{await i.click(a),o(t.onOpenChange).toBeCalledWith(!0)}),await r("onOpenChange is called with false",async()=>{await i.click(a),o(t.onOpenChange).toBeCalledWith(!1)})}},w={args:{onClick:z()},render:function(t){return e.jsx(d,{children:e.jsxs(c,{children:[e.jsx(s,{onClick:t.onClick,children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{children:"Of course it is!"})]})})},play:async({canvas:n,args:t,step:r})=>{const a=n.getByText("Is Preply the best platform for learning a language?");await r("onClick is not called",async()=>{o(t.onClick).not.toBeCalled()}),await r("onClick is called",async()=>{await i.click(a),o(t.onClick).toBeCalled()})}},x={render:function(){return e.jsx(d,{"aria-label":"accordion",dataset:{foo:1},children:e.jsxs(c,{dataset:{"qa-id":"firstItem"},children:[e.jsx(s,{dataset:{"qa-id":"firstItemHeader"},children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{dataset:{"qa-id":"firstItemContent"},children:"Yes!"})]})})},play:async({canvas:n})=>{const t=n.getByLabelText("accordion");o(t).toHaveAttribute("data-foo","1")}},C={render:function(){const t=G();return e.jsx(t.Provider,{totalSteps:2,children:e.jsxs(d,{children:[e.jsx(t.Step,{step:0,title:"Step 1",text:"Ensure you can answer this question",children:e.jsxs(c,{children:[e.jsx(s,{children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{children:"Of course it is!"})]})}),e.jsx(t.Step,{step:1,title:"Step 2",text:"Push them to try Preply out!",children:e.jsxs(c,{children:[e.jsx(s,{children:"Why?"}),e.jsx(l,{children:"If you are wondering, it means you have not tried it out yet!"})]})})]})})},play:async({canvasElement:n,step:t})=>{const r=U(n);await t("Step 1 should be visible",async()=>{await f(()=>{const a=r.getByText("Ensure you can answer this question");o(a).toBeVisible()})}),await t("Click Next",async()=>{const a=r.getByRole("button",{name:"Next"});await i.click(a)}),await t("Step 2 should be visible",async()=>{await f(()=>{const a=r.getByText("Push them to try Preply out!");o(a).toBeVisible()})})}};var A,B,v;y.parameters={...y.parameters,docs:{...(A=y.parameters)==null?void 0:A.docs,source:{originalSource:`{
1
+ import{j as e}from"./iframe-CpMEswOF.js";import{A as d,a as c,b as s,c as l}from"./Accordion-BEPo4ld1.js";import{c as G}from"./OnboardingTour-Dsl4caiq.js";import"./preload-helper-Dp1pzeXC.js";import"./TokyoUIChevronDown-D9z1Bocr.js";import"./Icon-BX3I9JNh.js";import"./text-accent-DZ_ihUdH.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-c7okze1K.js";import"./componentNames-hc9KR2nX.js";import"./Text-cq49jjad.js";import"./text-centered-DiwR-QSx.js";import"./useMergeRefs-DkQLsYW4.js";import"./OnboardingTooltip-CsTure6K.js";import"./TokyoUIClose-C1pVTvLz.js";import"./Button-KCBOR544.js";import"./ButtonBase-D1x6yeKi.js";import"./Spinner-lj2QA4al.js";import"./useHostname-BVhrcDgi.js";import"./index-CC6DAVyL.js";import"./Heading-Bie8QWaf.js";import"./index-DT-MbRPK.js";import"./shared-strings-BChji30Y.js";import"./message-CTdBLxyt.js";import"./index-dUCHvwfu.js";const{userEvent:i,expect:o,within:U,waitFor:f,fn:z}=__STORYBOOK_MODULE_TEST__,Ce={title:"Components/Accordion/Tests",component:d,parameters:{controls:{disable:!0},chromatic:{disableSnapshot:!0}},tags:["!autodocs","!a11y-test","test"]},y={render:function(){return e.jsx(d,{"aria-label":"accordionLabel",children:e.jsxs(c,{children:[e.jsx(s,{children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{children:"Of course it is!"})]})})},play:async({canvasElement:n})=>{const r=U(n).getByLabelText("accordionLabel");o(r).toBeVisible()}},m={args:{},render:function(){return e.jsxs(d,{children:[e.jsxs(c,{children:[e.jsx(s,{children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{children:"Of course it is!"})]}),e.jsxs(c,{children:[e.jsx(s,{children:"Why?"}),e.jsx(l,{children:"If you are wondering, it means you have not tried it out yet!"})]})]})},play:async({canvas:n,step:t})=>{const r=n.getByText("Is Preply the best platform for learning a language?"),a=n.getByText("Of course it is!"),u=n.getByText("Why?"),p=n.getByText("If you are wondering, it means you have not tried it out yet!");await t("Contents are hidden",async()=>{o(a).not.toBeVisible(),o(p).not.toBeVisible()}),await t("Content 1 is revelable",async()=>{await i.click(r),o(a).toBeVisible()}),await t("Content 2 is revelable",async()=>{await i.click(u),o(p).toBeVisible()}),await t("Both contents are visible (non-exclusivity check)",async()=>{o(a).toBeVisible(),o(p).toBeVisible()}),await t("Item 1 is hidable",async()=>{await i.click(r),o(a).not.toBeVisible()}),await t("Item 2 is hidable",async()=>{await i.click(u),o(p).not.toBeVisible()})}},h={args:{},render:function(){return e.jsx(d,{children:e.jsxs(c,{dsInternalSimulation:"noAnimation",children:[e.jsx(s,{children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{children:"Of course it is!"})]})})},play:async({canvas:n,step:t})=>{const r=n.getByText("Is Preply the best platform for learning a language?"),a=n.getByText("Of course it is!");await t("Contents are hidden",async()=>{o(a).not.toBeVisible()}),await t("Content is revelable",async()=>{await i.click(r),o(a).toBeVisible()}),await t("Content is hidable",async()=>{await i.click(r),o(a).not.toBeVisible()})}},g={args:{},render:function(){return e.jsxs(d,{children:[e.jsxs(c,{name:"choose-subscription-duration",children:[e.jsx(s,{children:"Two-week subscription"}),e.jsx(l,{children:"We will charge you every two weeks."})]}),e.jsxs(c,{name:"choose-subscription-duration",children:[e.jsx(s,{children:"Four-week subscription"}),e.jsx(l,{children:"We will charge you every four weeks."})]})]})},play:async({canvas:n,step:t})=>{const r=n.getByText("Two-week subscription"),a=n.getByText("We will charge you every two weeks."),u=n.getByText("Four-week subscription"),p=n.getByText("We will charge you every four weeks.");await t("Contents are hidden",async()=>{o(a).not.toBeVisible(),o(p).not.toBeVisible()}),await t("Content 1 is revelable",async()=>{await i.click(r),o(a).toBeVisible()}),await t("Content 2 is revelable",async()=>{await i.click(u),o(p).toBeVisible()}),await t("Item 1 is hidden",async()=>{o(a).not.toBeVisible()})}},b={args:{onOpenChange:z()},render:function(t){return e.jsx(d,{children:e.jsxs(c,{onOpenChange:t.onOpenChange,children:[e.jsx(s,{children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{children:"Of course it is!"})]})})},play:async({canvas:n,args:t,step:r})=>{const a=n.getByText("Is Preply the best platform for learning a language?");await r("onOpenChange is not called",async()=>{o(t.onOpenChange).not.toBeCalled()}),await r("onOpenChange is called with true",async()=>{await i.click(a),o(t.onOpenChange).toBeCalledWith(!0)}),await r("onOpenChange is called with false",async()=>{await i.click(a),o(t.onOpenChange).toBeCalledWith(!1)})}},w={args:{onClick:z()},render:function(t){return e.jsx(d,{children:e.jsxs(c,{children:[e.jsx(s,{onClick:t.onClick,children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{children:"Of course it is!"})]})})},play:async({canvas:n,args:t,step:r})=>{const a=n.getByText("Is Preply the best platform for learning a language?");await r("onClick is not called",async()=>{o(t.onClick).not.toBeCalled()}),await r("onClick is called",async()=>{await i.click(a),o(t.onClick).toBeCalled()})}},x={render:function(){return e.jsx(d,{"aria-label":"accordion",dataset:{foo:1},children:e.jsxs(c,{dataset:{"qa-id":"firstItem"},children:[e.jsx(s,{dataset:{"qa-id":"firstItemHeader"},children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{dataset:{"qa-id":"firstItemContent"},children:"Yes!"})]})})},play:async({canvas:n})=>{const t=n.getByLabelText("accordion");o(t).toHaveAttribute("data-foo","1")}},C={render:function(){const t=G();return e.jsx(t.Provider,{totalSteps:2,children:e.jsxs(d,{children:[e.jsx(t.Step,{step:0,title:"Step 1",text:"Ensure you can answer this question",children:e.jsxs(c,{children:[e.jsx(s,{children:"Is Preply the best platform for learning a language?"}),e.jsx(l,{children:"Of course it is!"})]})}),e.jsx(t.Step,{step:1,title:"Step 2",text:"Push them to try Preply out!",children:e.jsxs(c,{children:[e.jsx(s,{children:"Why?"}),e.jsx(l,{children:"If you are wondering, it means you have not tried it out yet!"})]})})]})})},play:async({canvasElement:n,step:t})=>{const r=U(n);await t("Step 1 should be visible",async()=>{await f(()=>{const a=r.getByText("Ensure you can answer this question");o(a).toBeVisible()})}),await t("Click Next",async()=>{const a=r.getByRole("button",{name:"Next"});await i.click(a)}),await t("Step 2 should be visible",async()=>{await f(()=>{const a=r.getByText("Push them to try Preply out!");o(a).toBeVisible()})})}};var A,B,v;y.parameters={...y.parameters,docs:{...(A=y.parameters)==null?void 0:A.docs,source:{originalSource:`{
2
2
  render: function Story() {
3
3
  return <Accordion aria-label="accordionLabel">
4
4
  <AccordionItem>
@@ -1,4 +1,4 @@
1
- import{j as r}from"./iframe-C8q8wjEm.js";import{F as l}from"./TokyoUISparkle-Rlb1iC0a.js";import{A as s,a as m,b as e,c,d as p}from"./AlertBannerText-CVGRB8DE.js";import{B as u}from"./Button-8TyghF-W.js";import"./preload-helper-Dp1pzeXC.js";import"./TokyoUICheck-DyeJxS4m.js";import"./TokyoUIErrorWarning-BoJjXvv2.js";import"./Icon-CeynEPoQ.js";import"./text-accent-Bbx7l_cl.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-rjyGnIsi.js";import"./componentNames-Dts5uwdK.js";import"./IconButton-CT1U16hq.js";import"./ButtonBase-D85CySUD.js";import"./Spinner-VeUQXU7V.js";import"./useMergeRefs-DkFVQgA0.js";import"./useHostname-MecFXBKz.js";import"./index-CC6DAVyL.js";import"./index-B2swU3YW.js";import"./VisuallyHidden-oCB6vAK-.js";import"./Text-CPACpRkz.js";import"./text-centered-Cg_ddFhQ.js";import"./message-C3RuDR6M.js";const B="customBanner__WPfsi",d={customBanner:B},U={title:"Components/AlertBanner/Primitives",component:e,subcomponents:{AlertBannerIcon:c,AlertBannerRoot:e,AlertBannerAction:m,AlertBannerText:s},parameters:{layout:"padded",docs:{source:{type:"dynamic"}}},decorators:[o=>r.jsx("div",{style:{width:"500px"},children:r.jsx(o,{})})]},t=()=>r.jsx(p,{children:r.jsxs(e,{variant:"critical",className:d.customBanner,children:[r.jsx(c,{svg:l}),r.jsx(s,{children:"Custom banner built with primitives."}),r.jsx(m,{children:r.jsx(u,{variant:"onColor",size:"large",children:"Custom action"})})]})});var n,i,a;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:`() => {
1
+ import{j as r}from"./iframe-CpMEswOF.js";import{F as l}from"./TokyoUISparkle-C5euAhof.js";import{A as s,a as m,b as e,c,d as p}from"./AlertBannerText-CmhnTe_E.js";import{B as u}from"./Button-KCBOR544.js";import"./preload-helper-Dp1pzeXC.js";import"./TokyoUICheck-DfGyg7qp.js";import"./TokyoUIErrorWarning-CDZ53m2_.js";import"./Icon-BX3I9JNh.js";import"./text-accent-DZ_ihUdH.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-c7okze1K.js";import"./componentNames-hc9KR2nX.js";import"./IconButton-DVKNd7ZK.js";import"./ButtonBase-D1x6yeKi.js";import"./Spinner-lj2QA4al.js";import"./useMergeRefs-DkQLsYW4.js";import"./useHostname-BVhrcDgi.js";import"./index-CC6DAVyL.js";import"./index-DT-MbRPK.js";import"./VisuallyHidden-lSSiGvdb.js";import"./Text-cq49jjad.js";import"./text-centered-DiwR-QSx.js";import"./message-CTdBLxyt.js";const B="customBanner__WPfsi",d={customBanner:B},U={title:"Components/AlertBanner/Primitives",component:e,subcomponents:{AlertBannerIcon:c,AlertBannerRoot:e,AlertBannerAction:m,AlertBannerText:s},parameters:{layout:"padded",docs:{source:{type:"dynamic"}}},decorators:[o=>r.jsx("div",{style:{width:"500px"},children:r.jsx(o,{})})]},t=()=>r.jsx(p,{children:r.jsxs(e,{variant:"critical",className:d.customBanner,children:[r.jsx(c,{svg:l}),r.jsx(s,{children:"Custom banner built with primitives."}),r.jsx(m,{children:r.jsx(u,{variant:"onColor",size:"large",children:"Custom action"})})]})});var n,i,a;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:`() => {
2
2
  const variant: AlertBannerVariant = 'critical';
3
3
  return <AlertBannerProvider>
4
4
  <AlertBannerRoot variant={variant} className={customStyles.customBanner}>
@@ -1,4 +1,4 @@
1
- import{g as W,j as e}from"./iframe-C8q8wjEm.js";import{b as H,c as E,A as L,a as M,d}from"./AlertBannerText-CVGRB8DE.js";import{w as U}from"./componentNames-Dts5uwdK.js";import{B as s}from"./Button-8TyghF-W.js";import"./preload-helper-Dp1pzeXC.js";import"./TokyoUICheck-DyeJxS4m.js";import"./TokyoUIErrorWarning-BoJjXvv2.js";import"./Icon-CeynEPoQ.js";import"./text-accent-Bbx7l_cl.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-rjyGnIsi.js";import"./IconButton-CT1U16hq.js";import"./ButtonBase-D85CySUD.js";import"./Spinner-VeUQXU7V.js";import"./useMergeRefs-DkFVQgA0.js";import"./useHostname-MecFXBKz.js";import"./index-CC6DAVyL.js";import"./index-B2swU3YW.js";import"./VisuallyHidden-oCB6vAK-.js";import"./Text-CPACpRkz.js";import"./text-centered-Cg_ddFhQ.js";import"./message-C3RuDR6M.js";const a=t=>{const{variant:r,description:n,action:j,dataset:R}=t,P=W(R,{preplyDsComponent:U.AlertBanner});return e.jsxs(H,{variant:r,...P,children:[e.jsx(E,{}),e.jsx(L,{children:n}),e.jsx(M,{children:j})]})};try{a.displayName="AlertBanner",a.__docgenInfo={description:`The Alert Banner communicates important and time-sensitive messages that require user attention.
1
+ import{g as R,j as e}from"./iframe-CpMEswOF.js";import{b as E,c as H,A as L,a as N,d}from"./AlertBannerText-CmhnTe_E.js";import{w as M}from"./componentNames-hc9KR2nX.js";import{B as s}from"./Button-KCBOR544.js";import"./preload-helper-Dp1pzeXC.js";import"./TokyoUICheck-DfGyg7qp.js";import"./TokyoUIErrorWarning-CDZ53m2_.js";import"./Icon-BX3I9JNh.js";import"./text-accent-DZ_ihUdH.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-c7okze1K.js";import"./IconButton-DVKNd7ZK.js";import"./ButtonBase-D1x6yeKi.js";import"./Spinner-lj2QA4al.js";import"./useMergeRefs-DkQLsYW4.js";import"./useHostname-BVhrcDgi.js";import"./index-CC6DAVyL.js";import"./index-DT-MbRPK.js";import"./VisuallyHidden-lSSiGvdb.js";import"./Text-cq49jjad.js";import"./text-centered-DiwR-QSx.js";import"./message-CTdBLxyt.js";const a=t=>{const{variant:r,description:n,action:u,dataset:g}=t,y=R(g,{preplyDsComponent:M.AlertBanner});return e.jsxs(E,{variant:r,...y,children:[e.jsx(H,{}),e.jsx(L,{children:n}),e.jsx(N,{children:u})]})};try{a.displayName="AlertBanner",a.__docgenInfo={description:`The Alert Banner communicates important and time-sensitive messages that require user attention.
2
2
 
3
3
  From an accessibility perspective, the description is prefixed to announce the importance of the
4
4
  banner.`,displayName:"AlertBanner",props:{variant:{defaultValue:null,description:"Impact the visualized icon, the background color, and how the banner is announced by screen\nreaders.\n\nSemantic icons are also exported for the following variants:\n- `warning` -> `<AlertBannerWarningIcon />`\n- `critical` -> `<AlertBannerCriticalIcon />`\n- `positive` -> `<AlertBannerPositiveIcon />`",name:"variant",required:!0,type:{name:"enum",value:[{value:'"positive"'},{value:'"warning"'},{value:'"critical"'}]}},description:{defaultValue:null,description:"The banner's message content.",name:"description",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},action:{defaultValue:null,description:`The banner' action.
@@ -12,7 +12,7 @@ Alternatively, to diverge from the DS, you're able to:
12
12
  - Add your own custom content to break away from the inner content
13
13
  styling and structure.
14
14
  - Use the \`CalloutBannerRoot\` primitive to customize the banner
15
- container (e.g. colour).`,name:"action",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}}}}}catch{}const{action:Y}=__STORYBOOK_MODULE_ACTIONS__,{userEvent:q,expect:o,fn:N}=__STORYBOOK_MODULE_TEST__,ue={title:"components/AlertBanner",component:a,subcomponents:{AlertBannerProvider:d},args:{}},i={actionOnClick:N(Y("onCLicked"))},u={args:{},parameters:{chromatic:{modes:{"narrow-l":{viewport:"narrow-l"},"medium-l":{viewport:"medium-l"}}}},render:function(){return e.jsxs(d,{children:[e.jsx(a,{variant:"critical",description:"We can't renew your subscription.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Try again"})}),e.jsx(a,{variant:"warning",description:"Your credit card is about to expire.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Change payment method"})}),e.jsx(a,{variant:"positive",description:"Your subscription has been renewed successfully.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Book the next lesson"})})]})},play:async({canvas:t,step:r})=>{const n=await t.findByRole("button",{name:/Try again/});await r("actionOnClick is not called",async()=>{o(i.actionOnClick).not.toBeCalled()}),await r("actionOnClick is called",async()=>{await q.click(n),o(i.actionOnClick).toBeCalled()})}},c={render:function(){return e.jsxs(d,{children:[e.jsx(a,{variant:"critical",description:"We can't renew your subscription.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Try again"}),dataset:{testId:"subscriptionAlert"}}),e.jsx(a,{variant:"warning",description:"Your credit card is about to expire.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Change payment method"}),dataset:{testid:"paymentWarning"}}),e.jsx(a,{variant:"positive",description:"Your subscription has been renewed successfully.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Book the next lesson"}),dataset:{testid:"subscriptionRenewed"}})]})},play:async({canvas:t,step:r})=>{await r('Alerts banners are prefixed with "Alert:" to allow screen reader users to recall the alerts region',async()=>{const n=await t.findByTestId("subscriptionAlert");await o(n).toHaveTextContent("Alert: We can't renew your subscription.Try again")}),await r('Warning banners are prefixed with "Warning:" to allow screen reader users to recall the alerts region',async()=>{const n=await t.findByTestId("paymentWarning");await o(n).toHaveTextContent("Warning: Your credit card is about to expire.Change payment method")}),await r('Positive banners are prefixed with "Update:" to allow screen reader users to recall the updates region',async()=>{const n=await t.findByTestId("subscriptionRenewed");await o(n).toHaveTextContent("Update: Your subscription has been renewed successfully.Book the next lesson")})}},l={render:function(){return e.jsx(d,{"data-testid":"alertBannerHostId"})},play:async({canvas:t,step:r})=>{const n=t.getByTestId("alertBannerHostId");await r('The host is announced as "Alerts, warnings, and updates"',async()=>{await o(n).toHaveAccessibleName("Alerts, warnings, and updates")}),await r("The host renders an aria-live region",async()=>{await o(n).toHaveAttribute("aria-live"),await o(n).toHaveAttribute("aria-atomic","false"),await o(n).toHaveRole("region")})}},m="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",y="Lorem ipsum dolor sit amet, consectetur adipiscing elit. sed do eiusmod tempor incididunt.",p={render:function(){return e.jsxs(d,{children:[e.jsx(a,{variant:"warning",description:m,action:e.jsx(s,{onClick:i.actionOnClick,children:"Try again"})}),e.jsx(a,{variant:"warning",description:"We can't renew your subscription.",action:e.jsx(s,{onClick:i.actionOnClick,children:y})}),e.jsx(a,{variant:"warning",description:m,action:e.jsx(s,{onClick:i.actionOnClick,children:y})})]})}};var v,w,h;u.parameters={...u.parameters,docs:{...(v=u.parameters)==null?void 0:v.docs,source:{originalSource:`{
15
+ container (e.g. colour).`,name:"action",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}}}}}catch{}const{action:U}=__STORYBOOK_MODULE_ACTIONS__,{userEvent:D,expect:o,fn:Y}=__STORYBOOK_MODULE_TEST__,ue={title:"components/AlertBanner",component:a,subcomponents:{AlertBannerProvider:d},args:{}},i={actionOnClick:Y(U("onCLicked"))},p={args:{},parameters:{chromatic:{modes:{"narrow-l":{viewport:"narrow-l"},"medium-l":{viewport:"medium-l"}}}},render:function(){return e.jsxs(d,{children:[e.jsx(a,{variant:"critical",description:"We can't renew your subscription.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Try again"})}),e.jsx(a,{variant:"warning",description:"Your credit card is about to expire.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Change payment method"})}),e.jsx(a,{variant:"positive",description:"Your subscription has been renewed successfully.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Book the next lesson"})})]})},play:async({canvas:t,step:r})=>{const n=await t.findByRole("button",{name:/Try again/});await r("actionOnClick is not called",async()=>{o(i.actionOnClick).not.toBeCalled()}),await r("actionOnClick is called",async()=>{await D.click(n),o(i.actionOnClick).toBeCalled()})}},c={render:function(){return e.jsxs(d,{children:[e.jsx(a,{variant:"critical",description:"We can't renew your subscription.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Try again"}),dataset:{testId:"subscriptionAlert"}}),e.jsx(a,{variant:"warning",description:"Your credit card is about to expire.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Change payment method"}),dataset:{testid:"paymentWarning"}}),e.jsx(a,{variant:"positive",description:"Your subscription has been renewed successfully.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Book the next lesson"}),dataset:{testid:"subscriptionRenewed"}})]})},play:async({canvas:t,step:r})=>{await r('Alert banners are prefixed with "Alert:" to allow screen reader users to recall the alerts region',async()=>{const n=await t.findByTestId("subscriptionAlert");await o(n).toHaveTextContent("Alert: We can't renew your subscription.Try again")}),await r('Warning banners are prefixed with "Warning:" to allow screen reader users to recall the alerts region',async()=>{const n=await t.findByTestId("paymentWarning");await o(n).toHaveTextContent("Warning: Your credit card is about to expire.Change payment method")}),await r('Positive banners are prefixed with "Update:" to allow screen reader users to recall the updates region',async()=>{const n=await t.findByTestId("subscriptionRenewed");await o(n).toHaveTextContent("Update: Your subscription has been renewed successfully.Book the next lesson")})}},l={render:function(){return e.jsxs(d,{"data-testid":"alertBannerHostId",children:[e.jsx("div",{id:"pageContents",children:"Page contents"}),e.jsx(a,{variant:"critical",description:"We can't renew your subscription.",action:e.jsx(s,{onClick:i.actionOnClick,children:"Try again"}),dataset:{testId:"subscriptionAlert"}})]})},play:async({canvas:t,step:r})=>{const n=t.getByTestId("alertBannerHostId");await r('The host is announced as "Alerts, warnings, and updates"',async()=>{await o(n).toHaveAccessibleName("Alerts, warnings, and updates")}),await r("The host renders an aria-live region",async()=>{await o(n).toHaveAttribute("aria-live"),await o(n).toHaveAttribute("aria-atomic","false"),await o(n).toHaveRole("region")}),await r("Alert banners are rendered at the top of the page",async()=>{const u=document.getElementById("pageContents");if(!u)throw new Error("Page contents element not found");const y=!!((await t.findByTestId("subscriptionAlert")).compareDocumentPosition(u)&Node.DOCUMENT_POSITION_FOLLOWING);o(y).toBe(!0)})}},v="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",w="Lorem ipsum dolor sit amet, consectetur adipiscing elit. sed do eiusmod tempor incididunt.",m={render:function(){return e.jsxs(d,{children:[e.jsx(a,{variant:"warning",description:v,action:e.jsx(s,{onClick:i.actionOnClick,children:"Try again"})}),e.jsx(a,{variant:"warning",description:"We can't renew your subscription.",action:e.jsx(s,{onClick:i.actionOnClick,children:w})}),e.jsx(a,{variant:"warning",description:v,action:e.jsx(s,{onClick:i.actionOnClick,children:w})})]})}};var h,b,B;p.parameters={...p.parameters,docs:{...(h=p.parameters)==null?void 0:h.docs,source:{originalSource:`{
16
16
  args: {},
17
17
  parameters: {
18
18
  chromatic: {
@@ -48,7 +48,7 @@ Alternatively, to diverge from the DS, you're able to:
48
48
  expect(callback.actionOnClick).toBeCalled();
49
49
  });
50
50
  }
51
- }`,...(h=(w=u.parameters)==null?void 0:w.docs)==null?void 0:h.source}}};var g,b,B,C,x;c.parameters={...c.parameters,docs:{...(g=c.parameters)==null?void 0:g.docs,source:{originalSource:`{
51
+ }`,...(B=(b=p.parameters)==null?void 0:b.docs)==null?void 0:B.source}}};var C,A,x,k,f;c.parameters={...c.parameters,docs:{...(C=c.parameters)==null?void 0:C.docs,source:{originalSource:`{
52
52
  render: function Story() {
53
53
  return <AlertBannerProvider>
54
54
  <AlertBanner variant="critical" description="We can't renew your subscription." action={<Button onClick={callback.actionOnClick}>Try again</Button>} dataset={{
@@ -66,7 +66,7 @@ Alternatively, to diverge from the DS, you're able to:
66
66
  canvas,
67
67
  step
68
68
  }) => {
69
- await step('Alerts banners are prefixed with "Alert:" to allow screen reader users to recall the alerts region', async () => {
69
+ await step('Alert banners are prefixed with "Alert:" to allow screen reader users to recall the alerts region', async () => {
70
70
  const subscriptionAlert = await canvas.findByTestId('subscriptionAlert');
71
71
  await expect(subscriptionAlert).toHaveTextContent("Alert: We can't renew your subscription.Try again");
72
72
  });
@@ -79,13 +79,18 @@ Alternatively, to diverge from the DS, you're able to:
79
79
  await expect(paymentWarning).toHaveTextContent('Update: Your subscription has been renewed successfully.Book the next lesson');
80
80
  });
81
81
  }
82
- }`,...(B=(b=c.parameters)==null?void 0:b.docs)==null?void 0:B.source},description:{story:`The alert banners are announced to screen readers with a prefix depending on their type. This
82
+ }`,...(x=(A=c.parameters)==null?void 0:A.docs)==null?void 0:x.source},description:{story:`The alert banners are announced to screen readers with a prefix depending on their type. This
83
83
  allows to quickly recall the alerts region (rendered by \`AlertBannerProvider\`) that is put at the top
84
84
  of the page.
85
85
 
86
- @see AlertBannerProvider`,...(x=(C=c.parameters)==null?void 0:C.docs)==null?void 0:x.description}}};var A,k,f,O,T;l.parameters={...l.parameters,docs:{...(A=l.parameters)==null?void 0:A.docs,source:{originalSource:`{
86
+ @see AlertBannerProvider`,...(f=(k=c.parameters)==null?void 0:k.docs)==null?void 0:f.description}}};var O,T,I,_,P;l.parameters={...l.parameters,docs:{...(O=l.parameters)==null?void 0:O.docs,source:{originalSource:`{
87
87
  render: function Story() {
88
- return <AlertBannerProvider data-testid="alertBannerHostId" />;
88
+ return <AlertBannerProvider data-testid="alertBannerHostId">
89
+ <div id="pageContents">Page contents</div>
90
+ <AlertBanner variant="critical" description="We can't renew your subscription." action={<Button onClick={callback.actionOnClick}>Try again</Button>} dataset={{
91
+ testId: 'subscriptionAlert'
92
+ }} />
93
+ </AlertBannerProvider>;
89
94
  },
90
95
  play: async ({
91
96
  canvas,
@@ -100,8 +105,15 @@ of the page.
100
105
  await expect(host).toHaveAttribute('aria-atomic', 'false');
101
106
  await expect(host).toHaveRole('region');
102
107
  });
108
+ await step('Alert banners are rendered at the top of the page', async () => {
109
+ const pageContents = document.getElementById('pageContents');
110
+ if (!pageContents) throw new Error('Page contents element not found');
111
+ const subscriptionAlert = await canvas.findByTestId('subscriptionAlert');
112
+ const pageContentsComesAfterAlertBanner = Boolean(subscriptionAlert.compareDocumentPosition(pageContents) & Node.DOCUMENT_POSITION_FOLLOWING);
113
+ expect(pageContentsComesAfterAlertBanner).toBe(true);
114
+ });
103
115
  }
104
- }`,...(f=(k=l.parameters)==null?void 0:k.docs)==null?void 0:f.source},description:{story:'`AlertBannerProvider` should wrap the whole app so its DOM element is put at the top of the page,\nand renders an aria-live region that will be announced as "Alerts, warnings, and updates".\nScreen readers users will remind (and can navigate to) the region when alerts will be announced.',...(T=(O=l.parameters)==null?void 0:O.docs)==null?void 0:T.description}}};var _,S,I;p.parameters={...p.parameters,docs:{...(_=p.parameters)==null?void 0:_.docs,source:{originalSource:`{
116
+ }`,...(I=(T=l.parameters)==null?void 0:T.docs)==null?void 0:I.source},description:{story:'`AlertBannerProvider` should wrap the whole app so its DOM element is put at the top of the page,\nand renders an aria-live region that will be announced as "Alerts, warnings, and updates".\nScreen readers users will remind (and can navigate to) the region when alerts will be announced.',...(P=(_=l.parameters)==null?void 0:_.docs)==null?void 0:P.description}}};var S,j,W;m.parameters={...m.parameters,docs:{...(S=m.parameters)==null?void 0:S.docs,source:{originalSource:`{
105
117
  render: function Story() {
106
118
  return <AlertBannerProvider>
107
119
  <AlertBanner variant="warning" description={LOREM_IPSUM_LONG} action={<Button onClick={callback.actionOnClick}>Try again</Button>} />
@@ -109,4 +121,4 @@ of the page.
109
121
  <AlertBanner variant="warning" description={LOREM_IPSUM_LONG} action={<Button onClick={callback.actionOnClick}>{LOREM_IPSUM_SHORT}</Button>} />
110
122
  </AlertBannerProvider>;
111
123
  }
112
- }`,...(I=(S=p.parameters)==null?void 0:S.docs)==null?void 0:I.source}}};const pe=["Variants","Accessibility","AlertBannerProviderAccessibility","LongContents"];export{c as Accessibility,l as AlertBannerProviderAccessibility,p as LongContents,u as Variants,pe as __namedExportsOrder,ue as default};
124
+ }`,...(W=(j=m.parameters)==null?void 0:j.docs)==null?void 0:W.source}}};const pe=["Variants","Accessibility","AlertBannerProviderAccessibility","LongContents"];export{c as Accessibility,l as AlertBannerProviderAccessibility,m as LongContents,p as Variants,pe as __namedExportsOrder,ue as default};