@preply/ds-docs 1.4.2 → 1.4.3

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 (229) hide show
  1. package/dist/assets/{00.LayoutFlex.stories-C6NuyaJx.js → 00.LayoutFlex.stories-CQpwpBFr.js} +1 -1
  2. package/dist/assets/{00.applications-CzRQjSiq.js → 00.applications-Mbm9tl1L.js} +1 -1
  3. package/dist/assets/{00.favicons.guide-Cl2xkhMN.js → 00.favicons.guide-WYb90WDh.js} +1 -1
  4. package/dist/assets/{00.token-explorer-Bjz10JOk.js → 00.token-explorer-CG4uPgKO.js} +1 -1
  5. package/dist/assets/{00.using-responsive-props-BJUez61e.js → 00.using-responsive-props-BCXlE4FK.js} +1 -1
  6. package/dist/assets/{01.semantic-tokens-rGQpGJVg.js → 01.semantic-tokens-BSiM6jeE.js} +1 -1
  7. package/dist/assets/{01.using-shorthand-props-C5dLPYVH.js → 01.using-shorthand-props-BWE623-K.js} +1 -1
  8. package/dist/assets/{10.Combinations.stories-BCpu8o_W.js → 10.Combinations.stories-C3N8dqV2.js} +1 -1
  9. package/dist/assets/{10.fonts.guide-DDN5fND8.js → 10.fonts.guide-oxszrKa_.js} +1 -1
  10. package/dist/assets/{10.ssr-D-rANvZ-.js → 10.ssr-BsdOtfhp.js} +1 -1
  11. package/dist/assets/{11.languageFont.explorer-BV6Gwq5u.js → 11.languageFont.explorer-0rlDFUYo.js} +1 -1
  12. package/dist/assets/{11.ssr.app-router-Ch1ZJjg-.js → 11.ssr.app-router-Bye4rCeb.js} +1 -1
  13. package/dist/assets/{20.libraries-oHi972pc.js → 20.libraries-CTwefBj2.js} +1 -1
  14. package/dist/assets/{30.icons.explorer-CTyGJI0M.js → 30.icons.explorer-n6nE1o81.js} +1 -1
  15. package/dist/assets/{30.storybook-C0MSe3yp.js → 30.storybook-D9-Twxkn.js} +1 -1
  16. package/dist/assets/{40.illustrations.explorer-1aFkROmz.js → 40.illustrations.explorer-YO04df6b.js} +1 -1
  17. package/dist/assets/{90.advanced-t0tp7qCO.js → 90.advanced-BXQFnjVT.js} +1 -1
  18. package/dist/assets/AlertDialog-C8C2kzLT.css +1 -0
  19. package/dist/assets/{AlertDialog.stories-C5USsoA-.js → AlertDialog.stories-BI6dnBdp.js} +2 -2
  20. package/dist/assets/Avatar-BSlj6yko.js +1 -0
  21. package/dist/assets/Avatar-DJdEnKaL.js +6 -0
  22. package/dist/assets/Avatar-DZCUEanO.css +1 -0
  23. package/dist/assets/Avatar-fqNH9-vo.css +1 -0
  24. package/dist/assets/{Avatar.stories-CLQ3BvQW.js → Avatar.stories-Ci8GF7qg.js} +1 -1
  25. package/dist/assets/AvatarWithStatus-CEyIZEXJ.css +1 -0
  26. package/dist/assets/{AvatarWithStatus.stories-BsgFOyBx.js → AvatarWithStatus.stories-nwRdeLSv.js} +5 -5
  27. package/dist/assets/Badge-DOPey97c.css +1 -0
  28. package/dist/assets/{Badge.stories-CsQItVr_.js → Badge.stories-DFEIq5GM.js} +2 -2
  29. package/dist/assets/Box-DMXNufME.css +1 -0
  30. package/dist/assets/Box.stories-C0ffVUSP.js +44 -0
  31. package/dist/assets/Button-B5AU8t_B.css +1 -0
  32. package/dist/assets/{Button-G5Zxq86f.js → Button-COvs-WT9.js} +2 -2
  33. package/dist/assets/{Button-GOFCl1lS.css → Button-ClaaA27g.css} +1 -1
  34. package/dist/assets/Button-aNfyJQT6.js +1 -0
  35. package/dist/assets/{Button.stories-BuHavCSD.js → Button.stories-ompQpE7u.js} +1 -1
  36. package/dist/assets/ButtonBase-B-96BnyO.js +8 -0
  37. package/dist/assets/{ButtonBase-CN93Hyoe.css → ButtonBase-BiHsr0j0.css} +1 -1
  38. package/dist/assets/Chips-B9tN6418.css +1 -0
  39. package/dist/assets/{Chips.stories-DwatZLP-.js → Chips.stories-B3MMLC6G.js} +7 -7
  40. package/dist/assets/{Color-YHDXOIA2-CR40pFdp.js → Color-YHDXOIA2-BrFoM0Yb.js} +1 -1
  41. package/dist/assets/Dialog-yFesJ-1y.css +1 -0
  42. package/dist/assets/{Dialog.stories-aheiL1C_.js → Dialog.stories-CKUsFyjr.js} +5 -5
  43. package/dist/assets/{DocsRenderer-CFRXHY34-C7iNFBWT.js → DocsRenderer-CFRXHY34-BETkuvO-.js} +1 -1
  44. package/dist/assets/FieldAdditionalText-BpdxRR9p.css +1 -0
  45. package/dist/assets/{FieldAdditionalText-CK-mP7eE.js → FieldAdditionalText-Cxqy7mdI.js} +1 -1
  46. package/dist/assets/{FieldAdditionalText.stories-JWcqGRDw.js → FieldAdditionalText.stories-CeEuZK9j.js} +1 -1
  47. package/dist/assets/{FieldButton-B9DsbnCd.js → FieldButton-DcagrCQ8.js} +1 -1
  48. package/dist/assets/{FieldButton-ClSNKPdl.css → FieldButton-Ds2WVp20.css} +1 -1
  49. package/dist/assets/{FieldButton.stories-B5JDNmNP.js → FieldButton.stories-B_91sVXO.js} +1 -1
  50. package/dist/assets/{FieldLayout-2zlcC5-S.js → FieldLayout-CnOMTl8s.js} +1 -1
  51. package/dist/assets/FieldLayout-gu3ZOprL.css +1 -0
  52. package/dist/assets/{FieldLayout.stories-oIX7x6Q6.js → FieldLayout.stories-D7mYNA3d.js} +1 -1
  53. package/dist/assets/FieldLayoutBase-C3vxtn8M.css +1 -0
  54. package/dist/assets/{FieldLayoutBase-0r0SpleC.js → FieldLayoutBase-DaTu5RGY.js} +3 -3
  55. package/dist/assets/{Heading-DhbbSS03.css → Heading-4oJssLU4.css} +1 -1
  56. package/dist/assets/Heading-x9qmcX15.js +2 -0
  57. package/dist/assets/{Heading.stories-BW49vEiT.js → Heading.stories-B6BMelUD.js} +1 -1
  58. package/dist/assets/Icon-BCL3U29b.js +8 -0
  59. package/dist/assets/Icon-CbdpJGdV.js +1 -0
  60. package/dist/assets/Icon-DcBo297y.css +1 -0
  61. package/dist/assets/{Icon-RSC-DXv5b9K1.js → Icon-RSC-DDUB9nvX.js} +1 -1
  62. package/dist/assets/Icon-w1-Pci0g.css +1 -0
  63. package/dist/assets/{Icon.stories-MzKcutu8.js → Icon.stories-BGWBmrJE.js} +1 -1
  64. package/dist/assets/{IconButton-iyWiUe9X.js → IconButton-t5L07D8U.js} +2 -2
  65. package/dist/assets/InputText-B7nkpdcE.js +5 -0
  66. package/dist/assets/{LayoutFlex-pzKY-vUQ.js → LayoutFlex-DPsMHj0r.js} +1 -1
  67. package/dist/assets/{LayoutFlex-BaXqezhY.js → LayoutFlex-DWJvHMlJ.js} +1 -1
  68. package/dist/assets/LayoutFlexItem-B5jT-Jb5.js +1 -0
  69. package/dist/assets/LayoutFlexItem-BHIyHIC0.css +1 -0
  70. package/dist/assets/LayoutGrid-BE0t6Vjv.css +1 -0
  71. package/dist/assets/LayoutGrid-BPI2OONd.css +1 -0
  72. package/dist/assets/LayoutGrid-IsN1xiNR.js +1 -0
  73. package/dist/assets/{LayoutGrid.stories-CSBUYfM6.js → LayoutGrid.stories-BTiFzLOs.js} +3 -3
  74. package/dist/assets/LayoutGridItem-BoV0TprN.css +1 -0
  75. package/dist/assets/LayoutGridItem-DoY9oFwT.js +1 -0
  76. package/dist/assets/Link-KgMCDoEO.css +1 -0
  77. package/dist/assets/{Link.stories-BGmSAnPH.js → Link.stories-BioapyOJ.js} +8 -8
  78. package/dist/assets/Loader-Cb3g0jkp.css +1 -0
  79. package/dist/assets/{Loader.stories-DaYtlzeB.js → Loader.stories-Cmev743o.js} +1 -1
  80. package/dist/assets/NumberField.stories-BKSkXxOY.js +203 -0
  81. package/dist/assets/{OnboardingTooltip-BqDG-2Rd.js → OnboardingTooltip-C6QmQ6M4.js} +1 -1
  82. package/dist/assets/OnboardingTooltip-m5nsSh3_.css +1 -0
  83. package/dist/assets/{OnboardingTooltip.stories-Dx5F7YBG.js → OnboardingTooltip.stories-U7tnhack.js} +1 -1
  84. package/dist/assets/{OnboardingTooltip.tests.stories-DvcLnD5j.js → OnboardingTooltip.tests.stories-DUKQA1hD.js} +1 -1
  85. package/dist/assets/{OnboardingTour-CnsU5p_A.css → OnboardingTour-BJsn9jpi.css} +1 -1
  86. package/dist/assets/{OnboardingTour-B_yyU1AU.js → OnboardingTour-Dun5rZkn.js} +1 -1
  87. package/dist/assets/{OnboardingTour.stories-LGCUxWl4.js → OnboardingTour.stories-MuBPrYfD.js} +2 -2
  88. package/dist/assets/{OnboardingTour.tests.stories-C9CKn7JQ.js → OnboardingTour.tests.stories-ZHjxkeQ9.js} +1 -1
  89. package/dist/assets/PasswordField.stories-CIfqwh2L.js +203 -0
  90. package/dist/assets/PreplyLogo-CB8p8DAS.css +1 -0
  91. package/dist/assets/{PreplyLogo.stories-ZhZHvw_M.js → PreplyLogo.stories-C4QyROH-.js} +4 -4
  92. package/dist/assets/{ProgressBar-DYzJL8gA.css → ProgressBar-CBWfVwHl.css} +1 -1
  93. package/dist/assets/{ProgressBar.stories-XmMUjDS5.js → ProgressBar.stories-DmISlrXa.js} +1 -1
  94. package/dist/assets/ProgressSteps-BY2WWAe6.css +1 -0
  95. package/dist/assets/{ProgressSteps-CVWVi5_G.js → ProgressSteps-DX68zFl0.js} +1 -1
  96. package/dist/assets/{ProgressSteps.stories-B57q5WFr.js → ProgressSteps.stories-CFg-Zw8N.js} +1 -1
  97. package/dist/assets/SelectField-DG0p9ezC.css +1 -0
  98. package/dist/assets/SelectField.stories-_XAhNcCG.js +182 -0
  99. package/dist/assets/{Spinner-C3p2WoxW.js → Spinner-BmqtByaF.js} +1 -1
  100. package/dist/assets/Spinner-ZDzW_9X4.css +1 -0
  101. package/dist/assets/Steps-Cxg4_yWg.css +1 -0
  102. package/dist/assets/{Steps-DbST4vmL.js → Steps-DF-nuV0r.js} +2 -2
  103. package/dist/assets/{Steps.stories-gWR5Lpwz.js → Steps.stories-Bl3rC3tB.js} +1 -1
  104. package/dist/assets/{Text-CgAyAgxF.css → Text-C57iIFrB.css} +1 -1
  105. package/dist/assets/Text-DRPK601D.js +1 -0
  106. package/dist/assets/Text-WS7Bdore.js +1 -0
  107. package/dist/assets/{Text.stories-BlLgBmMi.js → Text.stories-CRsvV8RJ.js} +1 -1
  108. package/dist/assets/TextField-BcWoR3uH.js +1 -0
  109. package/dist/assets/TextField-CPALlvVS.css +1 -0
  110. package/dist/assets/{TextField.stories-CPD818W_.js → TextField.stories-CVj_jcVs.js} +1 -1
  111. package/dist/assets/TextHighlighted-BYPgGvnl.js +1 -0
  112. package/dist/assets/TextHighlighted-CEnKKn7p.css +1 -0
  113. package/dist/assets/{TextHighlighted.stories-DTNcmEX3.js → TextHighlighted.stories-TRvVYByW.js} +3 -3
  114. package/dist/assets/TextInline-C2oRwfiB.css +1 -0
  115. package/dist/assets/{TextInline.stories-DqX-qocx.js → TextInline.stories-Dwp1YyrO.js} +3 -3
  116. package/dist/assets/TextareaField.stories-D5Hhx-hP.js +221 -0
  117. package/dist/assets/Toast-ByHRc2jt.css +1 -0
  118. package/dist/assets/{Toast.stories-CGXB3Oyz.js → Toast.stories-Biw6si0p.js} +9 -9
  119. package/dist/assets/Tooltip-BfH_0PT3.css +1 -0
  120. package/dist/assets/{Tooltip-kdQF0n0X.js → Tooltip-C8TiSVfN.js} +1 -1
  121. package/dist/assets/{Tooltip.stories-ChMEb5wa.js → Tooltip.stories-2Ql_m8AA.js} +1 -1
  122. package/dist/assets/{Tooltip.tests.stories-DRKkU6_h.js → Tooltip.tests.stories-Dhvul9uf.js} +1 -1
  123. package/dist/assets/{breakpoints-BKtvPn4z.js → breakpoints-B_UT1zHj.js} +1 -1
  124. package/dist/assets/{breakpoints-Dw3ULM7j.js → breakpoints-CUfFCyvn.js} +1 -1
  125. package/dist/assets/{breakpoints-CvGR1154.js → breakpoints-G1prPZ-_.js} +1 -1
  126. package/dist/assets/{changelog-DXXuLjII.js → changelog-wUoWC9JB.js} +1 -1
  127. package/dist/assets/{entry-preview-DKCl8pnk.js → entry-preview-B6s8fdeP.js} +1 -1
  128. package/dist/assets/{getTokenVar-BWljsLZ6.js → getTokenVar-Cm8Hrfw5.js} +1 -1
  129. package/dist/assets/{hover-Cun_Hxa2.js → hover-BZ9GWD6i.js} +1 -1
  130. package/dist/assets/{hover-BRNG4vFt.js → hover-CVuE2EdV.js} +1 -1
  131. package/dist/assets/{hover-BpH2YvND.js → hover-QoG-Aw1V.js} +1 -1
  132. package/dist/assets/{iframe-DbVfH8B5.js → iframe-Cb21JL3A.js} +2 -2
  133. package/dist/assets/{index-lpmehhNH.js → index-CsopvqxJ.js} +1 -1
  134. package/dist/assets/{index-UAdYqHL0.js → index-Dl0kr_VJ.js} +3 -3
  135. package/dist/assets/{intro-CQsqeQsV.js → intro-Dst0gh7V.js} +1 -1
  136. package/dist/assets/layout-relative-B1RJCRWS.css +1 -0
  137. package/dist/assets/layout-relative-BX4afYg4.js +1 -0
  138. package/dist/assets/layout-relative-C0j_3nlP.css +1 -0
  139. package/dist/assets/layout-relative-Can2t_0C.css +1 -0
  140. package/dist/assets/layout-relative.module-CpQbo91e-wKldJApF.js +1 -0
  141. package/dist/assets/layout-relative.module-IN4igp-_.js +1 -0
  142. package/dist/assets/{migrating-from-less-DAZke_bf.js → migrating-from-less-Bt8JVIac.js} +1 -1
  143. package/dist/assets/playground-DgTGJcE5.css +1 -0
  144. package/dist/assets/{playground.stories-Dpb3xI2s.js → playground.stories-BA5seiLe.js} +2 -2
  145. package/dist/assets/{preview-HuUbG8ej.js → preview-B-4B_khw.js} +2 -2
  146. package/dist/assets/{preview-kCY-Nq0t.js → preview-DFPubP5B.js} +1 -1
  147. package/dist/assets/{preview-DchamjVK.js → preview-hMa3Y1xy.js} +1 -1
  148. package/dist/assets/text-accent-BqZbJG9z.js +1 -0
  149. package/dist/assets/text-accent-DEvzdotz.js +1 -0
  150. package/dist/assets/text-accent-eC5rHFDr.css +1 -0
  151. package/dist/assets/text-centered-7-NHbkTa.js +1 -0
  152. package/dist/assets/text-centered-BLjliCzN.js +1 -0
  153. package/dist/assets/text-centered-DNfnrRY6.css +1 -0
  154. package/dist/assets/text-centered-DiwnyevC.css +1 -0
  155. package/dist/assets/{tokens-BaIvp8uk.js → tokens-Cc3okQu4.js} +1 -1
  156. package/dist/assets/{tokens-KVFCTIK3.js → tokens-ClkBQdOg.js} +1 -1
  157. package/dist/assets/{tokens-BqWh6RWP.js → tokens-kSXR3wSb.js} +1 -1
  158. package/dist/assets/{usePortalElement-DBJJ4TO9.js → usePortalElement-DIAQKTtU.js} +1 -1
  159. package/dist/assets/{welcome-CaHVZaZ7.js → welcome-CReKbWWS.js} +3 -4
  160. package/dist/assets/{zeroheight-DobKPt2E.js → zeroheight-DfgR4LgT.js} +1 -1
  161. package/dist/iframe.html +1 -1
  162. package/dist/preview-stats.json +1322 -1322
  163. package/dist/project.json +1 -1
  164. package/package.json +3 -3
  165. package/dist/assets/AlertDialog-8zNG4W6P.css +0 -1
  166. package/dist/assets/Avatar-BZKmHoZm.css +0 -1
  167. package/dist/assets/Avatar-BkmMIq29.css +0 -1
  168. package/dist/assets/Avatar-D5vkZljP.js +0 -1
  169. package/dist/assets/Avatar-lFZ8Cfpv.js +0 -6
  170. package/dist/assets/AvatarWithStatus-Dv8yodGu.css +0 -1
  171. package/dist/assets/Badge-kZt_FH50.css +0 -1
  172. package/dist/assets/Box-4GImUu2D.css +0 -1
  173. package/dist/assets/Box.stories-C3UUNdDi.js +0 -44
  174. package/dist/assets/Button-CawJKyho.css +0 -1
  175. package/dist/assets/Button-Oaj5OWvs.js +0 -1
  176. package/dist/assets/ButtonBase-Desxs10d.js +0 -8
  177. package/dist/assets/Chips-DIrYdYig.css +0 -1
  178. package/dist/assets/Dialog-B5rqi-V8.css +0 -1
  179. package/dist/assets/FieldAdditionalText-DmrAhCSm.css +0 -1
  180. package/dist/assets/FieldLayout-ayailSRB.css +0 -1
  181. package/dist/assets/FieldLayoutBase-DaHOfSqh.css +0 -1
  182. package/dist/assets/Heading-BDNRMwVu.js +0 -2
  183. package/dist/assets/Icon-COBslmJH.css +0 -1
  184. package/dist/assets/Icon-DAQd7Eod.js +0 -8
  185. package/dist/assets/Icon-VzZ0SATJ.css +0 -1
  186. package/dist/assets/Icon-qme4Scxh.js +0 -1
  187. package/dist/assets/InputText-IEjR9ee0.js +0 -5
  188. package/dist/assets/LayoutFlexItem-CzflYuZ_.js +0 -1
  189. package/dist/assets/LayoutFlexItem-Dci-Cv-V.css +0 -1
  190. package/dist/assets/LayoutGrid-C8hq1-LL.css +0 -1
  191. package/dist/assets/LayoutGrid-CULegRpi.css +0 -1
  192. package/dist/assets/LayoutGrid-ZAYmKrcj.js +0 -1
  193. package/dist/assets/LayoutGridItem-DJDMWtVq.css +0 -1
  194. package/dist/assets/LayoutGridItem-m645Lhkq.js +0 -1
  195. package/dist/assets/Link-CPkXDszE.css +0 -1
  196. package/dist/assets/Loader-C5QrrxXJ.css +0 -1
  197. package/dist/assets/NumberField.stories-DIRO8IHc.js +0 -203
  198. package/dist/assets/OnboardingTooltip-BfzcF9sW.css +0 -1
  199. package/dist/assets/PasswordField.stories-CvnCM5rD.js +0 -203
  200. package/dist/assets/PreplyLogo-Cecouk_S.css +0 -1
  201. package/dist/assets/ProgressSteps-Dip-BZlm.css +0 -1
  202. package/dist/assets/SelectField-CTB098t-.css +0 -1
  203. package/dist/assets/SelectField.stories-CqnGEFQn.js +0 -182
  204. package/dist/assets/Spinner-BuihcWyQ.css +0 -1
  205. package/dist/assets/Steps-Bd4yQjwc.css +0 -1
  206. package/dist/assets/Text-BeAjllqh.js +0 -1
  207. package/dist/assets/Text-D3ATKGXs.js +0 -1
  208. package/dist/assets/TextField-BiEzDuCh.js +0 -1
  209. package/dist/assets/TextField-C3owY_ZE.css +0 -1
  210. package/dist/assets/TextHighlighted-B_WQpKk8.css +0 -1
  211. package/dist/assets/TextHighlighted-DoFzmVL0.js +0 -1
  212. package/dist/assets/TextInline-BqUzWrD4.css +0 -1
  213. package/dist/assets/TextareaField.stories-D95m8D1f.js +0 -221
  214. package/dist/assets/Toast-BsJOXveW.css +0 -1
  215. package/dist/assets/Tooltip-9him0tBb.css +0 -1
  216. package/dist/assets/layout-relative-Cf09gtOc.css +0 -1
  217. package/dist/assets/layout-relative-DA7rS9QX.js +0 -1
  218. package/dist/assets/layout-relative-Jxb51_Sh.css +0 -1
  219. package/dist/assets/layout-relative-mSX9oB2N.css +0 -1
  220. package/dist/assets/layout-relative.module-CYNzEGVH.js +0 -1
  221. package/dist/assets/layout-relative.module-yZwngsDw-BiwrSIEl.js +0 -1
  222. package/dist/assets/playground-w72anE0z.css +0 -1
  223. package/dist/assets/text-accent-CuYWdzBU.js +0 -1
  224. package/dist/assets/text-accent-DbbdQjKI.js +0 -1
  225. package/dist/assets/text-accent-da8yAj-M.css +0 -1
  226. package/dist/assets/text-centered-6MZg9O0U.js +0 -1
  227. package/dist/assets/text-centered-CrBlvRDP.js +0 -1
  228. package/dist/assets/text-centered-DUL478eo.css +0 -1
  229. package/dist/assets/text-centered-RwJDmlB2.css +0 -1
@@ -1,4 +1,4 @@
1
- import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{r as I}from"./index-Cb9e4tly.js";import{g as D,a as N,b as P}from"./layout-relative-DA7rS9QX.js";import{f as R}from"./filterHTMLAttributes-DYdLqcvH.js";import{m as w,a as E,s as f}from"./classNames-BUL1Zq7e.js";import{g as A}from"./index-DdzHuZ-Y.js";import{L as T,k as H,f as U}from"./defaults-B1rzzf6M.js";import{w as h}from"./componentNames-Bwls0I02.js";import{B as $}from"./breakpoints-BfMlrtxE.js";import{s as W,g as Y}from"./layout-relative.module-CYNzEGVH.js";import{S as o,a as M}from"./consts-KAYct7Gj.js";import"./index-ChsGqxH_.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./constants-DYYVurUY.js";const F="_LayoutGridItem_2tq6r_1",B={LayoutGridItem:F},L=I.forwardRef(function({children:i,alignSelf:n,tag:a,hide:u,relative:s,dataset:r,...l},d){const m=w(B,h.LayoutGridItem,[]),y=D(n),c=N(u),G=P(s),g=[...m,...y,...c,...G],q=a??T,O={...R(l),ref:d,className:g.join(" "),...A(r,{preplyDsComponent:h.LayoutGridItem})};return t.jsx(q,{...O,children:i})});try{L.displayName="LayoutGridItem",L.__docgenInfo={description:"",displayName:"LayoutGridItem",props:{alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"stretch"'},{value:"ResponsiveProp<LayoutAlignSelf>"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"main"'},{value:'"header"'},{value:'"footer"'},{value:'"article"'},{value:'"section"'},{value:'"ul"'},{value:'"ol"'},{value:'"li"'},{value:'"p"'},{value:'"span"'},{value:'"fieldset"'},{value:'"table"'},{value:'"th"'},{value:'"tr"'},{value:'"td"'},{value:'"thead"'},{value:'"tfoot"'},{value:'"tbody"'},{value:'"caption"'},{value:'"figure"'},{value:'"figcaption"'}]}},hide:{defaultValue:null,description:"",name:"hide",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},relative:{defaultValue:null,description:"",name:"relative",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},dataset:{defaultValue:null,description:"",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: HTMLElement | null) => void"},{value:"RefObject<HTMLElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const J="_LayoutGrid_9zrms_4",V={LayoutGrid:J,"LayoutGrid--justify-content-center":"_LayoutGrid--justify-content-center_9zrms_14","LayoutGrid--justify-content-start":"_LayoutGrid--justify-content-start_9zrms_17","LayoutGrid--justify-content-end":"_LayoutGrid--justify-content-end_9zrms_20","LayoutGrid--justify-content-space-between":"_LayoutGrid--justify-content-space-between_9zrms_23","LayoutGrid--justify-content-space-around":"_LayoutGrid--justify-content-space-around_9zrms_26","LayoutGrid--justify-content-space-evenly":"_LayoutGrid--justify-content-space-evenly_9zrms_29","LayoutGrid--narrow-l--justify-content-center":"_LayoutGrid--narrow-l--justify-content-center_9zrms_33","LayoutGrid--narrow-l--justify-content-start":"_LayoutGrid--narrow-l--justify-content-start_9zrms_36","LayoutGrid--narrow-l--justify-content-end":"_LayoutGrid--narrow-l--justify-content-end_9zrms_39","LayoutGrid--narrow-l--justify-content-space-between":"_LayoutGrid--narrow-l--justify-content-space-between_9zrms_42","LayoutGrid--narrow-l--justify-content-space-around":"_LayoutGrid--narrow-l--justify-content-space-around_9zrms_45","LayoutGrid--narrow-l--justify-content-space-evenly":"_LayoutGrid--narrow-l--justify-content-space-evenly_9zrms_48","LayoutGrid--medium-s--justify-content-center":"_LayoutGrid--medium-s--justify-content-center_9zrms_53","LayoutGrid--medium-s--justify-content-start":"_LayoutGrid--medium-s--justify-content-start_9zrms_56","LayoutGrid--medium-s--justify-content-end":"_LayoutGrid--medium-s--justify-content-end_9zrms_59","LayoutGrid--medium-s--justify-content-space-between":"_LayoutGrid--medium-s--justify-content-space-between_9zrms_62","LayoutGrid--medium-s--justify-content-space-around":"_LayoutGrid--medium-s--justify-content-space-around_9zrms_65","LayoutGrid--medium-s--justify-content-space-evenly":"_LayoutGrid--medium-s--justify-content-space-evenly_9zrms_68","LayoutGrid--medium-l--justify-content-center":"_LayoutGrid--medium-l--justify-content-center_9zrms_73","LayoutGrid--medium-l--justify-content-start":"_LayoutGrid--medium-l--justify-content-start_9zrms_76","LayoutGrid--medium-l--justify-content-end":"_LayoutGrid--medium-l--justify-content-end_9zrms_79","LayoutGrid--medium-l--justify-content-space-between":"_LayoutGrid--medium-l--justify-content-space-between_9zrms_82","LayoutGrid--medium-l--justify-content-space-around":"_LayoutGrid--medium-l--justify-content-space-around_9zrms_85","LayoutGrid--medium-l--justify-content-space-evenly":"_LayoutGrid--medium-l--justify-content-space-evenly_9zrms_88","LayoutGrid--wide-s--justify-content-center":"_LayoutGrid--wide-s--justify-content-center_9zrms_93","LayoutGrid--wide-s--justify-content-start":"_LayoutGrid--wide-s--justify-content-start_9zrms_96","LayoutGrid--wide-s--justify-content-end":"_LayoutGrid--wide-s--justify-content-end_9zrms_99","LayoutGrid--wide-s--justify-content-space-between":"_LayoutGrid--wide-s--justify-content-space-between_9zrms_102","LayoutGrid--wide-s--justify-content-space-around":"_LayoutGrid--wide-s--justify-content-space-around_9zrms_105","LayoutGrid--wide-s--justify-content-space-evenly":"_LayoutGrid--wide-s--justify-content-space-evenly_9zrms_108","LayoutGrid--wide-l--justify-content-center":"_LayoutGrid--wide-l--justify-content-center_9zrms_113","LayoutGrid--wide-l--justify-content-start":"_LayoutGrid--wide-l--justify-content-start_9zrms_116","LayoutGrid--wide-l--justify-content-end":"_LayoutGrid--wide-l--justify-content-end_9zrms_119","LayoutGrid--wide-l--justify-content-space-between":"_LayoutGrid--wide-l--justify-content-space-between_9zrms_122","LayoutGrid--wide-l--justify-content-space-around":"_LayoutGrid--wide-l--justify-content-space-around_9zrms_125","LayoutGrid--wide-l--justify-content-space-evenly":"_LayoutGrid--wide-l--justify-content-space-evenly_9zrms_128","LayoutGrid--align-items-center":"_LayoutGrid--align-items-center_9zrms_132","LayoutGrid--align-items-start":"_LayoutGrid--align-items-start_9zrms_135","LayoutGrid--align-items-end":"_LayoutGrid--align-items-end_9zrms_138","LayoutGrid--align-items-stretch":"_LayoutGrid--align-items-stretch_9zrms_141","LayoutGrid--align-items-baseline":"_LayoutGrid--align-items-baseline_9zrms_144","LayoutGrid--narrow-l--align-items-center":"_LayoutGrid--narrow-l--align-items-center_9zrms_148","LayoutGrid--narrow-l--align-items-start":"_LayoutGrid--narrow-l--align-items-start_9zrms_151","LayoutGrid--narrow-l--align-items-end":"_LayoutGrid--narrow-l--align-items-end_9zrms_154","LayoutGrid--narrow-l--align-items-stretch":"_LayoutGrid--narrow-l--align-items-stretch_9zrms_157","LayoutGrid--narrow-l--align-items-baseline":"_LayoutGrid--narrow-l--align-items-baseline_9zrms_160","LayoutGrid--medium-s--align-items-center":"_LayoutGrid--medium-s--align-items-center_9zrms_165","LayoutGrid--medium-s--align-items-start":"_LayoutGrid--medium-s--align-items-start_9zrms_168","LayoutGrid--medium-s--align-items-end":"_LayoutGrid--medium-s--align-items-end_9zrms_171","LayoutGrid--medium-s--align-items-stretch":"_LayoutGrid--medium-s--align-items-stretch_9zrms_174","LayoutGrid--medium-s--align-items-baseline":"_LayoutGrid--medium-s--align-items-baseline_9zrms_177","LayoutGrid--medium-l--align-items-center":"_LayoutGrid--medium-l--align-items-center_9zrms_182","LayoutGrid--medium-l--align-items-start":"_LayoutGrid--medium-l--align-items-start_9zrms_185","LayoutGrid--medium-l--align-items-end":"_LayoutGrid--medium-l--align-items-end_9zrms_188","LayoutGrid--medium-l--align-items-stretch":"_LayoutGrid--medium-l--align-items-stretch_9zrms_191","LayoutGrid--medium-l--align-items-baseline":"_LayoutGrid--medium-l--align-items-baseline_9zrms_194","LayoutGrid--wide-s--align-items-center":"_LayoutGrid--wide-s--align-items-center_9zrms_199","LayoutGrid--wide-s--align-items-start":"_LayoutGrid--wide-s--align-items-start_9zrms_202","LayoutGrid--wide-s--align-items-end":"_LayoutGrid--wide-s--align-items-end_9zrms_205","LayoutGrid--wide-s--align-items-stretch":"_LayoutGrid--wide-s--align-items-stretch_9zrms_208","LayoutGrid--wide-s--align-items-baseline":"_LayoutGrid--wide-s--align-items-baseline_9zrms_211","LayoutGrid--wide-l--align-items-center":"_LayoutGrid--wide-l--align-items-center_9zrms_216","LayoutGrid--wide-l--align-items-start":"_LayoutGrid--wide-l--align-items-start_9zrms_219","LayoutGrid--wide-l--align-items-end":"_LayoutGrid--wide-l--align-items-end_9zrms_222","LayoutGrid--wide-l--align-items-stretch":"_LayoutGrid--wide-l--align-items-stretch_9zrms_225","LayoutGrid--wide-l--align-items-baseline":"_LayoutGrid--wide-l--align-items-baseline_9zrms_228","LayoutGrid--justify-items-stretch":"_LayoutGrid--justify-items-stretch_9zrms_232","LayoutGrid--justify-items-center":"_LayoutGrid--justify-items-center_9zrms_235","LayoutGrid--justify-items-start":"_LayoutGrid--justify-items-start_9zrms_238","LayoutGrid--justify-items-end":"_LayoutGrid--justify-items-end_9zrms_241","LayoutGrid--narrow-l--justify-items-stretch":"_LayoutGrid--narrow-l--justify-items-stretch_9zrms_245","LayoutGrid--narrow-l--justify-items-center":"_LayoutGrid--narrow-l--justify-items-center_9zrms_248","LayoutGrid--narrow-l--justify-items-start":"_LayoutGrid--narrow-l--justify-items-start_9zrms_251","LayoutGrid--narrow-l--justify-items-end":"_LayoutGrid--narrow-l--justify-items-end_9zrms_254","LayoutGrid--medium-s--justify-items-stretch":"_LayoutGrid--medium-s--justify-items-stretch_9zrms_259","LayoutGrid--medium-s--justify-items-center":"_LayoutGrid--medium-s--justify-items-center_9zrms_262","LayoutGrid--medium-s--justify-items-start":"_LayoutGrid--medium-s--justify-items-start_9zrms_265","LayoutGrid--medium-s--justify-items-end":"_LayoutGrid--medium-s--justify-items-end_9zrms_268","LayoutGrid--medium-l--justify-items-stretch":"_LayoutGrid--medium-l--justify-items-stretch_9zrms_273","LayoutGrid--medium-l--justify-items-center":"_LayoutGrid--medium-l--justify-items-center_9zrms_276","LayoutGrid--medium-l--justify-items-start":"_LayoutGrid--medium-l--justify-items-start_9zrms_279","LayoutGrid--medium-l--justify-items-end":"_LayoutGrid--medium-l--justify-items-end_9zrms_282","LayoutGrid--wide-s--justify-items-stretch":"_LayoutGrid--wide-s--justify-items-stretch_9zrms_287","LayoutGrid--wide-s--justify-items-center":"_LayoutGrid--wide-s--justify-items-center_9zrms_290","LayoutGrid--wide-s--justify-items-start":"_LayoutGrid--wide-s--justify-items-start_9zrms_293","LayoutGrid--wide-s--justify-items-end":"_LayoutGrid--wide-s--justify-items-end_9zrms_296","LayoutGrid--wide-l--justify-items-stretch":"_LayoutGrid--wide-l--justify-items-stretch_9zrms_301","LayoutGrid--wide-l--justify-items-center":"_LayoutGrid--wide-l--justify-items-center_9zrms_304","LayoutGrid--wide-l--justify-items-start":"_LayoutGrid--wide-l--justify-items-start_9zrms_307","LayoutGrid--wide-l--justify-items-end":"_LayoutGrid--wide-l--justify-items-end_9zrms_310","LayoutGrid--columns":"_LayoutGrid--columns_9zrms_314","LayoutGrid--columns-narrow-l":"_LayoutGrid--columns-narrow-l_9zrms_318","LayoutGrid--columns-medium-s":"_LayoutGrid--columns-medium-s_9zrms_323","LayoutGrid--columns-medium-l":"_LayoutGrid--columns-medium-l_9zrms_328","LayoutGrid--columns-wide-s":"_LayoutGrid--columns-wide-s_9zrms_333","LayoutGrid--columns-wide-l":"_LayoutGrid--columns-wide-l_9zrms_338"},K="LayoutGrid",Q=Object.keys($),j=e=>typeof e=="number"?`repeat(${e}, 1fr)`:e.join(" "),X=e=>typeof e=="object"&&!Array.isArray(e)?Object.entries(e).reduce((i,[n,a])=>({...i,...a?{[n]:j(a)}:{}}),{_:j(e._)}):{_:j(e)},Z=e=>{if(!e)return{classNames:[],style:{}};const i=X(e),n=Q.filter(s=>i[s]),a=E(V,K,["columns",...n.map(s=>`columns-${s}`)]),u=n.reduce((s,r)=>({...s,[`--columns-${r}`]:i[r]}),{"--columns":i._});return{classNames:a,style:u}},ee="LayoutGap",te=e=>w(W,ee,[f("gap",e)]),ae="LayoutGrid",ie=(e,i)=>{const{gap:n=H,padding:a=U,justifyContent:u,alignItems:s,justifyItems:r,hide:l,relative:d}=i||{},m=w(V,ae,[f("justify-content",u),f("align-items",s),f("justify-items",r)]),y=te(n),c=Y(a),G=N(l,"grid"),g=P(d);return[...m,...y,...c,...G,...g]},v=I.forwardRef(function({dataset:i,children:n,...a},u){const{tag:s=T,columns:r}=a,l=ie("grid",a),{style:d,classNames:m}=Z(r),y=[...l,...m],c={...R(a),ref:u,className:y.join(" "),style:d,...A(i,{preplyDsComponent:h.LayoutGrid})};return t.jsx(s,{...c,children:n})});try{v.displayName="LayoutGrid",v.__docgenInfo={description:"A CSS `grid` wrapper.",displayName:"LayoutGrid",props:{gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"enum",value:[{value:'"2xs"'},{value:'"xs"'},{value:'"s"'},{value:'"m"'},{value:'"l"'},{value:'"xl"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:'"none"'},{value:'"3xs"'},{value:"ResponsiveProp<LayoutGap>"},{value:'"0"'},{value:'"1"'},{value:'"2"'},{value:'"4"'},{value:'"8"'},{value:'"12"'},{value:'"16"'},{value:'"20"'},{value:"ResponsiveProp<Spacing>"}]}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"enum",value:[{value:'"2xs"'},{value:'"xs"'},{value:'"s"'},{value:'"m"'},{value:'"l"'},{value:'"xl"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:'"none"'},{value:'"3xs"'},{value:'"0"'},{value:'"1"'},{value:'"2"'},{value:'"4"'},{value:'"8"'},{value:'"12"'},{value:'"16"'},{value:'"20"'},{value:"[LayoutPadding, LayoutPadding]"},{value:"[LayoutPadding, LayoutPadding, LayoutPadding]"},{value:"[LayoutPadding, LayoutPadding, LayoutPadding, LayoutPadding]"},{value:"[Spacing, Spacing]"},{value:"[Spacing, Spacing, Spacing]"},{value:"[Spacing, Spacing, Spacing, Spacing]"},{value:"ResponsiveProp<ShortHand<LayoutPadding> | ShortHand<Spacing>>"}]}},columns:{defaultValue:null,description:"The `number` of columns, or a `string[]` of `grid-template-columns`.\n@see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns}",name:"columns",required:!1,type:{name:"enum",value:[{value:"number"},{value:"string[]"},{value:"ResponsiveProp<number | string[]>"}]}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"space-between"'},{value:'"space-around"'},{value:'"space-evenly"'},{value:"ResponsiveProp<LayoutJustifyContent>"}]}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"stretch"'},{value:'"baseline"'},{value:"ResponsiveProp<LayoutAlignItems>"}]}},justifyItems:{defaultValue:null,description:"",name:"justifyItems",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"stretch"'},{value:"ResponsiveProp<LayoutJustifyItems>"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"main"'},{value:'"header"'},{value:'"footer"'},{value:'"article"'},{value:'"section"'},{value:'"ul"'},{value:'"ol"'},{value:'"li"'},{value:'"p"'},{value:'"span"'},{value:'"fieldset"'},{value:'"table"'},{value:'"th"'},{value:'"tr"'},{value:'"td"'},{value:'"thead"'},{value:'"tfoot"'},{value:'"tbody"'},{value:'"caption"'},{value:'"figure"'},{value:'"figcaption"'}]}},hide:{defaultValue:null,description:"",name:"hide",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},relative:{defaultValue:null,description:"",name:"relative",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},dataset:{defaultValue:null,description:"",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: HTMLElement | null) => void"},{value:"RefObject<HTMLElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const ve={title:"components/LayoutGrid",component:v,subcomponents:{LayoutGridItem:L},argTypes:{gap:{description:o},padding:{description:M},columns:{description:o},justifyContent:{description:o},alignItems:{description:o},justifyItems:{description:o},hide:{description:o},relative:{description:o}}},_=()=>t.jsxs(v,{columns:4,alignItems:"start",gap:"xs",children:[t.jsx(L,{children:t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:[t.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}}),t.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}})]})}),t.jsx(L,{alignSelf:"end",children:t.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}})}),t.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}}),t.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}})]});_.storyName="LayoutGrid";const p={parameters:{chromatic:{disableSnapshot:!0}},args:{gap:"16",columns:3,alignItems:"start",children:t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{minWidth:"100px",minHeight:50,backgroundColor:"hotpink"},children:" "}),t.jsx("div",{style:{minWidth:"100px",minHeight:75,backgroundColor:"hotpink"},children:" "}),t.jsx("div",{style:{minWidth:"100px",minHeight:100,backgroundColor:"hotpink",textAlign:"center"}})]}),dataset:{qaid:"layout-grid"}},argTypes:{dataset:{control:"object"},columns:{control:"number"},justifyItems:{control:"select"},hide:{control:"boolean"},relative:{control:"boolean"},children:{control:!1}}};var z,b,C;_.parameters={..._.parameters,docs:{...(z=_.parameters)==null?void 0:z.docs,source:{originalSource:`() => <LayoutGrid columns={4} alignItems="start" gap="xs">
1
+ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{r as N}from"./index-Cb9e4tly.js";import{g as E,a as P,b as R}from"./layout-relative-BX4afYg4.js";import{f as A}from"./filterHTMLAttributes-DYdLqcvH.js";import{m as h,a as H,s as f}from"./classNames-BUL1Zq7e.js";import{g as T}from"./index-DdzHuZ-Y.js";import{L as V,k as U,f as $}from"./defaults-B1rzzf6M.js";import{w as j}from"./componentNames-Bwls0I02.js";import{B as W}from"./breakpoints-BfMlrtxE.js";import{s as Y,g as M}from"./layout-relative.module-IN4igp-_.js";import{S as o,a as z}from"./consts-KAYct7Gj.js";import"./index-ChsGqxH_.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./constants-DYYVurUY.js";const F="_LayoutGridItem_2tq6r_1",B={LayoutGridItem:F},L=N.forwardRef(function({children:i,alignSelf:s,tag:a,hide:r,relative:n,dataset:u,...l},d){const y=h(B,j.LayoutGridItem,[]),m=E(s),c=P(r),G=R(n),g=[...y,...m,...c,...G],O=a??V,D={...A(l),ref:d,className:g.join(" "),...T(u,{preplyDsComponent:j.LayoutGridItem})};return t.jsx(O,{...D,children:i})});try{L.displayName="LayoutGridItem",L.__docgenInfo={description:"",displayName:"LayoutGridItem",props:{alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"stretch"'},{value:"ResponsiveProp<LayoutAlignSelf>"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"main"'},{value:'"header"'},{value:'"footer"'},{value:'"article"'},{value:'"section"'},{value:'"ul"'},{value:'"ol"'},{value:'"li"'},{value:'"p"'},{value:'"span"'},{value:'"fieldset"'},{value:'"table"'},{value:'"th"'},{value:'"tr"'},{value:'"td"'},{value:'"thead"'},{value:'"tfoot"'},{value:'"tbody"'},{value:'"caption"'},{value:'"figure"'},{value:'"figcaption"'}]}},hide:{defaultValue:null,description:"",name:"hide",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},relative:{defaultValue:null,description:"",name:"relative",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},dataset:{defaultValue:null,description:"",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: HTMLElement | null) => void"},{value:"RefObject<HTMLElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const J="_LayoutGrid_9ybe1_4",q={LayoutGrid:J,"LayoutGrid--justify-content-center":"_LayoutGrid--justify-content-center_9ybe1_14","LayoutGrid--justify-content-start":"_LayoutGrid--justify-content-start_9ybe1_17","LayoutGrid--justify-content-end":"_LayoutGrid--justify-content-end_9ybe1_20","LayoutGrid--justify-content-space-between":"_LayoutGrid--justify-content-space-between_9ybe1_23","LayoutGrid--justify-content-space-around":"_LayoutGrid--justify-content-space-around_9ybe1_26","LayoutGrid--justify-content-space-evenly":"_LayoutGrid--justify-content-space-evenly_9ybe1_29","LayoutGrid--narrow-l--justify-content-center":"_LayoutGrid--narrow-l--justify-content-center_9ybe1_33","LayoutGrid--narrow-l--justify-content-start":"_LayoutGrid--narrow-l--justify-content-start_9ybe1_36","LayoutGrid--narrow-l--justify-content-end":"_LayoutGrid--narrow-l--justify-content-end_9ybe1_39","LayoutGrid--narrow-l--justify-content-space-between":"_LayoutGrid--narrow-l--justify-content-space-between_9ybe1_42","LayoutGrid--narrow-l--justify-content-space-around":"_LayoutGrid--narrow-l--justify-content-space-around_9ybe1_45","LayoutGrid--narrow-l--justify-content-space-evenly":"_LayoutGrid--narrow-l--justify-content-space-evenly_9ybe1_48","LayoutGrid--medium-s--justify-content-center":"_LayoutGrid--medium-s--justify-content-center_9ybe1_53","LayoutGrid--medium-s--justify-content-start":"_LayoutGrid--medium-s--justify-content-start_9ybe1_56","LayoutGrid--medium-s--justify-content-end":"_LayoutGrid--medium-s--justify-content-end_9ybe1_59","LayoutGrid--medium-s--justify-content-space-between":"_LayoutGrid--medium-s--justify-content-space-between_9ybe1_62","LayoutGrid--medium-s--justify-content-space-around":"_LayoutGrid--medium-s--justify-content-space-around_9ybe1_65","LayoutGrid--medium-s--justify-content-space-evenly":"_LayoutGrid--medium-s--justify-content-space-evenly_9ybe1_68","LayoutGrid--medium-l--justify-content-center":"_LayoutGrid--medium-l--justify-content-center_9ybe1_73","LayoutGrid--medium-l--justify-content-start":"_LayoutGrid--medium-l--justify-content-start_9ybe1_76","LayoutGrid--medium-l--justify-content-end":"_LayoutGrid--medium-l--justify-content-end_9ybe1_79","LayoutGrid--medium-l--justify-content-space-between":"_LayoutGrid--medium-l--justify-content-space-between_9ybe1_82","LayoutGrid--medium-l--justify-content-space-around":"_LayoutGrid--medium-l--justify-content-space-around_9ybe1_85","LayoutGrid--medium-l--justify-content-space-evenly":"_LayoutGrid--medium-l--justify-content-space-evenly_9ybe1_88","LayoutGrid--wide-s--justify-content-center":"_LayoutGrid--wide-s--justify-content-center_9ybe1_93","LayoutGrid--wide-s--justify-content-start":"_LayoutGrid--wide-s--justify-content-start_9ybe1_96","LayoutGrid--wide-s--justify-content-end":"_LayoutGrid--wide-s--justify-content-end_9ybe1_99","LayoutGrid--wide-s--justify-content-space-between":"_LayoutGrid--wide-s--justify-content-space-between_9ybe1_102","LayoutGrid--wide-s--justify-content-space-around":"_LayoutGrid--wide-s--justify-content-space-around_9ybe1_105","LayoutGrid--wide-s--justify-content-space-evenly":"_LayoutGrid--wide-s--justify-content-space-evenly_9ybe1_108","LayoutGrid--wide-l--justify-content-center":"_LayoutGrid--wide-l--justify-content-center_9ybe1_113","LayoutGrid--wide-l--justify-content-start":"_LayoutGrid--wide-l--justify-content-start_9ybe1_116","LayoutGrid--wide-l--justify-content-end":"_LayoutGrid--wide-l--justify-content-end_9ybe1_119","LayoutGrid--wide-l--justify-content-space-between":"_LayoutGrid--wide-l--justify-content-space-between_9ybe1_122","LayoutGrid--wide-l--justify-content-space-around":"_LayoutGrid--wide-l--justify-content-space-around_9ybe1_125","LayoutGrid--wide-l--justify-content-space-evenly":"_LayoutGrid--wide-l--justify-content-space-evenly_9ybe1_128","LayoutGrid--align-items-center":"_LayoutGrid--align-items-center_9ybe1_132","LayoutGrid--align-items-start":"_LayoutGrid--align-items-start_9ybe1_135","LayoutGrid--align-items-end":"_LayoutGrid--align-items-end_9ybe1_138","LayoutGrid--align-items-stretch":"_LayoutGrid--align-items-stretch_9ybe1_141","LayoutGrid--align-items-baseline":"_LayoutGrid--align-items-baseline_9ybe1_144","LayoutGrid--narrow-l--align-items-center":"_LayoutGrid--narrow-l--align-items-center_9ybe1_148","LayoutGrid--narrow-l--align-items-start":"_LayoutGrid--narrow-l--align-items-start_9ybe1_151","LayoutGrid--narrow-l--align-items-end":"_LayoutGrid--narrow-l--align-items-end_9ybe1_154","LayoutGrid--narrow-l--align-items-stretch":"_LayoutGrid--narrow-l--align-items-stretch_9ybe1_157","LayoutGrid--narrow-l--align-items-baseline":"_LayoutGrid--narrow-l--align-items-baseline_9ybe1_160","LayoutGrid--medium-s--align-items-center":"_LayoutGrid--medium-s--align-items-center_9ybe1_165","LayoutGrid--medium-s--align-items-start":"_LayoutGrid--medium-s--align-items-start_9ybe1_168","LayoutGrid--medium-s--align-items-end":"_LayoutGrid--medium-s--align-items-end_9ybe1_171","LayoutGrid--medium-s--align-items-stretch":"_LayoutGrid--medium-s--align-items-stretch_9ybe1_174","LayoutGrid--medium-s--align-items-baseline":"_LayoutGrid--medium-s--align-items-baseline_9ybe1_177","LayoutGrid--medium-l--align-items-center":"_LayoutGrid--medium-l--align-items-center_9ybe1_182","LayoutGrid--medium-l--align-items-start":"_LayoutGrid--medium-l--align-items-start_9ybe1_185","LayoutGrid--medium-l--align-items-end":"_LayoutGrid--medium-l--align-items-end_9ybe1_188","LayoutGrid--medium-l--align-items-stretch":"_LayoutGrid--medium-l--align-items-stretch_9ybe1_191","LayoutGrid--medium-l--align-items-baseline":"_LayoutGrid--medium-l--align-items-baseline_9ybe1_194","LayoutGrid--wide-s--align-items-center":"_LayoutGrid--wide-s--align-items-center_9ybe1_199","LayoutGrid--wide-s--align-items-start":"_LayoutGrid--wide-s--align-items-start_9ybe1_202","LayoutGrid--wide-s--align-items-end":"_LayoutGrid--wide-s--align-items-end_9ybe1_205","LayoutGrid--wide-s--align-items-stretch":"_LayoutGrid--wide-s--align-items-stretch_9ybe1_208","LayoutGrid--wide-s--align-items-baseline":"_LayoutGrid--wide-s--align-items-baseline_9ybe1_211","LayoutGrid--wide-l--align-items-center":"_LayoutGrid--wide-l--align-items-center_9ybe1_216","LayoutGrid--wide-l--align-items-start":"_LayoutGrid--wide-l--align-items-start_9ybe1_219","LayoutGrid--wide-l--align-items-end":"_LayoutGrid--wide-l--align-items-end_9ybe1_222","LayoutGrid--wide-l--align-items-stretch":"_LayoutGrid--wide-l--align-items-stretch_9ybe1_225","LayoutGrid--wide-l--align-items-baseline":"_LayoutGrid--wide-l--align-items-baseline_9ybe1_228","LayoutGrid--justify-items-stretch":"_LayoutGrid--justify-items-stretch_9ybe1_232","LayoutGrid--justify-items-center":"_LayoutGrid--justify-items-center_9ybe1_235","LayoutGrid--justify-items-start":"_LayoutGrid--justify-items-start_9ybe1_238","LayoutGrid--justify-items-end":"_LayoutGrid--justify-items-end_9ybe1_241","LayoutGrid--narrow-l--justify-items-stretch":"_LayoutGrid--narrow-l--justify-items-stretch_9ybe1_245","LayoutGrid--narrow-l--justify-items-center":"_LayoutGrid--narrow-l--justify-items-center_9ybe1_248","LayoutGrid--narrow-l--justify-items-start":"_LayoutGrid--narrow-l--justify-items-start_9ybe1_251","LayoutGrid--narrow-l--justify-items-end":"_LayoutGrid--narrow-l--justify-items-end_9ybe1_254","LayoutGrid--medium-s--justify-items-stretch":"_LayoutGrid--medium-s--justify-items-stretch_9ybe1_259","LayoutGrid--medium-s--justify-items-center":"_LayoutGrid--medium-s--justify-items-center_9ybe1_262","LayoutGrid--medium-s--justify-items-start":"_LayoutGrid--medium-s--justify-items-start_9ybe1_265","LayoutGrid--medium-s--justify-items-end":"_LayoutGrid--medium-s--justify-items-end_9ybe1_268","LayoutGrid--medium-l--justify-items-stretch":"_LayoutGrid--medium-l--justify-items-stretch_9ybe1_273","LayoutGrid--medium-l--justify-items-center":"_LayoutGrid--medium-l--justify-items-center_9ybe1_276","LayoutGrid--medium-l--justify-items-start":"_LayoutGrid--medium-l--justify-items-start_9ybe1_279","LayoutGrid--medium-l--justify-items-end":"_LayoutGrid--medium-l--justify-items-end_9ybe1_282","LayoutGrid--wide-s--justify-items-stretch":"_LayoutGrid--wide-s--justify-items-stretch_9ybe1_287","LayoutGrid--wide-s--justify-items-center":"_LayoutGrid--wide-s--justify-items-center_9ybe1_290","LayoutGrid--wide-s--justify-items-start":"_LayoutGrid--wide-s--justify-items-start_9ybe1_293","LayoutGrid--wide-s--justify-items-end":"_LayoutGrid--wide-s--justify-items-end_9ybe1_296","LayoutGrid--wide-l--justify-items-stretch":"_LayoutGrid--wide-l--justify-items-stretch_9ybe1_301","LayoutGrid--wide-l--justify-items-center":"_LayoutGrid--wide-l--justify-items-center_9ybe1_304","LayoutGrid--wide-l--justify-items-start":"_LayoutGrid--wide-l--justify-items-start_9ybe1_307","LayoutGrid--wide-l--justify-items-end":"_LayoutGrid--wide-l--justify-items-end_9ybe1_310","LayoutGrid--columns":"_LayoutGrid--columns_9ybe1_314","LayoutGrid--columns-narrow-l":"_LayoutGrid--columns-narrow-l_9ybe1_318","LayoutGrid--columns-medium-s":"_LayoutGrid--columns-medium-s_9ybe1_323","LayoutGrid--columns-medium-l":"_LayoutGrid--columns-medium-l_9ybe1_328","LayoutGrid--columns-wide-s":"_LayoutGrid--columns-wide-s_9ybe1_333","LayoutGrid--columns-wide-l":"_LayoutGrid--columns-wide-l_9ybe1_338"},K="LayoutGrid",Q=Object.keys(W),b=e=>typeof e=="number"?`repeat(${e}, 1fr)`:e.join(" "),X=e=>typeof e=="object"&&!Array.isArray(e)?Object.entries(e).reduce((i,[s,a])=>({...i,...a?{[s]:b(a)}:{}}),{_:b(e._)}):{_:b(e)},Z=e=>{if(!e)return{classNames:[],style:{}};const i=X(e),s=Q.filter(n=>i[n]),a=H(q,K,["columns",...s.map(n=>`columns-${n}`)]),r=s.reduce((n,u)=>({...n,[`--columns-${u}`]:i[u]}),{"--columns":i._});return{classNames:a,style:r}},ee="LayoutGap",te=e=>h(Y,ee,[f("gap",e)]),ae="LayoutGrid",ie=(e,i)=>{const{gap:s=U,padding:a=$,justifyContent:r,alignItems:n,justifyItems:u,hide:l,relative:d}=i||{},y=h(q,ae,[f("justify-content",r),f("align-items",n),f("justify-items",u)]),m=te(s),c=M(a),G=P(l,"grid"),g=R(d);return[...y,...m,...c,...G,...g]},v=N.forwardRef(function({dataset:i,children:s,...a},r){const{tag:n=V,columns:u}=a,l=ie("grid",a),{style:d,classNames:y}=Z(u),m=[...l,...y],c={...A(a),ref:r,className:m.join(" "),style:d,...T(i,{preplyDsComponent:j.LayoutGrid})};return t.jsx(n,{...c,children:s})});try{v.displayName="LayoutGrid",v.__docgenInfo={description:"A CSS `grid` wrapper.",displayName:"LayoutGrid",props:{gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"enum",value:[{value:'"2xs"'},{value:'"xs"'},{value:'"s"'},{value:'"m"'},{value:'"l"'},{value:'"xl"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:'"none"'},{value:'"3xs"'},{value:"ResponsiveProp<LayoutGap>"},{value:'"0"'},{value:'"1"'},{value:'"2"'},{value:'"4"'},{value:'"8"'},{value:'"12"'},{value:'"16"'},{value:'"20"'},{value:"ResponsiveProp<Spacing>"}]}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"enum",value:[{value:'"2xs"'},{value:'"xs"'},{value:'"s"'},{value:'"m"'},{value:'"l"'},{value:'"xl"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:'"none"'},{value:'"3xs"'},{value:'"0"'},{value:'"1"'},{value:'"2"'},{value:'"4"'},{value:'"8"'},{value:'"12"'},{value:'"16"'},{value:'"20"'},{value:"[LayoutPadding, LayoutPadding]"},{value:"[LayoutPadding, LayoutPadding, LayoutPadding]"},{value:"[LayoutPadding, LayoutPadding, LayoutPadding, LayoutPadding]"},{value:"[Spacing, Spacing]"},{value:"[Spacing, Spacing, Spacing]"},{value:"[Spacing, Spacing, Spacing, Spacing]"},{value:"ResponsiveProp<ShortHand<LayoutPadding> | ShortHand<Spacing>>"}]}},columns:{defaultValue:null,description:"The `number` of columns, or a `string[]` of `grid-template-columns`.\n@see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns}",name:"columns",required:!1,type:{name:"enum",value:[{value:"number"},{value:"string[]"},{value:"ResponsiveProp<number | string[]>"}]}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"space-between"'},{value:'"space-around"'},{value:'"space-evenly"'},{value:"ResponsiveProp<LayoutJustifyContent>"}]}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"stretch"'},{value:'"baseline"'},{value:"ResponsiveProp<LayoutAlignItems>"}]}},justifyItems:{defaultValue:null,description:"",name:"justifyItems",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"stretch"'},{value:"ResponsiveProp<LayoutJustifyItems>"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"main"'},{value:'"header"'},{value:'"footer"'},{value:'"article"'},{value:'"section"'},{value:'"ul"'},{value:'"ol"'},{value:'"li"'},{value:'"p"'},{value:'"span"'},{value:'"fieldset"'},{value:'"table"'},{value:'"th"'},{value:'"tr"'},{value:'"td"'},{value:'"thead"'},{value:'"tfoot"'},{value:'"tbody"'},{value:'"caption"'},{value:'"figure"'},{value:'"figcaption"'}]}},hide:{defaultValue:null,description:"",name:"hide",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},relative:{defaultValue:null,description:"",name:"relative",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},dataset:{defaultValue:null,description:"",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: HTMLElement | null) => void"},{value:"RefObject<HTMLElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const ve={title:"components/LayoutGrid",component:v,subcomponents:{LayoutGridItem:L},argTypes:{gap:{description:o},padding:{description:z},columns:{description:o},justifyContent:{description:o},alignItems:{description:o},justifyItems:{description:o},hide:{description:o},relative:{description:o}}},_=()=>t.jsxs(v,{columns:4,alignItems:"start",gap:"xs",children:[t.jsx(L,{children:t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:[t.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}}),t.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}})]})}),t.jsx(L,{alignSelf:"end",children:t.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}})}),t.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}}),t.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}})]});_.storyName="LayoutGrid";const p={parameters:{chromatic:{disableSnapshot:!0}},args:{gap:"16",columns:3,alignItems:"start",children:t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{minWidth:"100px",minHeight:50,backgroundColor:"hotpink"},children:" "}),t.jsx("div",{style:{minWidth:"100px",minHeight:75,backgroundColor:"hotpink"},children:" "}),t.jsx("div",{style:{minWidth:"100px",minHeight:100,backgroundColor:"hotpink",textAlign:"center"}})]}),dataset:{qaid:"layout-grid"}},argTypes:{dataset:{control:"object"},columns:{control:"number"},justifyItems:{control:"select"},hide:{control:"boolean"},relative:{control:"boolean"},children:{control:!1}}};var w,C,k;_.parameters={..._.parameters,docs:{...(w=_.parameters)==null?void 0:w.docs,source:{originalSource:`() => <LayoutGrid columns={4} alignItems="start" gap="xs">
2
2
  <LayoutGridItem>
3
3
  <div style={{
4
4
  display: 'flex',
@@ -29,7 +29,7 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{r as I}from"./index-Cb9e4tl
29
29
  height: '2ch',
30
30
  backgroundColor: 'hotpink'
31
31
  }} />
32
- </LayoutGrid>`,...(C=(b=_.parameters)==null?void 0:b.docs)==null?void 0:C.source}}};var k,S,x;p.parameters={...p.parameters,docs:{...(k=p.parameters)==null?void 0:k.docs,source:{originalSource:`{
32
+ </LayoutGrid>`,...(k=(C=_.parameters)==null?void 0:C.docs)==null?void 0:k.source}}};var S,x,I;p.parameters={...p.parameters,docs:{...(S=p.parameters)==null?void 0:S.docs,source:{originalSource:`{
33
33
  parameters: {
34
34
  chromatic: {
35
35
  disableSnapshot: true
@@ -85,4 +85,4 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{r as I}from"./index-Cb9e4tl
85
85
  control: false
86
86
  }
87
87
  }
88
- }`,...(x=(S=p.parameters)==null?void 0:S.docs)==null?void 0:x.source}}};const Ge=["Base","Playground"];export{_ as Base,p as Playground,Ge as __namedExportsOrder,ve as default};
88
+ }`,...(I=(x=p.parameters)==null?void 0:x.docs)==null?void 0:I.source}}};const Ge=["Base","Playground"];export{_ as Base,p as Playground,Ge as __namedExportsOrder,ve as default};
@@ -0,0 +1 @@
1
+ ._AlignSelf_13jff_2._AlignSelf--align-self-start_13jff_2{-ms-flex-item-align:start;align-self:start}._AlignSelf_13jff_2._AlignSelf--align-self-center_13jff_5{-ms-flex-item-align:center;align-self:center}._AlignSelf_13jff_2._AlignSelf--align-self-end_13jff_8{-ms-flex-item-align:end;align-self:end}._AlignSelf_13jff_2._AlignSelf--align-self-stretch_13jff_11{-ms-flex-item-align:stretch;align-self:stretch}@media (min-width: 400px){._AlignSelf_13jff_2._AlignSelf--narrow-l--align-self-start_13jff_15{-ms-flex-item-align:start;align-self:start}._AlignSelf_13jff_2._AlignSelf--narrow-l--align-self-center_13jff_18{-ms-flex-item-align:center;align-self:center}._AlignSelf_13jff_2._AlignSelf--narrow-l--align-self-end_13jff_21{-ms-flex-item-align:end;align-self:end}._AlignSelf_13jff_2._AlignSelf--narrow-l--align-self-stretch_13jff_24{-ms-flex-item-align:stretch;align-self:stretch}}@media (min-width: 700px){._AlignSelf_13jff_2._AlignSelf--medium-s--align-self-start_13jff_29{-ms-flex-item-align:start;align-self:start}._AlignSelf_13jff_2._AlignSelf--medium-s--align-self-center_13jff_32{-ms-flex-item-align:center;align-self:center}._AlignSelf_13jff_2._AlignSelf--medium-s--align-self-end_13jff_35{-ms-flex-item-align:end;align-self:end}._AlignSelf_13jff_2._AlignSelf--medium-s--align-self-stretch_13jff_38{-ms-flex-item-align:stretch;align-self:stretch}}@media (min-width: 880px){._AlignSelf_13jff_2._AlignSelf--medium-l--align-self-start_13jff_43{-ms-flex-item-align:start;align-self:start}._AlignSelf_13jff_2._AlignSelf--medium-l--align-self-center_13jff_46{-ms-flex-item-align:center;align-self:center}._AlignSelf_13jff_2._AlignSelf--medium-l--align-self-end_13jff_49{-ms-flex-item-align:end;align-self:end}._AlignSelf_13jff_2._AlignSelf--medium-l--align-self-stretch_13jff_52{-ms-flex-item-align:stretch;align-self:stretch}}@media (min-width: 1200px){._AlignSelf_13jff_2._AlignSelf--wide-s--align-self-start_13jff_57{-ms-flex-item-align:start;align-self:start}._AlignSelf_13jff_2._AlignSelf--wide-s--align-self-center_13jff_60{-ms-flex-item-align:center;align-self:center}._AlignSelf_13jff_2._AlignSelf--wide-s--align-self-end_13jff_63{-ms-flex-item-align:end;align-self:end}._AlignSelf_13jff_2._AlignSelf--wide-s--align-self-stretch_13jff_66{-ms-flex-item-align:stretch;align-self:stretch}}@media (min-width: 1900px){._AlignSelf_13jff_2._AlignSelf--wide-l--align-self-start_13jff_71{-ms-flex-item-align:start;align-self:start}._AlignSelf_13jff_2._AlignSelf--wide-l--align-self-center_13jff_74{-ms-flex-item-align:center;align-self:center}._AlignSelf_13jff_2._AlignSelf--wide-l--align-self-end_13jff_77{-ms-flex-item-align:end;align-self:end}._AlignSelf_13jff_2._AlignSelf--wide-l--align-self-stretch_13jff_80{-ms-flex-item-align:stretch;align-self:stretch}}._LayoutGridItem_2tq6r_1{margin:0;list-style:none;font-weight:inherit;border:none;text-align:inherit;border-spacing:0;padding:0}
@@ -0,0 +1 @@
1
+ import{j}from"./jsx-runtime-BTJTZTIL.js";import{r as w}from"./index-Cb9e4tly.js";import{m as f,s as p}from"./classNames-BUL1Zq7e.js";import{g as L,a as h}from"./LayoutGrid-IsN1xiNR.js";import{f as y}from"./filterHTMLAttributes-UOns5Q7s.js";import{w as n}from"./componentNames-Bwls0I02.js";import{g as C}from"./index-DdzHuZ-Y.js";import{L as N}from"./defaults-B1rzzf6M.js";const G="_AlignSelf_13jff_2",I={AlignSelf:G,"AlignSelf--align-self-start":"_AlignSelf--align-self-start_13jff_2","AlignSelf--align-self-center":"_AlignSelf--align-self-center_13jff_5","AlignSelf--align-self-end":"_AlignSelf--align-self-end_13jff_8","AlignSelf--align-self-stretch":"_AlignSelf--align-self-stretch_13jff_11","AlignSelf--narrow-l--align-self-start":"_AlignSelf--narrow-l--align-self-start_13jff_15","AlignSelf--narrow-l--align-self-center":"_AlignSelf--narrow-l--align-self-center_13jff_18","AlignSelf--narrow-l--align-self-end":"_AlignSelf--narrow-l--align-self-end_13jff_21","AlignSelf--narrow-l--align-self-stretch":"_AlignSelf--narrow-l--align-self-stretch_13jff_24","AlignSelf--medium-s--align-self-start":"_AlignSelf--medium-s--align-self-start_13jff_29","AlignSelf--medium-s--align-self-center":"_AlignSelf--medium-s--align-self-center_13jff_32","AlignSelf--medium-s--align-self-end":"_AlignSelf--medium-s--align-self-end_13jff_35","AlignSelf--medium-s--align-self-stretch":"_AlignSelf--medium-s--align-self-stretch_13jff_38","AlignSelf--medium-l--align-self-start":"_AlignSelf--medium-l--align-self-start_13jff_43","AlignSelf--medium-l--align-self-center":"_AlignSelf--medium-l--align-self-center_13jff_46","AlignSelf--medium-l--align-self-end":"_AlignSelf--medium-l--align-self-end_13jff_49","AlignSelf--medium-l--align-self-stretch":"_AlignSelf--medium-l--align-self-stretch_13jff_52","AlignSelf--wide-s--align-self-start":"_AlignSelf--wide-s--align-self-start_13jff_57","AlignSelf--wide-s--align-self-center":"_AlignSelf--wide-s--align-self-center_13jff_60","AlignSelf--wide-s--align-self-end":"_AlignSelf--wide-s--align-self-end_13jff_63","AlignSelf--wide-s--align-self-stretch":"_AlignSelf--wide-s--align-self-stretch_13jff_66","AlignSelf--wide-l--align-self-start":"_AlignSelf--wide-l--align-self-start_13jff_71","AlignSelf--wide-l--align-self-center":"_AlignSelf--wide-l--align-self-center_13jff_74","AlignSelf--wide-l--align-self-end":"_AlignSelf--wide-l--align-self-end_13jff_77","AlignSelf--wide-l--align-self-stretch":"_AlignSelf--wide-l--align-self-stretch_13jff_80"},x="AlignSelf",T=l=>f(I,x,[p("align-self",l)]),E="_LayoutGridItem_2tq6r_1",D={LayoutGridItem:E},R=w.forwardRef(function({children:s,alignSelf:i,tag:e,hide:t,relative:a,dataset:g,...r},_){const m=f(D,n.LayoutGridItem,[]),o=T(i),d=L(t),A=h(a),S=[...m,...o,...d,...A],c=e??N,u={...y(r),ref:_,className:S.join(" "),...C(g,{preplyDsComponent:n.LayoutGridItem})};return j.jsx(c,{...u,children:s})});R.__docgenInfo={description:"",methods:[],displayName:"LayoutGridItem"};export{R as L,T as g};
@@ -0,0 +1 @@
1
+ ._Link_qbera_4{display:inline-block;border-radius:var(--5eeb28);text-decoration:var(--f13872);cursor:pointer;-webkit-tap-highlight-color:transparent;outline:none;-ms-touch-action:manipulation;touch-action:manipulation}._Link_qbera_4:focus-visible{outline-style:solid;outline-color:var(--603ec6);outline-width:var(--99d31f);outline-offset:var(--c0b12c)}._Link--inline_qbera_20{display:inline}._Link--noUnderline_qbera_23{text-decoration:none}._Link--variant-accentDark_qbera_26{color:var(--c6b68f)}._Link--variant-accentDark_qbera_26:hover,._Link--variant-accentDark--dsInternalSimulation-hover_qbera_30{color:var(--65e1ef)}._Link--variant-accentDark_qbera_26:active,._Link--variant-accentDark--dsInternalSimulation-active_qbera_34{color:var(--179b80)}._Link--variant-accentDarkInverted_qbera_37{color:var(--7cbffc)}._Link--variant-accentDarkInverted_qbera_37:hover,._Link--variant-accentDarkInverted--dsInternalSimulation-hover_qbera_41{color:var(--47fcde)}._Link--variant-accentDarkInverted_qbera_37:active,._Link--variant-accentDarkInverted--dsInternalSimulation-active_qbera_45{color:var(--1253e2)}._Link--variant-neutral_qbera_48{color:var(--19fdf0)}._Link--variant-neutral_qbera_48:hover,._Link--variant-neutral--dsInternalSimulation-hover_qbera_52{color:var(--ce5fb9)}._Link--variant-neutral_qbera_48:active,._Link--variant-neutral--dsInternalSimulation-active_qbera_56{color:var(--1d39ac)}._Link--variant-neutralInverted_qbera_59{color:var(--883d0f)}._Link--variant-neutralInverted_qbera_59:hover,._Link--variant-neutralInverted--dsInternalSimulation-hover_qbera_63{color:var(--065570)}._Link--variant-neutralInverted_qbera_59:active,._Link--variant-neutralInverted--dsInternalSimulation-active_qbera_67{color:var(--be41c4)}._Link--variant-unsetColors_qbera_70{color:var(--e66f2a)}._Link--variant-unsetColors_qbera_70:hover,._Link--variant-unsetColors--dsInternalSimulation-hover_qbera_74{color:var(--468ceb)}._Link--variant-unsetColors_qbera_70:active,._Link--variant-unsetColors--dsInternalSimulation-active_qbera_78{color:var(--a5fc76)}
@@ -1,10 +1,10 @@
1
- import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{T as a}from"./Text-D3ATKGXs.js";import{r as k}from"./index-Cb9e4tly.js";import{f as Y}from"./filterHTMLAttributes-DYdLqcvH.js";import{g as Z}from"./defaults-B1rzzf6M.js";import{u as ee}from"./useHostname-Y3PlXofY.js";import{m as ne,s as f,b as x}from"./classNames-BUL1Zq7e.js";import{w as y}from"./componentNames-Bwls0I02.js";import{a as ae,g as te}from"./index-DdzHuZ-Y.js";import{g as d}from"./getTokenVar-DU_DEzTd.js";import{c as u}from"./tokens-Di5DrZN4.js";import"./index-ChsGqxH_.js";import"./text-accent-DbbdQjKI.js";import"./text-centered-6MZg9O0U.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./constants-BgBLeZzp.js";const re="_Link_q0vqc_4",ie={Link:re,"Link--inline":"_Link--inline_q0vqc_20","Link--noUnderline":"_Link--noUnderline_q0vqc_23","Link--variant-accentDark":"_Link--variant-accentDark_q0vqc_26","Link--variant-accentDark--dsInternalSimulation-hover":"_Link--variant-accentDark--dsInternalSimulation-hover_q0vqc_30","Link--variant-accentDark--dsInternalSimulation-active":"_Link--variant-accentDark--dsInternalSimulation-active_q0vqc_34","Link--variant-accentDarkInverted":"_Link--variant-accentDarkInverted_q0vqc_37","Link--variant-accentDarkInverted--dsInternalSimulation-hover":"_Link--variant-accentDarkInverted--dsInternalSimulation-hover_q0vqc_41","Link--variant-accentDarkInverted--dsInternalSimulation-active":"_Link--variant-accentDarkInverted--dsInternalSimulation-active_q0vqc_45","Link--variant-neutral":"_Link--variant-neutral_q0vqc_48","Link--variant-neutral--dsInternalSimulation-hover":"_Link--variant-neutral--dsInternalSimulation-hover_q0vqc_52","Link--variant-neutral--dsInternalSimulation-active":"_Link--variant-neutral--dsInternalSimulation-active_q0vqc_56","Link--variant-neutralInverted":"_Link--variant-neutralInverted_q0vqc_59","Link--variant-neutralInverted--dsInternalSimulation-hover":"_Link--variant-neutralInverted--dsInternalSimulation-hover_q0vqc_63","Link--variant-neutralInverted--dsInternalSimulation-active":"_Link--variant-neutralInverted--dsInternalSimulation-active_q0vqc_67","Link--variant-unsetColors":"_Link--variant-unsetColors_q0vqc_70","Link--variant-unsetColors--dsInternalSimulation-hover":"_Link--variant-unsetColors--dsInternalSimulation-hover_q0vqc_74","Link--variant-unsetColors--dsInternalSimulation-active":"_Link--variant-unsetColors--dsInternalSimulation-active_q0vqc_78"},n=k.forwardRef(function(E,P){const{variant:v=Z,href:A,download:R,opensInNewTab:H,nofollow:M,assistiveText:O,onClick:$,as:p,url:z,dataset:F,children:m,inline:J,dsInternalSimulation:K,noUnderline:W,...X}=E,B=ee(),G=ne(ie,y.Link,[f(`variant-${v}--dsInternalSimulation`,K),f("variant",v),x("inline",void 0,J),x("noUnderline",void 0,W)]),c=A||z,Q=c?ae(B,c,H,M):{},h={...Y(X),ref:P,href:c,download:R,"aria-label":O,onClick:$,className:G.join(" "),...te(F,{preplyDsComponent:y.Link})};return p?k.cloneElement(p,{...h},m):e.jsx("a",{...h,...Q,children:m})});try{n.displayName="Link",n.__docgenInfo={description:`This is an inline element and will inherit font-size, line-height and
1
+ import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{T as n}from"./Text-WS7Bdore.js";import{r as k}from"./index-Cb9e4tly.js";import{f as Y}from"./filterHTMLAttributes-DYdLqcvH.js";import{g as Z}from"./defaults-B1rzzf6M.js";import{u as ee}from"./useHostname-Y3PlXofY.js";import{m as ae,s as f,b as x}from"./classNames-BUL1Zq7e.js";import{w as y}from"./componentNames-Bwls0I02.js";import{a as ne,g as te}from"./index-DdzHuZ-Y.js";import{g as d}from"./getTokenVar-DU_DEzTd.js";import{c as u}from"./tokens-Di5DrZN4.js";import"./index-ChsGqxH_.js";import"./text-accent-DEvzdotz.js";import"./text-centered-7-NHbkTa.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./constants-BgBLeZzp.js";const re="_Link_qbera_4",ie={Link:re,"Link--inline":"_Link--inline_qbera_20","Link--noUnderline":"_Link--noUnderline_qbera_23","Link--variant-accentDark":"_Link--variant-accentDark_qbera_26","Link--variant-accentDark--dsInternalSimulation-hover":"_Link--variant-accentDark--dsInternalSimulation-hover_qbera_30","Link--variant-accentDark--dsInternalSimulation-active":"_Link--variant-accentDark--dsInternalSimulation-active_qbera_34","Link--variant-accentDarkInverted":"_Link--variant-accentDarkInverted_qbera_37","Link--variant-accentDarkInverted--dsInternalSimulation-hover":"_Link--variant-accentDarkInverted--dsInternalSimulation-hover_qbera_41","Link--variant-accentDarkInverted--dsInternalSimulation-active":"_Link--variant-accentDarkInverted--dsInternalSimulation-active_qbera_45","Link--variant-neutral":"_Link--variant-neutral_qbera_48","Link--variant-neutral--dsInternalSimulation-hover":"_Link--variant-neutral--dsInternalSimulation-hover_qbera_52","Link--variant-neutral--dsInternalSimulation-active":"_Link--variant-neutral--dsInternalSimulation-active_qbera_56","Link--variant-neutralInverted":"_Link--variant-neutralInverted_qbera_59","Link--variant-neutralInverted--dsInternalSimulation-hover":"_Link--variant-neutralInverted--dsInternalSimulation-hover_qbera_63","Link--variant-neutralInverted--dsInternalSimulation-active":"_Link--variant-neutralInverted--dsInternalSimulation-active_qbera_67","Link--variant-unsetColors":"_Link--variant-unsetColors_qbera_70","Link--variant-unsetColors--dsInternalSimulation-hover":"_Link--variant-unsetColors--dsInternalSimulation-hover_qbera_74","Link--variant-unsetColors--dsInternalSimulation-active":"_Link--variant-unsetColors--dsInternalSimulation-active_qbera_78"},a=k.forwardRef(function(E,P){const{variant:p=Z,href:A,download:R,opensInNewTab:H,nofollow:M,assistiveText:O,onClick:$,as:v,url:z,dataset:F,children:m,inline:J,dsInternalSimulation:K,noUnderline:W,...X}=E,B=ee(),G=ae(ie,y.Link,[f(`variant-${p}--dsInternalSimulation`,K),f("variant",p),x("inline",void 0,J),x("noUnderline",void 0,W)]),c=A||z,Q=c?ne(B,c,H,M):{},h={...Y(X),ref:P,href:c,download:R,"aria-label":O,onClick:$,className:G.join(" "),...te(F,{preplyDsComponent:y.Link})};return v?k.cloneElement(v,{...h},m):e.jsx("a",{...h,...Q,children:m})});try{a.displayName="Link",a.__docgenInfo={description:`This is an inline element and will inherit font-size, line-height and
2
2
  font-weight from the parent context. If you need to customise any of these
3
3
  styles, all you have to do is wrap the <Link> in a Text or TextInline
4
- component.`,displayName:"Link",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"accentDark"'},{value:'"neutral"'},{value:'"accentDarkInverted"'},{value:'"neutralInverted"'},{value:'"unsetColors"'}]}},href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"enum",value:[{value:"string"}]}},download:{defaultValue:null,description:`When provided, instructs the browser to download the target (the file
4
+ component.`,displayName:"Link",props:{variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"neutral"'},{value:'"accentDark"'},{value:'"accentDarkInverted"'},{value:'"neutralInverted"'},{value:'"unsetColors"'}]}},href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"enum",value:[{value:"string"}]}},download:{defaultValue:null,description:`When provided, instructs the browser to download the target (the file
5
5
  specified in the href attribute) when a user clicks on the hyperlink,
6
6
  rather than display it in the browser.`,name:"download",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},opensInNewTab:{defaultValue:null,description:"If `true`, forces internal link to open in a new tab.",name:"opensInNewTab",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},nofollow:{defaultValue:null,description:"",name:"nofollow",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},assistiveText:{defaultValue:null,description:"Provide an `aria-label` to the link.\nThis is useful if the link wraps non-textual elements, eg. an `img`.",name:"assistiveText",required:!1,type:{name:"enum",value:[{value:"string"}]}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<Element>"}]}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},url:{defaultValue:null,description:"@deprecated Use `href` instead",name:"url",required:!1,type:{name:"enum",value:[{value:"string"}]}},dataset:{defaultValue:null,description:`Provide dataset to set data attributes on the DOM element for the purpose
7
- of e2e tests or integrating with external libraries.`,name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},inline:{defaultValue:null,description:"If `true`, allows the link to wrap within text.",name:"inline",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},noUnderline:{defaultValue:null,description:"",name:"noUnderline",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},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: HTMLAnchorElement | null) => void"},{value:"RefObject<HTMLAnchorElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const Ie={title:"components/Link",component:n},r=()=>{const t=d(u.background.primaryInverted);return e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsx(n,{href:"https://preply.com",variant:"neutral",children:"neutral"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(n,{href:"https://preply.com",variant:"neutralInverted",children:"neutralInverted"})}),e.jsx(n,{href:"https://preply.com",variant:"accentDark",children:"accentDark"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(n,{href:"https://preply.com",variant:"accentDarkInverted",children:"accentDarkInverted"})}),e.jsx(n,{href:"https://preply.com",variant:"unsetColors",children:"unsetColors"})]})},i=()=>{const t=d(u.background.primaryInverted);return e.jsxs("div",{style:{display:"flex",gap:"16px",flexDirection:"column"},children:[e.jsx(a,{variant:"default-regular-italic",children:"(use the `unsetColors` variant)"}),e.jsxs("div",{children:[e.jsx(a,{variant:"large-semibold-italic",children:"primary"}),e.jsx(a,{variant:"default-regular-italic",children:"normal"}),e.jsxs(a,{accent:"primary",children:["Lorem ipsum ",e.jsx(n,{variant:"unsetColors",children:"dolor sit amet"})," amet."]}),e.jsx(a,{variant:"default-regular-italic",children:"active"}),e.jsxs(a,{accent:"primary",children:["Lorem ipsum"," ",e.jsx(n,{variant:"unsetColors",dsInternalSimulation:"active",children:"dolor sit amet"})," ","amet."]})]}),e.jsxs("div",{style:{backgroundColor:t},children:[e.jsx(a,{variant:"large-semibold-italic",accent:"inverted",children:"inverted"}),e.jsx(a,{variant:"default-regular-italic",accent:"inverted",children:"normal"}),e.jsxs(a,{accent:"inverted",children:["Lorem ipsum ",e.jsx(n,{variant:"unsetColors",children:"dolor sit amet"})," amet."]}),e.jsx(a,{variant:"default-regular-italic",accent:"inverted",children:"active"}),e.jsxs(a,{accent:"inverted",children:["Lorem ipsum"," ",e.jsx(n,{variant:"unsetColors",dsInternalSimulation:"active",children:"dolor sit amet"})," ","amet."]})]}),e.jsxs("div",{children:[e.jsx(a,{variant:"large-semibold-italic",children:"positive"}),e.jsx(a,{variant:"default-regular-italic",children:"normal"}),e.jsxs(a,{accent:"positive",children:["Lorem ipsum ",e.jsx(n,{variant:"unsetColors",children:"dolor sit amet"})," amet."]}),e.jsx(a,{variant:"default-regular-italic",children:"active"}),e.jsxs(a,{accent:"positive",children:["Lorem ipsum"," ",e.jsx(n,{variant:"unsetColors",dsInternalSimulation:"active",children:"dolor sit amet"})," ","amet."]})]}),e.jsxs("div",{children:[e.jsx(a,{variant:"large-semibold-italic",children:"critical"}),e.jsx(a,{variant:"default-regular-italic",children:"normal"}),e.jsxs(a,{accent:"critical",children:["Lorem ipsum ",e.jsx(n,{variant:"unsetColors",children:"dolor sit amet"})," amet."]}),e.jsx(a,{variant:"default-regular-italic",children:"active"}),e.jsxs(a,{accent:"critical",children:["Lorem ipsum"," ",e.jsx(n,{variant:"unsetColors",dsInternalSimulation:"active",children:"dolor sit amet"})," ","amet."]})]})]})},l=()=>{const t=d(u.background.primaryInverted);return e.jsxs("div",{style:{display:"flex",gap:"16px",flexDirection:"column"},children:[e.jsx(a,{variant:"default-regular-italic",children:"normal"}),e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsx(n,{href:"https://preply.com",variant:"neutral",children:"neutral"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(n,{href:"https://preply.com",variant:"neutralInverted",children:"neutralInverted"})}),e.jsx(n,{href:"https://preply.com",variant:"accentDark",children:"accentDark"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(n,{href:"https://preply.com",variant:"accentDarkInverted",children:"accentDarkInverted"})}),e.jsx(n,{href:"https://preply.com",variant:"unsetColors",children:"unsetColors"})]}),e.jsx(a,{variant:"default-regular-italic",children:"hover"}),e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsx(n,{href:"https://preply.com",variant:"neutral",dsInternalSimulation:"hover",children:"neutral"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(n,{href:"https://preply.com",variant:"neutralInverted",dsInternalSimulation:"hover",children:"neutralInverted"})}),e.jsx(n,{href:"https://preply.com",variant:"accentDark",dsInternalSimulation:"hover",children:"accentDark"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(n,{href:"https://preply.com",variant:"accentDarkInverted",dsInternalSimulation:"hover",children:"accentDarkInverted"})}),e.jsx(n,{href:"https://preply.com",variant:"unsetColors",dsInternalSimulation:"hover",children:"unsetColors"})]}),e.jsx(a,{variant:"default-regular-italic",children:"active"}),e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsx(n,{href:"https://preply.com",variant:"neutral",dsInternalSimulation:"active",children:"neutral"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(n,{href:"https://preply.com",variant:"neutralInverted",dsInternalSimulation:"active",children:"neutralInverted"})}),e.jsx(n,{href:"https://preply.com",variant:"accentDark",dsInternalSimulation:"active",children:"accentDark"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(n,{href:"https://preply.com",variant:"accentDarkInverted",dsInternalSimulation:"active",children:"accentDarkInverted"})}),e.jsx(n,{href:"https://preply.com",variant:"unsetColors",dsInternalSimulation:"active",children:"unsetColors"})]})]})},o=()=>e.jsxs("p",{style:{width:"12ch"},children:["Unlock your potential;"," ",e.jsx(n,{href:"https://preply.com",variant:"unsetColors",inline:!0,children:"visit Preply"}),"."]}),s={parameters:{chromatic:{disableSnapshot:!0}},args:{children:"Click me",href:"https://preply.com",variant:"neutral",dataset:{qaid:"link"}},argTypes:{dataset:{control:"object"},inline:{control:"boolean"},noUnderline:{control:"boolean"},opensInNewTab:{control:"boolean"},nofollow:{control:"boolean"},download:{control:"boolean"},assistiveText:{control:"text"},href:{control:"text"},url:{table:{disable:!0}}}};var g,L,I;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`() => {
7
+ of e2e tests or integrating with external libraries.`,name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},inline:{defaultValue:null,description:"If `true`, allows the link to wrap within text.",name:"inline",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},noUnderline:{defaultValue:null,description:"",name:"noUnderline",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},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: HTMLAnchorElement | null) => void"},{value:"RefObject<HTMLAnchorElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const Ie={title:"components/Link",component:a},r=()=>{const t=d(u.background.primaryInverted);return e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsx(a,{href:"https://preply.com",variant:"neutral",children:"neutral"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(a,{href:"https://preply.com",variant:"neutralInverted",children:"neutralInverted"})}),e.jsx(a,{href:"https://preply.com",variant:"accentDark",children:"accentDark"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(a,{href:"https://preply.com",variant:"accentDarkInverted",children:"accentDarkInverted"})}),e.jsx(a,{href:"https://preply.com",variant:"unsetColors",children:"unsetColors"})]})},i=()=>{const t=d(u.background.primaryInverted);return e.jsxs("div",{style:{display:"flex",gap:"16px",flexDirection:"column"},children:[e.jsx(n,{variant:"default-regular-italic",children:"(use the `unsetColors` variant)"}),e.jsxs("div",{children:[e.jsx(n,{variant:"large-semibold-italic",children:"primary"}),e.jsx(n,{variant:"default-regular-italic",children:"normal"}),e.jsxs(n,{accent:"primary",children:["Lorem ipsum ",e.jsx(a,{variant:"unsetColors",children:"dolor sit amet"})," amet."]}),e.jsx(n,{variant:"default-regular-italic",children:"active"}),e.jsxs(n,{accent:"primary",children:["Lorem ipsum"," ",e.jsx(a,{variant:"unsetColors",dsInternalSimulation:"active",children:"dolor sit amet"})," ","amet."]})]}),e.jsxs("div",{style:{backgroundColor:t},children:[e.jsx(n,{variant:"large-semibold-italic",accent:"inverted",children:"inverted"}),e.jsx(n,{variant:"default-regular-italic",accent:"inverted",children:"normal"}),e.jsxs(n,{accent:"inverted",children:["Lorem ipsum ",e.jsx(a,{variant:"unsetColors",children:"dolor sit amet"})," amet."]}),e.jsx(n,{variant:"default-regular-italic",accent:"inverted",children:"active"}),e.jsxs(n,{accent:"inverted",children:["Lorem ipsum"," ",e.jsx(a,{variant:"unsetColors",dsInternalSimulation:"active",children:"dolor sit amet"})," ","amet."]})]}),e.jsxs("div",{children:[e.jsx(n,{variant:"large-semibold-italic",children:"positive"}),e.jsx(n,{variant:"default-regular-italic",children:"normal"}),e.jsxs(n,{accent:"positive",children:["Lorem ipsum ",e.jsx(a,{variant:"unsetColors",children:"dolor sit amet"})," amet."]}),e.jsx(n,{variant:"default-regular-italic",children:"active"}),e.jsxs(n,{accent:"positive",children:["Lorem ipsum"," ",e.jsx(a,{variant:"unsetColors",dsInternalSimulation:"active",children:"dolor sit amet"})," ","amet."]})]}),e.jsxs("div",{children:[e.jsx(n,{variant:"large-semibold-italic",children:"critical"}),e.jsx(n,{variant:"default-regular-italic",children:"normal"}),e.jsxs(n,{accent:"critical",children:["Lorem ipsum ",e.jsx(a,{variant:"unsetColors",children:"dolor sit amet"})," amet."]}),e.jsx(n,{variant:"default-regular-italic",children:"active"}),e.jsxs(n,{accent:"critical",children:["Lorem ipsum"," ",e.jsx(a,{variant:"unsetColors",dsInternalSimulation:"active",children:"dolor sit amet"})," ","amet."]})]})]})},l=()=>{const t=d(u.background.primaryInverted);return e.jsxs("div",{style:{display:"flex",gap:"16px",flexDirection:"column"},children:[e.jsx(n,{variant:"default-regular-italic",children:"normal"}),e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsx(a,{href:"https://preply.com",variant:"neutral",children:"neutral"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(a,{href:"https://preply.com",variant:"neutralInverted",children:"neutralInverted"})}),e.jsx(a,{href:"https://preply.com",variant:"accentDark",children:"accentDark"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(a,{href:"https://preply.com",variant:"accentDarkInverted",children:"accentDarkInverted"})}),e.jsx(a,{href:"https://preply.com",variant:"unsetColors",children:"unsetColors"})]}),e.jsx(n,{variant:"default-regular-italic",children:"hover"}),e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsx(a,{href:"https://preply.com",variant:"neutral",dsInternalSimulation:"hover",children:"neutral"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(a,{href:"https://preply.com",variant:"neutralInverted",dsInternalSimulation:"hover",children:"neutralInverted"})}),e.jsx(a,{href:"https://preply.com",variant:"accentDark",dsInternalSimulation:"hover",children:"accentDark"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(a,{href:"https://preply.com",variant:"accentDarkInverted",dsInternalSimulation:"hover",children:"accentDarkInverted"})}),e.jsx(a,{href:"https://preply.com",variant:"unsetColors",dsInternalSimulation:"hover",children:"unsetColors"})]}),e.jsx(n,{variant:"default-regular-italic",children:"active"}),e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsx(a,{href:"https://preply.com",variant:"neutral",dsInternalSimulation:"active",children:"neutral"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(a,{href:"https://preply.com",variant:"neutralInverted",dsInternalSimulation:"active",children:"neutralInverted"})}),e.jsx(a,{href:"https://preply.com",variant:"accentDark",dsInternalSimulation:"active",children:"accentDark"}),e.jsx("span",{style:{backgroundColor:t},children:e.jsx(a,{href:"https://preply.com",variant:"accentDarkInverted",dsInternalSimulation:"active",children:"accentDarkInverted"})}),e.jsx(a,{href:"https://preply.com",variant:"unsetColors",dsInternalSimulation:"active",children:"unsetColors"})]})]})},o=()=>e.jsxs("p",{style:{width:"12ch"},children:["Unlock your potential;"," ",e.jsx(a,{href:"https://preply.com",variant:"unsetColors",inline:!0,children:"visit Preply"}),"."]}),s={parameters:{chromatic:{disableSnapshot:!0}},args:{children:"Click me",href:"https://preply.com",variant:"neutral",dataset:{qaid:"link"}},argTypes:{dataset:{control:"object"},inline:{control:"boolean"},noUnderline:{control:"boolean"},opensInNewTab:{control:"boolean"},nofollow:{control:"boolean"},download:{control:"boolean"},assistiveText:{control:"text"},href:{control:"text"},url:{table:{disable:!0}}}};var g,L,I;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`() => {
8
8
  const grey = getTokenVar(color.background.primaryInverted);
9
9
  return <div style={{
10
10
  display: 'flex',
@@ -34,7 +34,7 @@ of e2e tests or integrating with external libraries.`,name:"dataset",required:!1
34
34
  unsetColors
35
35
  </Link>
36
36
  </div>;
37
- }`,...(I=(L=r.parameters)==null?void 0:L.docs)==null?void 0:I.source}}};var j,T,C;i.parameters={...i.parameters,docs:{...(j=i.parameters)==null?void 0:j.docs,source:{originalSource:`() => {
37
+ }`,...(I=(L=r.parameters)==null?void 0:L.docs)==null?void 0:I.source}}};var b,j,T;i.parameters={...i.parameters,docs:{...(b=i.parameters)==null?void 0:b.docs,source:{originalSource:`() => {
38
38
  const grey = getTokenVar(color.background.primaryInverted);
39
39
  return <div style={{
40
40
  display: 'flex',
@@ -119,7 +119,7 @@ of e2e tests or integrating with external libraries.`,name:"dataset",required:!1
119
119
  </Text>
120
120
  </div>
121
121
  </div>;
122
- }`,...(C=(T=i.parameters)==null?void 0:T.docs)==null?void 0:C.source}}};var b,_,S;l.parameters={...l.parameters,docs:{...(b=l.parameters)==null?void 0:b.docs,source:{originalSource:`() => {
122
+ }`,...(T=(j=i.parameters)==null?void 0:j.docs)==null?void 0:T.source}}};var C,_,S;l.parameters={...l.parameters,docs:{...(C=l.parameters)==null?void 0:C.docs,source:{originalSource:`() => {
123
123
  const grey = getTokenVar(color.background.primaryInverted);
124
124
  return <div style={{
125
125
  display: 'flex',
@@ -214,7 +214,7 @@ of e2e tests or integrating with external libraries.`,name:"dataset",required:!1
214
214
  </Link>
215
215
  </div>
216
216
  </div>;
217
- }`,...(S=(_=l.parameters)==null?void 0:_.docs)==null?void 0:S.source}}};var D,q,w;o.parameters={...o.parameters,docs:{...(D=o.parameters)==null?void 0:D.docs,source:{originalSource:`() => <p style={{
217
+ }`,...(S=(_=l.parameters)==null?void 0:_.docs)==null?void 0:S.source}}};var D,w,q;o.parameters={...o.parameters,docs:{...(D=o.parameters)==null?void 0:D.docs,source:{originalSource:`() => <p style={{
218
218
  width: '12ch'
219
219
  }}>
220
220
  Unlock your potential;{' '}
@@ -222,7 +222,7 @@ of e2e tests or integrating with external libraries.`,name:"dataset",required:!1
222
222
  visit Preply
223
223
  </Link>
224
224
  .
225
- </p>`,...(w=(q=o.parameters)==null?void 0:q.docs)==null?void 0:w.source}}};var V,N,U;s.parameters={...s.parameters,docs:{...(V=s.parameters)==null?void 0:V.docs,source:{originalSource:`{
225
+ </p>`,...(q=(w=o.parameters)==null?void 0:w.docs)==null?void 0:q.source}}};var V,N,U;s.parameters={...s.parameters,docs:{...(V=s.parameters)==null?void 0:V.docs,source:{originalSource:`{
226
226
  parameters: {
227
227
  chromatic: {
228
228
  disableSnapshot: true
@@ -268,4 +268,4 @@ of e2e tests or integrating with external libraries.`,name:"dataset",required:!1
268
268
  }
269
269
  }
270
270
  }
271
- }`,...(U=(N=s.parameters)==null?void 0:N.docs)==null?void 0:U.source}}};const je=["Variants","TextVariants","States","Inline","Playground"];export{o as Inline,s as Playground,l as States,i as TextVariants,r as Variants,je as __namedExportsOrder,Ie as default};
271
+ }`,...(U=(N=s.parameters)==null?void 0:N.docs)==null?void 0:U.source}}};const be=["Variants","TextVariants","States","Inline","Playground"];export{o as Inline,s as Playground,l as States,i as TextVariants,r as Variants,be as __namedExportsOrder,Ie as default};
@@ -0,0 +1 @@
1
+ ._Loader_a23bt_2{display:inline-flex;width:fit-content;height:fit-content}._Loader--normal_a23bt_7{color:var(--19bcb6)}._Loader--inverted_a23bt_10{color:var(--38413d)}
@@ -1,4 +1,4 @@
1
- import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{r as x}from"./index-Cb9e4tly.js";import{f as h}from"./filterHTMLAttributes-DYdLqcvH.js";import{S as z}from"./Spinner-C3p2WoxW.js";import{m as k,b as q}from"./classNames-BUL1Zq7e.js";import{w as l}from"./componentNames-Bwls0I02.js";import{g as C}from"./index-DdzHuZ-Y.js";import{S as E}from"./consts-KAYct7Gj.js";import{g as N}from"./getTokenVar-DU_DEzTd.js";import{c as R}from"./tokens-Di5DrZN4.js";import"./index-ChsGqxH_.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./defaults-B1rzzf6M.js";import"./constants-BgBLeZzp.js";const T="_Loader_jv7qu_2",V={Loader:T,"Loader--normal":"_Loader--normal_jv7qu_7","Loader--inverted":"_Loader--inverted_jv7qu_10"},r=x.forwardRef(function({size:t,inverted:y=!1,dataset:L,..._},b){const S=k(V,l.Loader,[q("inverted","normal",y)]),j={...h(_),ref:b,className:S.join(" "),...C(L,{preplyDsComponent:l.Loader})};return e.jsx("span",{...j,children:e.jsx(z,{size:t})})});try{r.displayName="Loader",r.__docgenInfo={description:"",displayName:"Loader",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"large"'},{value:'"default"'},{value:"ResponsiveProp<SpinnerSize>"}]}},inverted:{defaultValue:{value:"false"},description:"",name:"inverted",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},dataset:{defaultValue:null,description:"",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: HTMLSpanElement | null) => void"},{value:"RefObject<HTMLSpanElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const K={title:"components/Loader",component:r,argTypes:{size:{description:E}}},o=()=>e.jsxs("div",{style:{display:"flex",alignItems:"end",gap:"8px"},children:[e.jsx(r,{size:"default"}),e.jsx(r,{size:"large"})]}),n=()=>e.jsx(r,{inverted:!0});n.decorators=[a=>{const t=N(R.background.primaryInverted);return e.jsx("div",{style:{backgroundColor:t},children:a()})}];const s={parameters:{chromatic:{disableSnapshot:!0}},decorators:[(a,{args:t})=>e.jsx("div",{style:{backgroundColor:t.inverted?"black":void 0},children:a()})],args:{size:"default",inverted:!1,dataset:{qaid:"loader"}},argTypes:{dataset:{control:"object"},size:{control:"select"},inverted:{control:"boolean"}}};var d,i,c;o.parameters={...o.parameters,docs:{...(d=o.parameters)==null?void 0:d.docs,source:{originalSource:`() => <div style={{
1
+ import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{r as h}from"./index-Cb9e4tly.js";import{f as j}from"./filterHTMLAttributes-DYdLqcvH.js";import{S as z}from"./Spinner-BmqtByaF.js";import{m as k,b as C}from"./classNames-BUL1Zq7e.js";import{w as l}from"./componentNames-Bwls0I02.js";import{g as E}from"./index-DdzHuZ-Y.js";import{S as N}from"./consts-KAYct7Gj.js";import{g as R}from"./getTokenVar-DU_DEzTd.js";import{c as T}from"./tokens-Di5DrZN4.js";import"./index-ChsGqxH_.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./defaults-B1rzzf6M.js";import"./constants-BgBLeZzp.js";const V="_Loader_a23bt_2",q={Loader:V,"Loader--normal":"_Loader--normal_a23bt_7","Loader--inverted":"_Loader--inverted_a23bt_10"},a=h.forwardRef(function({size:t,inverted:y=!1,dataset:b,...L},_){const S=k(q,l.Loader,[C("inverted","normal",y)]),x={...j(L),ref:_,className:S.join(" "),...E(b,{preplyDsComponent:l.Loader})};return e.jsx("span",{...x,children:e.jsx(z,{size:t})})});try{a.displayName="Loader",a.__docgenInfo={description:"",displayName:"Loader",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"large"'},{value:'"default"'},{value:"ResponsiveProp<SpinnerSize>"}]}},inverted:{defaultValue:{value:"false"},description:"",name:"inverted",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},dataset:{defaultValue:null,description:"",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: HTMLSpanElement | null) => void"},{value:"RefObject<HTMLSpanElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const K={title:"components/Loader",component:a,argTypes:{size:{description:N}}},o=()=>e.jsxs("div",{style:{display:"flex",alignItems:"end",gap:"8px"},children:[e.jsx(a,{size:"default"}),e.jsx(a,{size:"large"})]}),n=()=>e.jsx(a,{inverted:!0});n.decorators=[r=>{const t=R(T.background.primaryInverted);return e.jsx("div",{style:{backgroundColor:t},children:r()})}];const s={parameters:{chromatic:{disableSnapshot:!0}},decorators:[(r,{args:t})=>e.jsx("div",{style:{backgroundColor:t.inverted?"black":void 0},children:r()})],args:{size:"default",inverted:!1,dataset:{qaid:"loader"}},argTypes:{dataset:{control:"object"},size:{control:"select"},inverted:{control:"boolean"}}};var d,i,c;o.parameters={...o.parameters,docs:{...(d=o.parameters)==null?void 0:d.docs,source:{originalSource:`() => <div style={{
2
2
  display: 'flex',
3
3
  alignItems: 'end',
4
4
  gap: '8px'
@@ -0,0 +1,203 @@
1
+ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{r as s}from"./index-Cb9e4tly.js";import{a as u}from"./chunk-D5ZWXAHU-BhFjjRSl.js";import{e as F,u as Ce,w as xe}from"./index-BVDq5o4N.js";import{F as qe}from"./TokyoUIPhone-CvuBM6jb.js";import{B as T}from"./Button-COvs-WT9.js";import{I as Ee}from"./Icon-BCL3U29b.js";import{F as He}from"./FieldLayout-CnOMTl8s.js";import{u as Fe,I as Se,s as Ne}from"./FieldLayoutBase-DaTu5RGY.js";import{m as we}from"./classNames-BUL1Zq7e.js";import{w as m}from"./componentNames-Bwls0I02.js";import{u as Re}from"./useForcedRef--iGFM41p.js";import{u as Te}from"./useNumberField-AJNQGstL.js";import{T as ke}from"./Text-WS7Bdore.js";import"./index-ChsGqxH_.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./v4-CtRu48qb.js";import"./render-icon-BT0Aq7PA.js";import"./ButtonBase-B-96BnyO.js";import"./Spinner-BmqtByaF.js";import"./defaults-B1rzzf6M.js";import"./filterHTMLAttributes-DYdLqcvH.js";import"./useHostname-Y3PlXofY.js";import"./index-DdzHuZ-Y.js";import"./index-CC6DAVyL.js";import"./text-accent-DEvzdotz.js";import"./FieldAdditionalText-Cxqy7mdI.js";import"./constants-DL6gdbsq.js";import"./index-D1pfvbUR.js";import"./tslib.es6-BntfKcQG.js";import"./hoist-non-react-statics.cjs-C-Qo8PK8.js";import"./message-B1DLZQ1U.js";import"./text-centered-7-NHbkTa.js";const je=({onChange:e,onValueChange:a,...n},r)=>{const i=we(Ne,m.InputNumber),d=Fe(o=>o.target.value?Number(o.target.value):void 0,e,a);return t.jsx(Se,{...n,type:"number",ref:r,className:i.join(" "),onChange:d,preplyDsComponent:m.InputNumber})},N=s.forwardRef(je);try{N.displayName="InputNumber",N.__docgenInfo={description:"",displayName:"InputNumber",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<Element>"}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},id:{defaultValue:null,description:"",name:"id",required:!0,type:{name:"string"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},hasError:{defaultValue:null,description:"",name:"hasError",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-describedby":{defaultValue:null,description:`Identifies the element (or elements) that describes the object.
2
+ @see aria-labelledby`,name:"aria-describedby",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-disabled":{defaultValue:null,description:`Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
3
+ @see aria-hidden
4
+ @see aria-readonly.`,name:"aria-disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-invalid":{defaultValue:null,description:`Indicates the entered value does not conform to the format expected by the application.
5
+ @see aria-errormessage.`,name:"aria-invalid",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'},{value:'"grammar"'},{value:'"spelling"'}]}},"aria-required":{defaultValue:null,description:"Indicates that user input is required on the element before a form may be submitted.",name:"aria-required",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!1,type:{name:"enum",value:[{value:"number"}]}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"enum",value:[{value:"string"}]}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"enum",value:[{value:"ChangeEventHandler<Element>"}]}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<Element>"}]}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<Element>"}]}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<Element>"}]}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<Element>"}]}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<Element>"}]}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<Element>"}]}},readOnly:{defaultValue:null,description:"",name:"readOnly",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"enum",value:[{value:"number"}]}},min:{defaultValue:null,description:"",name:"min",required:!1,type:{name:"enum",value:[{value:"number"}]}},max:{defaultValue:null,description:"",name:"max",required:!1,type:{name:"enum",value:[{value:"number"}]}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"enum",value:[{value:"number"}]}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"enum",value:[{value:"ValueChangeEventHandler<number | undefined>"}]}},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: InputImperativeHandle | null) => void"},{value:"RefObject<InputImperativeHandle>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const Be="_NumberField_kx5jx_1",Pe={NumberField:Be},Le=({id:e,...a},n)=>{const r=s.useRef(null),i=Re();s.useImperativeHandle(n,()=>({setFocus:()=>{var c;return(c=r==null?void 0:r.current)==null?void 0:c.setFocus()},scrollIntoView:()=>{var c;return(c=r==null?void 0:r.current)==null?void 0:c.scrollIntoView()}}));const d=Te({id:e,...a},m.NumberField),{layoutProps:o,inputProps:S}=d,l=we(Pe,m.NumberField),Ie=t.jsx(N,{...S,ref:i});return t.jsx(He,{...o,className:l.join(" "),input:Ie,inputHandle:i.current,ref:r,preplyDsComponent:m.NumberField})},p=s.forwardRef(Le);try{p.displayName="NumberField",p.__docgenInfo={description:"By default, this field acts as a controlled field and expects the parent\ncomponent to manage the state, by reacting to user input via the `onChange` or\n`onValueChange` props, and providing the latest state via the `value` prop.\n\nAlternatively, you can use it as an uncontrolled field using the\n`defaultValue` prop instead of the `value` prop.",displayName:"NumberField",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"enum",value:[{value:"string"}]}},label:{defaultValue:null,description:"The field label. This is needed for accessibility purposes, but can be\nhidden using the `hideLabel` prop.",name:"label",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},requiredLabel:{defaultValue:null,description:"",name:"requiredLabel",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},hideLabel:{defaultValue:null,description:"Use this to hide the `label` visually, but keep it in the accessibility\ntree.",name:"hideLabel",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},wrapLabel:{defaultValue:null,description:"",name:"wrapLabel",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},additionalText:{defaultValue:null,description:"",name:"additionalText",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},preserveSpace:{defaultValue:null,description:"",name:"preserveSpace",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},hasError:{defaultValue:null,description:"",name:"hasError",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},errorMessage:{defaultValue:null,description:"",name:"errorMessage",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},inputDataset:{defaultValue:null,description:"",name:"inputDataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<Element>"}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"enum",value:[{value:"string"}]}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!1,type:{name:"enum",value:[{value:"number"}]}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"enum",value:[{value:"string"}]}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"enum",value:[{value:"number"}]}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"enum",value:[{value:"number"}]}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"enum",value:[{value:"ChangeEventHandler<Element>"}]}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<Element>"}]}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<Element>"}]}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<Element>"}]}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<Element>"}]}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<Element>"}]}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<Element>"}]}},readOnly:{defaultValue:null,description:"",name:"readOnly",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"enum",value:[{value:"ValueChangeEventHandler<number | undefined>"}]}},min:{defaultValue:null,description:"",name:"min",required:!1,type:{name:"enum",value:[{value:"number"}]}},max:{defaultValue:null,description:"",name:"max",required:!1,type:{name:"enum",value:[{value:"number"}]}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:"ReactElement<IconProps, string | JSXElementConstructor<any>>"}]}},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: InputImperativeHandle | null) => void"},{value:"RefObject<InputImperativeHandle>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const ha={title:"components/NumberField",component:p,args:{label:"Number",placeholder:"Enter a number",inputDataset:{testid:"input"},onChange:u("onChange"),onBlur:u("onBlur"),onFocus:u("onFocus"),onClick:u("onClick"),onCopy:u("onCopy"),onKeyDown:u("onKeyDown"),onKeyUp:u("onKeyUp"),onPaste:u("onPaste"),onValueChange:u("onValueChange")},render:function(a){const n=s.useRef(null);return a.ref=n,t.jsx(p,{...a})}},v={parameters:{docs:{description:{story:"An empty field with a `label` and a `placeholder`."}}}},f={args:{defaultValue:100},play:async({canvas:e,step:a})=>{await a("Validate defaultValue",async()=>{const n=e.getByTestId("input");await F(n).toHaveValue(100)}),await a("Type to value",async()=>{const n=e.getByTestId("input");await Ce.type(n,",500"),await F(n).toHaveValue(100500)})}},y={args:{icon:t.jsx(Ee,{svg:qe})}},h={args:{additionalText:"This is additional text"}},b={args:{required:!0}},g={args:{required:!0,requiredLabel:t.jsx(ke,{accent:"critical",variant:"m-bold",children:"Needed"})}},V={args:{hideLabel:!0}},x={args:{hasError:!0}},q={args:{hasError:!0,errorMessage:"This is an error message"}},E={args:{disabled:!0}},w={args:{readOnly:!0}},I={decorators:[(e,{args:a})=>t.jsxs("div",{style:{padding:"8px",margin:"8px"},children:[t.jsxs("p",{children:["You can"," ",t.jsx(T,{variant:"secondary",dataset:{testid:"focus-button"},onClick:()=>{var n,r;return(r=(n=a.ref)==null?void 0:n.current)==null?void 0:r.setFocus()},children:"Focus"})," ","the input imperatively."]}),t.jsx(e,{})]})],play:async({args:e,canvas:a})=>{if(!R(e.ref))throw new Error("Expected ref.current to be an InputImperativeHandle");const n=a.getByTestId("input");e.ref.current.setFocus(),await xe(()=>F(n).toHaveFocus())}},C={decorators:[(e,{args:a})=>t.jsxs("div",{style:{height:"300px",overflow:"scroll",padding:"8px",margin:"8px"},children:[t.jsxs("p",{children:["You can"," ",t.jsx(T,{variant:"secondary",dataset:{testid:"scroll-button"},onClick:()=>{if(!R(a.ref))throw new Error("Expected ref.current to be an InputImperativeHandle");a.ref.current.scrollIntoView()},children:"Scroll"})," ","the input into view imperatively."]}),t.jsx("div",{style:{height:"1000px",display:"flex",flexDirection:"column",justifyContent:"end",border:"2px dashed lightgray",padding:"16px"},children:t.jsx(e,{})})]})],play:async({args:e,canvas:a})=>{if(!R(e.ref))throw new Error("Expected ref.current to be an InputImperativeHandle");const n=a.getByTestId("input");e.ref.current.scrollIntoView(),await xe(()=>F(n).toBeVisible())}};function R(e){return typeof e=="object"&&e!==null&&"current"in e&&e.current!==null&&typeof e.current=="object"&&"setFocus"in e.current}const H={tags:["!test"],parameters:{docs:{description:{story:'\nThe following code renders a `Numberfield` with the `required` flag, a `min`\nand `max` value, an `icon`, a `placeholder`, and some `additionalText`.\n\nWhen you click the "Submit" button and the input value is empty\n- it displays feedback via the `errorMessage` prop;\n- and uses the `setFocus()` API to bring the focus back to the field.\n\nIt uses the `value` and `onValueChange` props to react to the user input.\n'}},chromatic:{disableSnapshot:!0}},render:function(){const a=s.useRef(null),[n,r]=s.useState(void 0),[i,d]=s.useState(!1),o=l=>{if(l===void 0)return"Please provide a number";if(l!==Math.round(l))return"Please provide a whole number";if(l<10)return"Please book at least 10 lessons";if(l>99)return"Please book less than 100 lessons"},S=()=>{var l;d(!0),n||(l=a==null?void 0:a.current)==null||l.setFocus()};return t.jsxs("div",{style:{maxWidth:"500px",display:"flex",flexDirection:"column"},children:[t.jsx(p,{id:"lessons",name:"lessons",label:"Number of lessons",icon:t.jsx(Ee,{svg:qe}),placeholder:"How about 3?",value:n,additionalText:"These lessons will be scheduled automatically",onValueChange:r,errorMessage:i?o(n):void 0,min:10,max:99,ref:a,required:!0}),t.jsx(T,{onClick:S,children:"Submit"})]})}};var k,j,B;v.parameters={...v.parameters,docs:{...(k=v.parameters)==null?void 0:k.docs,source:{originalSource:`{
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ story: \`An empty field with a \\\`label\\\` and a \\\`placeholder\\\`.\`
10
+ }
11
+ }
12
+ }
13
+ }`,...(B=(j=v.parameters)==null?void 0:j.docs)==null?void 0:B.source}}};var P,L,D;f.parameters={...f.parameters,docs:{...(P=f.parameters)==null?void 0:P.docs,source:{originalSource:`{
14
+ args: {
15
+ defaultValue: 100
16
+ },
17
+ play: async ({
18
+ canvas,
19
+ step
20
+ }) => {
21
+ await step('Validate defaultValue', async () => {
22
+ const input = canvas.getByTestId<HTMLInputElement>('input');
23
+ await expect(input).toHaveValue(100);
24
+ });
25
+ await step('Type to value', async () => {
26
+ const input = canvas.getByTestId<HTMLInputElement>('input');
27
+ await userEvent.type(input, ',500');
28
+ await expect(input).toHaveValue(100_500);
29
+ });
30
+ }
31
+ }`,...(D=(L=f.parameters)==null?void 0:L.docs)==null?void 0:D.source}}};var _,M,K;y.parameters={...y.parameters,docs:{...(_=y.parameters)==null?void 0:_.docs,source:{originalSource:`{
32
+ args: {
33
+ icon: <Icon svg={PhoneSvg} />
34
+ }
35
+ }`,...(K=(M=y.parameters)==null?void 0:M.docs)==null?void 0:K.source}}};var W,O,A;h.parameters={...h.parameters,docs:{...(W=h.parameters)==null?void 0:W.docs,source:{originalSource:`{
36
+ args: {
37
+ additionalText: 'This is additional text'
38
+ }
39
+ }`,...(A=(O=h.parameters)==null?void 0:O.docs)==null?void 0:A.source}}};var U,J,X;b.parameters={...b.parameters,docs:{...(U=b.parameters)==null?void 0:U.docs,source:{originalSource:`{
40
+ args: {
41
+ required: true
42
+ }
43
+ }`,...(X=(J=b.parameters)==null?void 0:J.docs)==null?void 0:X.source}}};var Y,$,z;g.parameters={...g.parameters,docs:{...(Y=g.parameters)==null?void 0:Y.docs,source:{originalSource:`{
44
+ args: {
45
+ required: true,
46
+ requiredLabel: <Text accent="critical" variant="m-bold">
47
+ Needed
48
+ </Text>
49
+ }
50
+ }`,...(z=($=g.parameters)==null?void 0:$.docs)==null?void 0:z.source}}};var G,Q,Z;V.parameters={...V.parameters,docs:{...(G=V.parameters)==null?void 0:G.docs,source:{originalSource:`{
51
+ args: {
52
+ hideLabel: true
53
+ }
54
+ }`,...(Z=(Q=V.parameters)==null?void 0:Q.docs)==null?void 0:Z.source}}};var ee,ae,ne;x.parameters={...x.parameters,docs:{...(ee=x.parameters)==null?void 0:ee.docs,source:{originalSource:`{
55
+ args: {
56
+ hasError: true
57
+ }
58
+ }`,...(ne=(ae=x.parameters)==null?void 0:ae.docs)==null?void 0:ne.source}}};var te,re,le;q.parameters={...q.parameters,docs:{...(te=q.parameters)==null?void 0:te.docs,source:{originalSource:`{
59
+ args: {
60
+ hasError: true,
61
+ errorMessage: 'This is an error message'
62
+ }
63
+ }`,...(le=(re=q.parameters)==null?void 0:re.docs)==null?void 0:le.source}}};var ue,se,ie;E.parameters={...E.parameters,docs:{...(ue=E.parameters)==null?void 0:ue.docs,source:{originalSource:`{
64
+ args: {
65
+ disabled: true
66
+ }
67
+ }`,...(ie=(se=E.parameters)==null?void 0:se.docs)==null?void 0:ie.source}}};var oe,de,ce;w.parameters={...w.parameters,docs:{...(oe=w.parameters)==null?void 0:oe.docs,source:{originalSource:`{
68
+ args: {
69
+ readOnly: true
70
+ }
71
+ }`,...(ce=(de=w.parameters)==null?void 0:de.docs)==null?void 0:ce.source}}};var me,pe,ve;I.parameters={...I.parameters,docs:{...(me=I.parameters)==null?void 0:me.docs,source:{originalSource:`{
72
+ decorators: [(Story, {
73
+ args
74
+ }) => <div style={{
75
+ padding: '8px',
76
+ margin: '8px'
77
+ }}>
78
+ <p>
79
+ You can{' '}
80
+ <Button variant="secondary" dataset={{
81
+ testid: 'focus-button'
82
+ }} onClick={() =>
83
+ // @ts-expect-error - This will fail gracefully,
84
+ // and the \`play\` function will assert it properly
85
+ args.ref?.current?.setFocus()}>
86
+ Focus
87
+ </Button>{' '}
88
+ the input imperatively.
89
+ </p>
90
+ <Story />
91
+ </div>],
92
+ play: async ({
93
+ args,
94
+ canvas
95
+ }) => {
96
+ if (!isImperativeHandleRef(args.ref)) {
97
+ throw new Error('Expected ref.current to be an InputImperativeHandle');
98
+ }
99
+ const input = canvas.getByTestId('input');
100
+ args.ref.current.setFocus();
101
+ await waitFor(() => expect(input).toHaveFocus());
102
+ }
103
+ }`,...(ve=(pe=I.parameters)==null?void 0:pe.docs)==null?void 0:ve.source}}};var fe,ye,he;C.parameters={...C.parameters,docs:{...(fe=C.parameters)==null?void 0:fe.docs,source:{originalSource:`{
104
+ decorators: [(Story, {
105
+ args
106
+ }) => <div style={{
107
+ height: '300px',
108
+ overflow: 'scroll',
109
+ padding: '8px',
110
+ margin: '8px'
111
+ }}>
112
+ <p>
113
+ You can{' '}
114
+ <Button variant="secondary" dataset={{
115
+ testid: 'scroll-button'
116
+ }} onClick={() => {
117
+ if (!isImperativeHandleRef(args.ref)) {
118
+ throw new Error('Expected ref.current to be an InputImperativeHandle');
119
+ }
120
+ args.ref.current.scrollIntoView();
121
+ }}>
122
+ Scroll
123
+ </Button>{' '}
124
+ the input into view imperatively.
125
+ </p>
126
+ <div style={{
127
+ height: '1000px',
128
+ display: 'flex',
129
+ flexDirection: 'column',
130
+ justifyContent: 'end',
131
+ border: '2px dashed lightgray',
132
+ padding: '16px'
133
+ }}>
134
+ <Story />
135
+ </div>
136
+ </div>],
137
+ play: async ({
138
+ args,
139
+ canvas
140
+ }) => {
141
+ if (!isImperativeHandleRef(args.ref)) {
142
+ throw new Error('Expected ref.current to be an InputImperativeHandle');
143
+ }
144
+ const input = canvas.getByTestId('input');
145
+ args.ref.current.scrollIntoView();
146
+ await waitFor(() => expect(input).toBeVisible());
147
+ }
148
+ }`,...(he=(ye=C.parameters)==null?void 0:ye.docs)==null?void 0:he.source}}};var be,ge,Ve;H.parameters={...H.parameters,docs:{...(be=H.parameters)==null?void 0:be.docs,source:{originalSource:`{
149
+ tags: ['!test'],
150
+ parameters: {
151
+ docs: {
152
+ description: {
153
+ story: \`
154
+ The following code renders a \\\`Numberfield\\\` with the \\\`required\\\` flag, a \\\`min\\\`
155
+ and \\\`max\\\` value, an \\\`icon\\\`, a \\\`placeholder\\\`, and some \\\`additionalText\\\`.
156
+
157
+ When you click the "Submit" button and the input value is empty
158
+ - it displays feedback via the \\\`errorMessage\\\` prop;
159
+ - and uses the \\\`setFocus()\\\` API to bring the focus back to the field.
160
+
161
+ It uses the \\\`value\\\` and \\\`onValueChange\\\` props to react to the user input.
162
+ \`
163
+ }
164
+ },
165
+ chromatic: {
166
+ disableSnapshot: true
167
+ }
168
+ },
169
+ render: function Story() {
170
+ const fieldRef = useRef<InputImperativeHandle>(null);
171
+ const [value, setValue] = useState<number | undefined>(undefined);
172
+ const [submited, setSubmitted] = useState(false);
173
+ const getErrorMessage = (attempt?: number) => {
174
+ if (attempt === undefined) {
175
+ return 'Please provide a number';
176
+ }
177
+ if (attempt !== Math.round(attempt)) {
178
+ return 'Please provide a whole number';
179
+ }
180
+ if (attempt < 10) {
181
+ return 'Please book at least 10 lessons';
182
+ }
183
+ if (attempt > 99) {
184
+ return 'Please book less than 100 lessons';
185
+ }
186
+ return undefined;
187
+ };
188
+ const handleClick = () => {
189
+ setSubmitted(true);
190
+ if (!value) {
191
+ fieldRef?.current?.setFocus();
192
+ }
193
+ };
194
+ return <div style={{
195
+ maxWidth: '500px',
196
+ display: 'flex',
197
+ flexDirection: 'column'
198
+ }}>
199
+ <NumberField id="lessons" name="lessons" label="Number of lessons" icon={<Icon svg={PhoneSvg} />} placeholder="How about 3?" value={value} additionalText="These lessons will be scheduled automatically" onValueChange={setValue} errorMessage={submited ? getErrorMessage(value) : undefined} min={10} max={99} ref={fieldRef} required />
200
+ <Button onClick={handleClick}>Submit</Button>
201
+ </div>;
202
+ }
203
+ }`,...(Ve=(ge=H.parameters)==null?void 0:ge.docs)==null?void 0:Ve.source}}};const ba=["Basic","WithValue","WithIcon","WithAdditionalText","Required","RequiredWithCustomLabel","WithHiddenLabel","HasError","HasErrorWithMessage","Disabled","ReadOnly","ImperativeSetFocus","ImperativeScrollIntoView","Example"];export{v as Basic,E as Disabled,H as Example,x as HasError,q as HasErrorWithMessage,C as ImperativeScrollIntoView,I as ImperativeSetFocus,w as ReadOnly,b as Required,g as RequiredWithCustomLabel,h as WithAdditionalText,V as WithHiddenLabel,y as WithIcon,f as WithValue,ba as __namedExportsOrder,ha as default};
@@ -1,4 +1,4 @@
1
- import{j as a}from"./jsx-runtime-BTJTZTIL.js";import{r as n}from"./index-Cb9e4tly.js";import{R,A as V,P as q,C as x,a as O,b as N}from"./index-DSa6qU7h.js";import{F as E}from"./TokyoUIClose-thK8sk63.js";import{I as k}from"./Icon-DAQd7Eod.js";import{T as P}from"./Text-D3ATKGXs.js";import{B as j}from"./Button-G5Zxq86f.js";import{H as T}from"./Heading-BDNRMwVu.js";import{u as S}from"./index-D1pfvbUR.js";import{g as D}from"./shared-strings-Biv7UF3M.js";import{i as L}from"./PortalElementProvider-DidBkzFe.js";import{g as M}from"./index-DdzHuZ-Y.js";import{w as H}from"./componentNames-Bwls0I02.js";import{M as J}from"./message-B1DLZQ1U.js";const X="_content_1d1nw_2",B="_header_1d1nw_23",U="_close_1d1nw_29",A="_footer_1d1nw_43",F="_arrow_1d1nw_49",o={content:X,header:B,close:U,footer:A,arrow:F},G=e=>{e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})},m=({open:e,onOpenChange:i,disabled:r,title:u,text:s,children:t,side:l,dataset:h,actionLabel:b=a.jsx(J,{id:"preply-ds.onboardingTooltip.actionLabel",defaultMessage:"Got it",description:"Default onboarding tooltip action label. Used to acknowledge and close the tooltip."}),actionOnClick:g,actionHref:y,counter:C,autoScroll:v=!0})=>{const{formatMessage:w}=S(),I=L(),f=n.useId(),_=n.useId(),d=n.useId(),c=n.useRef(null);return n.useEffect(()=>{e&&c.current&&v&&G(c.current)},[v,e]),r?t:a.jsxs(R,{open:e,onOpenChange:i,children:[a.jsx(V,{ref:c,id:d,asChild:!0,children:t}),a.jsx(q,{container:I,children:a.jsxs(x,{side:l,className:o.content,"aria-labelledby":f,"aria-describedby":`${d} ${_}`,...M(h,{preplyDsComponent:H.OnboardingTooltip}),children:[a.jsxs("div",{className:o.header,children:[a.jsx(O,{className:o.close,"aria-label":w(D.close),"data-testid":"close",children:a.jsx(k,{accent:"inverted",svg:E})}),a.jsx(T,{tag:"h1",variant:"small",accent:"inverted",id:f,"aria-describedby":d,children:u})]}),a.jsx(P,{variant:"default-regular",accent:"inverted",children:s}),a.jsxs("div",{className:o.footer,children:[C,a.jsx(j,{variant:"inverted",size:"small",onClick:g,href:y,dataset:{testid:"action"},wrap:!0,children:b})]}),a.jsx(N,{"aria-hidden":!0,className:o.arrow,width:18,height:11})]})})]})},p=e=>{const[i,r]=n.useState(!0),u=t=>{var l;t||(l=e.onClose)==null||l.call(e),r(t)},s=()=>{var t,l;(t=e.actionOnClick)==null||t.call(e),r(!1),(l=e.onClose)==null||l.call(e)};return a.jsx(m,{...e,open:i,onOpenChange:u,actionOnClick:s})};try{m.displayName="InternalOnboardingTooltip",m.__docgenInfo={description:"",displayName:"InternalOnboardingTooltip",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},disabled:{defaultValue:null,description:"Disables tooltip completely",name:"disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},onClose:{defaultValue:null,description:"Called when the tooltip is closed",name:"onClose",required:!1,type:{name:"enum",value:[{value:"() => void"}]}},actionLabel:{defaultValue:{value:`(
1
+ import{j as a}from"./jsx-runtime-BTJTZTIL.js";import{r as n}from"./index-Cb9e4tly.js";import{R as q,A as R,P as V,C as x,a as O,b as N}from"./index-DSa6qU7h.js";import{F as E}from"./TokyoUIClose-thK8sk63.js";import{I as k}from"./Icon-BCL3U29b.js";import{T as P}from"./Text-WS7Bdore.js";import{B as j}from"./Button-COvs-WT9.js";import{H as T}from"./Heading-x9qmcX15.js";import{u as S}from"./index-D1pfvbUR.js";import{g as D}from"./shared-strings-Biv7UF3M.js";import{i as L}from"./PortalElementProvider-DidBkzFe.js";import{g as M}from"./index-DdzHuZ-Y.js";import{w as H}from"./componentNames-Bwls0I02.js";import{M as J}from"./message-B1DLZQ1U.js";const X="_content_1qa7c_2",B="_header_1qa7c_23",U="_close_1qa7c_29",A="_footer_1qa7c_43",F="_arrow_1qa7c_49",o={content:X,header:B,close:U,footer:A,arrow:F},G=e=>{e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})},m=({open:e,onOpenChange:i,disabled:r,title:u,text:s,children:t,side:l,dataset:h,actionLabel:b=a.jsx(J,{id:"preply-ds.onboardingTooltip.actionLabel",defaultMessage:"Got it",description:"Default onboarding tooltip action label. Used to acknowledge and close the tooltip."}),actionOnClick:g,actionHref:y,counter:C,autoScroll:v=!0})=>{const{formatMessage:I}=S(),_=L(),f=n.useId(),w=n.useId(),d=n.useId(),c=n.useRef(null);return n.useEffect(()=>{e&&c.current&&v&&G(c.current)},[v,e]),r?t:a.jsxs(q,{open:e,onOpenChange:i,children:[a.jsx(R,{ref:c,id:d,asChild:!0,children:t}),a.jsx(V,{container:_,children:a.jsxs(x,{side:l,className:o.content,"aria-labelledby":f,"aria-describedby":`${d} ${w}`,...M(h,{preplyDsComponent:H.OnboardingTooltip}),children:[a.jsxs("div",{className:o.header,children:[a.jsx(O,{className:o.close,"aria-label":I(D.close),"data-testid":"close",children:a.jsx(k,{accent:"inverted",svg:E})}),a.jsx(T,{tag:"h1",variant:"small",accent:"inverted",id:f,"aria-describedby":d,children:u})]}),a.jsx(P,{variant:"default-regular",accent:"inverted",children:s}),a.jsxs("div",{className:o.footer,children:[C,a.jsx(j,{variant:"inverted",size:"small",onClick:g,href:y,dataset:{testid:"action"},wrap:!0,children:b})]}),a.jsx(N,{"aria-hidden":!0,className:o.arrow,width:18,height:11})]})})]})},p=e=>{const[i,r]=n.useState(!0),u=t=>{var l;t||(l=e.onClose)==null||l.call(e),r(t)},s=()=>{var t,l;(t=e.actionOnClick)==null||t.call(e),r(!1),(l=e.onClose)==null||l.call(e)};return a.jsx(m,{...e,open:i,onOpenChange:u,actionOnClick:s})};try{m.displayName="InternalOnboardingTooltip",m.__docgenInfo={description:"",displayName:"InternalOnboardingTooltip",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},disabled:{defaultValue:null,description:"Disables tooltip completely",name:"disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},onClose:{defaultValue:null,description:"Called when the tooltip is closed",name:"onClose",required:!1,type:{name:"enum",value:[{value:"() => void"}]}},actionLabel:{defaultValue:{value:`(
2
2
  <FormattedMessage
3
3
  id="preply-ds.onboardingTooltip.actionLabel"
4
4
  defaultMessage="Got it"
@@ -0,0 +1 @@
1
+ ._content_1qa7c_2{background-color:var(--79dffb);border-radius:var(--fa4b1a);padding:var(--558c4c);box-shadow:var(--df7dbb);width:304px;display:flex;flex-direction:column;gap:var(--813599);z-index:var(--ds-onboarding-tooltip-z-index-override, auto);animation-duration:.15s;animation-timing-function:cubic-bezier(.25,0,.5,1.3);transform-origin:var(--radix-popover-content-transform-origin);will-change:transform,opacity}._content_1qa7c_2[data-state=open]{animation-name:_appear_1qa7c_1}._content_1qa7c_2[data-state=closed]{animation-name:_disappear_1qa7c_1}._header_1qa7c_23{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:flex-start}._close_1qa7c_29{background:none;border:none;border-radius:var(--5e8be4);padding:0;margin:0;cursor:pointer}._close_1qa7c_29:focus-visible{outline-style:solid;outline-color:var(--603ec6);outline-width:var(--99d31f);outline-offset:var(--c0b12c)}._footer_1qa7c_43{display:flex;justify-content:flex-end;gap:var(--813599);align-items:center}._arrow_1qa7c_49{fill:var(--79dffb)}@keyframes _appear_1qa7c_1{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes _disappear_1qa7c_1{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}