@preply/ds-docs 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/assets/{00.LayoutFlex.stories-DK81VCPl.js → 00.LayoutFlex.stories-D9Mbli09.js} +1 -1
  2. package/dist/assets/{00.applications-DOrT6zMY.js → 00.applications-h3eU30x1.js} +1 -1
  3. package/dist/assets/{00.favicons.guide-oZDz8VeY.js → 00.favicons.guide-BAXqiQQX.js} +1 -1
  4. package/dist/assets/{00.token-explorer-BaiHzbk5.js → 00.token-explorer-Dm9UX3N0.js} +8 -8
  5. package/dist/assets/{00.using-responsive-props-DWA4jhM5.js → 00.using-responsive-props-CzuKWDWH.js} +1 -1
  6. package/dist/assets/01.semantic-tokens-BJHIZq-S.js +2 -0
  7. package/dist/assets/{01.using-shorthand-props-SAF5TeFc.js → 01.using-shorthand-props-w68fjJ1S.js} +1 -1
  8. package/dist/assets/10.Combinations.stories-DpIFw2ZH.js +144 -0
  9. package/dist/assets/{10.fonts.guide-CRbMHBqn.js → 10.fonts.guide-Dy8ifEG0.js} +1 -1
  10. package/dist/assets/{10.ssr-76Ihi79f.js → 10.ssr-CTf7FA6T.js} +1 -1
  11. package/dist/assets/{11.languageFont.explorer-BMKKzLv-.js → 11.languageFont.explorer-CzzsAo_-.js} +4 -4
  12. package/dist/assets/{11.ssr.app-router-B-gZNbEO.js → 11.ssr.app-router-1a1bLSxS.js} +1 -1
  13. package/dist/assets/{20.libraries-CFFaTxYM.js → 20.libraries-cfFMZ5jt.js} +1 -1
  14. package/dist/assets/30.icons.explorer-DkDUlAAs.js +73 -0
  15. package/dist/assets/{30.storybook-W_uMgs5P.js → 30.storybook-Df7y_pEg.js} +1 -1
  16. package/dist/assets/40.illustrations.explorer-Cp-KWsVv.js +21 -0
  17. package/dist/assets/{90.advanced-BSkwiTfr.js → 90.advanced-hQWASLuO.js} +1 -1
  18. package/dist/assets/{AlertDialog.stories-CzhdEZEE.js → AlertDialog.stories-BYaM3Dmh.js} +1 -1
  19. package/dist/assets/Avatar-BhXAiEHx.js +1 -0
  20. package/dist/assets/Avatar-DB1aMzdM.js +6 -0
  21. package/dist/assets/{Avatar.stories-BNXddHPs.js → Avatar.stories-DjqCRDPm.js} +1 -1
  22. package/dist/assets/AvatarWithStatus.stories-BZuSG4Su.js +41 -0
  23. package/dist/assets/{Badge.stories-B4pqp_eV.js → Badge.stories-DUeSVdhy.js} +2 -2
  24. package/dist/assets/Box.stories-Nfk41bTN.js +44 -0
  25. package/dist/assets/{Button-Cx-jVna3.js → Button-BwzVXfnD.js} +2 -2
  26. package/dist/assets/Button-DBRxFdD6.js +1 -0
  27. package/dist/assets/{Button.stories-CenQvrgP.js → Button.stories-Ds7LLJCv.js} +1 -1
  28. package/dist/assets/ButtonBase-fjWfWc99.js +8 -0
  29. package/dist/assets/Checkbox-CLpuKQf1.js +10 -0
  30. package/dist/assets/{Checkbox.stories-BuUhghMi.js → Checkbox.stories-BpslrBRV.js} +1 -1
  31. package/dist/assets/Checkbox.tests.stories-CunSiMPy.js +137 -0
  32. package/dist/assets/{Chips.stories-DotGq1kE.js → Chips.stories-BpSsn1sj.js} +4 -4
  33. package/dist/assets/{Color-YHDXOIA2-B1cq_8gD.js → Color-YHDXOIA2-nYlMi6NW.js} +1 -1
  34. package/dist/assets/{Dialog.stories-D4UCJvB8.js → Dialog.stories-BjLQxUlw.js} +1 -1
  35. package/dist/assets/{DocsRenderer-CFRXHY34-pV1NssiV.js → DocsRenderer-CFRXHY34-E44rqLii.js} +1 -1
  36. package/dist/assets/FieldButton-BcfNDhpZ.js +1 -0
  37. package/dist/assets/FieldButton.stories-DiyzxI51.js +1 -0
  38. package/dist/assets/{FieldLayout-tSPPBTgl.js → FieldLayout-Df4DLDsB.js} +1 -1
  39. package/dist/assets/{FieldLayout.stories-BrpqtRvT.js → FieldLayout.stories-XL0oFgId.js} +1 -1
  40. package/dist/assets/{FieldLayoutBase-Db7AO67B.js → FieldLayoutBase-anE7xqIx.js} +2 -2
  41. package/dist/assets/Heading-Iho_snJl.js +2 -0
  42. package/dist/assets/{Heading.stories-D8_2U4kZ.js → Heading.stories-BmAkaflC.js} +1 -1
  43. package/dist/assets/Icon-BlrxZqIa.js +1 -0
  44. package/dist/assets/Icon-CzZtXwMO.js +8 -0
  45. package/dist/assets/{Icon-RSC-BWYFIU7V.js → Icon-RSC-FCfhIsMz.js} +1 -1
  46. package/dist/assets/{Icon.stories-DdiwDmv9.js → Icon.stories-B1XRazs6.js} +1 -1
  47. package/dist/assets/IconButton-BXhZQuQT.js +8 -0
  48. package/dist/assets/InputText-DsxbN3CG.js +5 -0
  49. package/dist/assets/LayoutFlex-B25JvLRp.js +1 -0
  50. package/dist/assets/LayoutFlex-DVn5GUOH.js +1 -0
  51. package/dist/assets/{Text-BjBJEVRG.css → LayoutFlex-a_rYMhDk.css} +1 -1
  52. package/dist/assets/LayoutFlexItem-BoPow6tI.js +1 -0
  53. package/dist/assets/LayoutGrid-BPWOaksx.js +1 -0
  54. package/dist/assets/LayoutGrid.stories-DDK_v_6q.js +88 -0
  55. package/dist/assets/LayoutGridItem-DbVmH61j.js +1 -0
  56. package/dist/assets/{Link.stories-DGj6AVhq.js → Link.stories-BV1DTHIx.js} +6 -6
  57. package/dist/assets/Loader.stories-BtMhSe5v.js +37 -0
  58. package/dist/assets/{NumberField.stories-Cq9nHfVx.js → NumberField.stories-DLUFUbhI.js} +2 -2
  59. package/dist/assets/{ObserveIntersection-DmUYWtw_.js → ObserveIntersection-X9T7s8C_.js} +1 -1
  60. package/dist/assets/{ObserveIntersection.stories-D9iSLGDs.js → ObserveIntersection.stories-CL2a-4JN.js} +1 -1
  61. package/dist/assets/{OnboardingTooltip-CR9CWfAC.js → OnboardingTooltip-BPM5tdAw.js} +1 -1
  62. package/dist/assets/{OnboardingTooltip.stories-_jzoBHbP.js → OnboardingTooltip.stories-Ddrm-Vy0.js} +1 -1
  63. package/dist/assets/{OnboardingTooltip.tests.stories-DHa9dlfK.js → OnboardingTooltip.tests.stories-BHVQqSnl.js} +1 -1
  64. package/dist/assets/{OnboardingTour-m6Kyldzd.js → OnboardingTour-CoyXtu8b.js} +1 -1
  65. package/dist/assets/{OnboardingTour.stories-QOn1pweJ.js → OnboardingTour.stories-vU8ghqhL.js} +1 -1
  66. package/dist/assets/{OnboardingTour.tests.stories-BTYkxt4S.js → OnboardingTour.tests.stories-vXlx1Tk2.js} +1 -1
  67. package/dist/assets/PasswordField.stories-BGY7rjXV.js +203 -0
  68. package/dist/assets/PreplyLogo.stories-_fxAXZGE.js +97 -0
  69. package/dist/assets/{ProgressBar.stories-DQbmGKwl.js → ProgressBar.stories-BclbcX02.js} +1 -1
  70. package/dist/assets/{ProgressSteps.stories-1TNKvdLJ.js → ProgressSteps.stories-_F3izKgu.js} +1 -1
  71. package/dist/assets/SelectField.stories-_QOq1bZM.js +182 -0
  72. package/dist/assets/{ShowOnIntersection.stories-DkmJRWg7.js → ShowOnIntersection.stories-kLcUye2N.js} +1 -1
  73. package/dist/assets/{Steps-DgCN03WW.js → Steps-Dhp0iBn3.js} +1 -1
  74. package/dist/assets/{Steps.stories-CfN4VH-x.js → Steps.stories-Bte8vve5.js} +1 -1
  75. package/dist/assets/Text-C6Y3rIRK.js +1 -0
  76. package/dist/assets/{Text.stories-DAgqHs-D.js → Text.stories-X4B6SOqs.js} +1 -1
  77. package/dist/assets/TextField.stories-BNT31zf0.js +178 -0
  78. package/dist/assets/TextHighlighted-BzUuo56x.js +1 -0
  79. package/dist/assets/TextHighlighted.stories-BnvdwfAX.js +32 -0
  80. package/dist/assets/TextInline.stories-BlmLch3R.js +37 -0
  81. package/dist/assets/TextareaField.stories-DGd7H0kt.js +221 -0
  82. package/dist/assets/{Toast.stories-BHecuH67.js → Toast.stories-BrR9WTSV.js} +1 -1
  83. package/dist/assets/{Tooltip.stories-BaFjxxbP.js → Tooltip.stories-C5jfWW6M.js} +1 -1
  84. package/dist/assets/{Tooltip.tests.stories-BRq8GITb.js → Tooltip.tests.stories-D6ZXwY8n.js} +1 -1
  85. package/dist/assets/{breakpoints-D7wb9r1q.js → breakpoints-BRV2oI45.js} +1 -1
  86. package/dist/assets/{breakpoints-B268dd4p.js → breakpoints-CZRP5Alm.js} +1 -1
  87. package/dist/assets/{breakpoints-sConEftN.js → breakpoints-sSFugu-b.js} +1 -1
  88. package/dist/assets/{changelog-BBy1gfO4.js → changelog-B1t0y4q9.js} +119 -111
  89. package/dist/assets/{entry-preview-RbsunCmL.js → entry-preview-gixUDv64.js} +1 -1
  90. package/dist/assets/filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js +1 -0
  91. package/dist/assets/filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js +1 -0
  92. package/dist/assets/{getTokenVar-CBS1BWqs.js → getTokenVar-CybtM9M1.js} +1 -1
  93. package/dist/assets/{hover-DlAjv2wW.js → hover-BiJvfb0v.js} +1 -1
  94. package/dist/assets/{hover-YC9a4P0N.js → hover-D4e5NPL-.js} +1 -1
  95. package/dist/assets/{hover-p7uqyYda.js → hover-swm44S6H.js} +1 -1
  96. package/dist/assets/{iframe-SErVltqy.js → iframe-D-owUXoQ.js} +2 -2
  97. package/dist/assets/{index-mRm2UG_0.js → index-DR0BJ77C.js} +3 -3
  98. package/dist/assets/{index-kAH12tZF.js → index-DaKSiyPo.js} +1 -1
  99. package/dist/assets/{intro-JkKgT9Ev.js → intro-BmEWNarv.js} +1 -1
  100. package/dist/assets/{migrating-from-less-CO-2zjja.js → migrating-from-less-OVTYMVPH.js} +1 -1
  101. package/dist/assets/{playground.stories-DL5fpOBd.js → playground.stories-BXB-tnbw.js} +4 -4
  102. package/dist/assets/{preview-C96uhPcB.js → preview-DBV_6kXj.js} +1 -1
  103. package/dist/assets/{preview-CUL8Mxkk.js → preview-DfxRAFJo.js} +2 -2
  104. package/dist/assets/{preview-DPrajGzJ.js → preview-_QLeU3Ae.js} +1 -1
  105. package/dist/assets/text-centered-C0V1O_Sd.js +1 -0
  106. package/dist/assets/{text-accent-CDvOoGdV.css → text-centered-fslmi4MP.css} +1 -1
  107. package/dist/assets/{tokens-DIEh4VNO.js → tokens-2b0Aegc5.js} +1 -1
  108. package/dist/assets/{tokens-CRCFCoKx.js → tokens-B5EFsLtR.js} +1 -1
  109. package/dist/assets/{tokens-9TTh2FS5.js → tokens-CvzHiOXz.js} +1 -1
  110. package/dist/assets/{usePortalElement-DRyIyOCf.js → usePortalElement-DnCZkF76.js} +1 -1
  111. package/dist/assets/useToken-BExS62AK.js +1 -0
  112. package/dist/assets/{welcome-ACRIoQcx.js → welcome-BjgujnHV.js} +1 -1
  113. package/dist/assets/{zeroheight-BvOW9ECx.js → zeroheight-DeWlsak-.js} +1 -1
  114. package/dist/iframe.html +1 -1
  115. package/dist/preview-stats.json +1558 -1549
  116. package/dist/project.json +1 -1
  117. package/package.json +3 -3
  118. package/dist/assets/01.semantic-tokens-D6LC0UTy.js +0 -2
  119. package/dist/assets/10.Combinations.stories-oivxlc9V.js +0 -144
  120. package/dist/assets/30.icons.explorer-BgW0shYa.js +0 -72
  121. package/dist/assets/40.illustrations.explorer-FowSyVHA.js +0 -21
  122. package/dist/assets/Avatar-D0sWRScT.js +0 -6
  123. package/dist/assets/Avatar-Iyph9-aQ.js +0 -1
  124. package/dist/assets/AvatarWithStatus.stories-BPnVIClI.js +0 -41
  125. package/dist/assets/Box.stories-5qS6lgQz.js +0 -44
  126. package/dist/assets/Button-BzRWDefj.js +0 -1
  127. package/dist/assets/ButtonBase-D0ZIVzRq.js +0 -8
  128. package/dist/assets/Checkbox-DLg7aeRh.js +0 -10
  129. package/dist/assets/Checkbox.tests.stories-J80718K3.js +0 -137
  130. package/dist/assets/FieldButton-CCz9-7Bu.js +0 -1
  131. package/dist/assets/FieldButton.stories-Cf4ZQ0zO.js +0 -1
  132. package/dist/assets/Heading-CQ-2lErO.js +0 -2
  133. package/dist/assets/Icon-CcRUbFZa.js +0 -1
  134. package/dist/assets/Icon-DOe6p1z1.js +0 -8
  135. package/dist/assets/IconButton-C8LNv9hg.js +0 -8
  136. package/dist/assets/InputText-D8wriam3.js +0 -5
  137. package/dist/assets/LayoutFlex-7DoB3s9X.css +0 -1
  138. package/dist/assets/LayoutFlex-BHnRSdTL.js +0 -1
  139. package/dist/assets/LayoutFlex-Bqs6yYF8.js +0 -1
  140. package/dist/assets/LayoutFlexItem-CJkCBZ-T.js +0 -1
  141. package/dist/assets/LayoutGrid-CvUo6BcD.js +0 -1
  142. package/dist/assets/LayoutGrid.stories-QvHhUYZJ.js +0 -88
  143. package/dist/assets/LayoutGridItem-CxfS8XlV.js +0 -1
  144. package/dist/assets/Loader.stories-BYeEl9cb.js +0 -37
  145. package/dist/assets/PasswordField.stories-C3qk9gmf.js +0 -203
  146. package/dist/assets/PreplyLogo.stories-Cb304jZX.js +0 -97
  147. package/dist/assets/SelectField.stories-UQML-Kcm.js +0 -182
  148. package/dist/assets/Text-B-XmjC5M.js +0 -1
  149. package/dist/assets/Text-D7kiVARi.js +0 -1
  150. package/dist/assets/TextField.stories-Dw77MKSW.js +0 -178
  151. package/dist/assets/TextHighlighted-DMdISSz2.js +0 -1
  152. package/dist/assets/TextHighlighted.stories-B5-a61B-.js +0 -32
  153. package/dist/assets/TextInline.stories-D6hC46Kn.js +0 -37
  154. package/dist/assets/TextareaField.stories-wEGaD6gW.js +0 -221
  155. package/dist/assets/filterHTMLAttributes-DYdLqcvH.js +0 -1
  156. package/dist/assets/filterHTMLAttributes-UOns5Q7s.js +0 -1
  157. package/dist/assets/text-accent-CZD2Hmtq.js +0 -1
  158. package/dist/assets/text-centered-Bk7GkK8R.js +0 -1
  159. package/dist/assets/text-centered-DN9XHxjM.css +0 -1
@@ -1,137 +0,0 @@
1
- import{j as q}from"./jsx-runtime-BTJTZTIL.js";import{f as He,a as Vt,e as w,u as oe,w as Ne}from"./index-BVDq5o4N.js";import{e as P}from"./index-Cb9e4tly.js";import{L as et}from"./LayoutFlex-Bqs6yYF8.js";import{T as Wt}from"./Tooltip-MFjAgFhf.js";import{B as jt}from"./Button-Cx-jVna3.js";import{C as ne}from"./Checkbox-DLg7aeRh.js";import"./index-ChsGqxH_.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./filterHTMLAttributes-DYdLqcvH.js";import"./layout-relative.module-ed9bC4H4.js";import"./classNames-BUL1Zq7e.js";import"./defaults-B1rzzf6M.js";import"./index-DdzHuZ-Y.js";import"./componentNames-Y1T_IIlY.js";import"./index-BZcGM-EF.js";import"./PortalElementProvider-BRcRijdp.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-DOA2-rRC.js";import"./render-icon-BT0Aq7PA.js";import"./ButtonBase-D0ZIVzRq.js";import"./Spinner-B2C3RkCF.js";import"./useMergeRefs-SFH7Mw4x.js";import"./useHostname-Y3PlXofY.js";import"./index-CC6DAVyL.js";var he=e=>e.type==="checkbox",re=e=>e instanceof Date,T=e=>e==null;const St=e=>typeof e=="object";var F=e=>!T(e)&&!Array.isArray(e)&&St(e)&&!re(e),qt=e=>F(e)&&e.target?he(e.target)?e.target.checked:e.target.value:e,zt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,$t=(e,r)=>e.has(zt(r)),Kt=e=>{const r=e.constructor&&e.constructor.prototype;return F(r)&&r.hasOwnProperty("isPrototypeOf")},Ue=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function N(e){let r;const s=Array.isArray(e),a=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(e instanceof Set)r=new Set(e);else if(!(Ue&&(e instanceof Blob||a))&&(s||F(e)))if(r=s?[]:{},!s&&!Kt(e))r=e;else for(const c in e)e.hasOwnProperty(c)&&(r[c]=N(e[c]));else return e;return r}var Ce=e=>Array.isArray(e)?e.filter(Boolean):[],A=e=>e===void 0,y=(e,r,s)=>{if(!r||!F(e))return s;const a=Ce(r.split(/[,[\].]+?/)).reduce((c,n)=>T(c)?c:c[n],e);return A(a)||a===e?A(e[r])?s:e[r]:a},j=e=>typeof e=="boolean",Me=e=>/^\w*$/.test(e),Dt=e=>Ce(e.replace(/["|']|\]/g,"").split(/\.|\[/)),p=(e,r,s)=>{let a=-1;const c=Me(r)?[r]:Dt(r),n=c.length,f=n-1;for(;++a<n;){const h=c[a];let L=s;if(a!==f){const W=e[h];L=F(W)||Array.isArray(W)?W:isNaN(+c[a+1])?{}:[]}if(h==="__proto__"||h==="constructor"||h==="prototype")return;e[h]=L,e=e[h]}return e};const tt={BLUR:"blur",FOCUS_OUT:"focusout"},M={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},X={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};P.createContext(null);var Yt=(e,r,s,a=!0)=>{const c={defaultValues:r._defaultValues};for(const n in e)Object.defineProperty(c,n,{get:()=>{const f=n;return r._proxyFormState[f]!==M.all&&(r._proxyFormState[f]=!a||M.all),e[f]}});return c},I=e=>F(e)&&!Object.keys(e).length,Jt=(e,r,s,a)=>{s(e);const{name:c,...n}=e;return I(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(f=>r[f]===M.all)},Fe=e=>Array.isArray(e)?e:[e];function Qt(e){const r=P.useRef(e);r.current=e,P.useEffect(()=>{const s=!e.disabled&&r.current.subject&&r.current.subject.subscribe({next:r.current.next});return()=>{s&&s.unsubscribe()}},[e.disabled])}var $=e=>typeof e=="string",Xt=(e,r,s,a,c)=>$(e)?(a&&r.watch.add(e),y(s,e,c)):Array.isArray(e)?e.map(n=>(a&&r.watch.add(n),y(s,n))):(a&&(r.watchAll=!0),s),Zt=(e,r,s,a,c)=>r?{...s[e],types:{...s[e]&&s[e].types?s[e].types:{},[a]:c||!0}}:{},rt=e=>({isOnSubmit:!e||e===M.onSubmit,isOnBlur:e===M.onBlur,isOnChange:e===M.onChange,isOnAll:e===M.all,isOnTouch:e===M.onTouched}),st=(e,r,s)=>!s&&(r.watchAll||r.watch.has(e)||[...r.watch].some(a=>e.startsWith(a)&&/^\.\w+/.test(e.slice(a.length))));const ye=(e,r,s,a)=>{for(const c of s||Object.keys(e)){const n=y(e,c);if(n){const{_f:f,...h}=n;if(f){if(f.refs&&f.refs[0]&&r(f.refs[0],c)&&!a)return!0;if(f.ref&&r(f.ref,f.name)&&!a)return!0;if(ye(h,r))break}else if(F(h)&&ye(h,r))break}}};var Gt=(e,r,s)=>{const a=Fe(y(e,s));return p(a,"root",r[s]),p(e,s,a),e},We=e=>e.type==="file",z=e=>typeof e=="function",Ve=e=>{if(!Ue)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Ae=e=>$(e),je=e=>e.type==="radio",Se=e=>e instanceof RegExp;const it={value:!1,isValid:!1},at={value:!0,isValid:!0};var Ct=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(s=>s&&s.checked&&!s.disabled).map(s=>s.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!A(e[0].attributes.value)?A(e[0].value)||e[0].value===""?at:{value:e[0].value,isValid:!0}:at:it}return it};const ot={isValid:!1,value:null};var Et=e=>Array.isArray(e)?e.reduce((r,s)=>s&&s.checked&&!s.disabled?{isValid:!0,value:s.value}:r,ot):ot;function nt(e,r,s="validate"){if(Ae(e)||Array.isArray(e)&&e.every(Ae)||j(e)&&!e)return{type:s,message:Ae(e)?e:"",ref:r}}var ae=e=>F(e)&&!Se(e)?e:{value:e,message:""},ct=async(e,r,s,a,c,n)=>{const{ref:f,refs:h,required:L,maxLength:W,minLength:_,min:x,max:be,pattern:ge,validate:K,name:R,valueAsNumber:Y,mount:Z}=e._f,m=y(s,R);if(!Z||r.has(R))return{};const J=h?h[0]:f,Q=v=>{c&&J.reportValidity&&(J.setCustomValidity(j(v)?"":v||""),J.reportValidity())},V={},se=je(f),ve=he(f),te=se||ve,ie=(Y||We(f))&&A(f.value)&&A(m)||Ve(f)&&f.value===""||m===""||Array.isArray(m)&&!m.length,O=Zt.bind(null,R,a,V),xe=(v,k,S,B=X.maxLength,U=X.minLength)=>{const H=v?k:S;V[R]={type:v?B:U,message:H,ref:f,...O(v?B:U,H)}};if(n?!Array.isArray(m)||!m.length:L&&(!te&&(ie||T(m))||j(m)&&!m||ve&&!Ct(h).isValid||se&&!Et(h).isValid)){const{value:v,message:k}=Ae(L)?{value:!!L,message:L}:ae(L);if(v&&(V[R]={type:X.required,message:k,ref:J,...O(X.required,k)},!a))return Q(k),V}if(!ie&&(!T(x)||!T(be))){let v,k;const S=ae(be),B=ae(x);if(!T(m)&&!isNaN(m)){const U=f.valueAsNumber||m&&+m;T(S.value)||(v=U>S.value),T(B.value)||(k=U<B.value)}else{const U=f.valueAsDate||new Date(m),H=ue=>new Date(new Date().toDateString()+" "+ue),ce=f.type=="time",le=f.type=="week";$(S.value)&&m&&(v=ce?H(m)>H(S.value):le?m>S.value:U>new Date(S.value)),$(B.value)&&m&&(k=ce?H(m)<H(B.value):le?m<B.value:U<new Date(B.value))}if((v||k)&&(xe(!!v,S.message,B.message,X.max,X.min),!a))return Q(V[R].message),V}if((W||_)&&!ie&&($(m)||n&&Array.isArray(m))){const v=ae(W),k=ae(_),S=!T(v.value)&&m.length>+v.value,B=!T(k.value)&&m.length<+k.value;if((S||B)&&(xe(S,v.message,k.message),!a))return Q(V[R].message),V}if(ge&&!ie&&$(m)){const{value:v,message:k}=ae(ge);if(Se(v)&&!m.match(v)&&(V[R]={type:X.pattern,message:k,ref:f,...O(X.pattern,k)},!a))return Q(k),V}if(K){if(z(K)){const v=await K(m,s),k=nt(v,J);if(k&&(V[R]={...k,...O(X.validate,k.message)},!a))return Q(k.message),V}else if(F(K)){let v={};for(const k in K){if(!I(v)&&!a)break;const S=nt(await K[k](m,s),J,k);S&&(v={...S,...O(k,S.message)},Q(S.message),a&&(V[R]=v))}if(!I(v)&&(V[R]={ref:J,...v},!a))return V}}return Q(!0),V};function er(e,r){const s=r.slice(0,-1).length;let a=0;for(;a<s;)e=A(e)?a++:e[r[a++]];return e}function tr(e){for(const r in e)if(e.hasOwnProperty(r)&&!A(e[r]))return!1;return!0}function D(e,r){const s=Array.isArray(r)?r:Me(r)?[r]:Dt(r),a=s.length===1?e:er(e,s),c=s.length-1,n=s[c];return a&&delete a[n],c!==0&&(F(a)&&I(a)||Array.isArray(a)&&tr(a))&&D(e,s.slice(0,-1)),e}var Ie=()=>{let e=[];return{get observers(){return e},next:c=>{for(const n of e)n.next&&n.next(c)},subscribe:c=>(e.push(c),{unsubscribe:()=>{e=e.filter(n=>n!==c)}}),unsubscribe:()=>{e=[]}}},Pe=e=>T(e)||!St(e);function ee(e,r){if(Pe(e)||Pe(r))return e===r;if(re(e)&&re(r))return e.getTime()===r.getTime();const s=Object.keys(e),a=Object.keys(r);if(s.length!==a.length)return!1;for(const c of s){const n=e[c];if(!a.includes(c))return!1;if(c!=="ref"){const f=r[c];if(re(n)&&re(f)||F(n)&&F(f)||Array.isArray(n)&&Array.isArray(f)?!ee(n,f):n!==f)return!1}}return!0}var Bt=e=>e.type==="select-multiple",rr=e=>je(e)||he(e),Re=e=>Ve(e)&&e.isConnected,Tt=e=>{for(const r in e)if(z(e[r]))return!0;return!1};function De(e,r={}){const s=Array.isArray(e);if(F(e)||s)for(const a in e)Array.isArray(e[a])||F(e[a])&&!Tt(e[a])?(r[a]=Array.isArray(e[a])?[]:{},De(e[a],r[a])):T(e[a])||(r[a]=!0);return r}function Lt(e,r,s){const a=Array.isArray(e);if(F(e)||a)for(const c in e)Array.isArray(e[c])||F(e[c])&&!Tt(e[c])?A(r)||Pe(s[c])?s[c]=Array.isArray(e[c])?De(e[c],[]):{...De(e[c])}:Lt(e[c],T(r)?{}:r[c],s[c]):s[c]=!ee(e[c],r[c]);return s}var de=(e,r)=>Lt(e,r,De(r)),It=(e,{valueAsNumber:r,valueAsDate:s,setValueAs:a})=>A(e)?e:r?e===""?NaN:e&&+e:s&&$(e)?new Date(e):a?a(e):e;function Oe(e){const r=e.ref;return We(r)?r.files:je(r)?Et(e.refs).value:Bt(r)?[...r.selectedOptions].map(({value:s})=>s):he(r)?Ct(e.refs).value:It(A(r.value)?e.ref.value:r.value,e)}var sr=(e,r,s,a)=>{const c={};for(const n of e){const f=y(r,n);f&&p(c,n,f._f)}return{criteriaMode:s,names:[...e],fields:c,shouldUseNativeValidation:a}},fe=e=>A(e)?e:Se(e)?e.source:F(e)?Se(e.value)?e.value.source:e.value:e;const lt="AsyncFunction";var ir=e=>!!e&&!!e.validate&&!!(z(e.validate)&&e.validate.constructor.name===lt||F(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===lt)),ar=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ut(e,r,s){const a=y(e,s);if(a||Me(s))return{error:a,name:s};const c=s.split(".");for(;c.length;){const n=c.join("."),f=y(r,n),h=y(e,n);if(f&&!Array.isArray(f)&&s!==n)return{name:s};if(h&&h.type)return{name:n,error:h};c.pop()}return{name:s}}var or=(e,r,s,a,c)=>c.isOnAll?!1:!s&&c.isOnTouch?!(r||e):(s?a.isOnBlur:c.isOnBlur)?!e:(s?a.isOnChange:c.isOnChange)?e:!0,nr=(e,r)=>!Ce(y(e,r)).length&&D(e,r);const cr={mode:M.onSubmit,reValidateMode:M.onChange,shouldFocusError:!0};function lr(e={}){let r={...cr,...e},s={submitCount:0,isDirty:!1,isLoading:z(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},a={},c=F(r.defaultValues)||F(r.values)?N(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:N(c),f={action:!1,mount:!1,watch:!1},h={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},L,W=0;const _={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={values:Ie(),array:Ie(),state:Ie()},be=rt(r.mode),ge=rt(r.reValidateMode),K=r.criteriaMode===M.all,R=t=>i=>{clearTimeout(W),W=setTimeout(t,i)},Y=async t=>{if(!r.disabled&&(_.isValid||t)){const i=r.resolver?I((await te()).errors):await O(a,!0);i!==s.isValid&&x.state.next({isValid:i})}},Z=(t,i)=>{!r.disabled&&(_.isValidating||_.validatingFields)&&((t||Array.from(h.mount)).forEach(o=>{o&&(i?p(s.validatingFields,o,i):D(s.validatingFields,o))}),x.state.next({validatingFields:s.validatingFields,isValidating:!I(s.validatingFields)}))},m=(t,i=[],o,d,u=!0,l=!0)=>{if(d&&o&&!r.disabled){if(f.action=!0,l&&Array.isArray(y(a,t))){const b=o(y(a,t),d.argA,d.argB);u&&p(a,t,b)}if(l&&Array.isArray(y(s.errors,t))){const b=o(y(s.errors,t),d.argA,d.argB);u&&p(s.errors,t,b),nr(s.errors,t)}if(_.touchedFields&&l&&Array.isArray(y(s.touchedFields,t))){const b=o(y(s.touchedFields,t),d.argA,d.argB);u&&p(s.touchedFields,t,b)}_.dirtyFields&&(s.dirtyFields=de(c,n)),x.state.next({name:t,isDirty:v(t,i),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else p(n,t,i)},J=(t,i)=>{p(s.errors,t,i),x.state.next({errors:s.errors})},Q=t=>{s.errors=t,x.state.next({errors:s.errors,isValid:!1})},V=(t,i,o,d)=>{const u=y(a,t);if(u){const l=y(n,t,A(o)?y(c,t):o);A(l)||d&&d.defaultChecked||i?p(n,t,i?l:Oe(u._f)):B(t,l),f.mount&&Y()}},se=(t,i,o,d,u)=>{let l=!1,b=!1;const g={name:t};if(!r.disabled){const C=!!(y(a,t)&&y(a,t)._f&&y(a,t)._f.disabled);if(!o||d){_.isDirty&&(b=s.isDirty,s.isDirty=g.isDirty=v(),l=b!==g.isDirty);const E=C||ee(y(c,t),i);b=!!(!C&&y(s.dirtyFields,t)),E||C?D(s.dirtyFields,t):p(s.dirtyFields,t,!0),g.dirtyFields=s.dirtyFields,l=l||_.dirtyFields&&b!==!E}if(o){const E=y(s.touchedFields,t);E||(p(s.touchedFields,t,o),g.touchedFields=s.touchedFields,l=l||_.touchedFields&&E!==o)}l&&u&&x.state.next(g)}return l?g:{}},ve=(t,i,o,d)=>{const u=y(s.errors,t),l=_.isValid&&j(i)&&s.isValid!==i;if(r.delayError&&o?(L=R(()=>J(t,o)),L(r.delayError)):(clearTimeout(W),L=null,o?p(s.errors,t,o):D(s.errors,t)),(o?!ee(u,o):u)||!I(d)||l){const b={...d,...l&&j(i)?{isValid:i}:{},errors:s.errors,name:t};s={...s,...b},x.state.next(b)}},te=async t=>{Z(t,!0);const i=await r.resolver(n,r.context,sr(t||h.mount,a,r.criteriaMode,r.shouldUseNativeValidation));return Z(t),i},ie=async t=>{const{errors:i}=await te(t);if(t)for(const o of t){const d=y(i,o);d?p(s.errors,o,d):D(s.errors,o)}else s.errors=i;return i},O=async(t,i,o={valid:!0})=>{for(const d in t){const u=t[d];if(u){const{_f:l,...b}=u;if(l){const g=h.array.has(l.name),C=u._f&&ir(u._f);C&&_.validatingFields&&Z([d],!0);const E=await ct(u,h.disabled,n,K,r.shouldUseNativeValidation&&!i,g);if(C&&_.validatingFields&&Z([d]),E[l.name]&&(o.valid=!1,i))break;!i&&(y(E,l.name)?g?Gt(s.errors,E,l.name):p(s.errors,l.name,E[l.name]):D(s.errors,l.name))}!I(b)&&await O(b,i,o)}}return o.valid},xe=()=>{for(const t of h.unMount){const i=y(a,t);i&&(i._f.refs?i._f.refs.every(o=>!Re(o)):!Re(i._f.ref))&&Ee(t)}h.unMount=new Set},v=(t,i)=>!r.disabled&&(t&&i&&p(n,t,i),!ee(qe(),c)),k=(t,i,o)=>Xt(t,h,{...f.mount?n:A(i)?c:$(t)?{[t]:i}:i},o,i),S=t=>Ce(y(f.mount?n:c,t,r.shouldUnregister?y(c,t,[]):[])),B=(t,i,o={})=>{const d=y(a,t);let u=i;if(d){const l=d._f;l&&(!l.disabled&&p(n,t,It(i,l)),u=Ve(l.ref)&&T(i)?"":i,Bt(l.ref)?[...l.ref.options].forEach(b=>b.selected=u.includes(b.value)):l.refs?he(l.ref)?l.refs.length>1?l.refs.forEach(b=>(!b.defaultChecked||!b.disabled)&&(b.checked=Array.isArray(u)?!!u.find(g=>g===b.value):u===b.value)):l.refs[0]&&(l.refs[0].checked=!!u):l.refs.forEach(b=>b.checked=b.value===u):We(l.ref)?l.ref.value="":(l.ref.value=u,l.ref.type||x.values.next({name:t,values:{...n}})))}(o.shouldDirty||o.shouldTouch)&&se(t,u,o.shouldTouch,o.shouldDirty,!0),o.shouldValidate&&ue(t)},U=(t,i,o)=>{for(const d in i){const u=i[d],l=`${t}.${d}`,b=y(a,l);(h.array.has(t)||F(u)||b&&!b._f)&&!re(u)?U(l,u,o):B(l,u,o)}},H=(t,i,o={})=>{const d=y(a,t),u=h.array.has(t),l=N(i);p(n,t,l),u?(x.array.next({name:t,values:{...n}}),(_.isDirty||_.dirtyFields)&&o.shouldDirty&&x.state.next({name:t,dirtyFields:de(c,n),isDirty:v(t,l)})):d&&!d._f&&!T(l)?U(t,l,o):B(t,l,o),st(t,h)&&x.state.next({...s}),x.values.next({name:f.mount?t:void 0,values:{...n}})},ce=async t=>{f.mount=!0;const i=t.target;let o=i.name,d=!0;const u=y(a,o),l=()=>i.type?Oe(u._f):qt(t),b=g=>{d=Number.isNaN(g)||re(g)&&isNaN(g.getTime())||ee(g,y(n,o,g))};if(u){let g,C;const E=l(),G=t.type===tt.BLUR||t.type===tt.FOCUS_OUT,Pt=!ar(u._f)&&!r.resolver&&!y(s.errors,o)&&!u._f.deps||or(G,y(s.touchedFields,o),s.isSubmitted,ge,be),Te=st(o,h,G);p(n,o,E),G?(u._f.onBlur&&u._f.onBlur(t),L&&L(0)):u._f.onChange&&u._f.onChange(t);const Le=se(o,E,G,!1),Ut=!I(Le)||Te;if(!G&&x.values.next({name:o,type:t.type,values:{...n}}),Pt)return _.isValid&&(r.mode==="onBlur"&&G?Y():G||Y()),Ut&&x.state.next({name:o,...Te?{}:Le});if(!G&&Te&&x.state.next({...s}),r.resolver){const{errors:Ze}=await te([o]);if(b(E),d){const Mt=ut(s.errors,a,o),Ge=ut(Ze,a,Mt.name||o);g=Ge.error,o=Ge.name,C=I(Ze)}}else Z([o],!0),g=(await ct(u,h.disabled,n,K,r.shouldUseNativeValidation))[o],Z([o]),b(E),d&&(g?C=!1:_.isValid&&(C=await O(a,!0)));d&&(u._f.deps&&ue(u._f.deps),ve(o,C,g,Le))}},le=(t,i)=>{if(y(s.errors,i)&&t.focus)return t.focus(),1},ue=async(t,i={})=>{let o,d;const u=Fe(t);if(r.resolver){const l=await ie(A(t)?t:u);o=I(l),d=t?!u.some(b=>y(l,b)):o}else t?(d=(await Promise.all(u.map(async l=>{const b=y(a,l);return await O(b&&b._f?{[l]:b}:b)}))).every(Boolean),!(!d&&!s.isValid)&&Y()):d=o=await O(a);return x.state.next({...!$(t)||_.isValid&&o!==s.isValid?{}:{name:t},...r.resolver||!t?{isValid:o}:{},errors:s.errors}),i.shouldFocus&&!d&&ye(a,le,t?u:h.mount),d},qe=t=>{const i={...f.mount?n:c};return A(t)?i:$(t)?y(i,t):t.map(o=>y(i,o))},ze=(t,i)=>({invalid:!!y((i||s).errors,t),isDirty:!!y((i||s).dirtyFields,t),error:y((i||s).errors,t),isValidating:!!y(s.validatingFields,t),isTouched:!!y((i||s).touchedFields,t)}),Rt=t=>{t&&Fe(t).forEach(i=>D(s.errors,i)),x.state.next({errors:t?s.errors:{}})},$e=(t,i,o)=>{const d=(y(a,t,{_f:{}})._f||{}).ref,u=y(s.errors,t)||{},{ref:l,message:b,type:g,...C}=u;p(s.errors,t,{...C,...i,ref:d}),x.state.next({name:t,errors:s.errors,isValid:!1}),o&&o.shouldFocus&&d&&d.focus&&d.focus()},Ot=(t,i)=>z(t)?x.values.subscribe({next:o=>t(k(void 0,i),o)}):k(t,i,!0),Ee=(t,i={})=>{for(const o of t?Fe(t):h.mount)h.mount.delete(o),h.array.delete(o),i.keepValue||(D(a,o),D(n,o)),!i.keepError&&D(s.errors,o),!i.keepDirty&&D(s.dirtyFields,o),!i.keepTouched&&D(s.touchedFields,o),!i.keepIsValidating&&D(s.validatingFields,o),!r.shouldUnregister&&!i.keepDefaultValue&&D(c,o);x.values.next({values:{...n}}),x.state.next({...s,...i.keepDirty?{isDirty:v()}:{}}),!i.keepIsValid&&Y()},Ke=({disabled:t,name:i,field:o,fields:d})=>{(j(t)&&f.mount||t||h.disabled.has(i))&&(t?h.disabled.add(i):h.disabled.delete(i),se(i,Oe(o?o._f:y(d,i)._f),!1,!1,!0))},Be=(t,i={})=>{let o=y(a,t);const d=j(i.disabled)||j(r.disabled);return p(a,t,{...o||{},_f:{...o&&o._f?o._f:{ref:{name:t}},name:t,mount:!0,...i}}),h.mount.add(t),o?Ke({field:o,disabled:j(i.disabled)?i.disabled:r.disabled,name:t}):V(t,!0,i.value),{...d?{disabled:i.disabled||r.disabled}:{},...r.progressive?{required:!!i.required,min:fe(i.min),max:fe(i.max),minLength:fe(i.minLength),maxLength:fe(i.maxLength),pattern:fe(i.pattern)}:{},name:t,onChange:ce,onBlur:ce,ref:u=>{if(u){Be(t,i),o=y(a,t);const l=A(u.value)&&u.querySelectorAll&&u.querySelectorAll("input,select,textarea")[0]||u,b=rr(l),g=o._f.refs||[];if(b?g.find(C=>C===l):l===o._f.ref)return;p(a,t,{_f:{...o._f,...b?{refs:[...g.filter(Re),l,...Array.isArray(y(c,t))?[{}]:[]],ref:{type:l.type,name:t}}:{ref:l}}}),V(t,!1,void 0,l)}else o=y(a,t,{}),o._f&&(o._f.mount=!1),(r.shouldUnregister||i.shouldUnregister)&&!($t(h.array,t)&&f.action)&&h.unMount.add(t)}}},Ye=()=>r.shouldFocusError&&ye(a,le,h.mount),Ht=t=>{j(t)&&(x.state.next({disabled:t}),ye(a,(i,o)=>{const d=y(a,o);d&&(i.disabled=d._f.disabled||t,Array.isArray(d._f.refs)&&d._f.refs.forEach(u=>{u.disabled=d._f.disabled||t}))},0,!1))},Je=(t,i)=>async o=>{let d;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let u=N(n);if(h.disabled.size)for(const l of h.disabled)p(u,l,void 0);if(x.state.next({isSubmitting:!0}),r.resolver){const{errors:l,values:b}=await te();s.errors=l,u=b}else await O(a);if(D(s.errors,"root"),I(s.errors)){x.state.next({errors:{}});try{await t(u,o)}catch(l){d=l}}else i&&await i({...s.errors},o),Ye(),setTimeout(Ye);if(x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:I(s.errors)&&!d,submitCount:s.submitCount+1,errors:s.errors}),d)throw d},Nt=(t,i={})=>{y(a,t)&&(A(i.defaultValue)?H(t,N(y(c,t))):(H(t,i.defaultValue),p(c,t,N(i.defaultValue))),i.keepTouched||D(s.touchedFields,t),i.keepDirty||(D(s.dirtyFields,t),s.isDirty=i.defaultValue?v(t,N(y(c,t))):v()),i.keepError||(D(s.errors,t),_.isValid&&Y()),x.state.next({...s}))},Qe=(t,i={})=>{const o=t?N(t):c,d=N(o),u=I(t),l=u?c:d;if(i.keepDefaultValues||(c=o),!i.keepValues){if(i.keepDirtyValues){const b=new Set([...h.mount,...Object.keys(de(c,n))]);for(const g of Array.from(b))y(s.dirtyFields,g)?p(l,g,y(n,g)):H(g,y(l,g))}else{if(Ue&&A(t))for(const b of h.mount){const g=y(a,b);if(g&&g._f){const C=Array.isArray(g._f.refs)?g._f.refs[0]:g._f.ref;if(Ve(C)){const E=C.closest("form");if(E){E.reset();break}}}}a={}}n=r.shouldUnregister?i.keepDefaultValues?N(c):{}:N(l),x.array.next({values:{...l}}),x.values.next({values:{...l}})}h={mount:i.keepDirtyValues?h.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!_.isValid||!!i.keepIsValid||!!i.keepDirtyValues,f.watch=!!r.shouldUnregister,x.state.next({submitCount:i.keepSubmitCount?s.submitCount:0,isDirty:u?!1:i.keepDirty?s.isDirty:!!(i.keepDefaultValues&&!ee(t,c)),isSubmitted:i.keepIsSubmitted?s.isSubmitted:!1,dirtyFields:u?{}:i.keepDirtyValues?i.keepDefaultValues&&n?de(c,n):s.dirtyFields:i.keepDefaultValues&&t?de(c,t):i.keepDirty?s.dirtyFields:{},touchedFields:i.keepTouched?s.touchedFields:{},errors:i.keepErrors?s.errors:{},isSubmitSuccessful:i.keepIsSubmitSuccessful?s.isSubmitSuccessful:!1,isSubmitting:!1})},Xe=(t,i)=>Qe(z(t)?t(n):t,i);return{control:{register:Be,unregister:Ee,getFieldState:ze,handleSubmit:Je,setError:$e,_executeSchema:te,_getWatch:k,_getDirty:v,_updateValid:Y,_removeUnmounted:xe,_updateFieldArray:m,_updateDisabledField:Ke,_getFieldArray:S,_reset:Qe,_resetDefaultValues:()=>z(r.defaultValues)&&r.defaultValues().then(t=>{Xe(t,r.resetOptions),x.state.next({isLoading:!1})}),_updateFormState:t=>{s={...s,...t}},_disableForm:Ht,_subjects:x,_proxyFormState:_,_setErrors:Q,get _fields(){return a},get _formValues(){return n},get _state(){return f},set _state(t){f=t},get _defaultValues(){return c},get _names(){return h},set _names(t){h=t},get _formState(){return s},set _formState(t){s=t},get _options(){return r},set _options(t){r={...r,...t}}},trigger:ue,register:Be,handleSubmit:Je,watch:Ot,setValue:H,getValues:qe,reset:Xe,resetField:Nt,clearErrors:Rt,unregister:Ee,setError:$e,setFocus:(t,i={})=>{const o=y(a,t),d=o&&o._f;if(d){const u=d.refs?d.refs[0]:d.ref;u.focus&&(u.focus(),i.shouldSelect&&z(u.select)&&u.select())}},getFieldState:ze}}function ur(e={}){const r=P.useRef(void 0),s=P.useRef(void 0),[a,c]=P.useState({isDirty:!1,isValidating:!1,isLoading:z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:z(e.defaultValues)?void 0:e.defaultValues});r.current||(r.current={...lr(e),formState:a});const n=r.current.control;return n._options=e,Qt({subject:n._subjects.state,next:f=>{Jt(f,n._proxyFormState,n._updateFormState)&&c({...n._formState})}}),P.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),P.useEffect(()=>{if(n._proxyFormState.isDirty){const f=n._getDirty();f!==a.isDirty&&n._subjects.state.next({isDirty:f})}},[n,a.isDirty]),P.useEffect(()=>{e.values&&!ee(e.values,s.current)?(n._reset(e.values,n._options.resetOptions),s.current=e.values,c(f=>({...f}))):n._resetDefaultValues()},[e.values,n]),P.useEffect(()=>{e.errors&&n._setErrors(e.errors)},[e.errors,n]),P.useEffect(()=>{n._state.mount||(n._updateValid(),n._state.mount=!0),n._state.watch&&(n._state.watch=!1,n._subjects.state.next({...n._formState})),n._removeUnmounted()}),P.useEffect(()=>{e.shouldUnregister&&n._subjects.values.next({values:n._getWatch()})},[e.shouldUnregister,n]),r.current.formState=Yt(a,n),r.current}const Ur={title:"Components/Checkbox/Tests",component:ne,parameters:{controls:{disable:!0},chromatic:{disableSnapshot:!0}},tags:["!autodocs","!a11y-test","test"]},me={render:function(){return q.jsx(ne,{"aria-label":"checkboxLabel","aria-labelledby":"checkboxLabelledby","aria-describedby":"checkboxDescribedby",hasError:!0})},play:async({canvasElement:e})=>{const s=Vt(e).getByRole("checkbox");w(s).toHaveAttribute("aria-label","checkboxLabel"),w(s).toHaveAttribute("aria-labelledby","checkboxLabelledby"),w(s).toHaveAttribute("aria-describedby","checkboxDescribedby"),w(s).toHaveAttribute("aria-invalid","true")}},ke={args:{onCheckedChange:He()},render:function({onCheckedChange:r}){return q.jsx(ne,{"aria-label":"checkbox",indeterminate:!0,onCheckedChange:r})},play:async({canvas:e,step:r,args:s})=>{const a=e.getByLabelText("checkbox");if(!(a instanceof HTMLInputElement))throw new Error("Expected Consent all cookies to be an HTMLInputElement");await r('Initial state"',async()=>{w(a).not.toBeChecked(),w(a).toHaveAttribute("aria-checked","mixed"),w(a.indeterminate,"Indeterminate check").toBe(!0)}),await r('Click the checkbox"',async()=>{await oe.click(a),w(a).toBeChecked(),w(a).toHaveAttribute("aria-checked","mixed"),w(a.indeterminate,"Indeterminate check").toBe(!0),w(s.onCheckedChange).toBeCalledWith(!0)}),await r('Click the checkbox"',async()=>{await oe.click(a),w(a).not.toBeChecked(),w(a).toHaveAttribute("aria-checked","mixed"),w(a.indeterminate,"Indeterminate check").toBe(!0),w(s.onCheckedChange).toBeCalledWith(!1)})}},pe={render:function(){return q.jsx(ne,{dataset:{foo:1,bar:"2",baz:!1},"aria-label":"checkbox"})},play:async({canvas:e})=>{const r=e.getByRole("checkbox");w(r).toHaveAttribute("data-foo","1"),w(r).toHaveAttribute("data-bar","2"),w(r).toHaveAttribute("data-baz","false")}},_e={render:function(){return q.jsx(Wt,{content:"This is a tooltip",trigger:"hover-and-touch",dataset:{testid:"tooltip"},children:q.jsx(ne,{"aria-label":"checkbox"})})},play:async({canvasElement:e,step:r})=>{const s=Vt(e),a=s.getByRole("checkbox");await r("hover trigger element",async()=>{await oe.hover(a)}),await r("tooltip should be shown",async()=>{await Ne(()=>{const c=s.getByTestId("tooltip");return w(c).toBeVisible()})}),await r("unhover trigger element",async()=>{await oe.unhover(a)}),await r("tooltip should be hidden",async()=>{await Ne(()=>{const c=s.queryByTestId("tooltip");return w(c).toBeNull()})})}},we={args:{onSubmit:He(),onSubmitFormData:He()},render:function(r){const s=ur(),a=(c,n)=>{var f,h;(f=r.onSubmit)==null||f.call(r,n),(h=r.onSubmitFormData)==null||h.call(r,c),s.reset()};return q.jsxs(et,{gap:"32",children:[q.jsx(et,{gap:"16",children:q.jsxs("label",{htmlFor:"privacy-checkbox",children:[q.jsx(ne,{id:"privacy-checkbox",...s.register("privacy")}),"I accept the Privacy Policy"]})}),q.jsx(jt,{onClick:s.handleSubmit(a),children:"Register"})]})},play:async({canvas:e,args:r})=>{await oe.click(e.getByLabelText("I accept the Privacy Policy")),await oe.click(e.getByRole("button",{name:"Register"})),await Ne(()=>w(r.onSubmitFormData).toBeCalledWith({privacy:!0}))}};var dt,ft,yt;me.parameters={...me.parameters,docs:{...(dt=me.parameters)==null?void 0:dt.docs,source:{originalSource:`{
2
- render: function Story() {
3
- return <Checkbox aria-label="checkboxLabel" aria-labelledby="checkboxLabelledby" aria-describedby="checkboxDescribedby" hasError />;
4
- },
5
- play: async ({
6
- canvasElement
7
- }) => {
8
- const canvas = within(canvasElement);
9
- const checkbox = canvas.getByRole('checkbox');
10
- expect(checkbox).toHaveAttribute('aria-label', 'checkboxLabel');
11
- expect(checkbox).toHaveAttribute('aria-labelledby', 'checkboxLabelledby');
12
- expect(checkbox).toHaveAttribute('aria-describedby', 'checkboxDescribedby');
13
- expect(checkbox).toHaveAttribute('aria-invalid', 'true');
14
- }
15
- }`,...(yt=(ft=me.parameters)==null?void 0:ft.docs)==null?void 0:yt.source}}};var ht,bt,gt;ke.parameters={...ke.parameters,docs:{...(ht=ke.parameters)==null?void 0:ht.docs,source:{originalSource:`{
16
- args: {
17
- onCheckedChange: fn()
18
- },
19
- render: function Story({
20
- onCheckedChange
21
- }) {
22
- return <Checkbox aria-label="checkbox" indeterminate onCheckedChange={onCheckedChange} />;
23
- },
24
- play: async ({
25
- canvas,
26
- step,
27
- args
28
- }) => {
29
- const checkbox = canvas.getByLabelText('checkbox');
30
- if (!(checkbox instanceof HTMLInputElement)) throw new Error('Expected Consent all cookies to be an HTMLInputElement');
31
- await step('Initial state"', async () => {
32
- expect(checkbox).not.toBeChecked();
33
- expect(checkbox).toHaveAttribute('aria-checked', 'mixed');
34
- expect(checkbox.indeterminate, 'Indeterminate check').toBe(true);
35
- });
36
- await step('Click the checkbox"', async () => {
37
- await userEvent.click(checkbox);
38
- expect(checkbox).toBeChecked();
39
- expect(checkbox).toHaveAttribute('aria-checked', 'mixed');
40
- expect(checkbox.indeterminate, 'Indeterminate check').toBe(true);
41
- expect(args.onCheckedChange).toBeCalledWith(true);
42
- });
43
- await step('Click the checkbox"', async () => {
44
- await userEvent.click(checkbox);
45
- expect(checkbox).not.toBeChecked();
46
- expect(checkbox).toHaveAttribute('aria-checked', 'mixed');
47
- expect(checkbox.indeterminate, 'Indeterminate check').toBe(true);
48
- expect(args.onCheckedChange).toBeCalledWith(false);
49
- });
50
- }
51
- }`,...(gt=(bt=ke.parameters)==null?void 0:bt.docs)==null?void 0:gt.source}}};var vt,xt,mt;pe.parameters={...pe.parameters,docs:{...(vt=pe.parameters)==null?void 0:vt.docs,source:{originalSource:`{
52
- render: function Story() {
53
- return <Checkbox dataset={{
54
- foo: 1,
55
- bar: '2',
56
- baz: false
57
- }} aria-label="checkbox" />;
58
- },
59
- play: async ({
60
- canvas
61
- }) => {
62
- const checkbox = canvas.getByRole('checkbox');
63
- expect(checkbox).toHaveAttribute('data-foo', '1');
64
- expect(checkbox).toHaveAttribute('data-bar', '2');
65
- expect(checkbox).toHaveAttribute('data-baz', 'false');
66
- }
67
- }`,...(mt=(xt=pe.parameters)==null?void 0:xt.docs)==null?void 0:mt.source}}};var kt,pt,_t;_e.parameters={..._e.parameters,docs:{...(kt=_e.parameters)==null?void 0:kt.docs,source:{originalSource:`{
68
- render: function Story() {
69
- return <Tooltip content="This is a tooltip" trigger="hover-and-touch" dataset={{
70
- testid: 'tooltip'
71
- }}>
72
- <Checkbox aria-label="checkbox" />
73
- </Tooltip>;
74
- },
75
- play: async ({
76
- canvasElement,
77
- step
78
- }) => {
79
- const canvas = within(canvasElement);
80
- const trigger = canvas.getByRole('checkbox');
81
- await step('hover trigger element', async () => {
82
- await userEvent.hover(trigger);
83
- });
84
- await step('tooltip should be shown', async () => {
85
- await waitFor(() => {
86
- const tooltip = canvas.getByTestId('tooltip');
87
- return expect(tooltip).toBeVisible();
88
- });
89
- });
90
- await step('unhover trigger element', async () => {
91
- await userEvent.unhover(trigger);
92
- });
93
- await step('tooltip should be hidden', async () => {
94
- await waitFor(() => {
95
- const tooltip = canvas.queryByTestId('tooltip');
96
- return expect(tooltip).toBeNull();
97
- });
98
- });
99
- }
100
- }`,...(_t=(pt=_e.parameters)==null?void 0:pt.docs)==null?void 0:_t.source}}};var wt,Ft,At;we.parameters={...we.parameters,docs:{...(wt=we.parameters)==null?void 0:wt.docs,source:{originalSource:`{
101
- args: {
102
- onSubmit: fn(),
103
- onSubmitFormData: fn()
104
- },
105
- render: function Story(args) {
106
- type FormValues = {
107
- privacy: boolean;
108
- };
109
- const form = useForm<FormValues>();
110
- const onSubmit = (_data, event) => {
111
- args.onSubmit?.(event);
112
- args.onSubmitFormData?.(_data);
113
- form.reset();
114
- };
115
- return <LayoutFlex gap="32">
116
- <LayoutFlex gap="16">
117
- <label htmlFor="privacy-checkbox">
118
- <Checkbox id="privacy-checkbox" {...form.register('privacy')} />I accept the
119
- Privacy Policy
120
- </label>
121
- </LayoutFlex>
122
- <Button onClick={form.handleSubmit(onSubmit)}>Register</Button>
123
- </LayoutFlex>;
124
- },
125
- play: async ({
126
- canvas,
127
- args
128
- }) => {
129
- await userEvent.click(canvas.getByLabelText('I accept the Privacy Policy'));
130
- await userEvent.click(canvas.getByRole('button', {
131
- name: 'Register'
132
- }));
133
- await waitFor(() => expect(args.onSubmitFormData).toBeCalledWith({
134
- privacy: true
135
- }));
136
- }
137
- }`,...(At=(Ft=we.parameters)==null?void 0:Ft.docs)==null?void 0:At.source}}};const Mr=["AriaAttributesAreSet","TestWithIndeterminateCheck","TestDataset","IntegrationWithDSTooltip","IntegrationWithReactHookForm"];export{me as AriaAttributesAreSet,_e as IntegrationWithDSTooltip,we as IntegrationWithReactHookForm,pe as TestDataset,ke as TestWithIndeterminateCheck,Mr as __namedExportsOrder,Ur as default};
@@ -1 +0,0 @@
1
- import{j as n}from"./jsx-runtime-BTJTZTIL.js";import{r as f}from"./index-Cb9e4tly.js";import{f as v}from"./filterHTMLAttributes-DYdLqcvH.js";import{m as y}from"./classNames-BUL1Zq7e.js";import{g}from"./index-DdzHuZ-Y.js";import{w as a}from"./componentNames-Y1T_IIlY.js";const b="FieldButton__ZIYKf",h={FieldButton:b},l=f.forwardRef(function({svg:o,assistiveText:r,onClick:e,dataset:u,...i},m){const d=y(h,a.FieldButton),p=t=>{t.stopPropagation(),e==null||e(t)},c={...v(i),...g(u,{preplyDsComponent:a.FieldButton}),className:d.join(" "),title:r,onClick:p,ref:m};return n.jsx("button",{...c,type:"button",children:n.jsx(o,{"aria-hidden":"true",focusable:"false"})})});try{l.displayName="FieldButton",l.__docgenInfo={description:"",displayName:"FieldButton",props:{svg:{defaultValue:null,description:"",name:"svg",required:!0,type:{name:"enum",value:[{value:"ComponentClass<SVGAttributes<SVGElement>, any>"},{value:"FunctionComponent<SVGAttributes<SVGElement>>"}]}},assistiveText:{defaultValue:null,description:"",name:"assistiveText",required:!0,type:{name:"string"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"MouseEventHandler<Element>"}},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: HTMLButtonElement | null) => void"},{value:"RefObject<HTMLButtonElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}export{l as F};
@@ -1 +0,0 @@
1
- import{j as i}from"./jsx-runtime-BTJTZTIL.js";import{F as m}from"./LibraryExplore-oBYfEgnm.js";import{F as s}from"./FieldButton-CCz9-7Bu.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./filterHTMLAttributes-DYdLqcvH.js";import"./classNames-BUL1Zq7e.js";import"./index-DdzHuZ-Y.js";import"./componentNames-Y1T_IIlY.js";const v={title:"components/FieldButton",component:s},o=()=>i.jsx(s,{svg:m,assistiveText:"Lorem Ipsum",onClick:()=>{}});o.storyName="FieldButton";var t,e,r;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:'() => <FieldButton svg={LibSvg} assistiveText="Lorem Ipsum" onClick={() => undefined} />',...(r=(e=o.parameters)==null?void 0:e.docs)==null?void 0:r.source}}};const B=["Base"];export{o as Base,B as __namedExportsOrder,v as default};
@@ -1,2 +0,0 @@
1
- import{j as N}from"./jsx-runtime-BTJTZTIL.js";import{r as x}from"./index-Cb9e4tly.js";import{g as b,a as C}from"./text-accent-DZDDtpIt.js";import{g as L}from"./text-centered-CznToR0o.js";import{f as T}from"./filterHTMLAttributes-DYdLqcvH.js";import{m as k,s as q,b as E}from"./classNames-BUL1Zq7e.js";import{w as i}from"./componentNames-Y1T_IIlY.js";import{g as V}from"./index-DdzHuZ-Y.js";const U="Heading__Erkb1",I={Heading:U,"Heading--level-h1-normal":"Heading--level-h1-normal__t2Kqc","Heading--level-h1-large":"Heading--level-h1-large__2-ENi","Heading--level-h2-normal":"Heading--level-h2-normal__VzetR","Heading--level-h2-large":"Heading--level-h2-large__NxpiQ","Heading--level-h3-normal":"Heading--level-h3-normal__vCnMS","Heading--level-h3-large":"Heading--level-h3-large__Vs-gN","Heading--level-h4-normal":"Heading--level-h4-normal__O6PPx","Heading--level-h4-large":"Heading--level-h4-large__fNZXP","Heading--level-h5-normal":"Heading--level-h5-normal__IMKhU","Heading--level-h5-large":"Heading--level-h5-large__G40j-","Heading--narrow-l--level-h1-normal":"Heading--narrow-l--level-h1-normal__1qZxP","Heading--narrow-l--level-h1-large":"Heading--narrow-l--level-h1-large__vhit5","Heading--narrow-l--level-h2-normal":"Heading--narrow-l--level-h2-normal__a2FJF","Heading--narrow-l--level-h2-large":"Heading--narrow-l--level-h2-large__qFLdx","Heading--narrow-l--level-h3-normal":"Heading--narrow-l--level-h3-normal__D2GNa","Heading--narrow-l--level-h3-large":"Heading--narrow-l--level-h3-large__xeciI","Heading--narrow-l--level-h4-normal":"Heading--narrow-l--level-h4-normal__G7nUl","Heading--narrow-l--level-h4-large":"Heading--narrow-l--level-h4-large__cL6he","Heading--narrow-l--level-h5-normal":"Heading--narrow-l--level-h5-normal__UNw3s","Heading--narrow-l--level-h5-large":"Heading--narrow-l--level-h5-large__o76Fo","Heading--medium-s--level-h1-normal":"Heading--medium-s--level-h1-normal__IGwXF","Heading--medium-s--level-h1-large":"Heading--medium-s--level-h1-large__y2QjY","Heading--medium-s--level-h2-normal":"Heading--medium-s--level-h2-normal__T5nXA","Heading--medium-s--level-h2-large":"Heading--medium-s--level-h2-large__FbGid","Heading--medium-s--level-h3-normal":"Heading--medium-s--level-h3-normal__dcenB","Heading--medium-s--level-h3-large":"Heading--medium-s--level-h3-large__AR-Fa","Heading--medium-s--level-h4-normal":"Heading--medium-s--level-h4-normal__-NI8n","Heading--medium-s--level-h4-large":"Heading--medium-s--level-h4-large__AE93N","Heading--medium-s--level-h5-normal":"Heading--medium-s--level-h5-normal__ZJEJ-","Heading--medium-s--level-h5-large":"Heading--medium-s--level-h5-large__GJ8sd","Heading--medium-l--level-h1-normal":"Heading--medium-l--level-h1-normal__UG7oa","Heading--medium-l--level-h1-large":"Heading--medium-l--level-h1-large__hJgJ9","Heading--medium-l--level-h2-normal":"Heading--medium-l--level-h2-normal__sf7Py","Heading--medium-l--level-h2-large":"Heading--medium-l--level-h2-large__iYIZ9","Heading--medium-l--level-h3-normal":"Heading--medium-l--level-h3-normal__32eny","Heading--medium-l--level-h3-large":"Heading--medium-l--level-h3-large__kuCwB","Heading--medium-l--level-h4-normal":"Heading--medium-l--level-h4-normal__TE1Eh","Heading--medium-l--level-h4-large":"Heading--medium-l--level-h4-large__zZfdz","Heading--medium-l--level-h5-normal":"Heading--medium-l--level-h5-normal__7HYFE","Heading--medium-l--level-h5-large":"Heading--medium-l--level-h5-large__NkY03","Heading--wide-s--level-h1-normal":"Heading--wide-s--level-h1-normal__kqRcj","Heading--wide-s--level-h1-large":"Heading--wide-s--level-h1-large__yzHzL","Heading--wide-s--level-h2-normal":"Heading--wide-s--level-h2-normal__b9MXd","Heading--wide-s--level-h2-large":"Heading--wide-s--level-h2-large__q0kXc","Heading--wide-s--level-h3-normal":"Heading--wide-s--level-h3-normal__Ziuj8","Heading--wide-s--level-h3-large":"Heading--wide-s--level-h3-large__Q4111","Heading--wide-s--level-h4-normal":"Heading--wide-s--level-h4-normal__TxCtT","Heading--wide-s--level-h4-large":"Heading--wide-s--level-h4-large__cQQZf","Heading--wide-s--level-h5-normal":"Heading--wide-s--level-h5-normal__ZSrD7","Heading--wide-s--level-h5-large":"Heading--wide-s--level-h5-large__ZuCIn","Heading--wide-l--level-h1-normal":"Heading--wide-l--level-h1-normal__MavHI","Heading--wide-l--level-h1-large":"Heading--wide-l--level-h1-large__rE1tu","Heading--wide-l--level-h2-normal":"Heading--wide-l--level-h2-normal__YUYcX","Heading--wide-l--level-h2-large":"Heading--wide-l--level-h2-large__v5ssH","Heading--wide-l--level-h3-normal":"Heading--wide-l--level-h3-normal__kQBs2","Heading--wide-l--level-h3-large":"Heading--wide-l--level-h3-large__pU-wX","Heading--wide-l--level-h4-normal":"Heading--wide-l--level-h4-normal__WvWGX","Heading--wide-l--level-h4-large":"Heading--wide-l--level-h4-large__TeFQp","Heading--wide-l--level-h5-normal":"Heading--wide-l--level-h5-normal__1yKda","Heading--wide-l--level-h5-large":"Heading--wide-l--level-h5-large__Uadr4","Heading--variant-massive":"Heading--variant-massive__JFGji","Heading--variant-huge":"Heading--variant-huge__47FQz","Heading--variant-extraLarge":"Heading--variant-extraLarge__xRrqx","Heading--variant-large":"Heading--variant-large__wNK6S","Heading--variant-medium":"Heading--variant-medium__bCNZ-","Heading--variant-small":"Heading--variant-small__308Nb","Heading--narrow-l--variant-massive":"Heading--narrow-l--variant-massive__yg4AJ","Heading--narrow-l--variant-huge":"Heading--narrow-l--variant-huge__y9b4N","Heading--narrow-l--variant-extraLarge":"Heading--narrow-l--variant-extraLarge__XgyJu","Heading--narrow-l--variant-large":"Heading--narrow-l--variant-large__tzTo6","Heading--narrow-l--variant-medium":"Heading--narrow-l--variant-medium__iP3sG","Heading--narrow-l--variant-small":"Heading--narrow-l--variant-small__KeKjn","Heading--medium-s--variant-massive":"Heading--medium-s--variant-massive__L-b4J","Heading--medium-s--variant-huge":"Heading--medium-s--variant-huge__2o5EA","Heading--medium-s--variant-extraLarge":"Heading--medium-s--variant-extraLarge__eHmYu","Heading--medium-s--variant-large":"Heading--medium-s--variant-large__AI3KL","Heading--medium-s--variant-medium":"Heading--medium-s--variant-medium__t5dUK","Heading--medium-s--variant-small":"Heading--medium-s--variant-small__fCdNa","Heading--medium-l--variant-massive":"Heading--medium-l--variant-massive__jI3FW","Heading--medium-l--variant-huge":"Heading--medium-l--variant-huge__k0UpW","Heading--medium-l--variant-extraLarge":"Heading--medium-l--variant-extraLarge__yfai7","Heading--medium-l--variant-large":"Heading--medium-l--variant-large__65QTG","Heading--medium-l--variant-medium":"Heading--medium-l--variant-medium__UvxHB","Heading--medium-l--variant-small":"Heading--medium-l--variant-small__QI2p2","Heading--wide-s--variant-massive":"Heading--wide-s--variant-massive__B1S84","Heading--wide-s--variant-huge":"Heading--wide-s--variant-huge__KvYrn","Heading--wide-s--variant-extraLarge":"Heading--wide-s--variant-extraLarge__TJs8l","Heading--wide-s--variant-large":"Heading--wide-s--variant-large__Wcc0E","Heading--wide-s--variant-medium":"Heading--wide-s--variant-medium__mONpk","Heading--wide-s--variant-small":"Heading--wide-s--variant-small__oRKSN","Heading--wide-l--variant-massive":"Heading--wide-l--variant-massive__twgw-","Heading--wide-l--variant-huge":"Heading--wide-l--variant-huge__DBuNF","Heading--wide-l--variant-extraLarge":"Heading--wide-l--variant-extraLarge__H9nEI","Heading--wide-l--variant-large":"Heading--wide-l--variant-large__kJarT","Heading--wide-l--variant-medium":"Heading--wide-l--variant-medium__VN27E","Heading--wide-l--variant-small":"Heading--wide-l--variant-small__Skmxk"},r=x.forwardRef(function({children:g,variant:a,accent:l,level:e,large:v=!1,tag:m,color:n,centered:u,dataset:t,id:s,...o},H){const _=m||e||"h1",h=k(I,i.Heading,a?q("variant",a):E(`level-${e}-large`,`level-${e}-normal`,v)),w=L(u),c=b(!(l?void 0:n),l),p=C(n),f=["preply-ds-heading",...h,...w,...c,...p],y={...T(o),className:f.join(" "),...V(t,{preplyDsComponent:i.Heading}),id:s,ref:H};return N.jsx(_,{...y,children:g})});try{r.displayName="Heading",r.__docgenInfo={description:"",displayName:"Heading",props:{strong:{defaultValue:null,description:"@deprecated The appropriate `font-weight` is automatically set",name:"strong",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},accent:{defaultValue:null,description:"",name:"accent",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"critical"'},{value:'"inverted"'},{value:'"disabled"'},{value:'"selected"'},{value:'"accent"'},{value:'"accentDark"'},{value:'"placeholder"'},{value:'"positive"'},{value:'"info"'},{value:'"warning"'},{value:'"branded"'},{value:'"error"'}]}},color:{defaultValue:null,description:"@deprecated Use `accent` instead.",name:"color",required:!1,type:{name:"enum",value:[{value:'"white"'},{value:'"gray-100"'},{value:'"gray-200"'},{value:'"gray-300"'},{value:'"gray-400"'},{value:'"gray-500"'},{value:'"gray-600"'},{value:'"teal-100"'},{value:'"teal-200"'},{value:'"teal-300"'},{value:'"teal-400"'},{value:'"teal-500"'},{value:'"green-100"'},{value:'"green-200"'},{value:'"green-300"'},{value:'"green-400"'},{value:'"green-500"'},{value:'"yellow-100"'},{value:'"yellow-200"'},{value:'"yellow-300"'},{value:'"yellow-400"'},{value:'"yellow-500"'},{value:'"red-100"'},{value:'"red-200"'},{value:'"red-300"'},{value:'"red-400"'},{value:'"red-500"'},{value:'"blue-100"'},{value:'"blue-200"'},{value:'"blue-300"'},{value:'"blue-400"'},{value:'"blue-500"'},{value:'"magenta-100"'},{value:'"magenta-200"'},{value:'"magenta-300"'},{value:'"magenta-400"'},{value:'"magenta-500"'}]}},centered:{defaultValue:null,description:"",name:"centered",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"}]}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"enum",value:[{value:"string"}]}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"large"'},{value:'"medium"'},{value:'"small"'},{value:'"massive"'},{value:'"huge"'},{value:'"extraLarge"'},{value:"ResponsiveProp<HeadingVariant>"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"p"'},{value:'"div"'},{value:'"span"'},{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'}]}},level:{defaultValue:null,description:"@deprecated Use `variant` instead\n@deprecated Use `variant` instead",name:"level",required:!1,type:{name:"enum",value:[{value:'"h1"'},{value:'"h2"'},{value:'"h3"'},{value:'"h4"'},{value:'"h5"'}]}},large:{defaultValue:{value:"false"},description:`@deprecated There is no large version in Tokyo UI.
2
- @deprecated There is no large version in Tokyo UI.`,name:"large",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},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: HTMLHeadingElement | null) => void"},{value:"RefObject<HTMLHeadingElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}export{r as H};
@@ -1 +0,0 @@
1
- import{j as b}from"./jsx-runtime-BTJTZTIL.js";import{r as w}from"./index-Cb9e4tly.js";import{g as f,a as N}from"./text-accent-CZD2Hmtq.js";import{f as k}from"./filterHTMLAttributes-UOns5Q7s.js";import{r as z}from"./render-icon-Du0nasoi.js";import{m as _,s as h,b as P}from"./classNames-BUL1Zq7e.js";import{I as D}from"./defaults-B1rzzf6M.js";import{w as c}from"./componentNames-Y1T_IIlY.js";import{g as K}from"./index-DdzHuZ-Y.js";const M="ExpColor__S0PGo",S={ExpColor:M,"ExpColor--exp-color-grey-0":"ExpColor--exp-color-grey-0__DKudt","ExpColor--exp-color-grey-50":"ExpColor--exp-color-grey-50__lo7OH","ExpColor--exp-color-grey-100":"ExpColor--exp-color-grey-100__EtBtx","ExpColor--exp-color-grey-200":"ExpColor--exp-color-grey-200__KHF8X","ExpColor--exp-color-grey-300":"ExpColor--exp-color-grey-300__0u63D","ExpColor--exp-color-grey-400":"ExpColor--exp-color-grey-400__WaJzi","ExpColor--exp-color-grey-500":"ExpColor--exp-color-grey-500__1RSHd","ExpColor--exp-color-grey-600":"ExpColor--exp-color-grey-600__95yQU","ExpColor--exp-color-grey-700":"ExpColor--exp-color-grey-700__SSayo","ExpColor--exp-color-grey-800":"ExpColor--exp-color-grey-800__15Bou","ExpColor--exp-color-grey-900":"ExpColor--exp-color-grey-900__BKw9C","ExpColor--exp-color-pink-50":"ExpColor--exp-color-pink-50__SZLGx","ExpColor--exp-color-pink-100":"ExpColor--exp-color-pink-100__J0yFM","ExpColor--exp-color-pink-200":"ExpColor--exp-color-pink-200__dQ0mZ","ExpColor--exp-color-pink-300":"ExpColor--exp-color-pink-300__WYBWX","ExpColor--exp-color-pink-400":"ExpColor--exp-color-pink-400__7Jazs","ExpColor--exp-color-pink-500":"ExpColor--exp-color-pink-500__4X2bs","ExpColor--exp-color-pink-600":"ExpColor--exp-color-pink-600__Ph3VO","ExpColor--exp-color-pink-700":"ExpColor--exp-color-pink-700__nLJd1","ExpColor--exp-color-pink-800":"ExpColor--exp-color-pink-800__-fD0l","ExpColor--exp-color-yellow-50":"ExpColor--exp-color-yellow-50__EYcxx","ExpColor--exp-color-yellow-100":"ExpColor--exp-color-yellow-100__8n-ZP","ExpColor--exp-color-yellow-200":"ExpColor--exp-color-yellow-200__eOMK3","ExpColor--exp-color-yellow-300":"ExpColor--exp-color-yellow-300__JbUZg","ExpColor--exp-color-yellow-400":"ExpColor--exp-color-yellow-400__7NrMJ","ExpColor--exp-color-yellow-500":"ExpColor--exp-color-yellow-500__a3k-Q","ExpColor--exp-color-yellow-600":"ExpColor--exp-color-yellow-600__xBk-i","ExpColor--exp-color-yellow-700":"ExpColor--exp-color-yellow-700__xw4Kd","ExpColor--exp-color-yellow-800":"ExpColor--exp-color-yellow-800__vZmXG","ExpColor--exp-color-blue-50":"ExpColor--exp-color-blue-50__s2FXt","ExpColor--exp-color-blue-100":"ExpColor--exp-color-blue-100__TzrMW","ExpColor--exp-color-blue-200":"ExpColor--exp-color-blue-200__sVncU","ExpColor--exp-color-blue-300":"ExpColor--exp-color-blue-300__ooY38","ExpColor--exp-color-blue-400":"ExpColor--exp-color-blue-400__GGuoL","ExpColor--exp-color-blue-500":"ExpColor--exp-color-blue-500__N2NW9","ExpColor--exp-color-blue-600":"ExpColor--exp-color-blue-600__q-8xU","ExpColor--exp-color-blue-700":"ExpColor--exp-color-blue-700__5k-Gw","ExpColor--exp-color-blue-800":"ExpColor--exp-color-blue-800__MCpJf","ExpColor--exp-color-teal-50":"ExpColor--exp-color-teal-50__P9v3-","ExpColor--exp-color-teal-100":"ExpColor--exp-color-teal-100__Y8xbj","ExpColor--exp-color-teal-200":"ExpColor--exp-color-teal-200__yzxAu","ExpColor--exp-color-teal-300":"ExpColor--exp-color-teal-300__CC-oK","ExpColor--exp-color-teal-400":"ExpColor--exp-color-teal-400__fBHUW","ExpColor--exp-color-teal-500":"ExpColor--exp-color-teal-500__qt3Ny","ExpColor--exp-color-teal-600":"ExpColor--exp-color-teal-600__5EF-y","ExpColor--exp-color-teal-700":"ExpColor--exp-color-teal-700__o0qGK","ExpColor--exp-color-teal-800":"ExpColor--exp-color-teal-800__dntGK","ExpColor--exp-color-red-50":"ExpColor--exp-color-red-50__QFm4H","ExpColor--exp-color-red-100":"ExpColor--exp-color-red-100__gQ36l","ExpColor--exp-color-red-200":"ExpColor--exp-color-red-200__N7c7P","ExpColor--exp-color-red-300":"ExpColor--exp-color-red-300__uhkUo","ExpColor--exp-color-red-400":"ExpColor--exp-color-red-400__cNgdd","ExpColor--exp-color-red-500":"ExpColor--exp-color-red-500__VMSdk","ExpColor--exp-color-red-600":"ExpColor--exp-color-red-600__In2gH","ExpColor--exp-color-red-700":"ExpColor--exp-color-red-700__DPnKE","ExpColor--exp-color-red-800":"ExpColor--exp-color-red-800__MkRFA"},U="ExpColor",F=r=>_(S,U,[h("exp-color",r)]),G="Icon__jDdMD",H={Icon:G,"Icon--size-2xs":"Icon--size-2xs__3r954","Icon--size-xs":"Icon--size-xs__Fcq73","Icon--size-s":"Icon--size-s__bQoUv","Icon--size-m":"Icon--size-m__7Z05l","Icon--size-l":"Icon--size-l__2o-6h","Icon--size-16":"Icon--size-16__P1SXI","Icon--size-24":"Icon--size-24__vnVQ0","Icon--size-32":"Icon--size-32__gHIna","Icon--size-48":"Icon--size-48__0PUAE"},v=w.forwardRef(function({svg:e,size:o=D,accent:l,expColor:C,color:E,label:p,dataset:s,...n},a){const x=!Number.isNaN(Number(o)),t=x?{width:`${o}px`,height:`${o}px`}:{},i=_(H,c.Icon,[P(`size-${o}`,void 0,!x)]),y=l?void 0:E,m=f(!1,l),d=N(y),u=l?[]:F(C),g=[...i,...m,...d,...u],I={...k(n),className:g.join(" "),...K(s,{preplyDsComponent:c.Icon}),ref:a};if(!e)throw new Error("Icon prop svg is mandatory");return b.jsx("span",{...I,role:"img",style:t,"aria-hidden":!p,"aria-label":p,children:z(e,{"aria-hidden":"true",focusable:"false"})})});v.__docgenInfo={description:"",methods:[],displayName:"Icon",props:{size:{defaultValue:{value:"'s'",computed:!1},required:!1}}};export{v as I};
@@ -1,8 +0,0 @@
1
- import{j as b}from"./jsx-runtime-BTJTZTIL.js";import{r as w}from"./index-Cb9e4tly.js";import{g as I,a as k}from"./text-accent-DZDDtpIt.js";import{f as h}from"./filterHTMLAttributes-DYdLqcvH.js";import{r as N}from"./render-icon-BT0Aq7PA.js";import{m as n,s as z,b as V}from"./classNames-BUL1Zq7e.js";import{w as u}from"./componentNames-Y1T_IIlY.js";import{g as T}from"./index-DdzHuZ-Y.js";import{I as S}from"./defaults-B1rzzf6M.js";const P="Icon__EP3Vh",U={Icon:P,"Icon--size-2xs":"Icon--size-2xs__yN10Y","Icon--size-xs":"Icon--size-xs__6SXZ7","Icon--size-s":"Icon--size-s__NLRBu","Icon--size-m":"Icon--size-m__F6CqX","Icon--size-l":"Icon--size-l__aSKIx","Icon--size-16":"Icon--size-16__P716Z","Icon--size-24":"Icon--size-24__uOdtd","Icon--size-32":"Icon--size-32__zP8We","Icon--size-48":"Icon--size-48__-KHYK"},q="ExpColor__fSHBe",R={ExpColor:q,"ExpColor--exp-color-grey-0":"ExpColor--exp-color-grey-0__IQ8rz","ExpColor--exp-color-grey-50":"ExpColor--exp-color-grey-50__4wU8k","ExpColor--exp-color-grey-100":"ExpColor--exp-color-grey-100__idyQR","ExpColor--exp-color-grey-200":"ExpColor--exp-color-grey-200__bSfXM","ExpColor--exp-color-grey-300":"ExpColor--exp-color-grey-300__TAgB4","ExpColor--exp-color-grey-400":"ExpColor--exp-color-grey-400__8AFVk","ExpColor--exp-color-grey-500":"ExpColor--exp-color-grey-500__fFByn","ExpColor--exp-color-grey-600":"ExpColor--exp-color-grey-600__gRj6N","ExpColor--exp-color-grey-700":"ExpColor--exp-color-grey-700__3iGwa","ExpColor--exp-color-grey-800":"ExpColor--exp-color-grey-800__on7RX","ExpColor--exp-color-grey-900":"ExpColor--exp-color-grey-900__9T1OC","ExpColor--exp-color-pink-50":"ExpColor--exp-color-pink-50__3o0cC","ExpColor--exp-color-pink-100":"ExpColor--exp-color-pink-100__yBJxi","ExpColor--exp-color-pink-200":"ExpColor--exp-color-pink-200__Zff-J","ExpColor--exp-color-pink-300":"ExpColor--exp-color-pink-300__wWr90","ExpColor--exp-color-pink-400":"ExpColor--exp-color-pink-400__-C3Dw","ExpColor--exp-color-pink-500":"ExpColor--exp-color-pink-500__Kpw6U","ExpColor--exp-color-pink-600":"ExpColor--exp-color-pink-600__g4tqI","ExpColor--exp-color-pink-700":"ExpColor--exp-color-pink-700__5lL8W","ExpColor--exp-color-pink-800":"ExpColor--exp-color-pink-800__JdCoO","ExpColor--exp-color-yellow-50":"ExpColor--exp-color-yellow-50__x4D1V","ExpColor--exp-color-yellow-100":"ExpColor--exp-color-yellow-100__Mp3-h","ExpColor--exp-color-yellow-200":"ExpColor--exp-color-yellow-200__dr309","ExpColor--exp-color-yellow-300":"ExpColor--exp-color-yellow-300__4eqgg","ExpColor--exp-color-yellow-400":"ExpColor--exp-color-yellow-400__7KEax","ExpColor--exp-color-yellow-500":"ExpColor--exp-color-yellow-500__YFTaH","ExpColor--exp-color-yellow-600":"ExpColor--exp-color-yellow-600__uioue","ExpColor--exp-color-yellow-700":"ExpColor--exp-color-yellow-700__APgN0","ExpColor--exp-color-yellow-800":"ExpColor--exp-color-yellow-800__iqZ5l","ExpColor--exp-color-blue-50":"ExpColor--exp-color-blue-50__9YSjB","ExpColor--exp-color-blue-100":"ExpColor--exp-color-blue-100__msV5Z","ExpColor--exp-color-blue-200":"ExpColor--exp-color-blue-200__0-B47","ExpColor--exp-color-blue-300":"ExpColor--exp-color-blue-300__kBuCR","ExpColor--exp-color-blue-400":"ExpColor--exp-color-blue-400__rug3Y","ExpColor--exp-color-blue-500":"ExpColor--exp-color-blue-500__1zhad","ExpColor--exp-color-blue-600":"ExpColor--exp-color-blue-600__INDau","ExpColor--exp-color-blue-700":"ExpColor--exp-color-blue-700__nKtQ-","ExpColor--exp-color-blue-800":"ExpColor--exp-color-blue-800__AWAr2","ExpColor--exp-color-teal-50":"ExpColor--exp-color-teal-50__7QmhW","ExpColor--exp-color-teal-100":"ExpColor--exp-color-teal-100__YLRdY","ExpColor--exp-color-teal-200":"ExpColor--exp-color-teal-200__aUMwT","ExpColor--exp-color-teal-300":"ExpColor--exp-color-teal-300__wI000","ExpColor--exp-color-teal-400":"ExpColor--exp-color-teal-400__uVmEI","ExpColor--exp-color-teal-500":"ExpColor--exp-color-teal-500__HM2LK","ExpColor--exp-color-teal-600":"ExpColor--exp-color-teal-600__0PlFD","ExpColor--exp-color-teal-700":"ExpColor--exp-color-teal-700__FVY4B","ExpColor--exp-color-teal-800":"ExpColor--exp-color-teal-800__2dQ3c","ExpColor--exp-color-red-50":"ExpColor--exp-color-red-50__k0fHb","ExpColor--exp-color-red-100":"ExpColor--exp-color-red-100__PuJbY","ExpColor--exp-color-red-200":"ExpColor--exp-color-red-200__cumh2","ExpColor--exp-color-red-300":"ExpColor--exp-color-red-300__dUiEM","ExpColor--exp-color-red-400":"ExpColor--exp-color-red-400__DBCU8","ExpColor--exp-color-red-500":"ExpColor--exp-color-red-500__lIF6t","ExpColor--exp-color-red-600":"ExpColor--exp-color-red-600__NNabI","ExpColor--exp-color-red-700":"ExpColor--exp-color-red-700__9Tz3v","ExpColor--exp-color-red-800":"ExpColor--exp-color-red-800__HCek3"},A="ExpColor",D=o=>n(R,A,[z("exp-color",o)]),x=w.forwardRef(function({svg:r,size:e=S,accent:l,expColor:c,color:t,label:a,dataset:s,...i},v){const p=!Number.isNaN(Number(e)),C=p?{width:`${e}px`,height:`${e}px`}:{},_=n(U,u.Icon,[V(`size-${e}`,void 0,!p)]),E=l?void 0:t,d=I(!1,l),y=k(E),m=l?[]:D(c),g=[..._,...d,...y,...m],f={...h(i),className:g.join(" "),...T(s,{preplyDsComponent:u.Icon}),ref:v};if(!r)throw new Error("Icon prop svg is mandatory");return b.jsx("span",{...f,role:"img",style:C,"aria-hidden":!a,"aria-label":a,children:N(r,{"aria-hidden":"true",focusable:"false"})})});try{x.displayName="Icon",x.__docgenInfo={description:"",displayName:"Icon",props:{svg:{defaultValue:null,description:`The SVG icon to render.
2
- @example import TokyoUINotesWithPad from '@preply/ds-media-icons/dist/24/TokyoUINotesWithPad.svg';
3
-
4
- <Icon svg={TokyoUINotesWithPad} />
5
- @example <caption>Using as react server component</caption>
6
- import TokyoUINotesWithPad from '@preply/ds-media-icons/dist/24/TokyoUINotesWithPad.svg';
7
-
8
- <Icon svg={<TokyoUINotesWithPad />} />`,name:"svg",required:!0,type:{name:"enum",value:[{value:"ComponentClass<SVGAttributes<SVGElement>, any>"},{value:"FunctionComponent<SVGAttributes<SVGElement>>"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},size:{defaultValue:{value:"s"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"s"'},{value:'"m"'},{value:'"l"'},{value:'"2xs"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:'"16"'}]}},accent:{defaultValue:null,description:"",name:"accent",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"critical"'},{value:'"inverted"'},{value:'"disabled"'},{value:'"selected"'},{value:'"accent"'},{value:'"accentDark"'},{value:'"placeholder"'},{value:'"positive"'},{value:'"info"'},{value:'"warning"'},{value:'"branded"'},{value:'"error"'}]}},expColor:{defaultValue:null,description:"If passed along with `accent`, `accent` takes precedence.",name:"expColor",required:!1,type:{name:"enum",value:[{value:'"teal-100"'},{value:'"teal-200"'},{value:'"teal-300"'},{value:'"teal-400"'},{value:'"teal-500"'},{value:'"yellow-100"'},{value:'"yellow-200"'},{value:'"yellow-300"'},{value:'"yellow-400"'},{value:'"yellow-500"'},{value:'"red-100"'},{value:'"red-200"'},{value:'"red-300"'},{value:'"red-400"'},{value:'"red-500"'},{value:'"blue-100"'},{value:'"blue-200"'},{value:'"blue-300"'},{value:'"blue-400"'},{value:'"blue-500"'},{value:'"grey-0"'},{value:'"grey-50"'},{value:'"grey-100"'},{value:'"grey-200"'},{value:'"grey-300"'},{value:'"grey-400"'},{value:'"grey-500"'},{value:'"grey-600"'},{value:'"grey-700"'},{value:'"grey-800"'},{value:'"grey-900"'},{value:'"pink-50"'},{value:'"pink-100"'},{value:'"pink-200"'},{value:'"pink-300"'},{value:'"pink-400"'},{value:'"pink-500"'},{value:'"pink-600"'},{value:'"pink-700"'},{value:'"pink-800"'},{value:'"yellow-50"'},{value:'"yellow-600"'},{value:'"yellow-700"'},{value:'"yellow-800"'},{value:'"blue-50"'},{value:'"blue-600"'},{value:'"blue-700"'},{value:'"blue-800"'},{value:'"teal-50"'},{value:'"teal-600"'},{value:'"teal-700"'},{value:'"teal-800"'},{value:'"red-50"'},{value:'"red-600"'},{value:'"red-700"'},{value:'"red-800"'}]}},color:{defaultValue:null,description:"@deprecated Use accent instead.",name:"color",required:!1,type:{name:"enum",value:[{value:'"white"'},{value:'"gray-100"'},{value:'"gray-200"'},{value:'"gray-300"'},{value:'"gray-400"'},{value:'"gray-500"'},{value:'"gray-600"'},{value:'"teal-100"'},{value:'"teal-200"'},{value:'"teal-300"'},{value:'"teal-400"'},{value:'"teal-500"'},{value:'"green-100"'},{value:'"green-200"'},{value:'"green-300"'},{value:'"green-400"'},{value:'"green-500"'},{value:'"yellow-100"'},{value:'"yellow-200"'},{value:'"yellow-300"'},{value:'"yellow-400"'},{value:'"yellow-500"'},{value:'"red-100"'},{value:'"red-200"'},{value:'"red-300"'},{value:'"red-400"'},{value:'"red-500"'},{value:'"blue-100"'},{value:'"blue-200"'},{value:'"blue-300"'},{value:'"blue-400"'},{value:'"blue-500"'},{value:'"magenta-100"'},{value:'"magenta-200"'},{value:'"magenta-300"'},{value:'"magenta-400"'},{value:'"magenta-500"'}]}},label:{defaultValue:null,description:"If using the icon without any adjacent descriptive text, use this prop to\nprovide an `aria-label` for assistive technologies.",name:"label",required:!1,type:{name:"enum",value:[{value:"string"}]}},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{}export{x as I};
@@ -1,8 +0,0 @@
1
- import{j as o}from"./jsx-runtime-BTJTZTIL.js";import{r as m}from"./index-Cb9e4tly.js";import{r as d}from"./render-icon-BT0Aq7PA.js";import{B as v}from"./ButtonBase-D0ZIVzRq.js";import{w as p}from"./componentNames-Y1T_IIlY.js";import{B as c,a as f}from"./defaults-B1rzzf6M.js";const e=m.forwardRef(function({variant:l=f,size:n=c,url:t,a11yLabel:u,svg:r,...s},i){return o.jsx(v,{...s,ref:i,isIconButton:!0,variant:l,size:n,url:t,a11yLabel:u,preplyDsComponent:p.IconButton,children:d(r,{"aria-hidden":"true",focusable:"false"})})});try{e.displayName="IconButton",e.__docgenInfo={description:"",displayName:"IconButton",props:{variant:{defaultValue:{value:"primary"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"quaternary"'},{value:'"ghost"'},{value:'"plain"'},{value:'"dangerous"'},{value:'"critical"'},{value:'"onColor"'},{value:'"classroom"'},{value:'"primaryB2b"'},{value:'"primaryTutor"'},{value:'"inverted"'},{value:'"newFeature"'},{value:'"ai"'}]}},size:{defaultValue:{value:"s"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"s"'},{value:'"m"'},{value:'"l"'},{value:'"xl"'},{value:'"large"'},{value:'"medium"'},{value:'"small"'},{value:"ResponsiveProp<ButtonSize>"}]}},href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"enum",value:[{value:"string"}]}},download:{defaultValue:null,description:"",name:"download",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},opensInNewTab:{defaultValue:null,description:"",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"}]}},submitsForm:{defaultValue:null,description:"",name:"submitsForm",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},assistiveText:{defaultValue:null,description:"",name:"assistiveText",required:!1,type:{name:"string"}},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"}]}},busy:{defaultValue:null,description:"Replaces the content with a loading indicator.",name:"busy",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},as:{defaultValue:null,description:`Custom element to render the button.
2
-
3
- Allows rendering the button using a different React element or component.
4
- This is particularly useful for integrating with router libraries like \`react-router\` or \`next/router\`.
5
- @example // Render as a react router link component
6
- import { Link } from 'react-router-dom';
7
-
8
- <ButtonBase as={<Link to="/home" />} />`,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"}]}},a11yLabel:{defaultValue:null,description:"@deprecated Use `assistiveText` instead",name:"a11yLabel",required:!1,type:{name:"enum",value:[{value:"string"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},svg:{defaultValue:null,description:"",name:"svg",required:!0,type:{name:"enum",value:[{value:"ComponentClass<SVGAttributes<SVGElement>, any>"},{value:"FunctionComponent<SVGAttributes<SVGElement>>"},{value:"ReactElement<any, 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: HTMLAnchorElement | HTMLButtonElement | null) => void"},{value:"RefObject<HTMLAnchorElement | HTMLButtonElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}},selected:{defaultValue:null,description:"",name:"selected",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}}}}}catch{}export{e as I};
@@ -1,5 +0,0 @@
1
- import{j as d}from"./jsx-runtime-BTJTZTIL.js";import{r as m}from"./index-Cb9e4tly.js";import{u as o,I as p,s as v}from"./FieldLayoutBase-Db7AO67B.js";import{m as f}from"./classNames-BUL1Zq7e.js";import{w as a}from"./componentNames-Y1T_IIlY.js";const c=({onChange:e,onValueChange:u,...n},t)=>{const r=f(v,a.InputText),i=o(s=>s.target.value,e,u);return d.jsx(p,{...n,ref:t,className:r.join(" "),onChange:i,preplyDsComponent:a.InputText})},l=m.forwardRef(c);try{l.displayName="InputText",l.__docgenInfo={description:"",displayName:"InputText",props:{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"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"enum",value:[{value:"string"}]}},id:{defaultValue:null,description:"",name:"id",required:!0,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"enum",value:[{value:"string"}]}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"enum",value:[{value:"ChangeEventHandler<Element>"}]}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<Element>"}]}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<Element>"}]}},"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"}]}},hasError:{defaultValue:null,description:"",name:"hasError",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},value:{defaultValue:null,description:"",name:"value",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"'}]}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"enum",value:[{value:"string"}]}},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"}]}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!1,type:{name:"enum",value:[{value:"number"}]}},autoComplete:{defaultValue:null,description:"",name:"autoComplete",required:!1,type:{name:"enum",value:[{value:'"url"'},{value:'"name"'},{value:'"email"'},{value:'"tel"'},{value:'"off"'},{value:'"on"'},{value:'"username"'},{value:'"language"'},{value:'"new-password"'},{value:'"current-password"'}]}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"url"'},{value:'"search"'},{value:'"text"'},{value:'"email"'},{value:'"tel"'}]}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"enum",value:[{value:"ValueChangeEventHandler<string>"}]}},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{}export{l as I};
@@ -1 +0,0 @@
1
- [data-preply-ds-component=LayoutFlex]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0;margin:0;list-style:none;font-weight:inherit;border:none;text-align:inherit;border-spacing:0}[data-preply-ds-component=LayoutFlex][data-ds-nowrap=true]{-ms-flex-wrap:nowrap;flex-wrap:nowrap}[data-preply-ds-component=LayoutFlex][data-ds-columnreverse=row-fwd]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}[data-preply-ds-component=LayoutFlex][data-ds-columnreverse=row-rev]{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}[data-preply-ds-component=LayoutFlex][data-ds-columnreverse=column-fwd]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[data-preply-ds-component=LayoutFlex][data-ds-columnreverse=column-rev]{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}[data-preply-ds-component=LayoutFlex][data-ds-direction=column],[data-preply-ds-component=LayoutFlex][data-ds-direction*='"_":"column"']{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[data-preply-ds-component=LayoutFlex][data-ds-direction=column-reverse],[data-preply-ds-component=LayoutFlex][data-ds-direction*='"_":"column-reverse"']{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}[data-preply-ds-component=LayoutFlex][data-ds-direction=row],[data-preply-ds-component=LayoutFlex][data-ds-direction*='"_":"row"']{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}[data-preply-ds-component=LayoutFlex][data-ds-direction=row-reverse],[data-preply-ds-component=LayoutFlex][data-ds-direction*='"_":"row-reverse"']{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}@media (min-width: 400px){[data-preply-ds-component=LayoutFlex][data-ds-direction*='"narrow-l":"column"']{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"narrow-l":"column-reverse"']{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"narrow-l":"row"']{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"narrow-l":"row-reverse"']{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media (min-width: 700px){[data-preply-ds-component=LayoutFlex][data-ds-direction*='"medium-s":"column"']{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"medium-s":"column-reverse"']{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"medium-s":"row"']{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"medium-s":"row-reverse"']{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media (min-width: 880px){[data-preply-ds-component=LayoutFlex][data-ds-direction*='"medium-l":"column"']{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"medium-l":"column-reverse"']{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"medium-l":"row"']{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"medium-l":"row-reverse"']{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media (min-width: 1200px){[data-preply-ds-component=LayoutFlex][data-ds-direction*='"wide-s":"column"']{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"wide-s":"column-reverse"']{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"wide-s":"row"']{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"wide-s":"row-reverse"']{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media (min-width: 1900px){[data-preply-ds-component=LayoutFlex][data-ds-direction*='"wide-l":"column"']{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"wide-l":"column-reverse"']{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"wide-l":"row"']{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}[data-preply-ds-component=LayoutFlex][data-ds-direction*='"wide-l":"row-reverse"']{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent=center],[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"_":"center"']{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent=start],[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"_":"start"']{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent=end],[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"_":"end"']{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent=space-between],[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"_":"space-between"']{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent=space-around],[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"_":"space-around"']{-ms-flex-pack:distribute;justify-content:space-around}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent=space-evenly],[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"_":"space-evenly"']{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}@media (min-width: 400px){[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"narrow-l":"center"']{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"narrow-l":"start"']{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"narrow-l":"end"']{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"narrow-l":"space-between"']{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"narrow-l":"space-around"']{-ms-flex-pack:distribute;justify-content:space-around}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"narrow-l":"space-evenly"']{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width: 700px){[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"medium-s":"center"']{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"medium-s":"start"']{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"medium-s":"end"']{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"medium-s":"space-between"']{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"medium-s":"space-around"']{-ms-flex-pack:distribute;justify-content:space-around}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"medium-s":"space-evenly"']{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width: 880px){[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"medium-l":"center"']{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"medium-l":"start"']{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"medium-l":"end"']{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"medium-l":"space-between"']{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"medium-l":"space-around"']{-ms-flex-pack:distribute;justify-content:space-around}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"medium-l":"space-evenly"']{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width: 1200px){[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"wide-s":"center"']{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"wide-s":"start"']{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"wide-s":"end"']{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"wide-s":"space-between"']{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"wide-s":"space-around"']{-ms-flex-pack:distribute;justify-content:space-around}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"wide-s":"space-evenly"']{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width: 1900px){[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"wide-l":"center"']{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"wide-l":"start"']{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"wide-l":"end"']{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"wide-l":"space-between"']{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"wide-l":"space-around"']{-ms-flex-pack:distribute;justify-content:space-around}[data-preply-ds-component=LayoutFlex][data-ds-justifycontent*='"wide-l":"space-evenly"']{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}[data-preply-ds-component=LayoutFlex][data-ds-alignitems=center],[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"_":"center"']{-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-preply-ds-component=LayoutFlex][data-ds-alignitems=start],[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"_":"start"']{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}[data-preply-ds-component=LayoutFlex][data-ds-alignitems=end],[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"_":"end"']{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}[data-preply-ds-component=LayoutFlex][data-ds-alignitems=stretch],[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"_":"stretch"']{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}[data-preply-ds-component=LayoutFlex][data-ds-alignitems=baseline],[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"_":"baseline"']{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}@media (min-width: 400px){[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"narrow-l":"center"']{-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"narrow-l":"start"']{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"narrow-l":"end"']{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"narrow-l":"stretch"']{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"narrow-l":"baseline"']{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width: 700px){[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"medium-s":"center"']{-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"medium-s":"start"']{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"medium-s":"end"']{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"medium-s":"stretch"']{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"medium-s":"baseline"']{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width: 880px){[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"medium-l":"center"']{-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"medium-l":"start"']{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"medium-l":"end"']{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"medium-l":"stretch"']{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"medium-l":"baseline"']{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width: 1200px){[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"wide-s":"center"']{-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"wide-s":"start"']{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"wide-s":"end"']{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"wide-s":"stretch"']{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"wide-s":"baseline"']{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width: 1900px){[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"wide-l":"center"']{-webkit-box-align:center;-ms-flex-align:center;align-items:center}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"wide-l":"start"']{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"wide-l":"end"']{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"wide-l":"stretch"']{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}[data-preply-ds-component=LayoutFlex][data-ds-alignitems*='"wide-l":"baseline"']{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}
@@ -1 +0,0 @@
1
- import{j as E}from"./jsx-runtime-BTJTZTIL.js";import{r as P}from"./index-Cb9e4tly.js";import{f as S}from"./filterHTMLAttributes-UOns5Q7s.js";import{g,s as $,a as b,b as G}from"./layout-relative.module-1z75aSwo-DNAR_Nv2.js";import{e as H,f as J,L as Y}from"./defaults-B1rzzf6M.js";import{g as B}from"./index-DdzHuZ-Y.js";import{w as M}from"./componentNames-Y1T_IIlY.js";const e=void 0;function W(r){const{nowrap:t}=r;return t?!0:e}function i(r){return JSON.stringify(r)}function X(r){const{direction:t,column:o,reverse:n}=r;return t===void 0?!n&&!o?{applyThrough:"direction",directionAttr:H}:{applyThrough:"columnReverse",columnReverseAttr:`${o?"column":"row"}-${n?"rev":"fwd"}`}:typeof t=="string"?{applyThrough:"direction",directionAttr:t}:{applyThrough:"direction",directionAttr:i(t)}}function k(r){const{justifyContent:t}=r;return t===void 0?e:typeof t=="string"?t:i(t)}function q(r){const{alignItems:t}=r;return t===void 0?e:typeof t=="string"?t:i(t)}function z(r){const{gap:t}=r;return t===void 0?e:typeof t=="string"?t:i(t)}function K(r){const{padding:t}=r;return t===void 0?{applyThrough:"attr",attr:J}:typeof t=="string"||typeof t=="number"?{applyThrough:"attr",attr:t}:Array.isArray(t)?{applyThrough:"classnames",classNames:g(t)}:i(t).includes("[")?{applyThrough:"classnames",classNames:g(t)}:{applyThrough:"attr",attr:JSON.stringify(t)}}function Q(r){const{hide:t,inline:o}=r;if(t===void 0)return e;const n=o?"inline-flex":"flex";if(typeof t=="boolean")return t?"hide":n;let s=i(t);return s=s.replace(/true/g,'"hide"'),s=s.replace(/false/g,`"${n}"`),s}function V(r){const{relative:t}=r;return t===void 0?e:t===!0?!0:t===!1?e:i(t)}const Z={},tt=P.forwardRef(function(t,o){const{gap:n,hide:s,column:l,nowrap:y,inline:m,dataset:A,reverse:h,padding:v,children:T,relative:L,direction:R,alignItems:D,justifyContent:x,tag:w=Y,..._}=t,c=[Z.LayoutFlex,$.LayoutGap,b.LayoutHide,G.LayoutRelative],N=z({gap:n}),O=W({nowrap:y}),F=V({relative:L}),C=Q({hide:s,inline:m}),I=q({alignItems:D}),U=k({justifyContent:x});let p=e,d=e;const a=X({direction:R,column:l,reverse:h});a.applyThrough==="columnReverse"?d=a.columnReverseAttr:p=a.directionAttr;let f=e;const u=K({padding:v});u.applyThrough==="classnames"?c.push(...u.classNames):f=u.attr;const j={...S(_),ref:o,className:c.join(" "),"data-ds-gap":N,"data-ds-nowrap":O,"data-ds-padding":f,"data-ds-display":C,"data-ds-relative":F,"data-ds-direction":p,"data-ds-alignitems":I,"data-ds-columnreverse":d,"data-ds-justifycontent":U,...B(A,{preplyDsComponent:M.LayoutFlex})};return E.jsx(w,{...j,children:T})});tt.__docgenInfo={description:"",methods:[],displayName:"LayoutFlex"};export{tt as L};
@@ -1 +0,0 @@
1
- import{j as N}from"./jsx-runtime-BTJTZTIL.js";import{r as I}from"./index-Cb9e4tly.js";import{f as j}from"./filterHTMLAttributes-DYdLqcvH.js";import{g as f,s as U,a as E,b as H}from"./layout-relative.module-ed9bC4H4.js";import{e as $,f as G,L as k}from"./defaults-B1rzzf6M.js";import{g as J}from"./index-DdzHuZ-Y.js";import{w as M}from"./componentNames-Y1T_IIlY.js";const t=void 0;function Y(a){const{nowrap:e}=a;return e?!0:t}function r(a){return JSON.stringify(a)}function B(a){const{direction:e,column:u,reverse:n}=a;return e===void 0?!n&&!u?{applyThrough:"direction",directionAttr:$}:{applyThrough:"columnReverse",columnReverseAttr:`${u?"column":"row"}-${n?"rev":"fwd"}`}:typeof e=="string"?{applyThrough:"direction",directionAttr:e}:{applyThrough:"direction",directionAttr:r(e)}}function W(a){const{justifyContent:e}=a;return e===void 0?t:typeof e=="string"?e:r(e)}function X(a){const{alignItems:e}=a;return e===void 0?t:typeof e=="string"?e:r(e)}function z(a){const{gap:e}=a;return e===void 0?t:typeof e=="string"?e:r(e)}function K(a){const{padding:e}=a;return e===void 0?{applyThrough:"attr",attr:G}:typeof e=="string"||typeof e=="number"?{applyThrough:"attr",attr:e}:Array.isArray(e)?{applyThrough:"classnames",classNames:f(e)}:r(e).includes("[")?{applyThrough:"classnames",classNames:f(e)}:{applyThrough:"attr",attr:JSON.stringify(e)}}function Q(a){const{hide:e,inline:u}=a;if(e===void 0)return t;const n=u?"inline-flex":"flex";if(typeof e=="boolean")return e?"hide":n;let l=r(e);return l=l.replace(/true/g,'"hide"'),l=l.replace(/false/g,`"${n}"`),l}function Z(a){const{relative:e}=a;return e===void 0?t:e===!0?!0:e===!1?t:r(e)}const ee={},m=I.forwardRef(function(e,u){const{gap:n,hide:l,column:o,nowrap:g,inline:y,dataset:h,reverse:A,padding:L,children:R,relative:T,direction:x,alignItems:P,justifyContent:w,tag:S=k,..._}=e,v=[ee.LayoutFlex,U.LayoutGap,E.LayoutHide,H.LayoutRelative],D=z({gap:n}),b=Y({nowrap:g}),q=Z({relative:T}),V=Q({hide:l,inline:y}),O=X({alignItems:P}),C=W({justifyContent:w});let d=t,p=t;const i=B({direction:x,column:o,reverse:A});i.applyThrough==="columnReverse"?p=i.columnReverseAttr:d=i.directionAttr;let c=t;const s=K({padding:L});s.applyThrough==="classnames"?v.push(...s.classNames):c=s.attr;const F={...j(_),ref:u,className:v.join(" "),"data-ds-gap":D,"data-ds-nowrap":b,"data-ds-padding":c,"data-ds-display":V,"data-ds-relative":q,"data-ds-direction":d,"data-ds-alignitems":O,"data-ds-columnreverse":p,"data-ds-justifycontent":C,...J(h,{preplyDsComponent:M.LayoutFlex})};return N.jsx(S,{...F,children:R})});try{m.displayName="LayoutFlex",m.__docgenInfo={description:"A CSS `flex` wrapper.",displayName:"LayoutFlex",props:{gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"s"'},{value:'"m"'},{value:'"l"'},{value:'"xl"'},{value:'"2xs"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:'"16"'},{value:'"none"'},{value:'"3xs"'},{value:"ResponsiveProp<LayoutGap>"},{value:'"0"'},{value:'"1"'},{value:'"2"'},{value:'"4"'},{value:'"8"'},{value:'"12"'},{value:'"20"'},{value:"ResponsiveProp<Spacing>"}]}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"s"'},{value:'"m"'},{value:'"l"'},{value:'"xl"'},{value:'"2xs"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:'"16"'},{value:'"none"'},{value:'"3xs"'},{value:'"0"'},{value:'"1"'},{value:'"2"'},{value:'"4"'},{value:'"8"'},{value:'"12"'},{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>>"}]}},nowrap:{defaultValue:null,description:"",name:"nowrap",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},column:{defaultValue:null,description:"@deprecated Use `direction` instead.",name:"column",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},reverse:{defaultValue:null,description:"@deprecated Use `direction` instead.",name:"reverse",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},direction:{defaultValue:null,description:"",name:"direction",required:!1,type:{name:"enum",value:[{value:'"column"'},{value:'"row"'},{value:'"row-reverse"'},{value:'"column-reverse"'},{value:"ResponsiveProp<LayoutFlexDirection>"}]}},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>"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"p"'},{value:'"div"'},{value:'"span"'},{value:'"main"'},{value:'"header"'},{value:'"footer"'},{value:'"article"'},{value:'"section"'},{value:'"ul"'},{value:'"ol"'},{value:'"li"'},{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>"}]}},inline:{defaultValue:null,description:"",name:"inline",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: 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{}export{m as L};
@@ -1 +0,0 @@
1
- import{j as x}from"./jsx-runtime-BTJTZTIL.js";import{r as _}from"./index-Cb9e4tly.js";import{g as I,a as F,b as g}from"./layout-relative-BpJIh3YK.js";import{f as w}from"./filterHTMLAttributes-DYdLqcvH.js";import{m as b,b as C}from"./classNames-BUL1Zq7e.js";import{w as e}from"./componentNames-Y1T_IIlY.js";import{g as N}from"./index-DdzHuZ-Y.js";import{L as R}from"./defaults-B1rzzf6M.js";const q="LayoutFlexItem__dKOq-",A={LayoutFlexItem:q,"LayoutFlexItem--stretch":"LayoutFlexItem--stretch__iab5M","LayoutFlexItem--no-stretch":"LayoutFlexItem--no-stretch__-1TuH","LayoutFlexItem--narrow-l--stretch":"LayoutFlexItem--narrow-l--stretch__3ll6c","LayoutFlexItem--narrow-l--no-stretch":"LayoutFlexItem--narrow-l--no-stretch__ObDkL","LayoutFlexItem--medium-s--stretch":"LayoutFlexItem--medium-s--stretch__3Ry1a","LayoutFlexItem--medium-s--no-stretch":"LayoutFlexItem--medium-s--no-stretch__KB7hy","LayoutFlexItem--medium-l--stretch":"LayoutFlexItem--medium-l--stretch__roskH","LayoutFlexItem--medium-l--no-stretch":"LayoutFlexItem--medium-l--no-stretch__g5WGB","LayoutFlexItem--wide-s--stretch":"LayoutFlexItem--wide-s--stretch__xMSyv","LayoutFlexItem--wide-s--no-stretch":"LayoutFlexItem--wide-s--no-stretch__3voIB","LayoutFlexItem--wide-l--stretch":"LayoutFlexItem--wide-l--stretch__AfLMQ","LayoutFlexItem--wide-l--no-stretch":"LayoutFlexItem--wide-l--no-stretch__LA45O"},t=_.forwardRef(function({children:l,alignSelf:s,stretch:u=!1,tag:o,hide:r,relative:n,dataset:m,...i},c){const v=b(A,e.LayoutFlexItem,C("stretch","no-stretch",u)),d=I(s),p=F(r),f=g(n),y=[...v,...d,...p,...f],L=o??R,h={...w(i),ref:c,className:y.join(" "),...N(m,{preplyDsComponent:e.LayoutFlexItem})};return x.jsx(L,{...h,children:l})});try{t.displayName="LayoutFlexItem",t.__docgenInfo={description:"",displayName:"LayoutFlexItem",props:{alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"stretch"'},{value:"ResponsiveProp<LayoutAlignSelf>"}]}},stretch:{defaultValue:{value:"false"},description:"",name:"stretch",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"p"'},{value:'"div"'},{value:'"span"'},{value:'"main"'},{value:'"header"'},{value:'"footer"'},{value:'"article"'},{value:'"section"'},{value:'"ul"'},{value:'"ol"'},{value:'"li"'},{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{}export{t as L};
@@ -1 +0,0 @@
1
- import{j as w}from"./jsx-runtime-BTJTZTIL.js";import{r as g}from"./index-Cb9e4tly.js";import{m as o,b as G,a as p,s as u}from"./classNames-BUL1Zq7e.js";import{B as b}from"./breakpoints-BfMlrtxE.js";import{a as A,b as h,s as C,g as N}from"./layout-relative.module-1z75aSwo-DNAR_Nv2.js";import{L as T}from"./constants-DYYVurUY.js";import{k as v,f as U,L as R}from"./defaults-B1rzzf6M.js";import{f as O}from"./filterHTMLAttributes-UOns5Q7s.js";import{g as E}from"./index-DdzHuZ-Y.js";import{w as I}from"./componentNames-Y1T_IIlY.js";const k="LayoutHide",x=(t,i=T)=>o(A,k,[G("hide",i,t)]),D="LayoutRelative",Y=t=>o(h,D,[G("relative",void 0,t)]),Q="LayoutGrid__-dslt",_={LayoutGrid:Q,"LayoutGrid--justify-content-center":"LayoutGrid--justify-content-center__rwmoB","LayoutGrid--justify-content-start":"LayoutGrid--justify-content-start__7v-Km","LayoutGrid--justify-content-end":"LayoutGrid--justify-content-end__kG5-O","LayoutGrid--justify-content-space-between":"LayoutGrid--justify-content-space-between__OUUgn","LayoutGrid--justify-content-space-around":"LayoutGrid--justify-content-space-around__m3Ggq","LayoutGrid--justify-content-space-evenly":"LayoutGrid--justify-content-space-evenly__WWIsT","LayoutGrid--narrow-l--justify-content-center":"LayoutGrid--narrow-l--justify-content-center__m7jv9","LayoutGrid--narrow-l--justify-content-start":"LayoutGrid--narrow-l--justify-content-start__6tHPx","LayoutGrid--narrow-l--justify-content-end":"LayoutGrid--narrow-l--justify-content-end__afk9H","LayoutGrid--narrow-l--justify-content-space-between":"LayoutGrid--narrow-l--justify-content-space-between__RgYaV","LayoutGrid--narrow-l--justify-content-space-around":"LayoutGrid--narrow-l--justify-content-space-around__LJwHL","LayoutGrid--narrow-l--justify-content-space-evenly":"LayoutGrid--narrow-l--justify-content-space-evenly__RQJez","LayoutGrid--medium-s--justify-content-center":"LayoutGrid--medium-s--justify-content-center__-dA3F","LayoutGrid--medium-s--justify-content-start":"LayoutGrid--medium-s--justify-content-start__fmsIg","LayoutGrid--medium-s--justify-content-end":"LayoutGrid--medium-s--justify-content-end__pMkvR","LayoutGrid--medium-s--justify-content-space-between":"LayoutGrid--medium-s--justify-content-space-between__sOUof","LayoutGrid--medium-s--justify-content-space-around":"LayoutGrid--medium-s--justify-content-space-around__eJIi-","LayoutGrid--medium-s--justify-content-space-evenly":"LayoutGrid--medium-s--justify-content-space-evenly__jLcAz","LayoutGrid--medium-l--justify-content-center":"LayoutGrid--medium-l--justify-content-center__Q9TxM","LayoutGrid--medium-l--justify-content-start":"LayoutGrid--medium-l--justify-content-start__CzzxC","LayoutGrid--medium-l--justify-content-end":"LayoutGrid--medium-l--justify-content-end__FBAN7","LayoutGrid--medium-l--justify-content-space-between":"LayoutGrid--medium-l--justify-content-space-between__f5lsd","LayoutGrid--medium-l--justify-content-space-around":"LayoutGrid--medium-l--justify-content-space-around__ring-","LayoutGrid--medium-l--justify-content-space-evenly":"LayoutGrid--medium-l--justify-content-space-evenly__NZ5rM","LayoutGrid--wide-s--justify-content-center":"LayoutGrid--wide-s--justify-content-center__wqUGl","LayoutGrid--wide-s--justify-content-start":"LayoutGrid--wide-s--justify-content-start__XQkqA","LayoutGrid--wide-s--justify-content-end":"LayoutGrid--wide-s--justify-content-end__-tCcn","LayoutGrid--wide-s--justify-content-space-between":"LayoutGrid--wide-s--justify-content-space-between__kBkZm","LayoutGrid--wide-s--justify-content-space-around":"LayoutGrid--wide-s--justify-content-space-around__flpk0","LayoutGrid--wide-s--justify-content-space-evenly":"LayoutGrid--wide-s--justify-content-space-evenly__rSh2w","LayoutGrid--wide-l--justify-content-center":"LayoutGrid--wide-l--justify-content-center__b3scW","LayoutGrid--wide-l--justify-content-start":"LayoutGrid--wide-l--justify-content-start__N9skE","LayoutGrid--wide-l--justify-content-end":"LayoutGrid--wide-l--justify-content-end__7j5o6","LayoutGrid--wide-l--justify-content-space-between":"LayoutGrid--wide-l--justify-content-space-between__fLeCp","LayoutGrid--wide-l--justify-content-space-around":"LayoutGrid--wide-l--justify-content-space-around__mbpQE","LayoutGrid--wide-l--justify-content-space-evenly":"LayoutGrid--wide-l--justify-content-space-evenly__524dM","LayoutGrid--align-items-center":"LayoutGrid--align-items-center__RVwSt","LayoutGrid--align-items-start":"LayoutGrid--align-items-start__E8uxU","LayoutGrid--align-items-end":"LayoutGrid--align-items-end__4Nt2r","LayoutGrid--align-items-stretch":"LayoutGrid--align-items-stretch__A9ams","LayoutGrid--align-items-baseline":"LayoutGrid--align-items-baseline__0-yUW","LayoutGrid--narrow-l--align-items-center":"LayoutGrid--narrow-l--align-items-center__uwELy","LayoutGrid--narrow-l--align-items-start":"LayoutGrid--narrow-l--align-items-start__bgO2N","LayoutGrid--narrow-l--align-items-end":"LayoutGrid--narrow-l--align-items-end__Rswst","LayoutGrid--narrow-l--align-items-stretch":"LayoutGrid--narrow-l--align-items-stretch__j1L58","LayoutGrid--narrow-l--align-items-baseline":"LayoutGrid--narrow-l--align-items-baseline__kVArA","LayoutGrid--medium-s--align-items-center":"LayoutGrid--medium-s--align-items-center__fNix8","LayoutGrid--medium-s--align-items-start":"LayoutGrid--medium-s--align-items-start__UKPQt","LayoutGrid--medium-s--align-items-end":"LayoutGrid--medium-s--align-items-end__jaF0X","LayoutGrid--medium-s--align-items-stretch":"LayoutGrid--medium-s--align-items-stretch__jCz1x","LayoutGrid--medium-s--align-items-baseline":"LayoutGrid--medium-s--align-items-baseline__XE4bX","LayoutGrid--medium-l--align-items-center":"LayoutGrid--medium-l--align-items-center__VhrYE","LayoutGrid--medium-l--align-items-start":"LayoutGrid--medium-l--align-items-start__r8cjo","LayoutGrid--medium-l--align-items-end":"LayoutGrid--medium-l--align-items-end__s1gpS","LayoutGrid--medium-l--align-items-stretch":"LayoutGrid--medium-l--align-items-stretch__ItEfq","LayoutGrid--medium-l--align-items-baseline":"LayoutGrid--medium-l--align-items-baseline__nZ7fR","LayoutGrid--wide-s--align-items-center":"LayoutGrid--wide-s--align-items-center__mrOx2","LayoutGrid--wide-s--align-items-start":"LayoutGrid--wide-s--align-items-start__cQBTK","LayoutGrid--wide-s--align-items-end":"LayoutGrid--wide-s--align-items-end__mahG6","LayoutGrid--wide-s--align-items-stretch":"LayoutGrid--wide-s--align-items-stretch__0PTob","LayoutGrid--wide-s--align-items-baseline":"LayoutGrid--wide-s--align-items-baseline__3W7pd","LayoutGrid--wide-l--align-items-center":"LayoutGrid--wide-l--align-items-center__BOrH6","LayoutGrid--wide-l--align-items-start":"LayoutGrid--wide-l--align-items-start__4V23L","LayoutGrid--wide-l--align-items-end":"LayoutGrid--wide-l--align-items-end__zVwxu","LayoutGrid--wide-l--align-items-stretch":"LayoutGrid--wide-l--align-items-stretch__Jdna5","LayoutGrid--wide-l--align-items-baseline":"LayoutGrid--wide-l--align-items-baseline__02lpK","LayoutGrid--justify-items-stretch":"LayoutGrid--justify-items-stretch__U4vSC","LayoutGrid--justify-items-center":"LayoutGrid--justify-items-center__VARQR","LayoutGrid--justify-items-start":"LayoutGrid--justify-items-start__NLAeT","LayoutGrid--justify-items-end":"LayoutGrid--justify-items-end__w0moy","LayoutGrid--narrow-l--justify-items-stretch":"LayoutGrid--narrow-l--justify-items-stretch__hKJSX","LayoutGrid--narrow-l--justify-items-center":"LayoutGrid--narrow-l--justify-items-center__b7Xid","LayoutGrid--narrow-l--justify-items-start":"LayoutGrid--narrow-l--justify-items-start__6cBmQ","LayoutGrid--narrow-l--justify-items-end":"LayoutGrid--narrow-l--justify-items-end__1A84y","LayoutGrid--medium-s--justify-items-stretch":"LayoutGrid--medium-s--justify-items-stretch__V9kwQ","LayoutGrid--medium-s--justify-items-center":"LayoutGrid--medium-s--justify-items-center__ZWr9D","LayoutGrid--medium-s--justify-items-start":"LayoutGrid--medium-s--justify-items-start__NjFpt","LayoutGrid--medium-s--justify-items-end":"LayoutGrid--medium-s--justify-items-end__ERiPY","LayoutGrid--medium-l--justify-items-stretch":"LayoutGrid--medium-l--justify-items-stretch__O1l7k","LayoutGrid--medium-l--justify-items-center":"LayoutGrid--medium-l--justify-items-center__QDO0p","LayoutGrid--medium-l--justify-items-start":"LayoutGrid--medium-l--justify-items-start__2N9qj","LayoutGrid--medium-l--justify-items-end":"LayoutGrid--medium-l--justify-items-end__BSgLt","LayoutGrid--wide-s--justify-items-stretch":"LayoutGrid--wide-s--justify-items-stretch__QvGpc","LayoutGrid--wide-s--justify-items-center":"LayoutGrid--wide-s--justify-items-center__CbWJj","LayoutGrid--wide-s--justify-items-start":"LayoutGrid--wide-s--justify-items-start__tBgMR","LayoutGrid--wide-s--justify-items-end":"LayoutGrid--wide-s--justify-items-end__mgyU3","LayoutGrid--wide-l--justify-items-stretch":"LayoutGrid--wide-l--justify-items-stretch__x0UMz","LayoutGrid--wide-l--justify-items-center":"LayoutGrid--wide-l--justify-items-center__Q6DqC","LayoutGrid--wide-l--justify-items-start":"LayoutGrid--wide-l--justify-items-start__jIMRB","LayoutGrid--wide-l--justify-items-end":"LayoutGrid--wide-l--justify-items-end__gZTXq","LayoutGrid--columns":"LayoutGrid--columns__kFwZC","LayoutGrid--columns-narrow-l":"LayoutGrid--columns-narrow-l__7Vb8x","LayoutGrid--columns-medium-s":"LayoutGrid--columns-medium-s__V-iwq","LayoutGrid--columns-medium-l":"LayoutGrid--columns-medium-l__pzkhg","LayoutGrid--columns-wide-s":"LayoutGrid--columns-wide-s__4uJPp","LayoutGrid--columns-wide-l":"LayoutGrid--columns-wide-l__ZwkSC"},V="LayoutGrid",z=Object.keys(b),c=t=>typeof t=="number"?`repeat(${t}, 1fr)`:t.join(" "),P=t=>typeof t=="object"&&!Array.isArray(t)?Object.entries(t).reduce((i,[a,e])=>({...i,...e?{[a]:c(e)}:{}}),{_:c(t._)}):{_:c(t)},B=t=>{if(!t)return{classNames:[],style:{}};const i=P(t),a=z.filter(s=>i[s]),e=p(_,V,["columns",...a.map(s=>`columns-${s}`)]),n=a.reduce((s,r)=>({...s,[`--columns-${r}`]:i[r]}),{"--columns":i._});return{classNames:e,style:n}},S="LayoutGap",F=t=>o(C,S,[u("gap",t)]),q="LayoutGrid",H=(t,i)=>{const{gap:a=v,padding:e=U,justifyContent:n,alignItems:s,justifyItems:r,hide:d,relative:y}=i||{},m=o(_,q,[u("justify-content",n),u("align-items",s),u("justify-items",r)]),l=F(a),L=N(e),f=x(d,"grid"),j=Y(y);return[...m,...l,...L,...f,...j]},M=g.forwardRef(function({dataset:i,children:a,...e},n){const{tag:s=R,columns:r}=e,d=H("grid",e),{style:y,classNames:m}=B(r),l=[...d,...m],L={...O(e),ref:n,className:l.join(" "),style:y,...E(i,{preplyDsComponent:I.LayoutGrid})};return w.jsx(s,{...L,children:a})});M.__docgenInfo={description:"",methods:[],displayName:"LayoutGrid"};export{M as L,Y as a,x as g};