@xyd-js/storybook 0.0.1-build.179 → 0.0.1-build.180

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 (110) hide show
  1. package/CHANGELOG.md +9 -2534
  2. package/package.json +9 -9
  3. package/storybook-static/assets/Atlas.stories-B3Ix52TV.js +0 -153
  4. package/storybook-static/assets/Badge.stories-D3nfVAAW.js +0 -84
  5. package/storybook-static/assets/Banner.stories-BHLs2WlR.js +0 -394
  6. package/storybook-static/assets/Baseline.stories-Bwx2zF_U.js +0 -103
  7. package/storybook-static/assets/Blockquote.stories-Cxf9fDVo.js +0 -468
  8. package/storybook-static/assets/Breadcrumbs.stories-CFjDJvdh.js +0 -219
  9. package/storybook-static/assets/Button-Cj99tk5U-Cn0Wrqkw.js +0 -3
  10. package/storybook-static/assets/Button.stories-DUfQIyn7.js +0 -472
  11. package/storybook-static/assets/Callout.stories-CIQWommc.js +0 -134
  12. package/storybook-static/assets/Card.stories-0mJDPE-f.js +0 -278
  13. package/storybook-static/assets/CodeSample.stories-1k1_b2U_.js +0 -8
  14. package/storybook-static/assets/CodeSample.stories-BEAQ3H6A.js +0 -22
  15. package/storybook-static/assets/Color-YHDXOIA2-BAq_yxd2.js +0 -1
  16. package/storybook-static/assets/ColorSchemeButton.stories-C1yuuA8O.js +0 -384
  17. package/storybook-static/assets/Details.stories-BacIPYUH.js +0 -290
  18. package/storybook-static/assets/DocsRenderer-CFRXHY34-BwJiFRuq.js +0 -575
  19. package/storybook-static/assets/DocsTemplate-B8_ZAKIZ.js +0 -16
  20. package/storybook-static/assets/GuideCard.stories-IJbjW-xe.js +0 -253
  21. package/storybook-static/assets/Heading.stories-C9rBwnlZ.js +0 -337
  22. package/storybook-static/assets/Hr.stories-bgwD4mmY.js +0 -351
  23. package/storybook-static/assets/IconSocial.stories-Bv3u90GB.js +0 -715
  24. package/storybook-static/assets/Icons-CjNNbMNR.js +0 -1
  25. package/storybook-static/assets/Image.stories-BlrJ8Th7.js +0 -349
  26. package/storybook-static/assets/List.stories-mzy4ZAGg.js +0 -513
  27. package/storybook-static/assets/Nav.stories-CZhCHFlj.js +0 -13
  28. package/storybook-static/assets/NavLinks.stories-DuFRhZLh.js +0 -359
  29. package/storybook-static/assets/PageBlogHome.stories-BnmA2r3q.js +0 -14
  30. package/storybook-static/assets/PageFirstSlide-D2kcGYmB-BWfslHla.js +0 -1
  31. package/storybook-static/assets/PageFirstSlide-SzOOIHx0.css +0 -1
  32. package/storybook-static/assets/PageFirstSlide.stories-CoKlxYlH.js +0 -55
  33. package/storybook-static/assets/PageHome.stories-DcgUrGxe.js +0 -121
  34. package/storybook-static/assets/Pre.stories-CKu9R4kn.js +0 -11
  35. package/storybook-static/assets/Sidebar.stories-BivU6MOT.js +0 -9
  36. package/storybook-static/assets/Steps.stories-fSa3Sw8j.js +0 -1146
  37. package/storybook-static/assets/SubNav.stories-CL_Th3oO.js +0 -19
  38. package/storybook-static/assets/Table.stories-BdNM7k9y.js +0 -581
  39. package/storybook-static/assets/Tabs.stories-A3NcBab_.js +0 -873
  40. package/storybook-static/assets/Text-BAwif7rv-BYvLGGQV.js +0 -31
  41. package/storybook-static/assets/TocCard.stories-BRB1SH6U.js +0 -299
  42. package/storybook-static/assets/Update-DflVXGGQ-qVV03FlC.js +0 -1
  43. package/storybook-static/assets/Update.stories-DG383caW.js +0 -387
  44. package/storybook-static/assets/VideoGuide.stories-BnCDLXK7.js +0 -3
  45. package/storybook-static/assets/__vite-browser-external-FmFgRqLi.js +0 -1
  46. package/storybook-static/assets/_rollupPluginBabelHelpers-DuYa1R0C-CyXpXONY.js +0 -4
  47. package/storybook-static/assets/chunk-EF7DTUVF-DPkwZaUR.js +0 -12
  48. package/storybook-static/assets/chunk-XP5HYGXS-BpfKkqn7.js +0 -1
  49. package/storybook-static/assets/content-BRdfAQPf.js +0 -27
  50. package/storybook-static/assets/entry-preview-D5WwyKaL.js +0 -2
  51. package/storybook-static/assets/entry-preview-docs-DU3GzdsG.js +0 -46
  52. package/storybook-static/assets/entry-preview-rsc-56ExrKd2.js +0 -1
  53. package/storybook-static/assets/github-BKgXy13-.js +0 -6
  54. package/storybook-static/assets/iframe-YbiB23cy.js +0 -211
  55. package/storybook-static/assets/index-Cf9b6H0j.js +0 -8
  56. package/storybook-static/assets/index-CrSc8wm9.js +0 -240
  57. package/storybook-static/assets/index-CzKwSnp0.js +0 -9
  58. package/storybook-static/assets/index-D6tQpKjq.js +0 -12
  59. package/storybook-static/assets/index-DUCcPMOf.js +0 -1
  60. package/storybook-static/assets/index-D_kTjGoR.js +0 -9
  61. package/storybook-static/assets/index-DgnBCu_c.js +0 -1
  62. package/storybook-static/assets/index-DrFu-skq.js +0 -6
  63. package/storybook-static/assets/index-H0MBf5rE.js +0 -1
  64. package/storybook-static/assets/jsx-runtime-D_zvdyIk.js +0 -9
  65. package/storybook-static/assets/layouts-DBdGRyBm.js +0 -1
  66. package/storybook-static/assets/preview-B5edrxhc.js +0 -1
  67. package/storybook-static/assets/preview-BWzBA1C2.js +0 -396
  68. package/storybook-static/assets/preview-C5EOgwJ9.js +0 -2
  69. package/storybook-static/assets/preview-DGZ5Qq08.js +0 -34
  70. package/storybook-static/assets/preview-DTyQTpzx.js +0 -1
  71. package/storybook-static/assets/preview-TqM3Oi8H.js +0 -1
  72. package/storybook-static/assets/preview-WIE65ICp.js +0 -1
  73. package/storybook-static/assets/preview-_Oh-njOd.css +0 -1
  74. package/storybook-static/assets/preview-caVMbCIR.js +0 -7
  75. package/storybook-static/assets/react-18-Tf4JhPOR.js +0 -25
  76. package/storybook-static/assets/system-CcsYyfSK.js +0 -1
  77. package/storybook-static/assets/test-utils-BaXAOqRT.js +0 -9
  78. package/storybook-static/assets/themes.stories-D1474P9U.js +0 -41
  79. package/storybook-static/assets/writer-DkrWmB39.js +0 -1
  80. package/storybook-static/favicon.svg +0 -1
  81. package/storybook-static/iframe.html +0 -666
  82. package/storybook-static/index.html +0 -183
  83. package/storybook-static/index.json +0 -1
  84. package/storybook-static/logo.svg +0 -10
  85. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  86. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  87. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  88. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  89. package/storybook-static/project.json +0 -1
  90. package/storybook-static/sb-addons/docs-9/manager-bundle.js +0 -242
  91. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
  92. package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
  93. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -402
  94. package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
  95. package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +0 -3
  96. package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -3
  97. package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +0 -3
  98. package/storybook-static/sb-addons/storybook-10/manager-bundle.js +0 -3
  99. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  100. package/storybook-static/sb-addons/storysource-8/manager-bundle.js +0 -3
  101. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  102. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  103. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  104. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  105. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  106. package/storybook-static/sb-manager/globals-module-info.js +0 -1052
  107. package/storybook-static/sb-manager/globals-runtime.js +0 -42127
  108. package/storybook-static/sb-manager/globals.js +0 -48
  109. package/storybook-static/sb-manager/runtime.js +0 -12048
  110. package/tsconfig.tsbuildinfo +0 -1
@@ -1 +0,0 @@
1
- import{r as s,e as N,a as W}from"./index-CzKwSnp0.js";import{j as v}from"./jsx-runtime-D_zvdyIk.js";import"./index-DgnBCu_c.js";function K(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function B(...e){return t=>{let n=!1;const o=e.map(r=>{const c=K(r,t);return!n&&typeof c=="function"&&(n=!0),c});if(n)return()=>{for(let r=0;r<o.length;r++){const c=o[r];typeof c=="function"?c():K(e[r],null)}}}}function F(...e){return s.useCallback(B(...e),e)}function U(e){const t=ge(e),n=s.forwardRef((o,r)=>{const{children:c,...i}=o,a=s.Children.toArray(c),d=a.find(be);if(d){const f=d.props.children,u=a.map(l=>l===d?s.Children.count(f)>1?s.Children.only(null):s.isValidElement(f)?f.props.children:null:l);return v.jsx(t,{...i,ref:r,children:s.isValidElement(f)?s.cloneElement(f,void 0,u):null})}return v.jsx(t,{...i,ref:r,children:c})});return n.displayName=`${e}.Slot`,n}function ge(e){const t=s.forwardRef((n,o)=>{const{children:r,...c}=n;if(s.isValidElement(r)){const i=Re(r),a=Ie(c,r.props);return r.type!==s.Fragment&&(a.ref=o?B(o,i):i),s.cloneElement(r,a)}return s.Children.count(r)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ce=Symbol("radix.slottable");function be(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ce}function Ie(e,t){const n={...t};for(const o in t){const r=e[o],c=t[o];/^on[A-Z]/.test(o)?r&&c?n[o]=(...a)=>{const d=c(...a);return r(...a),d}:r&&(n[o]=r):o==="style"?n[o]={...r,...c}:o==="className"&&(n[o]=[r,c].filter(Boolean).join(" "))}return{...e,...n}}function Re(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Se=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],w=Se.reduce((e,t)=>{const n=U(`Primitive.${t}`),o=s.forwardRef((r,c)=>{const{asChild:i,...a}=r,d=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(d,{...a,ref:c})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function G(e,t=[]){let n=[];function o(c,i){const a=s.createContext(i),d=n.length;n=[...n,i];const f=l=>{const{scope:p,children:g,...S}=l,b=p?.[e]?.[d]||a,m=s.useMemo(()=>S,Object.values(S));return v.jsx(b.Provider,{value:m,children:g})};f.displayName=c+"Provider";function u(l,p){const g=p?.[e]?.[d]||a,S=s.useContext(g);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${l}\` must be used within \`${c}\``)}return[f,u]}const r=()=>{const c=n.map(i=>s.createContext(i));return function(a){const d=a?.[e]||c;return s.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return r.scopeName=e,[o,Te(r,...t)]}function Te(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(c){const i=o.reduce((a,{useScope:d,scopeName:f})=>{const l=d(c)[`__scope${f}`];return{...a,...l}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ee(e){const t=e+"CollectionProvider",[n,o]=G(t),[r,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=b=>{const{scope:m,children:R}=b,E=N.useRef(null),C=N.useRef(new Map).current;return v.jsx(r,{scope:m,itemMap:C,collectionRef:E,children:R})};i.displayName=t;const a=e+"CollectionSlot",d=U(a),f=N.forwardRef((b,m)=>{const{scope:R,children:E}=b,C=c(a,R),I=F(m,C.collectionRef);return v.jsx(d,{ref:I,children:E})});f.displayName=a;const u=e+"CollectionItemSlot",l="data-radix-collection-item",p=U(u),g=N.forwardRef((b,m)=>{const{scope:R,children:E,...C}=b,I=N.useRef(null),x=F(m,I),A=c(u,R);return N.useEffect(()=>(A.itemMap.set(I,{ref:I,...C}),()=>void A.itemMap.delete(I))),v.jsx(p,{[l]:"",ref:x,children:E})});g.displayName=u;function S(b){const m=c(e+"CollectionConsumer",b);return N.useCallback(()=>{const E=m.collectionRef.current;if(!E)return[];const C=Array.from(E.querySelectorAll(`[${l}]`));return Array.from(m.itemMap.values()).sort((A,P)=>C.indexOf(A.ref.current)-C.indexOf(P.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:f,ItemSlot:g},S,o]}function y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var O=globalThis?.document?s.useLayoutEffect:()=>{},ye=W[" useInsertionEffect ".trim().toString()]||O;function H({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,c,i]=he({defaultProp:t,onChange:n}),a=e!==void 0,d=a?e:r;{const u=s.useRef(e!==void 0);s.useEffect(()=>{const l=u.current;l!==a&&console.warn(`${o} is changing from ${l?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,o])}const f=s.useCallback(u=>{if(a){const l=Ne(u)?u(e):u;l!==e&&i.current?.(l)}else c(u)},[a,e,c,i]);return[d,f]}function he({defaultProp:e,onChange:t}){const[n,o]=s.useState(e),r=s.useRef(n),c=s.useRef(t);return ye(()=>{c.current=t},[t]),s.useEffect(()=>{r.current!==n&&(c.current?.(n),r.current=n)},[n,r]),[n,o,c]}function Ne(e){return typeof e=="function"}function xe(e,t){return s.useReducer((n,o)=>t[n][o]??n,e)}var Y=e=>{const{present:t,children:n}=e,o=Ae(t),r=typeof n=="function"?n({present:o.isPresent}):s.Children.only(n),c=F(o.ref,we(r));return typeof n=="function"||o.isPresent?s.cloneElement(r,{ref:c}):null};Y.displayName="Presence";function Ae(e){const[t,n]=s.useState(),o=s.useRef(null),r=s.useRef(e),c=s.useRef("none"),i=e?"mounted":"unmounted",[a,d]=xe(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const f=_(o.current);c.current=a==="mounted"?f:"none"},[a]),O(()=>{const f=o.current,u=r.current;if(u!==e){const p=c.current,g=_(f);e?d("MOUNT"):g==="none"||f?.display==="none"?d("UNMOUNT"):d(u&&p!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),O(()=>{if(t){let f;const u=t.ownerDocument.defaultView??window,l=g=>{const b=_(o.current).includes(g.animationName);if(g.target===t&&b&&(d("ANIMATION_END"),!r.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",f=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},p=g=>{g.target===t&&(c.current=_(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{u.clearTimeout(f),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:s.useCallback(f=>{o.current=f?getComputedStyle(f):null,n(f)},[])}}function _(e){return e?.animationName||"none"}function we(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Me=W[" useId ".trim().toString()]||(()=>{}),Pe=0;function q(e){const[t,n]=s.useState(Me());return O(()=>{n(o=>o??String(Pe++))},[e]),e||(t?`radix-${t}`:"")}var _e=s.createContext(void 0);function z(e){const t=s.useContext(_e);return e||t||"ltr"}function Fe(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}var L="rovingFocusGroup.onEntryFocus",Oe={bubbles:!1,cancelable:!0},M="RovingFocusGroup",[$,Z,De]=Ee(M),[je,J]=G(M,[De]),[Le,Ue]=je(M),Q=s.forwardRef((e,t)=>v.jsx($.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx($.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx($e,{...e,ref:t})})}));Q.displayName=M;var $e=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:c,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:u=!1,...l}=e,p=s.useRef(null),g=F(t,p),S=z(c),[b,m]=H({prop:i,defaultProp:a??null,onChange:d,caller:M}),[R,E]=s.useState(!1),C=Fe(f),I=Z(n),x=s.useRef(!1),[A,P]=s.useState(0);return s.useEffect(()=>{const T=p.current;if(T)return T.addEventListener(L,C),()=>T.removeEventListener(L,C)},[C]),v.jsx(Le,{scope:n,orientation:o,dir:S,loop:r,currentTabStopId:b,onItemFocus:s.useCallback(T=>m(T),[m]),onItemShiftTab:s.useCallback(()=>E(!0),[]),onFocusableItemAdd:s.useCallback(()=>P(T=>T+1),[]),onFocusableItemRemove:s.useCallback(()=>P(T=>T-1),[]),children:v.jsx(w.div,{tabIndex:R||A===0?-1:0,"data-orientation":o,...l,ref:g,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{x.current=!0}),onFocus:y(e.onFocus,T=>{const de=!x.current;if(T.target===T.currentTarget&&de&&!R){const k=new CustomEvent(L,Oe);if(T.currentTarget.dispatchEvent(k),!k.defaultPrevented){const j=I().filter(h=>h.focusable),me=j.find(h=>h.active),pe=j.find(h=>h.id===b),ve=[me,pe,...j].filter(Boolean).map(h=>h.ref.current);te(ve,u)}}x.current=!1}),onBlur:y(e.onBlur,()=>E(!1))})})}),X="RovingFocusGroupItem",ee=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:c,children:i,...a}=e,d=q(),f=c||d,u=Ue(X,n),l=u.currentTabStopId===f,p=Z(n),{onFocusableItemAdd:g,onFocusableItemRemove:S,currentTabStopId:b}=u;return s.useEffect(()=>{if(o)return g(),()=>S()},[o,g,S]),v.jsx($.ItemSlot,{scope:n,id:f,focusable:o,active:r,children:v.jsx(w.span,{tabIndex:l?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:y(e.onMouseDown,m=>{o?u.onItemFocus(f):m.preventDefault()}),onFocus:y(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:y(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const R=ke(m,u.orientation,u.dir);if(R!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let C=p().filter(I=>I.focusable).map(I=>I.ref.current);if(R==="last")C.reverse();else if(R==="prev"||R==="next"){R==="prev"&&C.reverse();const I=C.indexOf(m.currentTarget);C=u.loop?Ke(C,I+1):C.slice(I+1)}setTimeout(()=>te(C))}}),children:typeof i=="function"?i({isCurrentTabStop:l,hasTabStop:b!=null}):i})})});ee.displayName=X;var Ge={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ve(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ke(e,t,n){const o=Ve(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Ge[o]}function te(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Ke(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var We=Q,Be=ee,D="Tabs",[He,Qe]=G(D,[J]),ne=J(),[Ye,V]=He(D),oe=s.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:c,orientation:i="horizontal",dir:a,activationMode:d="automatic",...f}=e,u=z(a),[l,p]=H({prop:o,onChange:r,defaultProp:c??"",caller:D});return v.jsx(Ye,{scope:n,baseId:q(),value:l,onValueChange:p,orientation:i,dir:u,activationMode:d,children:v.jsx(w.div,{dir:u,"data-orientation":i,...f,ref:t})})});oe.displayName=D;var re="TabsList",se=s.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,c=V(re,n),i=ne(n);return v.jsx(We,{asChild:!0,...i,orientation:c.orientation,dir:c.dir,loop:o,children:v.jsx(w.div,{role:"tablist","aria-orientation":c.orientation,...r,ref:t})})});se.displayName=re;var ce="TabsTrigger",ie=s.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...c}=e,i=V(ce,n),a=ne(n),d=le(i.baseId,o),f=fe(i.baseId,o),u=o===i.value;return v.jsx(Be,{asChild:!0,...a,focusable:!r,active:u,children:v.jsx(w.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:d,...c,ref:t,onMouseDown:y(e.onMouseDown,l=>{!r&&l.button===0&&l.ctrlKey===!1?i.onValueChange(o):l.preventDefault()}),onKeyDown:y(e.onKeyDown,l=>{[" ","Enter"].includes(l.key)&&i.onValueChange(o)}),onFocus:y(e.onFocus,()=>{const l=i.activationMode!=="manual";!u&&!r&&l&&i.onValueChange(o)})})})});ie.displayName=ce;var ae="TabsContent",ue=s.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:r,children:c,...i}=e,a=V(ae,n),d=le(a.baseId,o),f=fe(a.baseId,o),u=o===a.value,l=s.useRef(u);return s.useEffect(()=>{const p=requestAnimationFrame(()=>l.current=!1);return()=>cancelAnimationFrame(p)},[]),v.jsx(Y,{present:r||u,children:({present:p})=>v.jsx(w.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":d,hidden:!p,id:f,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:l.current?"0s":void 0},children:p&&c})})});ue.displayName=ae;function le(e,t){return`${e}-trigger-${t}`}function fe(e,t){return`${e}-content-${t}`}var Xe=oe,et=se,tt=ie,nt=ue;export{nt as C,et as L,Xe as R,tt as T};
@@ -1,9 +0,0 @@
1
- import{b as O}from"./index-CzKwSnp0.js";var y={exports:{}},n={};/**
2
- * @license React
3
- * react-dom.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var o;function S(){if(o)return n;o=1;var u=O();function g(r){var e="https://react.dev/errors/"+r;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var i={d:{f:c,r:function(){throw Error(g(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(r,e,t){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:a==null?null:""+a,children:r,containerInfo:e,implementation:t}}var f=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(r,e){if(r==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}return n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,n.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(g(299));return v(r,e,null,t)},n.flushSync=function(r){var e=f.T,t=i.p;try{if(f.T=null,i.p=2,r)return r()}finally{f.T=e,i.p=t,i.d.f()}},n.preconnect=function(r,e){typeof r=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,i.d.C(r,e))},n.prefetchDNS=function(r){typeof r=="string"&&i.d.D(r)},n.preinit=function(r,e){if(typeof r=="string"&&e&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin),s=typeof e.integrity=="string"?e.integrity:void 0,l=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;t==="style"?i.d.S(r,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:a,integrity:s,fetchPriority:l}):t==="script"&&i.d.X(r,{crossOrigin:a,integrity:s,fetchPriority:l,nonce:typeof e.nonce=="string"?e.nonce:void 0})}},n.preinitModule=function(r,e){if(typeof r=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var t=d(e.as,e.crossOrigin);i.d.M(r,{crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&i.d.M(r)},n.preload=function(r,e){if(typeof r=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin);i.d.L(r,t,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}},n.preloadModule=function(r,e){if(typeof r=="string")if(e){var t=d(e.as,e.crossOrigin);i.d.m(r,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else i.d.m(r)},n.requestFormReset=function(r){i.d.r(r)},n.unstable_batchedUpdates=function(r,e){return r(e)},n.useFormState=function(r,e,t){return f.H.useFormState(r,e,t)},n.useFormStatus=function(){return f.H.useHostTransitionStatus()},n.version="19.1.0",n}var _;function T(){if(_)return y.exports;_=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(g){console.error(g)}}return u(),y.exports=S(),y.exports}export{T as r};
@@ -1 +0,0 @@
1
- import{g as r}from"./index-CzKwSnp0.js";import{r as o}from"./index-D_kTjGoR.js";var t=o();const m=r(t);export{m as I,t as r};
@@ -1,6 +0,0 @@
1
- function l(o){for(var f=[],i=1;i<arguments.length;i++)f[i-1]=arguments[i];var n=Array.from(typeof o=="string"?[o]:o);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var s=n.reduce(function(t,g){var a=g.match(/\n([\t ]+|(?!\s).)/g);return a?t.concat(a.map(function(u){var r,e;return(e=(r=u.match(/[\t ]/g))===null||r===void 0?void 0:r.length)!==null&&e!==void 0?e:0})):t},[]);if(s.length){var d=new RegExp(`
2
- [ ]{`+Math.min.apply(Math,s)+"}","g");n=n.map(function(t){return t.replace(d,`
3
- `)})}n[0]=n[0].replace(/^\r?\n/,"");var c=n[0];return f.forEach(function(t,g){var a=c.match(/(?:^|\n)( *)$/),u=a?a[1]:"",r=t;typeof t=="string"&&t.includes(`
4
- `)&&(r=String(t).split(`
5
- `).map(function(e,h){return h===0?e:""+u+e}).join(`
6
- `)),c+=r+n[g+1]}),c}export{l as d};
@@ -1 +0,0 @@
1
- import{e}from"./index-CzKwSnp0.js";const o={},c=e.createContext(o);function u(n){const t=e.useContext(c);return e.useMemo(function(){return typeof n=="function"?n(t):{...t,...n}},[t,n])}function m(n){let t;return n.disableParentContext?t=typeof n.components=="function"?n.components(o):n.components||o:t=u(n.components),e.createElement(c.Provider,{value:t},n.children)}export{m as MDXProvider,u as useMDXComponents};
@@ -1,9 +0,0 @@
1
- var s={exports:{}},e={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var o;function d(){if(o)return e;o=1;var R=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(v,r,t){var u=null;if(t!==void 0&&(u=""+t),r.key!==void 0&&(u=""+r.key),"key"in r){t={};for(var n in r)n!=="key"&&(t[n]=r[n])}else t=r;return r=t.ref,{$$typeof:R,type:v,key:u,ref:r!==void 0?r:null,props:t}}return e.Fragment=a,e.jsx=i,e.jsxs=i,e}var x;function l(){return x||(x=1,s.exports=d()),s.exports}var p=l();export{p as j};
@@ -1 +0,0 @@
1
- import{d as n}from"./_rollupPluginBabelHelpers-DuYa1R0C-CyXpXONY.js";import{r as e}from"./index-CzKwSnp0.js";var f=e.createContext({scrollRef:e.createRef(),isMobileNavOpen:!1,setIsMobileNavOpen:function(){}});function m(t){var a=e.useRef(null),l=e.useState(!1),c=n(l,2),L=c[0],R=c[1],T=function(o,g){var A=e.useState(!1),h=n(A,2),K=h[0],u=h[1],P=e.useState(0),M=n(P,2),N=M[0],p=M[1],j=e.useState(null),O=n(j,2),C=O[0],S=O[1],q=e.useState(0),x=n(q,2),z=x[0],s=x[1],B=e.useState(0),y=n(B,2),H=y[0],v=y[1],D=e.useState(!1),I=n(D,2);I[0];var b=I[1];function G(){u(!1),p(0),S(null),s(0),v(0),b(!1)}function w(i){if(i.target instanceof HTMLElement){var r=i.target.scrollTop;if(r<F)return u(!1),s(0),p(r),void b(!1);var d=r>N?"down":"up";d!==C&&(S(d),v(r),b(!0));var k=Math.abs(r-H);d==="down"&&k>J?(u(!0),s(r),v(r)):d==="up"&&k>F&&(u(!1),s(r),v(r)),p(r)}}return e.useEffect(function(){G()},[g]),e.useEffect(function(){if(o?.current)return o.current.addEventListener("scroll",w),function(){var i;(i=o.current)===null||i===void 0||i.removeEventListener("scroll",w)}},[o,g,N,C,z,H]),{hideMainHeader:K}}(t.subheader?a:null,t.scrollKey),$=T.hideMainHeader;return e.useEffect(function(){a.current=window},[]),e.createElement(f,{value:{scrollRef:a,isMobileNavOpen:L,setIsMobileNavOpen:R}},e.createElement("xyd-layout-primary",{className:"".concat("l1u84pnh"," ").concat(t.className||""),"data-subheader":String(!!t.subheader),"data-hide-subheader":String($),"data-layout":t.layout},t.children))}function E(t){var a=t.active;return e.createElement("span",{part:"hamburger-line","data-active":a})}m.Header=function(t){var a=e.useContext(f);return a.isMobileNavOpen,a.setIsMobileNavOpen,e.createElement(e.Fragment,null,e.createElement("header",{part:"header"},t.banner,e.createElement("div",{part:"header-content"},t.header),t.subheader))},m.Hamburger=function(){var t=e.useContext(f),a=t.isMobileNavOpen,l=t.setIsMobileNavOpen;return e.createElement("button",{part:"hamburger-button","aria-label":"Toggle navigation menu",onClick:function(){return l(!a)}},e.createElement("div",{part:"hamburger-icon"},e.createElement(E,{active:a}),e.createElement(E,{active:a}),e.createElement(E,{active:a})))},m.MobileAside=function(t){var a=e.useContext(f),l=a.isMobileNavOpen,c=a.setIsMobileNavOpen;return e.createElement(e.Fragment,null,e.createElement("div",{part:"mobile-overlay","data-active":l,onClick:function(){return c(!1)}}),e.createElement("aside",{part:"mobile-sidebar","data-active":l},e.createElement("div",{part:"mobile-sidebar-aside"},t.aside),e.createElement("div",null,e.createElement("button",{part:"mobile-sidebar-close-button","aria-label":"Close navigation menu",onClick:function(){return c(!1)}},e.createElement("div",{part:"mobile-sidebar-close-icon"})))))},m.Page=function(t){return e.createElement(e.Fragment,null,e.createElement("div",{part:"page"},e.createElement("div",{part:"page-scroll"},e.createElement("div",{part:"page-container"},e.createElement("div",{part:"page-article-container"},e.createElement("article",{part:"page-article"},e.createElement("section",{part:"page-article-content"},t.children)),t.contentNav&&e.createElement("nav",{part:"page-article-nav"},t.contentNav)))),t.after))};var J=200,F=100;export{m as c};
@@ -1 +0,0 @@
1
- const e={parameters:{options:{storySort:{order:["Components",["Writer","Coder"],"Atlas","UI","Layouts","Themes",["Default","Design System"]]}},controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}},docs:{source:{state:"open",type:"auto",excludeDecorators:!0}}}};export{e as default};
@@ -1,396 +0,0 @@
1
- import{d as $}from"./index-DrFu-skq.js";const{useMemo:x,useEffect:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:p}=__STORYBOOK_MODULE_GLOBAL__;var m="outline",u=i=>{(Array.isArray(i)?i:[i]).forEach(r)},r=i=>{let t=typeof i=="string"?i:i.join(""),o=p.document.getElementById(t);o&&o.parentElement&&o.parentElement.removeChild(o)},b=(i,t)=>{let o=p.document.getElementById(i);if(o)o.innerHTML!==t&&(o.innerHTML=t);else{let n=p.document.createElement("style");n.setAttribute("id",i),n.innerHTML=t,p.document.head.appendChild(n)}};function s(i){return $`
2
- ${i} body {
3
- outline: 1px solid #2980b9 !important;
4
- }
5
-
6
- ${i} article {
7
- outline: 1px solid #3498db !important;
8
- }
9
-
10
- ${i} nav {
11
- outline: 1px solid #0088c3 !important;
12
- }
13
-
14
- ${i} aside {
15
- outline: 1px solid #33a0ce !important;
16
- }
17
-
18
- ${i} section {
19
- outline: 1px solid #66b8da !important;
20
- }
21
-
22
- ${i} header {
23
- outline: 1px solid #99cfe7 !important;
24
- }
25
-
26
- ${i} footer {
27
- outline: 1px solid #cce7f3 !important;
28
- }
29
-
30
- ${i} h1 {
31
- outline: 1px solid #162544 !important;
32
- }
33
-
34
- ${i} h2 {
35
- outline: 1px solid #314e6e !important;
36
- }
37
-
38
- ${i} h3 {
39
- outline: 1px solid #3e5e85 !important;
40
- }
41
-
42
- ${i} h4 {
43
- outline: 1px solid #449baf !important;
44
- }
45
-
46
- ${i} h5 {
47
- outline: 1px solid #c7d1cb !important;
48
- }
49
-
50
- ${i} h6 {
51
- outline: 1px solid #4371d0 !important;
52
- }
53
-
54
- ${i} main {
55
- outline: 1px solid #2f4f90 !important;
56
- }
57
-
58
- ${i} address {
59
- outline: 1px solid #1a2c51 !important;
60
- }
61
-
62
- ${i} div {
63
- outline: 1px solid #036cdb !important;
64
- }
65
-
66
- ${i} p {
67
- outline: 1px solid #ac050b !important;
68
- }
69
-
70
- ${i} hr {
71
- outline: 1px solid #ff063f !important;
72
- }
73
-
74
- ${i} pre {
75
- outline: 1px solid #850440 !important;
76
- }
77
-
78
- ${i} blockquote {
79
- outline: 1px solid #f1b8e7 !important;
80
- }
81
-
82
- ${i} ol {
83
- outline: 1px solid #ff050c !important;
84
- }
85
-
86
- ${i} ul {
87
- outline: 1px solid #d90416 !important;
88
- }
89
-
90
- ${i} li {
91
- outline: 1px solid #d90416 !important;
92
- }
93
-
94
- ${i} dl {
95
- outline: 1px solid #fd3427 !important;
96
- }
97
-
98
- ${i} dt {
99
- outline: 1px solid #ff0043 !important;
100
- }
101
-
102
- ${i} dd {
103
- outline: 1px solid #e80174 !important;
104
- }
105
-
106
- ${i} figure {
107
- outline: 1px solid #ff00bb !important;
108
- }
109
-
110
- ${i} figcaption {
111
- outline: 1px solid #bf0032 !important;
112
- }
113
-
114
- ${i} table {
115
- outline: 1px solid #00cc99 !important;
116
- }
117
-
118
- ${i} caption {
119
- outline: 1px solid #37ffc4 !important;
120
- }
121
-
122
- ${i} thead {
123
- outline: 1px solid #98daca !important;
124
- }
125
-
126
- ${i} tbody {
127
- outline: 1px solid #64a7a0 !important;
128
- }
129
-
130
- ${i} tfoot {
131
- outline: 1px solid #22746b !important;
132
- }
133
-
134
- ${i} tr {
135
- outline: 1px solid #86c0b2 !important;
136
- }
137
-
138
- ${i} th {
139
- outline: 1px solid #a1e7d6 !important;
140
- }
141
-
142
- ${i} td {
143
- outline: 1px solid #3f5a54 !important;
144
- }
145
-
146
- ${i} col {
147
- outline: 1px solid #6c9a8f !important;
148
- }
149
-
150
- ${i} colgroup {
151
- outline: 1px solid #6c9a9d !important;
152
- }
153
-
154
- ${i} button {
155
- outline: 1px solid #da8301 !important;
156
- }
157
-
158
- ${i} datalist {
159
- outline: 1px solid #c06000 !important;
160
- }
161
-
162
- ${i} fieldset {
163
- outline: 1px solid #d95100 !important;
164
- }
165
-
166
- ${i} form {
167
- outline: 1px solid #d23600 !important;
168
- }
169
-
170
- ${i} input {
171
- outline: 1px solid #fca600 !important;
172
- }
173
-
174
- ${i} keygen {
175
- outline: 1px solid #b31e00 !important;
176
- }
177
-
178
- ${i} label {
179
- outline: 1px solid #ee8900 !important;
180
- }
181
-
182
- ${i} legend {
183
- outline: 1px solid #de6d00 !important;
184
- }
185
-
186
- ${i} meter {
187
- outline: 1px solid #e8630c !important;
188
- }
189
-
190
- ${i} optgroup {
191
- outline: 1px solid #b33600 !important;
192
- }
193
-
194
- ${i} option {
195
- outline: 1px solid #ff8a00 !important;
196
- }
197
-
198
- ${i} output {
199
- outline: 1px solid #ff9619 !important;
200
- }
201
-
202
- ${i} progress {
203
- outline: 1px solid #e57c00 !important;
204
- }
205
-
206
- ${i} select {
207
- outline: 1px solid #e26e0f !important;
208
- }
209
-
210
- ${i} textarea {
211
- outline: 1px solid #cc5400 !important;
212
- }
213
-
214
- ${i} details {
215
- outline: 1px solid #33848f !important;
216
- }
217
-
218
- ${i} summary {
219
- outline: 1px solid #60a1a6 !important;
220
- }
221
-
222
- ${i} command {
223
- outline: 1px solid #438da1 !important;
224
- }
225
-
226
- ${i} menu {
227
- outline: 1px solid #449da6 !important;
228
- }
229
-
230
- ${i} del {
231
- outline: 1px solid #bf0000 !important;
232
- }
233
-
234
- ${i} ins {
235
- outline: 1px solid #400000 !important;
236
- }
237
-
238
- ${i} img {
239
- outline: 1px solid #22746b !important;
240
- }
241
-
242
- ${i} iframe {
243
- outline: 1px solid #64a7a0 !important;
244
- }
245
-
246
- ${i} embed {
247
- outline: 1px solid #98daca !important;
248
- }
249
-
250
- ${i} object {
251
- outline: 1px solid #00cc99 !important;
252
- }
253
-
254
- ${i} param {
255
- outline: 1px solid #37ffc4 !important;
256
- }
257
-
258
- ${i} video {
259
- outline: 1px solid #6ee866 !important;
260
- }
261
-
262
- ${i} audio {
263
- outline: 1px solid #027353 !important;
264
- }
265
-
266
- ${i} source {
267
- outline: 1px solid #012426 !important;
268
- }
269
-
270
- ${i} canvas {
271
- outline: 1px solid #a2f570 !important;
272
- }
273
-
274
- ${i} track {
275
- outline: 1px solid #59a600 !important;
276
- }
277
-
278
- ${i} map {
279
- outline: 1px solid #7be500 !important;
280
- }
281
-
282
- ${i} area {
283
- outline: 1px solid #305900 !important;
284
- }
285
-
286
- ${i} a {
287
- outline: 1px solid #ff62ab !important;
288
- }
289
-
290
- ${i} em {
291
- outline: 1px solid #800b41 !important;
292
- }
293
-
294
- ${i} strong {
295
- outline: 1px solid #ff1583 !important;
296
- }
297
-
298
- ${i} i {
299
- outline: 1px solid #803156 !important;
300
- }
301
-
302
- ${i} b {
303
- outline: 1px solid #cc1169 !important;
304
- }
305
-
306
- ${i} u {
307
- outline: 1px solid #ff0430 !important;
308
- }
309
-
310
- ${i} s {
311
- outline: 1px solid #f805e3 !important;
312
- }
313
-
314
- ${i} small {
315
- outline: 1px solid #d107b2 !important;
316
- }
317
-
318
- ${i} abbr {
319
- outline: 1px solid #4a0263 !important;
320
- }
321
-
322
- ${i} q {
323
- outline: 1px solid #240018 !important;
324
- }
325
-
326
- ${i} cite {
327
- outline: 1px solid #64003c !important;
328
- }
329
-
330
- ${i} dfn {
331
- outline: 1px solid #b4005a !important;
332
- }
333
-
334
- ${i} sub {
335
- outline: 1px solid #dba0c8 !important;
336
- }
337
-
338
- ${i} sup {
339
- outline: 1px solid #cc0256 !important;
340
- }
341
-
342
- ${i} time {
343
- outline: 1px solid #d6606d !important;
344
- }
345
-
346
- ${i} code {
347
- outline: 1px solid #e04251 !important;
348
- }
349
-
350
- ${i} kbd {
351
- outline: 1px solid #5e001f !important;
352
- }
353
-
354
- ${i} samp {
355
- outline: 1px solid #9c0033 !important;
356
- }
357
-
358
- ${i} var {
359
- outline: 1px solid #d90047 !important;
360
- }
361
-
362
- ${i} mark {
363
- outline: 1px solid #ff0053 !important;
364
- }
365
-
366
- ${i} bdi {
367
- outline: 1px solid #bf3668 !important;
368
- }
369
-
370
- ${i} bdo {
371
- outline: 1px solid #6f1400 !important;
372
- }
373
-
374
- ${i} ruby {
375
- outline: 1px solid #ff7b93 !important;
376
- }
377
-
378
- ${i} rt {
379
- outline: 1px solid #ff2f54 !important;
380
- }
381
-
382
- ${i} rp {
383
- outline: 1px solid #803e49 !important;
384
- }
385
-
386
- ${i} span {
387
- outline: 1px solid #cc2643 !important;
388
- }
389
-
390
- ${i} br {
391
- outline: 1px solid #db687d !important;
392
- }
393
-
394
- ${i} wbr {
395
- outline: 1px solid #db175b !important;
396
- }`}var e=(i,t)=>{let{globals:o}=t,n=[!0,"true"].includes(o[m]),d=t.viewMode==="docs",l=x(()=>s(d?'[data-story-block="true"]':".sb-show-main"),[t]);return f(()=>{let a=d?`addon-outline-docs-${t.id}`:"addon-outline";return n?b(a,l):u(a),()=>{u(a)}},[n,l,t]),i()},h=[e],g={[m]:!1};export{h as decorators,g as initialGlobals};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-BwJiFRuq.js","./iframe-YbiB23cy.js","./index-CzKwSnp0.js","./jsx-runtime-D_zvdyIk.js","./index-DgnBCu_c.js","./index-D_kTjGoR.js","./index-Cf9b6H0j.js","./index-DrFu-skq.js","./react-18-Tf4JhPOR.js"])))=>i.map(i=>d[i]);
2
- import{_ as a}from"./iframe-YbiB23cy.js";var i=Object.defineProperty,s=(e,r)=>{for(var t in r)i(e,t,{get:r[t],enumerable:!0})},_={};s(_,{parameters:()=>d});var p=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-CFRXHY34-BwJiFRuq.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(r=>p[r]).length===0&&!e.parameters.docs?.disable}}};export{d as parameters};
@@ -1,34 +0,0 @@
1
- import{d as F}from"./index-DrFu-skq.js";const{useEffect:h,useMemo:E}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Y}=__STORYBOOK_MODULE_GLOBAL__,{logger:H}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var g="backgrounds",R={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:u,window:K}=Y,C=()=>!!K?.matchMedia("(prefers-reduced-motion: reduce)")?.matches,_=a=>{(Array.isArray(a)?a:[a]).forEach(P)},P=a=>{let e=u.getElementById(a);e&&e.parentElement?.removeChild(e)},I=(a,e)=>{let t=u.getElementById(a);if(t)t.innerHTML!==e&&(t.innerHTML=e);else{let o=u.createElement("style");o.setAttribute("id",a),o.innerHTML=e,u.head.appendChild(o)}},z=(a,e,t)=>{let o=u.getElementById(a);if(o)o.innerHTML!==e&&(o.innerHTML=e);else{let r=u.createElement("style");r.setAttribute("id",a),r.innerHTML=e;let d=`addon-backgrounds-grid${t?`-docs-${t}`:""}`,n=u.getElementById(d);n?n.parentElement?.insertBefore(r,n):u.head.appendChild(r)}},j={cellSize:100,cellAmount:10,opacity:.8},L="addon-backgrounds",G="addon-backgrounds-grid",X=C()?"":"transition: background-color 0.3s;",N=(a,e)=>{let{globals:t,parameters:o,viewMode:r,id:d}=e,{options:n=R,disable:i,grid:l=j}=o[g]||{},p=t[g]||{},c=p.value,b=c?n[c]:void 0,$=b?.value||"transparent",f=p.grid||!1,m=!!b&&!i,S=r==="docs"?`#anchor--${d} .docs-story`:".sb-show-main",M=r==="docs"?`#anchor--${d} .docs-story`:".sb-show-main",U=o.layout===void 0||o.layout==="padded",O=r==="docs"?20:U?16:0,{cellAmount:y,cellSize:s,opacity:k,offsetX:x=O,offsetY:v=O}=l,A=r==="docs"?`${L}-docs-${d}`:`${L}-color`,w=r==="docs"?d:null;h(()=>{let T=`
2
- ${S} {
3
- background: ${$} !important;
4
- ${X}
5
- }`;if(!m){_(A);return}z(A,T,w)},[S,A,w,m,$]);let B=r==="docs"?`${G}-docs-${d}`:`${G}`;return h(()=>{if(!f){_(B);return}let T=[`${s*y}px ${s*y}px`,`${s*y}px ${s*y}px`,`${s}px ${s}px`,`${s}px ${s}px`].join(", "),D=`
6
- ${M} {
7
- background-size: ${T} !important;
8
- background-position: ${x}px ${v}px, ${x}px ${v}px, ${x}px ${v}px, ${x}px ${v}px !important;
9
- background-blend-mode: difference !important;
10
- background-image: linear-gradient(rgba(130, 130, 130, ${k}) 1px, transparent 1px),
11
- linear-gradient(90deg, rgba(130, 130, 130, ${k}) 1px, transparent 1px),
12
- linear-gradient(rgba(130, 130, 130, ${k/2}) 1px, transparent 1px),
13
- linear-gradient(90deg, rgba(130, 130, 130, ${k/2}) 1px, transparent 1px) !important;
14
- }
15
- `;I(B,D)},[y,s,M,B,f,x,v,k]),a()},W=(a,e=[],t)=>{if(a==="transparent")return"transparent";if(e.find(r=>r.value===a)||a)return a;let o=e.find(r=>r.name===t);if(o)return o.value;if(t){let r=e.map(d=>d.name).join(", ");H.warn(F`
16
- Backgrounds Addon: could not find the default color "${t}".
17
- These are the available colors for your story based on your configuration:
18
- ${r}.
19
- `)}return"transparent"},q=(a,e)=>{let{globals:t,parameters:o}=e,r=t[g]?.value,d=o[g],n=E(()=>d.disable?"transparent":W(r,d.values,d.default),[d,r]),i=E(()=>n&&n!=="transparent",[n]),l=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",p=E(()=>`
20
- ${l} {
21
- background: ${n} !important;
22
- ${C()?"":"transition: background-color 0.3s;"}
23
- }
24
- `,[n,l]);return h(()=>{let c=e.viewMode==="docs"?`addon-backgrounds-docs-${e.id}`:"addon-backgrounds-color";if(!i){_(c);return}z(c,p,e.viewMode==="docs"?e.id:null)},[i,p,e]),a()},J=(a,e)=>{let{globals:t,parameters:o}=e,r=o[g].grid,d=t[g]?.grid===!0&&r.disable!==!0,{cellAmount:n,cellSize:i,opacity:l}=r,p=e.viewMode==="docs",c=o.layout===void 0||o.layout==="padded"?16:0,b=r.offsetX??(p?20:c),$=r.offsetY??(p?20:c),f=E(()=>{let m=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",S=[`${i*n}px ${i*n}px`,`${i*n}px ${i*n}px`,`${i}px ${i}px`,`${i}px ${i}px`].join(", ");return`
25
- ${m} {
26
- background-size: ${S} !important;
27
- background-position: ${b}px ${$}px, ${b}px ${$}px, ${b}px ${$}px, ${b}px ${$}px !important;
28
- background-blend-mode: difference !important;
29
- background-image: linear-gradient(rgba(130, 130, 130, ${l}) 1px, transparent 1px),
30
- linear-gradient(90deg, rgba(130, 130, 130, ${l}) 1px, transparent 1px),
31
- linear-gradient(rgba(130, 130, 130, ${l/2}) 1px, transparent 1px),
32
- linear-gradient(90deg, rgba(130, 130, 130, ${l/2}) 1px, transparent 1px) !important;
33
- }
34
- `},[i]);return h(()=>{let m=e.viewMode==="docs"?`addon-backgrounds-grid-docs-${e.id}`:"addon-backgrounds-grid";if(!d){_(m);return}I(m,f)},[d,f,e]),a()},V=globalThis.FEATURES?.backgroundsStoryGlobals?[N]:[J,q],ee={[g]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1,...!globalThis.FEATURES?.backgroundsStoryGlobals&&{values:Object.values(R)}}},Q={[g]:{value:void 0,grid:!1}},re=globalThis.FEATURES?.backgroundsStoryGlobals?Q:{[g]:null};export{V as decorators,re as initialGlobals,ee as parameters};
@@ -1 +0,0 @@
1
- var j="Invariant failed";function S(e,t){if(!e)throw new Error(j)}const{useEffect:T}=__STORYBOOK_MODULE_PREVIEW_API__,{global:d}=__STORYBOOK_MODULE_GLOBAL__;var K="measureEnabled";function Y(){let e=d.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function G(){let e=d.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");S(t!=null);let{width:o,height:l}=Y();return A(e,t,{width:o,height:l}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",d.document.body.appendChild(e),{canvas:e,context:t,width:o,height:l}}function A(e,t,{width:o,height:l}){e.style.width=`${o}px`,e.style.height=`${l}px`;let i=d.window.devicePixelRatio;e.width=Math.floor(o*i),e.height=Math.floor(l*i),t.scale(i,i)}var h={};function U(){h.canvas||(h=G())}function H(){h.context&&h.context.clearRect(0,0,h.width??0,h.height??0)}function V(e){H(),e(h.context)}function Z(){S(h.canvas),S(h.context),A(h.canvas,h.context,{width:0,height:0});let{width:e,height:t}=Y();A(h.canvas,h.context,{width:e,height:t}),h.width=e,h.height=t}function J(){h.canvas&&(H(),h.canvas.parentNode?.removeChild(h.canvas),h={})}var w={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},c=6;function W(e,{x:t,y:o,w:l,h:i,r:n}){t=t-l/2,o=o-i/2,l<2*n&&(n=l/2),i<2*n&&(n=i/2),e.beginPath(),e.moveTo(t+n,o),e.arcTo(t+l,o,t+l,o+i,n),e.arcTo(t+l,o+i,t,o+i,n),e.arcTo(t,o+i,t,o,n),e.arcTo(t,o,t+l,o,n),e.closePath()}function Q(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom,s=r+o.left+t.left,u=n+o.top+t.top;return e==="top"?s+=f/2:e==="right"?(s+=f,u+=a/2):e==="bottom"?(s+=f/2,u+=a):e==="left"?u+=a/2:e==="center"&&(s+=f/2,u+=a/2),{x:s,y:u}}function x(e,t,{margin:o,border:l,padding:i},n,r){let f=m=>0,a=0,s=0,u=r?1:.5,g=r?n*2:0;return e==="padding"?f=m=>i[m]*u+g:e==="border"?f=m=>i[m]+l[m]*u+g:e==="margin"&&(f=m=>i[m]+l[m]+o[m]*u+g),t==="top"?s=-f("top"):t==="right"?a=f("right"):t==="bottom"?s=f("bottom"):t==="left"&&(a=-f("left")),{offsetX:a,offsetY:s}}function tt(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function et(e,t,o){return e==="top"?t.y=o.y-o.h-c:e==="right"?t.x=o.x+o.w/2+c+t.w/2:e==="bottom"?t.y=o.y+o.h+c:e==="left"&&(t.x=o.x-o.w/2-c-t.w/2),{x:t.x,y:t.y}}function X(e,t,{x:o,y:l,w:i,h:n},r){return W(e,{x:o,y:l,w:i,h:n,r:3}),e.fillStyle=`${w[t]}dd`,e.fill(),e.strokeStyle=w[t],e.stroke(),e.fillStyle=w.text,e.fillText(r,o,l),W(e,{x:o,y:l,w:i,h:n,r:3}),e.fillStyle=`${w[t]}dd`,e.fill(),e.strokeStyle=w[t],e.stroke(),e.fillStyle=w.text,e.fillText(r,o,l),{x:o,y:l,w:i,h:n}}function C(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let o=e.measureText(t),l=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent,i=o.width+c*2,n=l+c*2;return{w:i,h:n}}function ot(e,t,{type:o,position:l="center",text:i},n,r=!1){let{x:f,y:a}=Q(l,t),{offsetX:s,offsetY:u}=x(o,l,t,c+1,r);f+=s,a+=u;let{w:g,h:m}=C(e,i);if(n&&tt({x:f,y:a,w:g,h:m},n)){let v=et(l,{x:f,y:a,w:g},n);f=v.x,a=v.y}return X(e,o,{x:f,y:a,w:g,h:m},i)}function it(e,{w:t,h:o}){let l=t*.5+c,i=o*.5+c;return{offsetX:(e.x==="left"?-1:1)*l,offsetY:(e.y==="top"?-1:1)*i}}function lt(e,t,{type:o,text:l}){let{floatingAlignment:i,extremities:n}=t,r=n[i.x],f=n[i.y],{w:a,h:s}=C(e,l),{offsetX:u,offsetY:g}=it(i,{w:a,h:s});return r+=u,f+=g,X(e,o,{x:r,y:f,w:a,h:s},l)}function E(e,t,o,l){let i=[];o.forEach((n,r)=>{let f=l&&n.position==="center"?lt(e,t,n):ot(e,t,n,i[r-1],l);i[r]=f})}function nt(e,t,o,l){let i=o.reduce((n,r)=>(Object.prototype.hasOwnProperty.call(n,r.position)||(n[r.position]=[]),n[r.position]?.push(r),n),{});i.top&&E(e,t,i.top,l),i.right&&E(e,t,i.right,l),i.bottom&&E(e,t,i.bottom,l),i.left&&E(e,t,i.left,l),i.center&&E(e,t,i.center,l)}var L={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},B=30;function p(e){return parseInt(e.replace("px",""),10)}function b(e){return Number.isInteger(e)?e:e.toFixed(2)}function P(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function ft(e){let t={top:d.window.scrollY,bottom:d.window.scrollY+d.window.innerHeight,left:d.window.scrollX,right:d.window.scrollX+d.window.innerWidth},o={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:o.left>o.right?"left":"right",y:o.top>o.bottom?"top":"bottom"}}function rt(e){let t=d.getComputedStyle(e),{top:o,left:l,right:i,bottom:n,width:r,height:f}=e.getBoundingClientRect(),{marginTop:a,marginBottom:s,marginLeft:u,marginRight:g,paddingTop:m,paddingBottom:v,paddingLeft:k,paddingRight:F,borderBottomWidth:I,borderTopWidth:D,borderLeftWidth:$,borderRightWidth:N}=t;o=o+d.window.scrollY,l=l+d.window.scrollX,n=n+d.window.scrollY,i=i+d.window.scrollX;let y={top:p(a),bottom:p(s),left:p(u),right:p(g)},q={top:p(m),bottom:p(v),left:p(k),right:p(F)},z={top:p(D),bottom:p(I),left:p($),right:p(N)},_={top:o-y.top,bottom:n+y.bottom,left:l-y.left,right:i+y.right};return{margin:y,padding:q,border:z,top:o,left:l,bottom:n,right:i,width:r,height:f,extremities:_,floatingAlignment:ft(_)}}function at(e,{margin:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l+t.bottom+t.top;e.fillStyle=L.margin,e.fillRect(n,i-t.top,o,t.top),e.fillRect(f,i-t.top,t.right,a),e.fillRect(n,r,o,t.bottom),e.fillRect(n-t.left,i-t.top,t.left,a);let s=[{type:"margin",text:b(t.top),position:"top"},{type:"margin",text:b(t.right),position:"right"},{type:"margin",text:b(t.bottom),position:"bottom"},{type:"margin",text:b(t.left),position:"left"}];return P(s)}function st(e,{padding:t,border:o,width:l,height:i,top:n,left:r,bottom:f,right:a}){let s=l-o.left-o.right,u=i-t.top-t.bottom-o.top-o.bottom;e.fillStyle=L.padding,e.fillRect(r+o.left,n+o.top,s,t.top),e.fillRect(a-t.right-o.right,n+t.top+o.top,t.right,u),e.fillRect(r+o.left,f-t.bottom-o.bottom,s,t.bottom),e.fillRect(r+o.left,n+t.top+o.top,t.left,u);let g=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return P(g)}function ht(e,{border:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l-t.top-t.bottom;e.fillStyle=L.border,e.fillRect(n,i,o,t.top),e.fillRect(n,r-t.bottom,o,t.bottom),e.fillRect(n,i+t.top,t.left,a),e.fillRect(f-t.right,i+t.top,t.right,a);let s=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return P(s)}function ut(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom;return e.fillStyle=L.content,e.fillRect(r+o.left+t.left,n+o.top+t.top,f,a),[{type:"content",position:"center",text:`${b(f)} x ${b(a)}`}]}function dt(e){return t=>{if(e&&t){let o=rt(e),l=at(t,o),i=st(t,o),n=ht(t,o),r=ut(t,o),f=o.width<=B*3||o.height<=B;nt(t,o,[...r,...i,...n,...l],f)}}}function mt(e){V(dt(e))}var gt=(e,t)=>{let o=d.document.elementFromPoint(e,t),l=i=>{if(i&&i.shadowRoot){let n=i.shadowRoot.elementFromPoint(e,t);return i.isEqualNode(n)?i:n.shadowRoot?l(n):n}return i};return l(o)||o},O,M={x:0,y:0};function R(e,t){O=gt(e,t),mt(O)}var pt=(e,t)=>{let{measureEnabled:o}=t.globals;return T(()=>{let l=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),M.x=i.clientX,M.y=i.clientY})};return document.addEventListener("pointermove",l),()=>{document.removeEventListener("pointermove",l)}},[]),T(()=>{let l=n=>{window.requestAnimationFrame(()=>{n.stopPropagation(),R(n.clientX,n.clientY)})},i=()=>{window.requestAnimationFrame(()=>{Z()})};return t.viewMode==="story"&&o&&(document.addEventListener("pointerover",l),U(),window.addEventListener("resize",i),R(M.x,M.y)),()=>{window.removeEventListener("resize",i),J()}},[o,t.viewMode]),e()},ct=[pt],wt={[K]:!1};export{ct as decorators,wt as initialGlobals};
@@ -1 +0,0 @@
1
- var e="viewport",o={[e]:{value:void 0,isRotated:!1}},a={viewport:"reset",viewportRotated:!1},t=globalThis.FEATURES?.viewportStoryGlobals?o:a;export{t as initialGlobals};
@@ -1 +0,0 @@
1
- let d;const b=new Uint8Array(16);function x(){if(!d&&(d=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!d))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return d(b)}const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function S(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}const v=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),y={randomUUID:v};function A(e,t,n){if(y.randomUUID&&!e)return y.randomUUID();e=e||{};const r=e.random||(e.rng||x)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,S(r)}const{addons:D}=__STORYBOOK_MODULE_PREVIEW_API__,{ImplicitActionsDuringRendering:w}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:p}=__STORYBOOK_MODULE_GLOBAL__;var I="storybook/actions",f=`${I}/action-event`,U={depth:10,clearOnStoryChange:!0,limit:50},h=(e,t)=>{let n=Object.getPrototypeOf(e);return!n||t(n)?n:h(n,t)},j=e=>!!(typeof e=="object"&&e&&h(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),V=e=>{if(j(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let n=Object.getOwnPropertyDescriptor(t,"view"),r=n?.value;return typeof r=="object"&&r?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...n,value:Object.create(r.constructor.prototype)}),t}return e},C=()=>typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?A():Date.now().toString(36)+Math.random().toString(36).substring(2);function _(e,t={}){let n={...U,...t},r=function(...s){if(t.implicit){let g=("__STORYBOOK_PREVIEW__"in p?p.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(l=>l.phase==="playing"||l.phase==="rendering");if(g){let l=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,O=new w({phase:g.phase,name:e,deprecated:l});if(l)console.warn(O);else throw O}}let o=D.getChannel(),c=C(),a=5,u=s.map(V),E=s.length>1?u:u[0],T={id:c,count:0,data:{name:e,args:E},options:{...n,maxDepth:a+(n.depth||3),allowFunction:n.allowFunction||!1}};o.emit(f,T)};return r.isAction=!0,r.implicit=t.implicit,r}var m=(e,t)=>typeof t[e]>"u"&&!(e in t),K=e=>{let{initialArgs:t,argTypes:n,id:r,parameters:{actions:s}}=e;if(!s||s.disable||!s.argTypesRegex||!n)return{};let o=new RegExp(s.argTypesRegex);return Object.entries(n).filter(([c])=>!!o.test(c)).reduce((c,[a,u])=>(m(a,t)&&(c[a]=_(a,{implicit:!0,id:r})),c),{})},L=e=>{let{initialArgs:t,argTypes:n,parameters:{actions:r}}=e;return r?.disable||!n?{}:Object.entries(n).filter(([s,o])=>!!o.action).reduce((s,[o,c])=>(m(o,t)&&(s[o]=_(typeof c.action=="string"?c.action:o)),s),{})},M=[L,K],R=!1,B=e=>{let{parameters:{actions:t}}=e;if(!t?.disable&&!R&&"__STORYBOOK_TEST_ON_MOCK_CALL__"in p&&typeof p.__STORYBOOK_TEST_ON_MOCK_CALL__=="function"){let n=p.__STORYBOOK_TEST_ON_MOCK_CALL__;n((r,s)=>{let o=r.getMockName();o!=="spy"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(c=>o.startsWith(c)))&&_(o)(s)}),R=!0}},P=[B];export{M as argsEnhancers,P as loaders};