@preply/ds-docs 11.0.0 → 11.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 (642) hide show
  1. package/.storybook/decorators/withIntlProvider.tsx +1 -1
  2. package/.storybook/main.ts +1 -0
  3. package/.storybook/preview.tsx +5 -0
  4. package/chromatic.config.json +10 -0
  5. package/dist/addon-visual-tests-assets/visual-test-illustration.mp4 +0 -0
  6. package/dist/assets/00.LayoutFlex.stories-pFo1xsBe.js +85 -0
  7. package/dist/assets/00.applications-Cqkdr1wk.js +50 -0
  8. package/dist/assets/00.favicons.guide-B91Vhoka.js +21 -0
  9. package/dist/assets/00.token-explorer-B19aUGGg.js +340 -0
  10. package/dist/assets/00.using-responsive-props-B3Gr_s-n.js +18 -0
  11. package/dist/assets/01.semantic-tokens-ClbORo2f.js +11 -0
  12. package/dist/assets/01.using-shorthand-props-CZYYf4mA.js +39 -0
  13. package/dist/assets/10.Combinations.stories-BktZvBWq.js +128 -0
  14. package/dist/assets/10.fonts.guide-BGeAIZ8f.js +39 -0
  15. package/dist/assets/10.ssr--ERdtJ_Z.js +91 -0
  16. package/dist/assets/11.fonts.explorer-CApH9AGF.js +2 -0
  17. package/dist/assets/11.ssr.app-router-DusJ4Mbq.js +59 -0
  18. package/dist/assets/20.libraries-AkYtGwIz.js +22 -0
  19. package/dist/assets/2025-q4-ds-cleanup-njc6pOZy.js +351 -0
  20. package/dist/assets/30.icons.explorer-D8JDwXl5.js +72 -0
  21. package/dist/assets/30.storybook-C2VMIEWx.js +42 -0
  22. package/dist/assets/40.illustrations.explorer-Dexx0-Yq.js +21 -0
  23. package/dist/assets/60.components-EsXml7S8.js +22 -0
  24. package/dist/assets/90.advanced-CGMa0hIb.js +32 -0
  25. package/dist/assets/Accordion-BGpSQDcU.js +25 -0
  26. package/dist/assets/Accordion-bbEcwV1l.css +1 -0
  27. package/dist/assets/{Accordion.stories-CLwah67K.js → Accordion.stories-DZqm_pl0.js} +7 -7
  28. package/dist/assets/{Accordion.tests.stories-CFH7p1Jq.js → Accordion.tests.stories-CETE9vG5.js} +9 -9
  29. package/dist/assets/AlertBanner.primitives.stories-C1Rk8KVQ.js +14 -0
  30. package/dist/assets/AlertBanner.stories-CJnU52Gn.js +112 -0
  31. package/dist/assets/AlertBannerAction-BSNrnhbi.js +216 -0
  32. package/dist/assets/AlertBannerAction-UAyHHOqS.css +1 -0
  33. package/dist/assets/AlertDialog-Cr1_lUp6.css +1 -0
  34. package/dist/assets/AlertDialog-D1kj7VoM.js +6 -0
  35. package/dist/assets/{AlertDialog.stories-BKT7nitb.js → AlertDialog.stories-CjXjghMW.js} +11 -7
  36. package/dist/assets/Avatar-CZrWRM_5.css +1 -0
  37. package/dist/assets/Avatar-LEDcSb51.js +6 -0
  38. package/dist/assets/Avatar.stories-B6YvTFd5.js +42 -0
  39. package/dist/assets/{AvatarWithStatus-azmN9QBq.css → AvatarWithStatus-DNgVIYbt.css} +1 -1
  40. package/dist/assets/AvatarWithStatus-Dacm-jO_.js +6 -0
  41. package/dist/assets/AvatarWithStatus.stories-D9tFABve.js +36 -0
  42. package/dist/assets/Badge-CXba4Jz8.js +10 -0
  43. package/dist/assets/{Badge-BVnE8GHY.css → Badge-ChvYkJOj.css} +1 -1
  44. package/dist/assets/Badge.stories-6McX8lAA.js +90 -0
  45. package/dist/assets/Box-CJ3Eco8o.js +3 -0
  46. package/dist/assets/Box-CoMoVRxI.css +1 -0
  47. package/dist/assets/Box.stories-D7RLIL2b.js +44 -0
  48. package/dist/assets/BubbleCounter-DwJsPISN.js +5 -0
  49. package/dist/assets/BubbleCounter.stories-CaNBUXy9.js +246 -0
  50. package/dist/assets/Button-DnVrHohm.js +18 -0
  51. package/dist/assets/Button-DsoMn9D3.css +1 -0
  52. package/dist/assets/Button.stories-DB4FO1yP.js +271 -0
  53. package/dist/assets/ButtonBase-DMbDbkQ4.css +1 -0
  54. package/dist/assets/ButtonBase-DV0YtoS6.js +8 -0
  55. package/dist/assets/CalloutBanner-ChlWZtBk.css +1 -0
  56. package/dist/assets/CalloutBanner.stories-DMr5laA1.js +212 -0
  57. package/dist/assets/CalloutBannerText-Lb5ksCJz.css +1 -0
  58. package/dist/assets/CalloutBannerText-pe-2SkHW.js +75 -0
  59. package/dist/assets/Checkbox-B_qY1TUo.css +1 -0
  60. package/dist/assets/Checkbox-DEB6VLYS.js +10 -0
  61. package/dist/assets/{Checkbox.stories-ClI-ZBnj.js → Checkbox.stories-C_Oku35V.js} +6 -6
  62. package/dist/assets/Checkbox.tests.stories-BPHBBZi3.js +68 -0
  63. package/dist/assets/Chips-DK10vypy.css +1 -0
  64. package/dist/assets/Chips.stories-_LC622UQ.js +148 -0
  65. package/dist/assets/Color-6BZIO3FS-Cli2qKZW.js +1 -0
  66. package/dist/assets/{ComposingDialogs.stories-DwVqal9K.js → ComposingDialogs.stories-BSCyTSJL.js} +3 -3
  67. package/dist/assets/ComposingPopovers.stories-cp3PAdHA.js +49 -0
  68. package/dist/assets/CountryFlag-DMEPQuIc.js +49 -0
  69. package/dist/assets/{CountryFlag.stories-hf40f81N.js → CountryFlag.stories-CCfcgg_Y.js} +6 -6
  70. package/dist/assets/CountryFlag.test.stories-BaGoS-6l.js +27 -0
  71. package/dist/assets/Dialog-DCPUOQU4.js +13 -0
  72. package/dist/assets/Dialog.primitives-BPvLcj0z.css +1 -0
  73. package/dist/assets/Dialog.primitives.stories-Vxeh7YZt.js +237 -0
  74. package/dist/assets/Dialog.stories-87tBh-R6.js +267 -0
  75. package/dist/assets/Dialog.test.stories-B4pw7sJ3.js +146 -0
  76. package/dist/assets/DialogActions-BuK-fnKs.js +101 -0
  77. package/dist/assets/DialogCloseButton-Bh5fJ-N5.css +1 -0
  78. package/dist/assets/DialogCloseButton-dPdpMifg.js +149 -0
  79. package/dist/assets/DismissibleChips-Dv66pNAL.js +1 -0
  80. package/dist/assets/DismissibleChips.stories-nMCs_O4R.js +625 -0
  81. package/dist/assets/{Divider-DECo0bYW.css → Divider-BVw27QR_.css} +1 -1
  82. package/dist/assets/Divider-BsdKe9ia.js +1 -0
  83. package/dist/assets/Divider.stories-DMxdOUMT.js +9 -0
  84. package/dist/assets/DocsRenderer-LL677BLK-CToDaeBi.js +2 -0
  85. package/dist/assets/DropdownMenu-BUteP_4e.js +1258 -0
  86. package/dist/assets/DropdownMenu-Dp5QD_2I.css +1 -0
  87. package/dist/assets/DropdownMenu.stories-CPFPB_iw.js +1613 -0
  88. package/dist/assets/FieldButton-B7nd3jTk.css +1 -0
  89. package/dist/assets/FieldButton-lc__KGvz.js +1 -0
  90. package/dist/assets/FieldButton.stories-BweftrEg.js +1 -0
  91. package/dist/assets/FormControl-DX3yRMc2.css +1 -0
  92. package/dist/assets/FormControl-cSvM3XwI.js +7 -0
  93. package/dist/assets/FormControl.stories-guYQ8AuE.js +42 -0
  94. package/dist/assets/Heading-BMcfRMjT.css +1 -0
  95. package/dist/assets/Heading-CEZfMm-F.js +1 -0
  96. package/dist/assets/Heading.stories-CzERNny6.js +67 -0
  97. package/dist/assets/Icon-CfZyHxyH.js +8 -0
  98. package/dist/assets/{Icon-CyGLQNx7.css → Icon-D-_6_kTJ.css} +1 -1
  99. package/dist/assets/Icon-RSC-BpFBpboR.js +6 -0
  100. package/dist/assets/Icon.stories-D27wol8h.js +45 -0
  101. package/dist/assets/IconButton-CUt4Aks_.js +8 -0
  102. package/dist/assets/IconButton-D-myVwPD.css +1 -0
  103. package/dist/assets/IconTile.stories-jvAqK25q.js +88 -0
  104. package/dist/assets/Input-DXnvG-Wl.js +95 -0
  105. package/dist/assets/InputContainer-CKX9LGmw.js +2 -0
  106. package/dist/assets/InputContainer-dj6obgaH.css +1 -0
  107. package/dist/assets/IntegrationWithReactHookForm.stories-CW7Lqen8.js +467 -0
  108. package/dist/assets/{IntlFormattedDateTime.stories-BCwbTrw1.js → IntlFormattedAggregatedDateTime-CsA6eNMt.js} +112 -94
  109. package/dist/assets/{IntlFormattedCurrency.stories-j1D4xFto.js → IntlFormattedCurrency-CAb0INYF.js} +149 -125
  110. package/dist/assets/IntlFormattedCurrency.stories-CDdFf0Ih.js +1 -0
  111. package/dist/assets/IntlFormattedDateTime.stories-UGK_UBla.js +2 -0
  112. package/dist/assets/{constants-DDJ2G0OO.js → IntlFormattedTime-CFUwDROI.js} +853 -761
  113. package/dist/assets/LayoutFlex-Bc-UxKN0.css +1 -0
  114. package/dist/assets/LayoutFlex-DdWp4cl3.js +1 -0
  115. package/dist/assets/LayoutFlexItem-D6I-QYqv.css +1 -0
  116. package/dist/assets/LayoutFlexItem-DE78Bh3c.js +1 -0
  117. package/dist/assets/LayoutGrid-CIFhWu8r.css +1 -0
  118. package/dist/assets/LayoutGrid-qM5_bxVY.js +1 -0
  119. package/dist/assets/LayoutGrid.stories-DnBXjNoY.js +88 -0
  120. package/dist/assets/LayoutGridItem-BDeI61oE.css +1 -0
  121. package/dist/assets/LayoutGridItem-DXWb3V6X.js +1 -0
  122. package/dist/assets/Link-DZ7eineG.css +1 -0
  123. package/dist/assets/Link-J-HUcV5T.js +5 -0
  124. package/dist/assets/{Link.stories-6gHkl5xC.js → Link.stories-Bi7F_Vkw.js} +7 -7
  125. package/dist/assets/Loader-D4VDQ8pj.css +1 -0
  126. package/dist/assets/Loader-D9Ihhamv.js +1 -0
  127. package/dist/assets/Loader.stories-CA2r7ptV.js +37 -0
  128. package/dist/assets/MultiSelectChips-DLTwAQne.js +2 -0
  129. package/dist/assets/MultiSelectChips.stories-BXvs5PAK.js +608 -0
  130. package/dist/assets/NativeSelectField.stories-D0re4a3o.js +295 -0
  131. package/dist/assets/NumberField-BAofx_Ni.js +6 -0
  132. package/dist/assets/NumberField.stories-BhuTuTmY.js +254 -0
  133. package/dist/assets/ObserveIntersection-DPsyMqP-.js +8 -0
  134. package/dist/assets/ObserveIntersection.stories-C5r2quD1.js +27 -0
  135. package/dist/assets/OnboardingTooltip-By90tTWJ.css +1 -0
  136. package/dist/assets/OnboardingTooltip-D8NhfEzc.js +24 -0
  137. package/dist/assets/OnboardingTooltip.stories-D2Y_je7z.js +107 -0
  138. package/dist/assets/OnboardingTooltip.tests.stories-Chu-efpG.js +79 -0
  139. package/dist/assets/OnboardingTour-90hHg-Pp.css +1 -0
  140. package/dist/assets/OnboardingTour-DGI3bTQy.js +4 -0
  141. package/dist/assets/OnboardingTour.stories-Cb1WP0Hu.js +50 -0
  142. package/dist/assets/{OnboardingTour.tests.stories-CHMykq2a.js → OnboardingTour.tests.stories-B05mBGhB.js} +6 -6
  143. package/dist/assets/PasswordField-ByApWpbK.js +6 -0
  144. package/dist/assets/PasswordField.stories-DMtrOVsn.js +229 -0
  145. package/dist/assets/PreplyLogo-D-slBTep.js +3 -0
  146. package/dist/assets/PreplyLogo.stories-uJXJ3dh_.js +93 -0
  147. package/dist/assets/ProgressBar-Tb0nv9N6.js +4 -0
  148. package/dist/assets/ProgressBar-ZiF8cU84.css +1 -0
  149. package/dist/assets/ProgressBar.stories-Bj5ouQO7.js +43 -0
  150. package/dist/assets/ProgressSteps-CKNbDWn0.js +4 -0
  151. package/dist/assets/ProgressSteps-LZubx2ie.css +1 -0
  152. package/dist/assets/ProgressSteps.stories-Dl5cvdWw.js +31 -0
  153. package/dist/assets/PromoDialog-Daxo9KGU.js +3 -0
  154. package/dist/assets/RangeSlider-BshsrfHH.js +4 -0
  155. package/dist/assets/RangeSlider.stories-BnxUgnUq.js +117 -0
  156. package/dist/assets/Rating-7Lokv5qX.js +2 -0
  157. package/dist/assets/Rating.stories-C6vLq72a.js +115 -0
  158. package/dist/assets/RatingInput-B9JvC6a9.js +30 -0
  159. package/dist/assets/RatingInput.stories-CZaxR49A.js +421 -0
  160. package/dist/assets/SelectField-_eSdIkCW.js +19 -0
  161. package/dist/assets/SelectField-jvir0s5w.css +1 -0
  162. package/dist/assets/SelectField.stories-CeBOPAQf.js +517 -0
  163. package/dist/assets/ShowOnIntersection-sdAtBMhN.js +11 -0
  164. package/dist/assets/ShowOnIntersection.stories-Lmr1KetU.js +17 -0
  165. package/dist/assets/SingleSelectChips-BuIHP3oW.js +2 -0
  166. package/dist/assets/{SingleSelectChips.stories-CTAvW0Y9.js → SingleSelectChips.stories-z43WCX3L.js} +22 -22
  167. package/dist/assets/Slider-BJ8Eqvyw.css +1 -0
  168. package/dist/assets/Slider-BjEfhJ_o.js +2 -0
  169. package/dist/assets/Slider.stories-OZrQotEf.js +69 -0
  170. package/dist/assets/Spinner-9IaQuPm2.js +1 -0
  171. package/dist/assets/Spinner-CIgevzeA.css +1 -0
  172. package/dist/assets/Stars-DRmASRCW.css +1 -0
  173. package/dist/assets/Stars-DuQupRe3.js +1 -0
  174. package/dist/assets/Steps-BAxCCGnQ.css +1 -0
  175. package/dist/assets/Steps-Bf2x77zr.js +26 -0
  176. package/dist/assets/{Steps.stories-DqOo6fKy.js → Steps.stories-DFPBr2Yl.js} +13 -11
  177. package/dist/assets/Switch-ClfB15Th.css +1 -0
  178. package/dist/assets/Switch-DPX8X1b7.js +12 -0
  179. package/dist/assets/Switch.stories-EIYyG0Zt.js +151 -0
  180. package/dist/assets/Text-BTI4NIf0.css +1 -0
  181. package/dist/assets/Text-bm2vnOS2.js +1 -0
  182. package/dist/assets/Text.stories-CmIl_fwM.js +67 -0
  183. package/dist/assets/TextField-zS8J7vJP.js +6 -0
  184. package/dist/assets/TextField.stories-BUVrLpus.js +254 -0
  185. package/dist/assets/{TextHighlighted-CzbRMqIZ.css → TextHighlighted-C53ygX_A.css} +1 -1
  186. package/dist/assets/TextHighlighted-DF3lEelY.js +1 -0
  187. package/dist/assets/TextHighlighted.stories-CqDVxX79.js +32 -0
  188. package/dist/assets/{TextInline-CNIzsRbS.css → TextInline-BDaxjuE1.css} +1 -1
  189. package/dist/assets/TextInline-CHB850A5.js +1 -0
  190. package/dist/assets/TextInline.stories-CN5P8M-t.js +50 -0
  191. package/dist/assets/TextareaField-D-D245Qp.js +6 -0
  192. package/dist/assets/TextareaField.stories-zf-ovHbR.js +272 -0
  193. package/dist/assets/Toast-BwHq_wh7.js +3 -0
  194. package/dist/assets/Toast-CeQJ1lVu.css +1 -0
  195. package/dist/assets/Toast.stories-ojcdW7OV.js +183 -0
  196. package/dist/assets/TokyoUIAttach-CJ32NKTG.js +1 -0
  197. package/dist/assets/TokyoUIAvailability7LateNight-DffduFvP.js +1 -0
  198. package/dist/assets/TokyoUICheck-UkrDdu35.js +1 -0
  199. package/dist/assets/TokyoUICheckmark-6GaMBtS8.js +1 -0
  200. package/dist/assets/TokyoUIChevronDown-CS0lTt7n.js +1 -0
  201. package/dist/assets/TokyoUIChevronRight-BtUABx06.js +1 -0
  202. package/dist/assets/TokyoUIClose-cJyNy-kq.js +1 -0
  203. package/dist/assets/TokyoUIEmojiFrowning-DEhH_o6k.js +1 -0
  204. package/dist/assets/TokyoUIErrorWarning-CE_6hT_0.js +1 -0
  205. package/dist/assets/TokyoUIExerciseClosedGapsJumble-CmLQbqx9.js +1 -0
  206. package/dist/assets/TokyoUIEye--Ky-ic4j.js +1 -0
  207. package/dist/assets/TokyoUIFav-D3EBPocg.js +1 -0
  208. package/dist/assets/TokyoUIInfo-B-CriP10.js +1 -0
  209. package/dist/assets/TokyoUILanguage-B0kNm-zw.js +1 -0
  210. package/dist/assets/TokyoUILibraryExplore-BZ10fOAZ.js +1 -0
  211. package/dist/assets/TokyoUILock-Chkf2ogE.js +1 -0
  212. package/dist/assets/TokyoUIMessages-z4JOaU4E.js +1 -0
  213. package/dist/assets/TokyoUIMinus-DKK-A5EK.js +1 -0
  214. package/dist/assets/TokyoUINotebook-DO8t9gWt.js +1 -0
  215. package/dist/assets/TokyoUINotesWithPad-DM2X7aVA.js +1 -0
  216. package/dist/assets/TokyoUIPhone-Bw5Vf4vA.js +1 -0
  217. package/dist/assets/TokyoUISettings-D5pBmcYk.js +1 -0
  218. package/dist/assets/TokyoUISparkle-C3Cy7wMI.js +1 -0
  219. package/dist/assets/TokyoUIStarFilled-CYq7gSvg.js +1 -0
  220. package/dist/assets/TokyoUITag-Cg8pSiwB.js +1 -0
  221. package/dist/assets/TokyoUIUpload-B1wN3uN1.js +1 -0
  222. package/dist/assets/TokyoUIUser-BxbKTbW_.js +1 -0
  223. package/dist/assets/{Tooltip-Cm9bKrYj.css → Tooltip-C5LpnpaC.css} +1 -1
  224. package/dist/assets/Tooltip-IQdlsINh.js +9 -0
  225. package/dist/assets/Tooltip.stories-9Tn4uyBh.js +93 -0
  226. package/dist/assets/Tooltip.tests.stories-Cr4rBDLb.js +65 -0
  227. package/dist/assets/VisuallyHidden-CN0xhFLZ.js +1 -0
  228. package/dist/assets/VisuallyHidden-SLhaLKxx.css +1 -0
  229. package/dist/assets/WithTooltip-65CFNBJE-B-ngulbF.js +9 -0
  230. package/dist/assets/align-self-B8vQODdk.css +1 -0
  231. package/dist/assets/align-self-DLZqaACP.js +1 -0
  232. package/dist/assets/ar-CmAh1fW1.js +1 -0
  233. package/dist/assets/axe-C7CO230w.js +20 -0
  234. package/dist/assets/breakpoints-DVI9b-sj.js +31 -0
  235. package/dist/assets/breakpoints-DhB77ppz.js +32 -0
  236. package/dist/assets/breakpoints-JehRf-HQ.js +30 -0
  237. package/dist/assets/{changelog-BoskfpJ8.js → changelog-BlpT3PVh.js} +18 -3
  238. package/dist/assets/chunk-242VQQM5-BHHKbgg-.js +1 -0
  239. package/dist/assets/chunk-3LY4VQVK-Di70sXb8.js +6 -0
  240. package/dist/assets/chunk-BneVvdWh.js +1 -0
  241. package/dist/assets/chunk-YKABRMAI-tsMt0pG-.js +18 -0
  242. package/dist/assets/client-o3HipSzo.js +1 -0
  243. package/dist/assets/components-B2mdrQXl.js +1 -0
  244. package/dist/assets/components-BJI6UJJQ.js +250 -0
  245. package/dist/assets/constants-BKSB-IRi.js +37 -0
  246. package/dist/assets/createRequiredContext-CgxIAZIj.js +241 -0
  247. package/dist/assets/createRequiredContext-rvejDfGq.css +1 -0
  248. package/dist/assets/cs-o6LA2LFi.js +1 -0
  249. package/dist/assets/de-CGU9rRAn.js +1 -0
  250. package/dist/assets/dist-Cc1j9Pjk.js +1 -0
  251. package/dist/assets/dist-CrJFSSHJ.css +1 -0
  252. package/dist/assets/dist-DtfJeYQK.js +32 -0
  253. package/dist/assets/dist-XW9XCd1i.js +122 -0
  254. package/dist/assets/emotion-unitless.esm-NifOLKB5.js +1 -0
  255. package/dist/assets/en-CAnKwElg.js +1 -0
  256. package/dist/assets/es-MH1DT2kV.js +1 -0
  257. package/dist/assets/esm-CS074ZRu.js +12 -0
  258. package/dist/assets/filterAttributesPassedByRadixUIAtRuntime-CGiuUnR2.js +1 -0
  259. package/dist/assets/fonts-explorer.stories-I8-ZOqnR.js +100 -0
  260. package/dist/assets/formatter-EIJCOSYU-CrRlJc_C.js +1 -0
  261. package/dist/assets/fr-CgnvB_BI.js +1 -0
  262. package/dist/assets/getTokenVar-BdWui4zI.js +11 -0
  263. package/dist/assets/gradientBorders-CStgfkEm.js +45 -0
  264. package/dist/assets/hk-CaQALTDd.js +1 -0
  265. package/dist/assets/hover-BZswJq9X.js +13 -0
  266. package/dist/assets/hover-DkvE2XjW.js +14 -0
  267. package/dist/assets/hover-xopBYDG-.js +16 -0
  268. package/dist/assets/id-Bp-BGWpK.js +1 -0
  269. package/dist/assets/iframe-CYkk6Y66.css +1 -0
  270. package/dist/assets/iframe-f34VuKy-.js +1194 -0
  271. package/dist/assets/intro-OCMNWtPd.js +31 -0
  272. package/dist/assets/it-BMSKWkCc.js +1 -0
  273. package/dist/assets/ja-wtIn1pnV.js +1 -0
  274. package/dist/assets/jsx-runtime-C2wGStra.js +1 -0
  275. package/dist/assets/ko-DvhW2pVO.js +1 -0
  276. package/dist/assets/layout-relative-BDjBJtei.js +1 -0
  277. package/dist/assets/layout-relative-D3aa9xon.css +1 -0
  278. package/dist/assets/layout-relative.module-BEsoJgyf.js +1 -0
  279. package/dist/assets/lib-CXCPi5ID.js +26 -0
  280. package/dist/assets/matchers-5TDFFDYO-CdU16gNa.js +28 -0
  281. package/dist/assets/mcp-wYzkbrqT.js +32 -0
  282. package/dist/assets/mdx-react-shim-Bi0BC7jy.js +1 -0
  283. package/dist/assets/migrating-from-less-DfjDPQaC.js +36 -0
  284. package/dist/assets/nl-BW9s7SpL.js +1 -0
  285. package/dist/assets/pl-B0BEw5na.js +1 -0
  286. package/dist/assets/playground.stories-oI9ZDlnt.js +6 -0
  287. package/dist/assets/preload-helper-nVtPd9zc.js +1 -0
  288. package/dist/assets/pt-qEWGT9cy.js +1 -0
  289. package/dist/assets/react-18-ziWOvQTm.js +1 -0
  290. package/dist/assets/react-B8jdHdWa.js +1 -0
  291. package/dist/assets/react-C6B6irz5.js +1 -0
  292. package/dist/assets/react-C7IZe2D1.js +1 -0
  293. package/dist/assets/react-dom-CLuuWI32.js +8 -0
  294. package/dist/assets/render-icon-Dzkg3KVE.js +1 -0
  295. package/dist/assets/ro-DLH7plv7.js +1 -0
  296. package/dist/assets/ru-BmiT91mV.js +1 -0
  297. package/dist/assets/shared-strings-DrlpFtg5.js +1 -0
  298. package/dist/assets/shim-Do3tPrxV.js +1 -0
  299. package/dist/assets/storybook-utils-CXrHOWy7.js +1 -0
  300. package/dist/assets/styled-components.browser.esm-BqKZXl6d.js +2 -0
  301. package/dist/assets/styled-components.browser.esm-ByE8r-7j.js +2 -0
  302. package/dist/assets/sv-CW9z0vaU.js +1 -0
  303. package/dist/assets/syntaxhighlighter-ED5Y7EFY-BYBQ9ptv.js +6 -0
  304. package/dist/assets/text-accent-CfNKCcRq.js +1 -0
  305. package/dist/assets/text-centered-DCp9pLpt.css +1 -0
  306. package/dist/assets/text-centered-ozyo-Yf9.js +1 -0
  307. package/dist/assets/th-isRlGLm5.js +1 -0
  308. package/dist/assets/theming-BrHPXhKw.js +1 -0
  309. package/dist/assets/theming-C7TmxyGw.js +39 -0
  310. package/dist/assets/tokens-C1gyoh8D.js +16 -0
  311. package/dist/assets/tokens-C7Hn5QJc.js +15 -0
  312. package/dist/assets/tokens-CubiKgE5.js +15 -0
  313. package/dist/assets/tr-CvfBJD7Q.js +1 -0
  314. package/dist/assets/tw-DpiBe17Q.js +1 -0
  315. package/dist/assets/ua-CPYW3Hlj.js +1 -0
  316. package/dist/assets/useBreakpointMatch-B8CIBjwc.js +1 -0
  317. package/dist/assets/useControllableState-BBsZ9A2n.js +1 -0
  318. package/dist/assets/useMergeRefs-D0D5dYrn.js +1 -0
  319. package/dist/assets/usePortalElement-uqsVx9U8.js +19 -0
  320. package/dist/assets/useStableCallback-DnHVYLVo.js +1 -0
  321. package/dist/assets/welcome-t0_iHw7X.js +23 -0
  322. package/dist/assets/zeroheight-DxMICzug.js +75 -0
  323. package/dist/assets/zh-C43VYh_6.js +1 -0
  324. package/dist/iframe.html +69 -40
  325. package/dist/index.html +8 -3
  326. package/dist/index.json +1 -1
  327. package/dist/preview-stats.json +21532 -16519
  328. package/dist/project.json +1 -1
  329. package/dist/sb-addons/a11y-1/manager-bundle.js +55 -3
  330. package/dist/sb-addons/chromatic-com-storybook-5/manager-bundle.js +352 -0
  331. package/dist/sb-addons/chromatic-com-storybook-5/manager-bundle.js.LEGAL.txt +40 -0
  332. package/dist/sb-addons/docs-4/manager-bundle.js +1 -1
  333. package/dist/sb-addons/links-2/manager-bundle.js +1 -1
  334. package/dist/sb-addons/storybook-6/manager-bundle.js +3 -0
  335. package/dist/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +66 -66
  336. package/dist/sb-addons/vitest-3/manager-bundle.js +1 -1
  337. package/dist/sb-manager/globals-runtime.js +9758 -7407
  338. package/dist/sb-manager/runtime.js +3034 -2325
  339. package/dist/vite-inject-mocker-entry.js +2 -18
  340. package/package.json +19 -20
  341. package/pages/30.guides/70.assets/constants/icon-imports.ts +8 -0
  342. package/dist/assets/00-BMs4V7pn.css +0 -1
  343. package/dist/assets/00-CGymiNpA.css +0 -1
  344. package/dist/assets/00.LayoutFlex.stories-lllooXjc.js +0 -85
  345. package/dist/assets/00.applications-ApRgtzMF.js +0 -50
  346. package/dist/assets/00.favicons.guide-4ivqvu_K.js +0 -21
  347. package/dist/assets/00.token-explorer-DCBSOdHJ.js +0 -340
  348. package/dist/assets/00.using-responsive-props-BhAkr9Gn.js +0 -18
  349. package/dist/assets/01-2pw2iC19.css +0 -1
  350. package/dist/assets/01.semantic-tokens-BBQKcQ5o.js +0 -11
  351. package/dist/assets/01.using-shorthand-props-SxccG8oR.js +0 -39
  352. package/dist/assets/10.Combinations.stories-D3XySbv3.js +0 -128
  353. package/dist/assets/10.fonts.guide-p4vZ2TE8.js +0 -39
  354. package/dist/assets/10.ssr-BLS5aGYV.js +0 -91
  355. package/dist/assets/11.fonts.explorer-BMm1rcuE.js +0 -2
  356. package/dist/assets/11.ssr.app-router-B_LdKMuw.js +0 -59
  357. package/dist/assets/20.libraries-Uutk1t-k.js +0 -21
  358. package/dist/assets/2025-q4-ds-cleanup-D2AonoQX.js +0 -341
  359. package/dist/assets/30.icons.explorer-D63Br7GU.js +0 -72
  360. package/dist/assets/30.storybook-B_OtmSNE.js +0 -42
  361. package/dist/assets/40.illustrations.explorer-Pi9iaQwM.js +0 -21
  362. package/dist/assets/90.advanced-tEkbHxcl.js +0 -32
  363. package/dist/assets/Accordion-2avWtqXz.js +0 -23
  364. package/dist/assets/Accordion-DBIXJNVb.css +0 -1
  365. package/dist/assets/AlertBanner.primitives.stories-DpA-of6O.js +0 -14
  366. package/dist/assets/AlertBanner.stories-B7xxyCn2.js +0 -124
  367. package/dist/assets/AlertBannerAction-D14MnnIA.js +0 -128
  368. package/dist/assets/AlertBannerAction-Dgo9FikS.css +0 -1
  369. package/dist/assets/AlertDialog-B5rRXSxb.js +0 -4
  370. package/dist/assets/AlertDialog-DjB9AufV.css +0 -1
  371. package/dist/assets/Avatar-B6s9WtES.css +0 -1
  372. package/dist/assets/Avatar-Die_4zu0.js +0 -6
  373. package/dist/assets/Avatar.stories-DJHK0lEC.js +0 -42
  374. package/dist/assets/AvatarWithStatus.stories-E9QQr3Dr.js +0 -41
  375. package/dist/assets/Badge-BSDHZ3bI.js +0 -10
  376. package/dist/assets/Badge.stories-6FOVA96I.js +0 -90
  377. package/dist/assets/Box-CfDLuPKr.css +0 -1
  378. package/dist/assets/Box.stories-DAVs5Qmd.js +0 -44
  379. package/dist/assets/BubbleCounter.stories-DHv_hrNV.js +0 -242
  380. package/dist/assets/Button-C0Um_QuO.js +0 -18
  381. package/dist/assets/Button-U6ON1pQl.css +0 -1
  382. package/dist/assets/Button.stories-CTSwUwYJ.js +0 -270
  383. package/dist/assets/ButtonBase-Bv11I0L0.css +0 -1
  384. package/dist/assets/ButtonBase-DGinnt2u.js +0 -1
  385. package/dist/assets/ButtonBase-HkSfLFbE.js +0 -8
  386. package/dist/assets/ButtonBase-vTD2whCv.css +0 -1
  387. package/dist/assets/CalloutBanner-Cw440Euq.css +0 -1
  388. package/dist/assets/CalloutBanner.stories-C62ApsKt.js +0 -286
  389. package/dist/assets/Checkbox-CrI8PiHH.css +0 -1
  390. package/dist/assets/Checkbox-U8uzIr-e.js +0 -10
  391. package/dist/assets/Checkbox.tests.stories-CrLxNZ2d.js +0 -64
  392. package/dist/assets/Chips-BXIX_-Jx.css +0 -1
  393. package/dist/assets/Chips.stories-BMxD1fH1.js +0 -146
  394. package/dist/assets/Color-ASIRERSW-BsR8auWQ.js +0 -1
  395. package/dist/assets/ComposingPopovers.stories-DtmTbsU_.js +0 -49
  396. package/dist/assets/CountryFlag-D40CtNEa.js +0 -49
  397. package/dist/assets/CountryFlag.test.stories-Bde0Okud.js +0 -27
  398. package/dist/assets/Dialog-CJQmu6iz.js +0 -13
  399. package/dist/assets/Dialog.primitives-DLgD-yog.css +0 -1
  400. package/dist/assets/Dialog.primitives.stories-BRGfipHO.js +0 -213
  401. package/dist/assets/Dialog.stories-D4tyIGD0.js +0 -329
  402. package/dist/assets/Dialog.test.stories-xCqInD69.js +0 -146
  403. package/dist/assets/DialogActions-GLMqsJfB.js +0 -101
  404. package/dist/assets/DialogCloseButton-D5YliaRd.js +0 -149
  405. package/dist/assets/DialogCloseButton-DXcPNZE4.css +0 -1
  406. package/dist/assets/DismissibleChips-YCE2ttV-.js +0 -1
  407. package/dist/assets/DismissibleChips.stories-Cx3sJ6UG.js +0 -625
  408. package/dist/assets/Divider-j3vJV734.js +0 -1
  409. package/dist/assets/Divider.stories-CK-PipZt.js +0 -9
  410. package/dist/assets/DocsRenderer-GHJI37HO-WuLZQEsz.js +0 -2
  411. package/dist/assets/DropdownMenu-B9HIHqSr.css +0 -1
  412. package/dist/assets/DropdownMenu-CgNvtJ2F.js +0 -1232
  413. package/dist/assets/DropdownMenu.stories-DpmKDI1Q.js +0 -1603
  414. package/dist/assets/FieldButton-CDW5AvHN.css +0 -1
  415. package/dist/assets/FieldButton-DpHF49o_.js +0 -1
  416. package/dist/assets/FieldButton.stories-C7v9WweE.js +0 -1
  417. package/dist/assets/FormControl-BBqp99uJ.css +0 -1
  418. package/dist/assets/FormControl-Zqf1cIwP.js +0 -7
  419. package/dist/assets/FormControl.stories-D4xKaMaA.js +0 -42
  420. package/dist/assets/Heading-BTHqyLcz.css +0 -1
  421. package/dist/assets/Heading-Cj8Si45g.js +0 -1
  422. package/dist/assets/Heading.stories-BG_kLNJz.js +0 -67
  423. package/dist/assets/Icon-CC0yjdx9.js +0 -8
  424. package/dist/assets/Icon-RSC-Cl0H44C3.js +0 -6
  425. package/dist/assets/Icon.stories-DAIYY4Bp.js +0 -45
  426. package/dist/assets/IconButton-BpjNyYgD.js +0 -8
  427. package/dist/assets/IconButton-COydvoLU.css +0 -1
  428. package/dist/assets/IconTile-CAnlU9ss.js +0 -1
  429. package/dist/assets/IconTile-DDvHA75S.css +0 -1
  430. package/dist/assets/IconTile.stories-DnUYn3Id.js +0 -88
  431. package/dist/assets/Input-DuW1_5SG.js +0 -48
  432. package/dist/assets/InputContainer-Cmdo_xyq.js +0 -2
  433. package/dist/assets/InputContainer-DIiUCsnL.css +0 -1
  434. package/dist/assets/IntegrationWithReactHookForm.stories-9EImL3zR.js +0 -467
  435. package/dist/assets/LayoutFlex-7DoB3s9X.css +0 -1
  436. package/dist/assets/LayoutFlex-CTH6ELdm.js +0 -1
  437. package/dist/assets/LayoutFlex-DXRMJ9FH.js +0 -1
  438. package/dist/assets/LayoutFlex-vHEU4SLb.css +0 -1
  439. package/dist/assets/LayoutFlexItem-C4cPPR-1.css +0 -1
  440. package/dist/assets/LayoutFlexItem-lmgCv4Y9.js +0 -1
  441. package/dist/assets/LayoutGrid-CSKyUAin.css +0 -1
  442. package/dist/assets/LayoutGrid-CUGRXgEO.js +0 -1
  443. package/dist/assets/LayoutGrid-Cm59X3OY.css +0 -1
  444. package/dist/assets/LayoutGrid-SAztDD7Z.js +0 -1
  445. package/dist/assets/LayoutGrid.stories-2dbzhVi7.js +0 -88
  446. package/dist/assets/LayoutGridItem-Bo7Opdaq.css +0 -1
  447. package/dist/assets/LayoutGridItem-UTn4G6JO.js +0 -1
  448. package/dist/assets/Link-BAFCJR3T.js +0 -5
  449. package/dist/assets/Link-BIhxLhqK.css +0 -1
  450. package/dist/assets/Loader-hjoeRutr.css +0 -1
  451. package/dist/assets/Loader.stories-CG-Eo8vg.js +0 -37
  452. package/dist/assets/MultiSelectChips-CBnEtn4N.js +0 -2
  453. package/dist/assets/MultiSelectChips.stories-Ch4FxGM2.js +0 -608
  454. package/dist/assets/NativeSelectField.stories-Pj5dm9hL.js +0 -295
  455. package/dist/assets/NumberField-klmIiQAi.js +0 -6
  456. package/dist/assets/NumberField.stories-D740jISy.js +0 -254
  457. package/dist/assets/ObserveIntersection-Dx2gD1CU.js +0 -8
  458. package/dist/assets/ObserveIntersection.stories-JJPEw5oG.js +0 -27
  459. package/dist/assets/OnboardingTooltip-DzQhJzWc.js +0 -16
  460. package/dist/assets/OnboardingTooltip-X4QjsIe6.css +0 -1
  461. package/dist/assets/OnboardingTooltip.stories-BDgRgbzO.js +0 -107
  462. package/dist/assets/OnboardingTooltip.tests.stories-DrqovP8T.js +0 -79
  463. package/dist/assets/OnboardingTour-B5gEod5H.js +0 -4
  464. package/dist/assets/OnboardingTour-DoEbirUE.css +0 -1
  465. package/dist/assets/OnboardingTour.stories-BzHBS52z.js +0 -46
  466. package/dist/assets/PasswordField-BjqiXySY.js +0 -6
  467. package/dist/assets/PasswordField.stories-YCTP14pU.js +0 -229
  468. package/dist/assets/PreplyLogo.stories-lPBmn_E2.js +0 -95
  469. package/dist/assets/ProgressBar-N_jhfqno.css +0 -1
  470. package/dist/assets/ProgressBar.stories-DqvDJEeF.js +0 -44
  471. package/dist/assets/ProgressSteps-5GOrC9Qn.css +0 -1
  472. package/dist/assets/ProgressSteps-Dce_SjLt.js +0 -2
  473. package/dist/assets/ProgressSteps.stories-BMDqz7-Z.js +0 -31
  474. package/dist/assets/PromoDialog-DdnXVfH8.js +0 -3
  475. package/dist/assets/RangeSlider-MZqvjtBp.js +0 -4
  476. package/dist/assets/RangeSlider.stories-BS4-l1u4.js +0 -117
  477. package/dist/assets/Rating.stories-wHsrBw3w.js +0 -116
  478. package/dist/assets/RatingInput.stories-BKAXF4Qv.js +0 -455
  479. package/dist/assets/SelectField-BvrdbknI.css +0 -1
  480. package/dist/assets/SelectField-DU60q2LU.js +0 -19
  481. package/dist/assets/SelectField.stories-BKCyFPQa.js +0 -517
  482. package/dist/assets/ShowOnIntersection.stories-BdO_3n9P.js +0 -17
  483. package/dist/assets/SingleSelectChips-CDtny-H7.js +0 -2
  484. package/dist/assets/Slider-B8ndK7PX.js +0 -2
  485. package/dist/assets/Slider-B_IRLClB.css +0 -1
  486. package/dist/assets/Slider.stories-CBV0fePJ.js +0 -69
  487. package/dist/assets/Spinner-8-RB4YZR.js +0 -1
  488. package/dist/assets/Spinner-CzIq-Vt3.css +0 -1
  489. package/dist/assets/Stars-BJkSwBV2.css +0 -1
  490. package/dist/assets/Stars-BSTkfC0i.js +0 -1
  491. package/dist/assets/Steps-DUeCVcxV.js +0 -26
  492. package/dist/assets/Steps-nUB2CDHz.css +0 -1
  493. package/dist/assets/Switch-DHmH1ale.css +0 -1
  494. package/dist/assets/Switch-Dyoj_Z1P.js +0 -12
  495. package/dist/assets/Switch.stories-CDVDjU2B.js +0 -151
  496. package/dist/assets/Text-D2ADMZ83.css +0 -1
  497. package/dist/assets/Text-DJTKRzSb.js +0 -1
  498. package/dist/assets/Text-DvShrljd.js +0 -1
  499. package/dist/assets/Text-O3SM8a3p.css +0 -1
  500. package/dist/assets/Text.stories-DRuLuJwb.js +0 -67
  501. package/dist/assets/TextField-BSJgR_zK.js +0 -6
  502. package/dist/assets/TextField.stories-rtu-asgN.js +0 -254
  503. package/dist/assets/TextHighlighted.stories-Bc0bMLCv.js +0 -32
  504. package/dist/assets/TextInline.stories-DKWvwjg6.js +0 -50
  505. package/dist/assets/TextareaField-DUqOyVK5.js +0 -53
  506. package/dist/assets/TextareaField.stories-CiRYJL_j.js +0 -272
  507. package/dist/assets/Toast-PKFBYWQw.css +0 -1
  508. package/dist/assets/Toast.stories-S5qFLRPf.js +0 -185
  509. package/dist/assets/TokyoUIAttach-BsMlsNHQ.js +0 -1
  510. package/dist/assets/TokyoUIAvailability7LateNight-BUCnoHXS.js +0 -1
  511. package/dist/assets/TokyoUICheck-DQLX_x10.js +0 -1
  512. package/dist/assets/TokyoUICheckmark-BHJrELn_.js +0 -1
  513. package/dist/assets/TokyoUIChevronDown-DiBNbDdz.js +0 -1
  514. package/dist/assets/TokyoUIChevronRight-DRhJYmWB.js +0 -1
  515. package/dist/assets/TokyoUIClose-BfMyMrDa.js +0 -1
  516. package/dist/assets/TokyoUIEmojiFrowning-DkxcBN-M.js +0 -1
  517. package/dist/assets/TokyoUIErrorWarning-GuwQvo24.js +0 -1
  518. package/dist/assets/TokyoUIExerciseClosedGapsJumble-BhG23ylY.css +0 -1
  519. package/dist/assets/TokyoUIExerciseClosedGapsJumble-C8roFqfh.js +0 -1
  520. package/dist/assets/TokyoUIEye-oyrTN--k.js +0 -1
  521. package/dist/assets/TokyoUIFav-C-stY9U_.js +0 -1
  522. package/dist/assets/TokyoUIInfo-BSNbI4Gr.js +0 -1
  523. package/dist/assets/TokyoUILanguage-BcrymOo9.js +0 -1
  524. package/dist/assets/TokyoUILibraryExplore-DvvKpWd6.js +0 -1
  525. package/dist/assets/TokyoUILock-B22xkFQW.js +0 -1
  526. package/dist/assets/TokyoUIMessages-hZLnK87p.js +0 -1
  527. package/dist/assets/TokyoUIMinus-C6TctZRw.js +0 -1
  528. package/dist/assets/TokyoUINotebook-mwleX-o1.js +0 -1
  529. package/dist/assets/TokyoUINotesWithPad-CG0gLTYm.js +0 -1
  530. package/dist/assets/TokyoUIPhone-CFykqUer.js +0 -1
  531. package/dist/assets/TokyoUISettings-BbgnUEy1.js +0 -1
  532. package/dist/assets/TokyoUISparkle-DPOw7W2T.js +0 -1
  533. package/dist/assets/TokyoUIStarFilled-CF0iG37X.js +0 -1
  534. package/dist/assets/TokyoUITag-B1Xueyd7.js +0 -1
  535. package/dist/assets/TokyoUIUpload-CrasJ02A.js +0 -1
  536. package/dist/assets/TokyoUIUser-XhPCF9-5.js +0 -1
  537. package/dist/assets/Tooltip-BiqKWYpo.js +0 -9
  538. package/dist/assets/Tooltip.stories-DCB24NyS.js +0 -93
  539. package/dist/assets/Tooltip.tests.stories-B3iLlPPq.js +0 -65
  540. package/dist/assets/VisuallyHidden-Jfhj9R2Y.css +0 -1
  541. package/dist/assets/VisuallyHidden-fvo3PSUE.js +0 -1
  542. package/dist/assets/WithTooltip-IO6J4KBT-BUV9ELqr.js +0 -9
  543. package/dist/assets/align-self-BYi8giLn.js +0 -1
  544. package/dist/assets/align-self-C4ATemga.css +0 -1
  545. package/dist/assets/ar-D1Y8jKvF.js +0 -1
  546. package/dist/assets/axe-BG-rWtCi.js +0 -30
  547. package/dist/assets/breakpoints-BfMlrtxE.js +0 -1
  548. package/dist/assets/breakpoints-CBpJ5xgl.js +0 -31
  549. package/dist/assets/breakpoints-Cu9uEe0J.js +0 -32
  550. package/dist/assets/breakpoints-CuJuvIR9.js +0 -30
  551. package/dist/assets/client-BN2KdiJY.js +0 -1
  552. package/dist/assets/componentNames-hc9KR2nX.js +0 -1
  553. package/dist/assets/constants-5om8Ptru.js +0 -1
  554. package/dist/assets/constants-DYYVurUY.js +0 -1
  555. package/dist/assets/consts-KAYct7Gj.js +0 -1
  556. package/dist/assets/createRequiredContext-B3Arn9-D.js +0 -241
  557. package/dist/assets/createRequiredContext-Cjxy1dPq.css +0 -1
  558. package/dist/assets/cs-CamDwf-r.js +0 -1
  559. package/dist/assets/de-CWLDjtzP.js +0 -1
  560. package/dist/assets/emotion-unitless.esm-BZwEwAnk.js +0 -1
  561. package/dist/assets/en-DmA3N6t9.js +0 -1
  562. package/dist/assets/es-C4sqCVWL.js +0 -1
  563. package/dist/assets/filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js +0 -1
  564. package/dist/assets/filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js +0 -1
  565. package/dist/assets/fonts-explorer-B5KcfnOG.css +0 -1
  566. package/dist/assets/fonts-explorer.stories-CeMUwBuQ.js +0 -130
  567. package/dist/assets/formatter-QJ4M4OGQ-B2Vljo6_.js +0 -1
  568. package/dist/assets/fr-BxUkVECU.js +0 -1
  569. package/dist/assets/getTokenVar-CVkrm5Qs.js +0 -1
  570. package/dist/assets/getTokenVar-DmUJH1GU.js +0 -11
  571. package/dist/assets/gradientBorders-Q_ip9Ojv.js +0 -45
  572. package/dist/assets/hk-CamDwf-r.js +0 -1
  573. package/dist/assets/hover-C8NhPbjk.js +0 -13
  574. package/dist/assets/hover-C9fsErpn.js +0 -16
  575. package/dist/assets/hover-D55mJaWK.js +0 -14
  576. package/dist/assets/id-BUwhaEpp.js +0 -1
  577. package/dist/assets/iframe-B_74HtSc.js +0 -1891
  578. package/dist/assets/iframe-DR4kltvM.css +0 -1
  579. package/dist/assets/index-BJaBvJhB.js +0 -22
  580. package/dist/assets/index-BW8FBNWq.js +0 -193
  581. package/dist/assets/index-CC6DAVyL.js +0 -1
  582. package/dist/assets/index-Cnv20V_M.js +0 -1
  583. package/dist/assets/index-DIqvfT2b.js +0 -12
  584. package/dist/assets/index-DWFFXgf1.js +0 -1
  585. package/dist/assets/index-W3BB_3go.js +0 -41
  586. package/dist/assets/intro-DOuARa_Y.js +0 -31
  587. package/dist/assets/it-kJJ1S0qv.js +0 -1
  588. package/dist/assets/ja-CThSHCIs.js +0 -1
  589. package/dist/assets/ko-B1qhOecF.js +0 -1
  590. package/dist/assets/layout-relative-B9CiYPwj.js +0 -1
  591. package/dist/assets/layout-relative-BWwbkKin.css +0 -1
  592. package/dist/assets/layout-relative-DOxkgOJk.css +0 -1
  593. package/dist/assets/layout-relative.module-1z75aSwo-Dcy7i8oK.js +0 -1
  594. package/dist/assets/layout-relative.module-BIZVul8q.js +0 -1
  595. package/dist/assets/matchers-DMFSMG2O-CAdg16Fl.js +0 -14
  596. package/dist/assets/mcp-D2eIYE7x.js +0 -32
  597. package/dist/assets/message-DJT5rp5J.js +0 -1
  598. package/dist/assets/migrating-from-less-CxT_5hNC.js +0 -36
  599. package/dist/assets/mixins-DZk1Zeoo.js +0 -7
  600. package/dist/assets/nl-CEfRou2e.js +0 -1
  601. package/dist/assets/options-jUub4JL1.js +0 -1
  602. package/dist/assets/pl-B4SjM4RJ.js +0 -1
  603. package/dist/assets/playground.stories-DqwdOX0P.js +0 -6
  604. package/dist/assets/preload-helper-Dp1pzeXC.js +0 -1
  605. package/dist/assets/pt-B_cv-Bbz.js +0 -1
  606. package/dist/assets/react-18-DoE4ZK8O.js +0 -1
  607. package/dist/assets/render-icon-DSbVIpCz.js +0 -9
  608. package/dist/assets/render-icon-MT6RlyNs.js +0 -9
  609. package/dist/assets/ro-Wp2i1-uz.js +0 -1
  610. package/dist/assets/ru-C9RPHSvh.js +0 -1
  611. package/dist/assets/shared-strings-ThL9KyH0.js +0 -1
  612. package/dist/assets/store-B0wM9Zg8.js +0 -9
  613. package/dist/assets/styled-components.browser.esm-BHxIJD2_.js +0 -2
  614. package/dist/assets/styled-components.browser.esm-rrOBirU4.js +0 -2
  615. package/dist/assets/sv-BV70iAZ6.js +0 -1
  616. package/dist/assets/syntaxhighlighter-IQDEPFLK-BakL6JIW.js +0 -6
  617. package/dist/assets/text-accent-BQ9POoE5.js +0 -1
  618. package/dist/assets/text-centered-BEaaxMgl.js +0 -1
  619. package/dist/assets/text-centered-CT0UilMD.css +0 -1
  620. package/dist/assets/text-centered-CYnBFi3a.js +0 -1
  621. package/dist/assets/text-centered-DxXu3Wfr.css +0 -1
  622. package/dist/assets/th-DQ6Pn590.js +0 -1
  623. package/dist/assets/tokens-BEyO2LY-.js +0 -15
  624. package/dist/assets/tokens-Cg01svK-.js +0 -15
  625. package/dist/assets/tokens-CmSwgWJ8.js +0 -16
  626. package/dist/assets/tokens-im-qJUCZ.js +0 -1
  627. package/dist/assets/tr-ByOPzs3p.js +0 -1
  628. package/dist/assets/tw-CamDwf-r.js +0 -1
  629. package/dist/assets/ua-rcge5Swp.js +0 -1
  630. package/dist/assets/useControllableState-BB4EHwEp.js +0 -1
  631. package/dist/assets/useHostname-CbpnzdHv.js +0 -1
  632. package/dist/assets/useMergeRefs-CFhXCqbA.js +0 -1
  633. package/dist/assets/useMergeRefs-Caz9hOck.js +0 -1
  634. package/dist/assets/useOpenInteractionType-D3sASQWj.js +0 -15
  635. package/dist/assets/usePortalElement-Cbyb850w.js +0 -19
  636. package/dist/assets/useStableCallback-D5P5kDx5.js +0 -1
  637. package/dist/assets/useToken-OSVftwxQ.js +0 -1
  638. package/dist/assets/welcome-QqBTVkpV.js +0 -23
  639. package/dist/assets/zeroheight-BXMq4jvo.js +0 -75
  640. package/dist/assets/zh-B9zAtuTc.js +0 -1
  641. package/dist/sb-addons/storybook-5/manager-bundle.js +0 -3
  642. package/vitest.config.mts +0 -30
@@ -0,0 +1,42 @@
1
+ import{n as e}from"./chunk-BneVvdWh.js";import{t}from"./jsx-runtime-C2wGStra.js";import{l as n,o as r}from"./iframe-f34VuKy-.js";import{r as i}from"./react-B8jdHdWa.js";import{t as a}from"./mdx-react-shim-Bi0BC7jy.js";function o(e){let t={a:`a`,code:`code`,h1:`h1`,h2:`h2`,p:`p`,pre:`pre`,...i(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r,{title:`Guides/Installation/Storybook`}),`
2
+ `,(0,c.jsx)(t.h1,{id:`installation-storybook`,children:`Installation: Storybook`}),`
3
+ `,(0,c.jsxs)(t.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 `,(0,c.jsx)(t.a,{href:`/story/guides-installation-libraries--page`,children:`Installation: Libaries`}),` guide.`]}),`
4
+ `,(0,c.jsx)(t.h2,{id:`packages`,children:`Packages`}),`
5
+ `,(0,c.jsxs)(t.p,{children:[`You need to install `,(0,c.jsx)(t.code,{children:`@preply/ds-web-root`}),` which provides a single entry point to instantiate all the necessary resources in Storybook docs. Additionally, we need to add `,(0,c.jsx)(t.code,{children:`@preply/ds-web-lib`}),` to `,(0,c.jsx)(t.code,{children:`devDependencies`}),` as well.`]}),`
6
+ `,(0,c.jsx)(t.pre,{children:(0,c.jsx)(t.code,{children:`yarn add --dev @preply/ds-web-root @preply/ds-web/lib
7
+ `})}),`
8
+ `,(0,c.jsx)(t.h2,{id:`configure-storybook`,children:`Configure Storybook`}),`
9
+ `,(0,c.jsxs)(t.p,{children:[`We need to add `,(0,c.jsx)(t.code,{children:`<RootProvider/>`}),` to Storybook's decorators.`]}),`
10
+ `,(0,c.jsx)(t.p,{children:`How to achieve this will depend on your Storybook is configured.`}),`
11
+ `,(0,c.jsxs)(t.p,{children:[`In case your Storybook uses a `,(0,c.jsx)(t.code,{children:`config.js`}),` file to do so, add a decorater with `,(0,c.jsx)(t.code,{children:`RootProvider`}),`.`]}),`
12
+ `,(0,c.jsx)(t.pre,{children:(0,c.jsx)(t.code,{className:`language-javascript`,children:`import { RootProvider } from '@preply/ds-web-root';
13
+
14
+ function withDSProvider(storyFn) {
15
+ return (
16
+ <RootProvider target={window.document.body} theme="tokyo-ui">
17
+ {storyFn()}
18
+ </RootProvider>
19
+ );
20
+ }
21
+
22
+ addDecorator(withDSProvider);
23
+ `})}),`
24
+ `,(0,c.jsxs)(t.p,{children:[`In case you are using a `,(0,c.jsx)(t.code,{children:`preview.ts`}),` file, you will need to export `,(0,c.jsx)(t.code,{children:`decorators`}),` from there. You can define your decorators in a separator `,(0,c.jsx)(t.code,{children:`tsx`}),` file, such as `,(0,c.jsx)(t.code,{children:`decorators.tsx`}),`.`]}),`
25
+ `,(0,c.jsx)(t.pre,{children:(0,c.jsx)(t.code,{className:`language-tsx`,children:`// decorators.ts
26
+ import { RootProvider } from '@preply/ds-web-root';
27
+
28
+ export const withProviders = Story => (
29
+ ...
30
+ <RootProvider target={document.body} theme="tokyo-ui">
31
+ ...
32
+ <Story />
33
+ </RootProviderBeta>
34
+ ...
35
+ );
36
+
37
+ // preview.ts
38
+ import { withProviders } from './decorators';
39
+
40
+ export const decorators = [withProviders];
41
+ `})}),`
42
+ `,(0,c.jsxs)(t.p,{children:[`See also: `,(0,c.jsx)(t.a,{href:`https://storybook.js.org/docs/react/writing-stories/decorators`,rel:`nofollow`,children:`Storybook's official docs`}),`.`]})]})}function s(e={}){let{wrapper:t}={...i(),...e.components};return t?(0,c.jsx)(t,{...e,children:(0,c.jsx)(o,{...e})}):o(e)}var c;e((()=>{c=t(),a(),n()}))();export{s as default};
@@ -0,0 +1,21 @@
1
+ import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{C as r,Y as i,et as a,t as o,w as s}from"./dist-DtfJeYQK.js";import{t as c}from"./jsx-runtime-C2wGStra.js";import{l,o as u}from"./iframe-f34VuKy-.js";import{r as d}from"./react-B8jdHdWa.js";import{t as f}from"./mdx-react-shim-Bi0BC7jy.js";import{a as p,t as m}from"./dist-XW9XCd1i.js";import{r as h,t as g}from"./styled-components.browser.esm-ByE8r-7j.js";var _,v,y,b,x,S=t((()=>{s(),o(),m(),e(n()),h(),_=c(),v=`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`.split(`,`),y=g.div`
2
+ padding: ${r(a[12])};
3
+ -webkit-background-size: 50px 50px;
4
+ -moz-background-size: 50px 50px;
5
+ background-size: 50px 50px;
6
+ background-color: ${r(i.background.tertiary)};
7
+ background-image: linear-gradient(
8
+ 45deg,
9
+ ${r(i.background.secondary)} 25%,
10
+ transparent 25%,
11
+ transparent 50%,
12
+ ${r(i.background.secondary)} 50%,
13
+ ${r(i.background.secondary)} 75%,
14
+ transparent 75%,
15
+ transparent
16
+ );
17
+ `,b=({svgUrl:e})=>(0,_.jsx)(`div`,{style:{width:`80%`},children:(0,_.jsxs)(`a`,{href:e,target:`_blank`,rel:`noreferrer`,children:[e.replace(`https://static.preply.com/ds/illustrations/tokyo-ui/`,``),(0,_.jsx)(`img`,{src:e,alt:`TODO:`})]})}),x=()=>(0,_.jsx)(y,{children:(0,_.jsx)(p,{columns:[`25% 25% 25% 25%`],gap:`16`,children:v.map(e=>(0,_.jsx)(b,{svgUrl:e},e))})})}));function C(e){let t={a:`a`,h1:`h1`,p:`p`,...d(),...e.components};return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(u,{title:`Guides/Assets/Illustration Explorer`}),`
18
+ `,(0,T.jsx)(t.h1,{id:`illustration-explorer`,children:`Illustration Explorer`}),`
19
+ `,(0,T.jsxs)(t.p,{children:[`Don't see the illustration you're looking for? You can follow `,(0,T.jsx)(t.a,{href:`https://preply.atlassian.net/wiki/spaces/PDS/pages/4332584962/Hosting+new+illustration`,rel:`nofollow`,children:`this guide`}),` to upload it yourself, it's super easy! Or reach out to us in
20
+ `,(0,T.jsx)(t.a,{href:`https://preply.slack.com/archives/C024EAEHP6V`,rel:`nofollow`,children:`#design-system-public`}),`.`]}),`
21
+ `,(0,T.jsx)(x,{})]})}function w(e={}){let{wrapper:t}={...d(),...e.components};return t?(0,T.jsx)(t,{...e,children:(0,T.jsx)(C,{...e})}):C(e)}var T;t((()=>{T=c(),f(),l(),S()}))();export{w as default};
@@ -0,0 +1,22 @@
1
+ import{n as e}from"./chunk-BneVvdWh.js";import{t}from"./jsx-runtime-C2wGStra.js";import{l as n,o as r}from"./iframe-f34VuKy-.js";import{r as i}from"./react-B8jdHdWa.js";import{t as a}from"./mdx-react-shim-Bi0BC7jy.js";function o(e){let t={a:`a`,h1:`h1`,li:`li`,p:`p`,ul:`ul`,...i(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r,{title:`Guides/Custom Components/Introduction`}),`
2
+ `,(0,c.jsx)(t.h1,{id:`developing-custom-components-with-ds-primitives`,children:`Developing custom components with DS primitives`}),`
3
+ `,(0,c.jsx)(t.p,{children:`The DS provides lower level primitives for building custom components that you can use
4
+ if existing DS components are not enough to implement complex or unique designs.
5
+ Using these primitives ensures that your new custom components will still be
6
+ compatible with our visual design language and continue receiving updates as the
7
+ Design System evolves.`}),`
8
+ `,(0,c.jsx)(t.p,{children:`However, you should always prefer using the existing components to just using
9
+ these lower level primitives.`}),`
10
+ `,(0,c.jsx)(t.p,{children:`Furthermore, if you believe your component can be a good addition for the Design System:`}),`
11
+ `,(0,c.jsxs)(t.ul,{children:[`
12
+ `,(0,c.jsxs)(t.li,{children:[`Read the `,(0,c.jsx)(t.a,{href:`/story/contributing--page`,children:`contribution guide`})]}),`
13
+ `,(0,c.jsxs)(t.li,{children:[`Reach out to `,(0,c.jsx)(t.a,{href:`https://preply.slack.com/archives/C024EAEHP6V`,rel:`nofollow`,children:`#design-system-public`})]}),`
14
+ `,(0,c.jsx)(t.li,{children:`Use Less.js instead of StyledComponents.`}),`
15
+ `,(0,c.jsxs)(t.li,{children:[`Become familiar with the DS `,(0,c.jsx)(t.a,{href:`https://preply.atlassian.net/wiki/spaces/DS/pages/2778300873/Guidelines`,rel:`nofollow`,children:`internal guidelines and conventions`}),` and the step by step `,(0,c.jsx)(t.a,{href:`https://preply.atlassian.net/wiki/spaces/DS/pages/3250815332/Runbooks`,rel:`nofollow`,children:`runbooks`}),`.`]}),`
16
+ `]}),`
17
+ `,(0,c.jsx)(t.p,{children:`Check the guidelines below for some generic strategies to minimize the need for custom CSS.`}),`
18
+ `,(0,c.jsx)(t.p,{children:`The following guides provide further information on how to use the lower level primitives according to your stack:`}),`
19
+ `,(0,c.jsxs)(t.ul,{children:[`
20
+ `,(0,c.jsx)(t.li,{children:(0,c.jsx)(t.a,{href:`/story/guides-custom-components-less-js-intro--page`,children:`Less.js`})}),`
21
+ `,(0,c.jsx)(t.li,{children:(0,c.jsx)(t.a,{href:`/story/guides-custom-components-styledcomponents-intro--page`,children:`StyledComponents`})}),`
22
+ `]})]})}function s(e={}){let{wrapper:t}={...i(),...e.components};return t?(0,c.jsx)(t,{...e,children:(0,c.jsx)(o,{...e})}):o(e)}var c;e((()=>{c=t(),a(),n()}))();export{s as default};
@@ -0,0 +1,32 @@
1
+ import{n as e}from"./chunk-BneVvdWh.js";import{t}from"./jsx-runtime-C2wGStra.js";import{l as n,o as r}from"./iframe-f34VuKy-.js";import{r as i}from"./react-B8jdHdWa.js";import{t as a}from"./mdx-react-shim-Bi0BC7jy.js";function o(e){let t={a:`a`,code:`code`,h1:`h1`,p:`p`,pre:`pre`,...i(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r,{title:`Guides/Installation/Advanced`}),`
2
+ `,(0,c.jsx)(t.h1,{id:`installation-advanced`,children:`Installation: Advanced`}),`
3
+ `,(0,c.jsxs)(t.p,{children:[`This page is about rolling out your own alternative to `,(0,c.jsx)(t.code,{children:`<RootProvider/>`}),` (advanced usage).`]}),`
4
+ `,(0,c.jsxs)(t.p,{children:[`If you are looking for how to install, refer to the `,(0,c.jsx)(t.a,{href:`/story/guides-installation-applications--page`,children:`installation guides`}),` instead.`]}),`
5
+ `,(0,c.jsx)(t.p,{children:`Plans exist to allow injecting a local theme during instantation.`}),`
6
+ `,(0,c.jsx)(t.p,{children:`Meanwhile, if you want to experiment with this, you can roll your own implementation in a few lines of code.`}),`
7
+ `,(0,c.jsx)(t.pre,{children:(0,c.jsx)(t.code,{className:`language-tsx`,children:`import type { ThemeName } from '@preply/ds-core';
8
+ import { COLOR_SCHEME_DEFAULT } from '@preply/ds-core';
9
+ import {
10
+ ColorSchemeProvider,
11
+ ThemeProvider,
12
+ ThemesProvider,
13
+ colorSchemes,
14
+ } from '@preply/ds-web-core';
15
+ import React, { FC } from 'react';
16
+
17
+ import type { RootTarget } from '@preply/ds-web-root';
18
+ import { Root, themes } from '@preply/ds-web-root';
19
+
20
+ const MY_THEME: ThemeName = 'my-theme';
21
+ themes[MY_THEME] = new Theme(...);
22
+
23
+ export const RootProvider: FC = ({ children }) => (
24
+ <ThemesProvider themes={Object.values(themes)} colorSchemes={colorSchemes}>
25
+ <ThemeProvider theme={MY_THEME}>
26
+ <ColorSchemeProvider colorScheme={COLOR_SCHEME_DEFAULT}>
27
+ <Root target={document.body}>{children}</Root>
28
+ </ColorSchemeProvider>
29
+ </ThemeProvider>
30
+ </ThemesProvider>
31
+ );
32
+ `})})]})}function s(e={}){let{wrapper:t}={...i(),...e.components};return t?(0,c.jsx)(t,{...e,children:(0,c.jsx)(o,{...e})}):o(e)}var c;e((()=>{c=t(),a(),n()}))();export{s as default};
@@ -0,0 +1,25 @@
1
+ import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{ht as r,t as i}from"./dist-DtfJeYQK.js";import{t as a}from"./jsx-runtime-C2wGStra.js";import{n as o,t as s}from"./TokyoUIChevronDown-CS0lTt7n.js";import{n as c,t as l}from"./dist-Cc1j9Pjk.js";import{n as u,t as d}from"./Icon-CfZyHxyH.js";import{n as f,t as p}from"./Text-bm2vnOS2.js";import{n as m,t as h}from"./useMergeRefs-D0D5dYrn.js";var g,_,v=t((()=>{g=`accordion__OKb-C`,_={accordion:g,"--dsInternalSimulation-focus":`_--dsInternalSimulation-focus__7V0NR`,"--dsInternalSimulation-noAnimation":`_--dsInternalSimulation-noAnimation__nuNUW`}}));function y({ref:e,onOpenChange:t}){let n=(0,b.useRef)(null),r=m(n,e);return(0,b.useEffect)(()=>{if(!n.current)return;let e=n.current,r=()=>{t?.(e.open)};return e&&e.addEventListener(`toggle`,r),()=>{e&&e.removeEventListener(`toggle`,r)}},[t]),{mergedRef:t||e?r:null}}var b,x=t((()=>{b=e(n(),1),h()})),S,C,w,T,E,D,O=t((()=>{S=e(n(),1),i(),o(),l(),u(),f(),v(),x(),C=a(),w=({dataset:e,children:t,"aria-label":n})=>(0,C.jsx)(`div`,{className:_.accordion,"aria-label":n,...r(e),"data-preply-ds-component":c.Accordion,children:t}),T=(0,S.forwardRef)(function({open:e,name:t,dataset:n,children:i,onOpenChange:a,dsInternalSimulation:o},s){let{mergedRef:c}=y({ref:s,onOpenChange:a});return(0,C.jsx)(`details`,{ref:c,name:t,open:e,...r(n),className:_[`--dsInternalSimulation-${o}`],children:i})}),E=(0,S.forwardRef)(function({dataset:e,children:t,onClick:n},i){return(0,C.jsxs)(`summary`,{ref:i,...r(e),onClick:n,children:[(0,C.jsx)(p,{variant:`default-semibold`,children:t}),(0,C.jsx)(d,{svg:s})]})}),D=(0,S.forwardRef)(function({dataset:e,children:t},n){return(0,C.jsx)(p,{tag:`div`,variant:`small-regular`,ref:n,...r(e),children:t})});try{w.displayName=`Accordion`,w.__docgenInfo={description:`An Accordion container.
2
+
3
+ Add \`AccordionItem\` children to render a list of disclosable contents.`,displayName:`Accordion`,props:{dataset:{defaultValue:null,description:`Sets data attributes on the DOM element.
4
+ @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.
5
+ @see aria-labelledby.`,name:`aria-label`,required:!1,type:{name:`enum`,value:[{value:`string`}]}}}}}catch{}try{T.displayName=`AccordionItem`,T.__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.
6
+ @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.
7
+ @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.
8
+ @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
9
+ instances to make the whole Accordion exclusive.
10
+ @example <Accordion>
11
+ <AccordionItem name="choose-subscription-duration">
12
+ <AccordionHeader>
13
+ Two-week subscription
14
+ </AccordionHeader>
15
+ <AccordionContent>We will charge you every two weeks.</AccordionContent>
16
+ </AccordionItem>
17
+ <AccordionItem name="choose-subscription-duration">
18
+ <AccordionHeader>
19
+ Four-week subscription
20
+ </AccordionHeader>
21
+ <AccordionContent>We will charge you every four weeks.</AccordionContent>
22
+ </AccordionItem>
23
+ </Accordion>`,name:`name`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},dataset:{defaultValue:null,description:`Sets data attributes on the DOM element.
24
+ @example <AccordionItem dataset={{ 'qa-id': 'best-tutor-platform' }} /> // will add data-qa-id="best-tutor-platform" to the HTML element.`,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}},ref:{defaultValue:null,description:"Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",name:`ref`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`(instance: HTMLDetailsElement | null) => void`},{value:`RefObject<HTMLDetailsElement>`}]}},key:{defaultValue:null,description:``,name:`key`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`number`},{value:`bigint`}]}}}}}catch{}try{E.displayName=`AccordionHeader`,E.__docgenInfo={description:"The header of a single `Accordion` item, to be used in conjunction with AccordionItem and wrapped inside AccordionContent.",displayName:`AccordionHeader`,props:{dataset:{defaultValue:null,description:``,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}},onClick:{defaultValue:null,description:``,name:`onClick`,required:!1,type:{name:`enum`,value:[{value:`MouseEventHandler<HTMLElement>`}]}},ref:{defaultValue:null,description:"Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",name:`ref`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`(instance: HTMLDetailsElement | null) => void`},{value:`RefObject<HTMLDetailsElement>`}]}},key:{defaultValue:null,description:``,name:`key`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`number`},{value:`bigint`}]}}}}}catch{}try{D.displayName=`AccordionContent`,D.__docgenInfo={description:"The content of a single `Accordion` item, to be used in conjunction with AccordionHeader wrapped inside AccordionContent.",displayName:`AccordionContent`,props:{dataset:{defaultValue:null,description:`Sets data attributes on the DOM element.
25
+ @example <AccordionItem dataset={{ 'qa-id': 'best-tutor-platform' }} /> // will add data-qa-id="best-tutor-platform" to the HTML element.`,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}},ref:{defaultValue:null,description:"Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",name:`ref`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`(instance: HTMLDetailsElement | null) => void`},{value:`RefObject<HTMLDetailsElement>`}]}},key:{defaultValue:null,description:``,name:`key`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`number`},{value:`bigint`}]}}}}}catch{}}));export{O as a,T as i,D as n,E as r,w as t};
@@ -0,0 +1 @@
1
+ .accordion__OKb-C{box-sizing:border-box;min-width:100%}.accordion__OKb-C details{border-bottom:solid 1px var(--c03289)}.accordion__OKb-C details>summary{padding-top:var(--558c4c);padding-bottom:var(--558c4c);padding-right:var(--66b80b);list-style:none}.accordion__OKb-C details summary::-webkit-details-marker{display:none}.accordion__OKb-C details :focus-visible,.accordion__OKb-C details._--dsInternalSimulation-focus__7V0NR>summary{outline-style:solid;outline-color:var(--603ec6);outline-width:var(--99d31f);outline-offset:var(--c0b12c)}.accordion__OKb-C summary{cursor:pointer;gap:var(--66b80b);display:flex}.accordion__OKb-C summary>[data-preply-ds-component=Text]{flex:1}.accordion__OKb-C summary>[data-preply-ds-component=Icon]{-webkit-user-select:none;user-select:none;transition:transform var(--018058);transform:rotate(0)}.accordion__OKb-C details[open] summary>[data-preply-ds-component=Icon]{transform:rotate(180deg)}.accordion__OKb-C details::details-content{block-size:0;transition-property:block-size,content-visibility,opacity;transition-duration:var(--970975);transition-timing-function:var(--1f4492);transition-behavior:allow-discrete;opacity:0;overflow:hidden}.accordion__OKb-C details[open]::details-content{padding-bottom:var(--813599);opacity:1;block-size:auto}.accordion__OKb-C details[open]:not(._--dsInternalSimulation-noAnimation__nuNUW)::details-content{block-size:calc-size(auto, size)}
@@ -1,4 +1,4 @@
1
- import{j as e}from"./iframe-B_74HtSc.js";import{A as r,a as n,b as t,c as o}from"./Accordion-2avWtqXz.js";import{T as p}from"./Text-DvShrljd.js";import{H as T}from"./Heading-Cj8Si45g.js";import{B as W}from"./Button-C0Um_QuO.js";import"./preload-helper-Dp1pzeXC.js";import"./TokyoUIChevronDown-DiBNbDdz.js";import"./Icon-CC0yjdx9.js";import"./text-accent-BQ9POoE5.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-MT6RlyNs.js";import"./componentNames-hc9KR2nX.js";import"./useMergeRefs-Caz9hOck.js";import"./text-centered-BEaaxMgl.js";import"./ButtonBase-HkSfLFbE.js";import"./Spinner-8-RB4YZR.js";import"./useHostname-CbpnzdHv.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{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{t as r}from"./jsx-runtime-C2wGStra.js";import{n as i,t as a}from"./Text-bm2vnOS2.js";import{a as o,i as s,n as c,r as l,t as u}from"./Accordion-BGpSQDcU.js";import{n as d,t as f}from"./Heading-CEZfMm-F.js";import{n as p,t as m}from"./Button-DnVrHohm.js";var h,g,_,v,y,b,x,S,C;t((()=>{e(n(),1),o(),i(),d(),p(),h=r(),g={title:`components/Accordion`,component:u,args:{}},_={render:function(){return(0,h.jsxs)(u,{children:[(0,h.jsxs)(s,{children:[(0,h.jsx)(l,{children:`Is Preply the best platform for learning a language?`}),(0,h.jsx)(c,{children:`Of course it is!`})]}),(0,h.jsxs)(s,{children:[(0,h.jsx)(l,{children:`Why?`}),(0,h.jsx)(c,{children:`If you are wondering, it means you have not tried it out yet!`})]})]})}},v={render:function(){return(0,h.jsxs)(u,{children:[(0,h.jsxs)(s,{open:!0,children:[(0,h.jsx)(l,{children:`Is Preply the best platform for learning a language?`}),(0,h.jsx)(c,{children:`Of course it is!`})]}),(0,h.jsxs)(s,{open:!0,children:[(0,h.jsx)(l,{children:`Why?`}),(0,h.jsx)(c,{children:`If you are wondering, it means you have not tried it out yet!`})]})]})}},y={render:function(){return(0,h.jsxs)(u,{children:[(0,h.jsxs)(s,{children:[(0,h.jsx)(l,{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.`}),(0,h.jsx)(c,{children:`Lorem ipsum`})]}),(0,h.jsxs)(s,{children:[(0,h.jsx)(l,{children:`Lorem ipsum`}),(0,h.jsx)(c,{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.`})]}),(0,h.jsxs)(s,{open:!0,children:[(0,h.jsx)(l,{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.`}),(0,h.jsx)(c,{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.`})]})]})}},b={render:function(){return(0,h.jsx)(u,{children:(0,h.jsxs)(s,{open:!0,children:[(0,h.jsx)(l,{children:`Is Preply the best platform for learning a language?`}),(0,h.jsxs)(c,{children:[(0,h.jsx)(f,{variant:`large`,tag:`div`,children:`Yes!`}),(0,h.jsx)(a,{variant:`large-regular-italic`,children:`What are you waiting for?`}),(0,h.jsx)(m,{children:`Book a lesson now!`})]})]})})}},x={render:function(){return(0,h.jsxs)(u,{children:[(0,h.jsxs)(s,{name:`choose-subscription-duration`,children:[(0,h.jsx)(l,{children:`Two-week subscription`}),(0,h.jsx)(c,{children:`We will charge you every two weeks.`})]}),(0,h.jsxs)(s,{name:`choose-subscription-duration`,children:[(0,h.jsx)(l,{children:`Four-week subscription`}),(0,h.jsx)(c,{children:`We will charge you every four weeks.`})]})]})}},S={render:function(){return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(`div`,{style:{display:`flex`,gap:`16px`,flexDirection:`column`},children:[(0,h.jsx)(a,{variant:`default-regular-italic`,children:`closed`}),(0,h.jsx)(`div`,{style:{display:`flex`,gap:`16px`},children:(0,h.jsx)(u,{children:(0,h.jsxs)(s,{children:[(0,h.jsx)(l,{children:`Header`}),(0,h.jsx)(c,{children:`Content`})]})})})]}),(0,h.jsxs)(`div`,{style:{display:`flex`,gap:`16px`,flexDirection:`column`},children:[(0,h.jsx)(a,{variant:`default-regular-italic`,children:`open`}),(0,h.jsx)(`div`,{style:{display:`flex`,gap:`16px`},children:(0,h.jsx)(u,{children:(0,h.jsxs)(s,{open:!0,children:[(0,h.jsx)(l,{children:`Header`}),(0,h.jsx)(c,{children:`Content`})]})})})]}),(0,h.jsxs)(`div`,{style:{display:`flex`,gap:`16px`,flexDirection:`column`},children:[(0,h.jsx)(a,{variant:`default-regular-italic`,children:`focus`}),(0,h.jsx)(`div`,{style:{display:`flex`,gap:`16px`},children:(0,h.jsx)(u,{children:(0,h.jsxs)(s,{dsInternalSimulation:`focus`,children:[(0,h.jsx)(l,{children:`Header`}),(0,h.jsx)(c,{children:`Content`})]})})})]})]})}},_.parameters={..._.parameters,docs:{..._.parameters?.docs,source:{originalSource:`{
2
2
  render: function Story() {
3
3
  return <Accordion>
4
4
  <AccordionItem>
@@ -15,7 +15,7 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as r,a as n,b as t,c as o}from
15
15
  </AccordionItem>
16
16
  </Accordion>;
17
17
  }
18
- }`,...(y=(h=s.parameters)==null?void 0:h.docs)==null?void 0:y.source}}};var g,f,x;a.parameters={...a.parameters,docs:{...(g=a.parameters)==null?void 0:g.docs,source:{originalSource:`{
18
+ }`,..._.parameters?.docs?.source}}},v.parameters={...v.parameters,docs:{...v.parameters?.docs,source:{originalSource:`{
19
19
  render: function Story() {
20
20
  return <Accordion>
21
21
  <AccordionItem open>
@@ -32,7 +32,7 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as r,a as n,b as t,c as o}from
32
32
  </AccordionItem>
33
33
  </Accordion>;
34
34
  }
35
- }`,...(x=(f=a.parameters)==null?void 0:f.docs)==null?void 0:x.source}}};var A,I,v;c.parameters={...c.parameters,docs:{...(A=c.parameters)==null?void 0:A.docs,source:{originalSource:`{
35
+ }`,...v.parameters?.docs?.source}}},y.parameters={...y.parameters,docs:{...y.parameters?.docs,source:{originalSource:`{
36
36
  render: function Story() {
37
37
  return <Accordion>
38
38
  <AccordionItem>
@@ -85,7 +85,7 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as r,a as n,b as t,c as o}from
85
85
  </AccordionItem>
86
86
  </Accordion>;
87
87
  }
88
- }`,...(v=(I=c.parameters)==null?void 0:I.docs)==null?void 0:v.source}}};var w,k,j;d.parameters={...d.parameters,docs:{...(w=d.parameters)==null?void 0:w.docs,source:{originalSource:`{
88
+ }`,...y.parameters?.docs?.source}}},b.parameters={...b.parameters,docs:{...b.parameters?.docs,source:{originalSource:`{
89
89
  render: function Story() {
90
90
  return <Accordion>
91
91
  <AccordionItem open>
@@ -102,7 +102,7 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as r,a as n,b as t,c as o}from
102
102
  </AccordionItem>
103
103
  </Accordion>;
104
104
  }
105
- }`,...(j=(k=d.parameters)==null?void 0:k.docs)==null?void 0:j.source}}};var b,L,C;l.parameters={...l.parameters,docs:{...(b=l.parameters)==null?void 0:b.docs,source:{originalSource:`{
105
+ }`,...b.parameters?.docs?.source}}},x.parameters={...x.parameters,docs:{...x.parameters?.docs,source:{originalSource:`{
106
106
  render: function Story() {
107
107
  return <Accordion>
108
108
  <AccordionItem name="choose-subscription-duration">
@@ -115,7 +115,7 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as r,a as n,b as t,c as o}from
115
115
  </AccordionItem>
116
116
  </Accordion>;
117
117
  }
118
- }`,...(C=(L=l.parameters)==null?void 0:L.docs)==null?void 0:C.source}}};var H,S,P;u.parameters={...u.parameters,docs:{...(H=u.parameters)==null?void 0:H.docs,source:{originalSource:`{
118
+ }`,...x.parameters?.docs?.source}}},S.parameters={...S.parameters,docs:{...S.parameters?.docs,source:{originalSource:`{
119
119
  render: function Story() {
120
120
  return <>
121
121
  <div style={{
@@ -174,4 +174,4 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as r,a as n,b as t,c as o}from
174
174
  </div>
175
175
  </>;
176
176
  }
177
- }`,...(P=(S=u.parameters)==null?void 0:S.docs)==null?void 0:P.source}}};const Z=["Default","OpenByDefault","LongContent","WithCustomAndInteractiveContent","ImplementExclusiveAccordion","States"];export{s as Default,l as ImplementExclusiveAccordion,c as LongContent,a as OpenByDefault,u as States,d as WithCustomAndInteractiveContent,Z as __namedExportsOrder,X as default};
177
+ }`,...S.parameters?.docs?.source}}},C=[`Default`,`OpenByDefault`,`LongContent`,`WithCustomAndInteractiveContent`,`ImplementExclusiveAccordion`,`States`]}))();export{_ as Default,x as ImplementExclusiveAccordion,y as LongContent,v as OpenByDefault,S as States,b as WithCustomAndInteractiveContent,C as __namedExportsOrder,g as default};
@@ -1,4 +1,4 @@
1
- import{j as e}from"./iframe-B_74HtSc.js";import{A as d,a as c,b as s,c as l}from"./Accordion-2avWtqXz.js";import{c as G}from"./OnboardingTour-B5gEod5H.js";import"./preload-helper-Dp1pzeXC.js";import"./TokyoUIChevronDown-DiBNbDdz.js";import"./Icon-CC0yjdx9.js";import"./text-accent-BQ9POoE5.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-MT6RlyNs.js";import"./componentNames-hc9KR2nX.js";import"./Text-DvShrljd.js";import"./text-centered-BEaaxMgl.js";import"./useMergeRefs-Caz9hOck.js";import"./OnboardingTooltip-DzQhJzWc.js";import"./TokyoUIClose-BfMyMrDa.js";import"./Button-C0Um_QuO.js";import"./ButtonBase-HkSfLFbE.js";import"./Spinner-8-RB4YZR.js";import"./useHostname-CbpnzdHv.js";import"./index-CC6DAVyL.js";import"./Heading-Cj8Si45g.js";import"./index-DIqvfT2b.js";import"./shared-strings-ThL9KyH0.js";import"./message-DJT5rp5J.js";import"./index-W3BB_3go.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{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{t as r}from"./jsx-runtime-C2wGStra.js";import{a as i,i as a,n as o,r as s,t as c}from"./Accordion-BGpSQDcU.js";import{n as l,t as u}from"./OnboardingTour-DGI3bTQy.js";var d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E;t((()=>{e(n(),1),i(),l(),d=r(),{userEvent:f,expect:p,within:m,waitFor:h,fn:g}=__STORYBOOK_MODULE_TEST__,_={title:`Components/Accordion/Tests`,component:c,parameters:{controls:{disable:!0},chromatic:{disableSnapshot:!0}},tags:[`!autodocs`,`!a11y-test`,`test`]},v={render:function(){return(0,d.jsx)(c,{"aria-label":`accordionLabel`,children:(0,d.jsxs)(a,{children:[(0,d.jsx)(s,{children:`Is Preply the best platform for learning a language?`}),(0,d.jsx)(o,{children:`Of course it is!`})]})})},play:async({canvasElement:e})=>{p(m(e).getByLabelText(`accordionLabel`)).toBeVisible()}},y={args:{},render:function(){return(0,d.jsxs)(c,{children:[(0,d.jsxs)(a,{children:[(0,d.jsx)(s,{children:`Is Preply the best platform for learning a language?`}),(0,d.jsx)(o,{children:`Of course it is!`})]}),(0,d.jsxs)(a,{children:[(0,d.jsx)(s,{children:`Why?`}),(0,d.jsx)(o,{children:`If you are wondering, it means you have not tried it out yet!`})]})]})},play:async({canvas:e,step:t})=>{let n=e.getByText(`Is Preply the best platform for learning a language?`),r=e.getByText(`Of course it is!`),i=e.getByText(`Why?`),a=e.getByText(`If you are wondering, it means you have not tried it out yet!`);await t(`Contents are hidden`,async()=>{p(r).not.toBeVisible(),p(a).not.toBeVisible()}),await t(`Content 1 is revelable`,async()=>{await f.click(n),p(r).toBeVisible()}),await t(`Content 2 is revelable`,async()=>{await f.click(i),p(a).toBeVisible()}),await t(`Both contents are visible (non-exclusivity check)`,async()=>{p(r).toBeVisible(),p(a).toBeVisible()}),await t(`Item 1 is hidable`,async()=>{await f.click(n),p(r).not.toBeVisible()}),await t(`Item 2 is hidable`,async()=>{await f.click(i),p(a).not.toBeVisible()})}},b={args:{},render:function(){return(0,d.jsx)(c,{children:(0,d.jsxs)(a,{dsInternalSimulation:`noAnimation`,children:[(0,d.jsx)(s,{children:`Is Preply the best platform for learning a language?`}),(0,d.jsx)(o,{children:`Of course it is!`})]})})},play:async({canvas:e,step:t})=>{let n=e.getByText(`Is Preply the best platform for learning a language?`),r=e.getByText(`Of course it is!`);await t(`Contents are hidden`,async()=>{p(r).not.toBeVisible()}),await t(`Content is revelable`,async()=>{await f.click(n),p(r).toBeVisible()}),await t(`Content is hidable`,async()=>{await f.click(n),p(r).not.toBeVisible()})}},x={args:{},render:function(){return(0,d.jsxs)(c,{children:[(0,d.jsxs)(a,{name:`choose-subscription-duration`,children:[(0,d.jsx)(s,{children:`Two-week subscription`}),(0,d.jsx)(o,{children:`We will charge you every two weeks.`})]}),(0,d.jsxs)(a,{name:`choose-subscription-duration`,children:[(0,d.jsx)(s,{children:`Four-week subscription`}),(0,d.jsx)(o,{children:`We will charge you every four weeks.`})]})]})},play:async({canvas:e,step:t})=>{let n=e.getByText(`Two-week subscription`),r=e.getByText(`We will charge you every two weeks.`),i=e.getByText(`Four-week subscription`),a=e.getByText(`We will charge you every four weeks.`);await t(`Contents are hidden`,async()=>{p(r).not.toBeVisible(),p(a).not.toBeVisible()}),await t(`Content 1 is revelable`,async()=>{await f.click(n),p(r).toBeVisible()}),await t(`Content 2 is revelable`,async()=>{await f.click(i),p(a).toBeVisible()}),await t(`Item 1 is hidden`,async()=>{p(r).not.toBeVisible()})}},S={args:{onOpenChange:g()},render:function(e){return(0,d.jsx)(c,{children:(0,d.jsxs)(a,{onOpenChange:e.onOpenChange,children:[(0,d.jsx)(s,{children:`Is Preply the best platform for learning a language?`}),(0,d.jsx)(o,{children:`Of course it is!`})]})})},play:async({canvas:e,args:t,step:n})=>{let r=e.getByText(`Is Preply the best platform for learning a language?`);await n(`onOpenChange is not called`,async()=>{p(t.onOpenChange).not.toBeCalled()}),await n(`onOpenChange is called with true`,async()=>{await f.click(r),p(t.onOpenChange).toBeCalledWith(!0)}),await n(`onOpenChange is called with false`,async()=>{await f.click(r),p(t.onOpenChange).toBeCalledWith(!1)})}},C={args:{onClick:g()},render:function(e){return(0,d.jsx)(c,{children:(0,d.jsxs)(a,{children:[(0,d.jsx)(s,{onClick:e.onClick,children:`Is Preply the best platform for learning a language?`}),(0,d.jsx)(o,{children:`Of course it is!`})]})})},play:async({canvas:e,args:t,step:n})=>{let r=e.getByText(`Is Preply the best platform for learning a language?`);await n(`onClick is not called`,async()=>{p(t.onClick).not.toBeCalled()}),await n(`onClick is called`,async()=>{await f.click(r),p(t.onClick).toBeCalled()})}},w={render:function(){return(0,d.jsx)(c,{"aria-label":`accordion`,dataset:{foo:1},children:(0,d.jsxs)(a,{dataset:{"qa-id":`firstItem`},children:[(0,d.jsx)(s,{dataset:{"qa-id":`firstItemHeader`},children:`Is Preply the best platform for learning a language?`}),(0,d.jsx)(o,{dataset:{"qa-id":`firstItemContent`},children:`Yes!`})]})})},play:async({canvas:e})=>{p(e.getByLabelText(`accordion`)).toHaveAttribute(`data-foo`,`1`)}},T={render:function(){let e=u();return(0,d.jsx)(e.Provider,{totalSteps:2,children:(0,d.jsxs)(c,{children:[(0,d.jsx)(e.Step,{step:0,title:`Step 1`,text:`Ensure you can answer this question`,children:(0,d.jsxs)(a,{children:[(0,d.jsx)(s,{children:`Is Preply the best platform for learning a language?`}),(0,d.jsx)(o,{children:`Of course it is!`})]})}),(0,d.jsx)(e.Step,{step:1,title:`Step 2`,text:`Push them to try Preply out!`,children:(0,d.jsxs)(a,{children:[(0,d.jsx)(s,{children:`Why?`}),(0,d.jsx)(o,{children:`If you are wondering, it means you have not tried it out yet!`})]})})]})})},play:async({canvasElement:e,step:t})=>{let n=m(e);await t(`Step 1 should be visible`,async()=>{await h(()=>{p(n.getByText(`Ensure you can answer this question`)).toBeVisible()})}),await t(`Click Next`,async()=>{let e=n.getByRole(`button`,{name:`Next`});await f.click(e)}),await t(`Step 2 should be visible`,async()=>{await h(()=>{p(n.getByText(`Push them to try Preply out!`)).toBeVisible()})})}},v.parameters={...v.parameters,docs:{...v.parameters?.docs,source:{originalSource:`{
2
2
  render: function Story() {
3
3
  return <Accordion aria-label="accordionLabel">
4
4
  <AccordionItem>
@@ -16,7 +16,7 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as d,a as c,b as s,c as l}from
16
16
  const accordion = canvas.getByLabelText('accordionLabel');
17
17
  expect(accordion).toBeVisible();
18
18
  }
19
- }`,...(v=(B=y.parameters)==null?void 0:B.docs)==null?void 0:v.source}}};var I,T,k;m.parameters={...m.parameters,docs:{...(I=m.parameters)==null?void 0:I.docs,source:{originalSource:`{
19
+ }`,...v.parameters?.docs?.source}}},y.parameters={...y.parameters,docs:{...y.parameters?.docs,source:{originalSource:`{
20
20
  args: {},
21
21
  render: function Story() {
22
22
  return <Accordion>
@@ -67,7 +67,7 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as d,a as c,b as s,c as l}from
67
67
  expect(item2Content).not.toBeVisible();
68
68
  });
69
69
  }
70
- }`,...(k=(T=m.parameters)==null?void 0:T.docs)==null?void 0:k.source}}};var O,H,S;h.parameters={...h.parameters,docs:{...(O=h.parameters)==null?void 0:O.docs,source:{originalSource:`{
70
+ }`,...y.parameters?.docs?.source}}},b.parameters={...b.parameters,docs:{...b.parameters?.docs,source:{originalSource:`{
71
71
  args: {},
72
72
  render: function Story() {
73
73
  return <Accordion>
@@ -97,7 +97,7 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as d,a as c,b as s,c as l}from
97
97
  expect(item1Content).not.toBeVisible();
98
98
  });
99
99
  }
100
- }`,...(S=(H=h.parameters)==null?void 0:H.docs)==null?void 0:S.source}}};var j,V,P;g.parameters={...g.parameters,docs:{...(j=g.parameters)==null?void 0:j.docs,source:{originalSource:`{
100
+ }`,...b.parameters?.docs?.source}}},x.parameters={...x.parameters,docs:{...x.parameters?.docs,source:{originalSource:`{
101
101
  args: {},
102
102
  render: function Story() {
103
103
  return <Accordion>
@@ -135,7 +135,7 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as d,a as c,b as s,c as l}from
135
135
  expect(item1Content).not.toBeVisible();
136
136
  });
137
137
  }
138
- }`,...(P=(V=g.parameters)==null?void 0:V.docs)==null?void 0:P.source}}};var E,W,q;b.parameters={...b.parameters,docs:{...(E=b.parameters)==null?void 0:E.docs,source:{originalSource:`{
138
+ }`,...x.parameters?.docs?.source}}},S.parameters={...S.parameters,docs:{...S.parameters?.docs,source:{originalSource:`{
139
139
  args: {
140
140
  onOpenChange: fn()
141
141
  },
@@ -167,7 +167,7 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as d,a as c,b as s,c as l}from
167
167
  expect(args.onOpenChange).toBeCalledWith(false);
168
168
  });
169
169
  }
170
- }`,...(q=(W=b.parameters)==null?void 0:W.docs)==null?void 0:q.source}}};var L,_,F;w.parameters={...w.parameters,docs:{...(L=w.parameters)==null?void 0:L.docs,source:{originalSource:`{
170
+ }`,...S.parameters?.docs?.source}}},C.parameters={...C.parameters,docs:{...C.parameters?.docs,source:{originalSource:`{
171
171
  args: {
172
172
  onClick: fn()
173
173
  },
@@ -195,7 +195,7 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as d,a as c,b as s,c as l}from
195
195
  expect(args.onClick).toBeCalled();
196
196
  });
197
197
  }
198
- }`,...(F=(_=w.parameters)==null?void 0:_.docs)==null?void 0:F.source}}};var D,N,R;x.parameters={...x.parameters,docs:{...(D=x.parameters)==null?void 0:D.docs,source:{originalSource:`{
198
+ }`,...C.parameters?.docs?.source}}},w.parameters={...w.parameters,docs:{...w.parameters?.docs,source:{originalSource:`{
199
199
  render: function Story() {
200
200
  return <Accordion aria-label="accordion" dataset={{
201
201
  foo: 1
@@ -222,7 +222,7 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as d,a as c,b as s,c as l}from
222
222
  const accordion = canvas.getByLabelText('accordion');
223
223
  expect(accordion).toHaveAttribute('data-foo', '1');
224
224
  }
225
- }`,...(R=(N=x.parameters)==null?void 0:N.docs)==null?void 0:R.source}}};var Y,K,M;C.parameters={...C.parameters,docs:{...(Y=C.parameters)==null?void 0:Y.docs,source:{originalSource:`{
225
+ }`,...w.parameters?.docs?.source}}},T.parameters={...T.parameters,docs:{...T.parameters?.docs,source:{originalSource:`{
226
226
  render: function Story() {
227
227
  const Tour = createOnboardingTour();
228
228
  return <Tour.Provider totalSteps={2}>
@@ -270,4 +270,4 @@ import{j as e}from"./iframe-B_74HtSc.js";import{A as d,a as c,b as s,c as l}from
270
270
  });
271
271
  });
272
272
  }
273
- }`,...(M=(K=C.parameters)==null?void 0:K.docs)==null?void 0:M.source}}};const fe=["AriaAttributesAreSet","TestDisclosableContent","TestWithoutAnimation","TestExclusiveAccordion","TestItemOnOpenChange","TestHeaderOnClick","TestDataset","IntegrationWithOnboardingTour"];export{y as AriaAttributesAreSet,C as IntegrationWithOnboardingTour,x as TestDataset,m as TestDisclosableContent,g as TestExclusiveAccordion,w as TestHeaderOnClick,b as TestItemOnOpenChange,h as TestWithoutAnimation,fe as __namedExportsOrder,Ce as default};
273
+ }`,...T.parameters?.docs?.source}}},E=[`AriaAttributesAreSet`,`TestDisclosableContent`,`TestWithoutAnimation`,`TestExclusiveAccordion`,`TestItemOnOpenChange`,`TestHeaderOnClick`,`TestDataset`,`IntegrationWithOnboardingTour`]}))();export{v as AriaAttributesAreSet,T as IntegrationWithOnboardingTour,w as TestDataset,y as TestDisclosableContent,x as TestExclusiveAccordion,C as TestHeaderOnClick,S as TestItemOnOpenChange,b as TestWithoutAnimation,E as __namedExportsOrder,_ as default};
@@ -0,0 +1,14 @@
1
+ import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{t as r}from"./jsx-runtime-C2wGStra.js";import{t as i}from"./Button-DnVrHohm.js";import{n as a,t as o}from"./TokyoUISparkle-C3Cy7wMI.js";import{_ as s,f as c,g as l,h as u,m as d,n as f,p,r as m,t as h,v as g}from"./AlertBannerAction-BSNrnhbi.js";var _,v,y=t((()=>{_=`customBanner__WPfsi`,v={customBanner:_}})),b,x,S,C;t((()=>{e(n(),1),a(),f(),u(),s(),p(),y(),m(),b=r(),x={title:`Components/AlertBanner/Primitives`,component:l,subcomponents:{AlertBannerIcon:d,AlertBannerRoot:l,AlertBannerAction:h,AlertBannerText:c},parameters:{layout:`padded`,docs:{source:{type:`dynamic`}}},decorators:[e=>(0,b.jsx)(`div`,{style:{width:`500px`},children:(0,b.jsx)(e,{})})]},S=()=>(0,b.jsx)(g,{children:(0,b.jsxs)(l,{variant:`critical`,className:v.customBanner,children:[(0,b.jsx)(d,{svg:o}),(0,b.jsx)(c,{children:`Custom banner built with primitives.`}),(0,b.jsx)(h,{children:(0,b.jsx)(i,{variant:`onColor`,size:`large`,children:`Custom action`})})]})}),S.parameters={...S.parameters,docs:{...S.parameters?.docs,source:{originalSource:`() => {
2
+ const variant: AlertBannerVariant = 'critical';
3
+ return <AlertBannerProvider>
4
+ <AlertBannerRoot variant={variant} className={customStyles.customBanner}>
5
+ <AlertBannerIcon svg={TokyoUISparkle} />
6
+ <AlertBannerText>Custom banner built with primitives.</AlertBannerText>
7
+ <AlertBannerAction>
8
+ <Button variant="onColor" size={'large'}>
9
+ Custom action
10
+ </Button>
11
+ </AlertBannerAction>
12
+ </AlertBannerRoot>
13
+ </AlertBannerProvider>;
14
+ }`,...S.parameters?.docs?.source}}},C=[`Primitives`]}))();export{S as Primitives,C as __namedExportsOrder,x as default};
@@ -0,0 +1,112 @@
1
+ import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{t as r}from"./jsx-runtime-C2wGStra.js";import{t as i}from"./Button-DnVrHohm.js";import{d as a,r as o,u as s,v as c,y as l}from"./AlertBannerAction-BSNrnhbi.js";var u,d,f,p,m,h,g,_,v,y,b,x,S,C;t((()=>{e(n(),1),a(),l(),o(),u=r(),{action:d}=__STORYBOOK_MODULE_ACTIONS__,{userEvent:f,expect:p,fn:m}=__STORYBOOK_MODULE_TEST__,h={title:`components/AlertBanner`,component:s,subcomponents:{AlertBannerProvider:c},args:{}},g={actionOnClick:m(d(`onCLicked`))},_={args:{},parameters:{chromatic:{modes:{"narrow-l":{viewport:`narrow-l`},"medium-l":{viewport:`medium-l`}}}},render:function(){return(0,u.jsxs)(c,{children:[(0,u.jsx)(s,{variant:`critical`,description:`We can't renew your subscription.`,action:(0,u.jsx)(i,{onClick:g.actionOnClick,children:`Try again`})}),(0,u.jsx)(s,{variant:`warning`,description:`Your credit card is about to expire.`,action:(0,u.jsx)(i,{onClick:g.actionOnClick,children:`Change payment method`})}),(0,u.jsx)(s,{variant:`positive`,description:`Your subscription has been renewed successfully.`,action:(0,u.jsx)(i,{onClick:g.actionOnClick,children:`Book the next lesson`})})]})},play:async({canvas:e,step:t})=>{let n=await e.findByRole(`button`,{name:/Try again/});await t(`actionOnClick is not called`,async()=>{p(g.actionOnClick).not.toBeCalled()}),await t(`actionOnClick is called`,async()=>{await f.click(n),p(g.actionOnClick).toBeCalled()})}},v={render:function(){return(0,u.jsxs)(c,{children:[(0,u.jsx)(s,{variant:`critical`,description:`We can't renew your subscription.`,action:(0,u.jsx)(i,{onClick:g.actionOnClick,children:`Try again`}),dataset:{testId:`subscriptionAlert`}}),(0,u.jsx)(s,{variant:`warning`,description:`Your credit card is about to expire.`,action:(0,u.jsx)(i,{onClick:g.actionOnClick,children:`Change payment method`}),dataset:{testid:`paymentWarning`}}),(0,u.jsx)(s,{variant:`positive`,description:`Your subscription has been renewed successfully.`,action:(0,u.jsx)(i,{onClick:g.actionOnClick,children:`Book the next lesson`}),dataset:{testid:`subscriptionRenewed`}})]})},play:async({canvas:e,step:t})=>{await t(`Alert banners are prefixed with "Alert:" to allow screen reader users to recall the alerts region`,async()=>{await p(await e.findByTestId(`subscriptionAlert`)).toHaveTextContent(`Alert: We can't renew your subscription.Try again`)}),await t(`Warning banners are prefixed with "Warning:" to allow screen reader users to recall the alerts region`,async()=>{await p(await e.findByTestId(`paymentWarning`)).toHaveTextContent(`Warning: Your credit card is about to expire.Change payment method`)}),await t(`Positive banners are prefixed with "Update:" to allow screen reader users to recall the updates region`,async()=>{await p(await e.findByTestId(`subscriptionRenewed`)).toHaveTextContent(`Update: Your subscription has been renewed successfully.Book the next lesson`)})}},y={render:function(){return(0,u.jsxs)(c,{"data-testid":`alertBannerHostId`,children:[(0,u.jsx)(`div`,{id:`pageContents`,children:`Page contents`}),(0,u.jsx)(s,{variant:`critical`,description:`We can't renew your subscription.`,action:(0,u.jsx)(i,{onClick:g.actionOnClick,children:`Try again`}),dataset:{testId:`subscriptionAlert`}})]})},play:async({canvas:e,step:t})=>{let n=e.getByTestId(`alertBannerHostId`);await t(`The host is announced as "Alerts, warnings, and updates"`,async()=>{await p(n).toHaveAccessibleName(`Alerts, warnings, and updates`)}),await t(`The host renders an aria-live region`,async()=>{await p(n).toHaveAttribute(`aria-live`),await p(n).toHaveAttribute(`aria-atomic`,`false`),await p(n).toHaveRole(`region`)}),await t(`Alert banners are rendered at the top of the page`,async()=>{let t=document.getElementById(`pageContents`);if(!t)throw Error(`Page contents element not found`);let n=await e.findByTestId(`subscriptionAlert`);p(!!(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)).toBe(!0)})}},b=`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.`,x=`Lorem ipsum dolor sit amet, consectetur adipiscing elit. sed do eiusmod tempor incididunt.`,S={render:function(){return(0,u.jsxs)(c,{children:[(0,u.jsx)(s,{variant:`warning`,description:b,action:(0,u.jsx)(i,{onClick:g.actionOnClick,children:`Try again`})}),(0,u.jsx)(s,{variant:`warning`,description:`We can't renew your subscription.`,action:(0,u.jsx)(i,{onClick:g.actionOnClick,children:x})}),(0,u.jsx)(s,{variant:`warning`,description:b,action:(0,u.jsx)(i,{onClick:g.actionOnClick,children:x})})]})}},_.parameters={..._.parameters,docs:{..._.parameters?.docs,source:{originalSource:`{
2
+ args: {},
3
+ parameters: {
4
+ chromatic: {
5
+ modes: {
6
+ 'narrow-l': {
7
+ viewport: 'narrow-l'
8
+ },
9
+ 'medium-l': {
10
+ viewport: 'medium-l'
11
+ }
12
+ }
13
+ }
14
+ },
15
+ render: function Story() {
16
+ return <AlertBannerProvider>
17
+ <AlertBanner variant="critical" description="We can't renew your subscription." action={<Button onClick={callback.actionOnClick}>Try again</Button>} />
18
+ <AlertBanner variant="warning" description="Your credit card is about to expire." action={<Button onClick={callback.actionOnClick}>Change payment method</Button>} />
19
+ <AlertBanner variant="positive" description="Your subscription has been renewed successfully." action={<Button onClick={callback.actionOnClick}>Book the next lesson</Button>} />
20
+ </AlertBannerProvider>;
21
+ },
22
+ play: async ({
23
+ canvas,
24
+ step
25
+ }) => {
26
+ const tryAgain = await canvas.findByRole('button', {
27
+ name: /Try again/
28
+ });
29
+ await step('actionOnClick is not called', async () => {
30
+ expect(callback.actionOnClick).not.toBeCalled();
31
+ });
32
+ await step('actionOnClick is called', async () => {
33
+ await userEvent.click(tryAgain);
34
+ expect(callback.actionOnClick).toBeCalled();
35
+ });
36
+ }
37
+ }`,..._.parameters?.docs?.source}}},v.parameters={...v.parameters,docs:{...v.parameters?.docs,source:{originalSource:`{
38
+ render: function Story() {
39
+ return <AlertBannerProvider>
40
+ <AlertBanner variant="critical" description="We can't renew your subscription." action={<Button onClick={callback.actionOnClick}>Try again</Button>} dataset={{
41
+ testId: 'subscriptionAlert'
42
+ }} />
43
+ <AlertBanner variant="warning" description="Your credit card is about to expire." action={<Button onClick={callback.actionOnClick}>Change payment method</Button>} dataset={{
44
+ testid: 'paymentWarning'
45
+ }} />
46
+ <AlertBanner variant="positive" description="Your subscription has been renewed successfully." action={<Button onClick={callback.actionOnClick}>Book the next lesson</Button>} dataset={{
47
+ testid: 'subscriptionRenewed'
48
+ }} />
49
+ </AlertBannerProvider>;
50
+ },
51
+ play: async ({
52
+ canvas,
53
+ step
54
+ }) => {
55
+ await step('Alert banners are prefixed with "Alert:" to allow screen reader users to recall the alerts region', async () => {
56
+ const subscriptionAlert = await canvas.findByTestId('subscriptionAlert');
57
+ await expect(subscriptionAlert).toHaveTextContent("Alert: We can't renew your subscription.Try again");
58
+ });
59
+ await step('Warning banners are prefixed with "Warning:" to allow screen reader users to recall the alerts region', async () => {
60
+ const paymentWarning = await canvas.findByTestId('paymentWarning');
61
+ await expect(paymentWarning).toHaveTextContent('Warning: Your credit card is about to expire.Change payment method');
62
+ });
63
+ await step('Positive banners are prefixed with "Update:" to allow screen reader users to recall the updates region', async () => {
64
+ const paymentWarning = await canvas.findByTestId('subscriptionRenewed');
65
+ await expect(paymentWarning).toHaveTextContent('Update: Your subscription has been renewed successfully.Book the next lesson');
66
+ });
67
+ }
68
+ }`,...v.parameters?.docs?.source},description:{story:`The alert banners are announced to screen readers with a prefix depending on their type. This
69
+ allows to quickly recall the alerts region (rendered by \`AlertBannerProvider\`) that is put at the top
70
+ of the page.
71
+
72
+ @see AlertBannerProvider`,...v.parameters?.docs?.description}}},y.parameters={...y.parameters,docs:{...y.parameters?.docs,source:{originalSource:`{
73
+ render: function Story() {
74
+ return <AlertBannerProvider data-testid="alertBannerHostId">
75
+ <div id="pageContents">Page contents</div>
76
+ <AlertBanner variant="critical" description="We can't renew your subscription." action={<Button onClick={callback.actionOnClick}>Try again</Button>} dataset={{
77
+ testId: 'subscriptionAlert'
78
+ }} />
79
+ </AlertBannerProvider>;
80
+ },
81
+ play: async ({
82
+ canvas,
83
+ step
84
+ }) => {
85
+ const host = canvas.getByTestId('alertBannerHostId');
86
+ await step('The host is announced as "Alerts, warnings, and updates"', async () => {
87
+ await expect(host).toHaveAccessibleName('Alerts, warnings, and updates');
88
+ });
89
+ await step('The host renders an aria-live region', async () => {
90
+ await expect(host).toHaveAttribute('aria-live');
91
+ await expect(host).toHaveAttribute('aria-atomic', 'false');
92
+ await expect(host).toHaveRole('region');
93
+ });
94
+ await step('Alert banners are rendered at the top of the page', async () => {
95
+ const pageContents = document.getElementById('pageContents');
96
+ if (!pageContents) throw new Error('Page contents element not found');
97
+ const subscriptionAlert = await canvas.findByTestId('subscriptionAlert');
98
+ const pageContentsComesAfterAlertBanner = Boolean(subscriptionAlert.compareDocumentPosition(pageContents) & Node.DOCUMENT_POSITION_FOLLOWING);
99
+ expect(pageContentsComesAfterAlertBanner).toBe(true);
100
+ });
101
+ }
102
+ }`,...y.parameters?.docs?.source},description:{story:`\`AlertBannerProvider\` should wrap the whole app so its DOM element is put at the top of the page,
103
+ and renders an aria-live region that will be announced as "Alerts, warnings, and updates".
104
+ Screen readers users will remind (and can navigate to) the region when alerts will be announced.`,...y.parameters?.docs?.description}}},S.parameters={...S.parameters,docs:{...S.parameters?.docs,source:{originalSource:`{
105
+ render: function Story() {
106
+ return <AlertBannerProvider>
107
+ <AlertBanner variant="warning" description={LOREM_IPSUM_LONG} action={<Button onClick={callback.actionOnClick}>Try again</Button>} />
108
+ <AlertBanner variant="warning" description={"We can't renew your subscription."} action={<Button onClick={callback.actionOnClick}>{LOREM_IPSUM_SHORT}</Button>} />
109
+ <AlertBanner variant="warning" description={LOREM_IPSUM_LONG} action={<Button onClick={callback.actionOnClick}>{LOREM_IPSUM_SHORT}</Button>} />
110
+ </AlertBannerProvider>;
111
+ }
112
+ }`,...S.parameters?.docs?.source}}},C=[`Variants`,`Accessibility`,`AlertBannerProviderAccessibility`,`LongContents`]}))();export{v as Accessibility,y as AlertBannerProviderAccessibility,S as LongContents,_ as Variants,C as __namedExportsOrder,h as default};