sitcod3 commited on
Commit
3dc4fef
·
verified ·
1 Parent(s): 3887d38

Upload folder using huggingface_hub (part 7)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. node_modules/@headlessui/react/LICENSE +21 -0
  2. node_modules/@headlessui/react/README.md +30 -0
  3. node_modules/@headlessui/react/dist/hooks/use-quick-release.js +1 -0
  4. node_modules/@headlessui/react/dist/hooks/use-refocusable-input.d.ts +7 -0
  5. node_modules/@headlessui/react/dist/hooks/use-refocusable-input.js +1 -0
  6. node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.d.ts +4 -0
  7. node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +1 -0
  8. node_modules/@headlessui/react/dist/hooks/use-resolved-tag.d.ts +10 -0
  9. node_modules/@headlessui/react/dist/hooks/use-resolved-tag.js +1 -0
  10. node_modules/@headlessui/react/dist/hooks/use-root-containers.d.ts +40 -0
  11. node_modules/@headlessui/react/dist/hooks/use-root-containers.js +1 -0
  12. node_modules/@headlessui/react/dist/hooks/use-scroll-lock.d.ts +1 -0
  13. node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +1 -0
  14. node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.d.ts +1 -0
  15. node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +1 -0
  16. node_modules/@headlessui/react/dist/hooks/use-slot.d.ts +1 -0
  17. node_modules/@headlessui/react/dist/hooks/use-slot.js +1 -0
  18. node_modules/@headlessui/react/dist/hooks/use-store.d.ts +2 -0
  19. node_modules/@headlessui/react/dist/hooks/use-store.js +1 -0
  20. node_modules/@headlessui/react/dist/hooks/use-sync-refs.d.ts +5 -0
  21. node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +1 -0
  22. node_modules/@headlessui/react/dist/hooks/use-tab-direction.d.ts +6 -0
  23. node_modules/@headlessui/react/dist/hooks/use-tab-direction.js +1 -0
  24. node_modules/@headlessui/react/dist/hooks/use-text-value.d.ts +2 -0
  25. node_modules/@headlessui/react/dist/hooks/use-text-value.js +1 -0
  26. node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.d.ts +4 -0
  27. node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +1 -0
  28. node_modules/@headlessui/react/dist/hooks/use-transition.d.ts +12 -0
  29. node_modules/@headlessui/react/dist/hooks/use-transition.js +2 -0
  30. node_modules/@headlessui/react/dist/hooks/use-tree-walker.d.ts +7 -0
  31. node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +1 -0
  32. node_modules/@headlessui/react/dist/hooks/use-watch.d.ts +1 -0
  33. node_modules/@headlessui/react/dist/hooks/use-watch.js +1 -0
  34. node_modules/@headlessui/react/dist/hooks/use-window-event.d.ts +1 -0
  35. node_modules/@headlessui/react/dist/hooks/use-window-event.js +1 -0
  36. node_modules/@headlessui/react/dist/index.cjs +7 -0
  37. node_modules/@headlessui/react/dist/index.d.cts +25 -0
  38. node_modules/@headlessui/react/dist/index.d.ts +25 -0
  39. node_modules/@headlessui/react/dist/index.js +1 -0
  40. node_modules/@headlessui/react/dist/internal/close-provider.d.ts +5 -0
  41. node_modules/@headlessui/react/dist/internal/close-provider.js +1 -0
  42. node_modules/@headlessui/react/dist/internal/disabled.d.ts +5 -0
  43. node_modules/@headlessui/react/dist/internal/disabled.js +1 -0
  44. node_modules/@headlessui/react/dist/internal/floating.d.ts +52 -0
  45. node_modules/@headlessui/react/dist/internal/floating.js +1 -0
  46. node_modules/@headlessui/react/dist/internal/focus-sentinel.d.ts +6 -0
  47. node_modules/@headlessui/react/dist/internal/focus-sentinel.js +1 -0
  48. node_modules/@headlessui/react/dist/internal/form-fields.d.ts +10 -0
  49. node_modules/@headlessui/react/dist/internal/form-fields.js +1 -0
  50. node_modules/@headlessui/react/dist/internal/frozen.d.ts +6 -0
node_modules/@headlessui/react/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Tailwind Labs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
node_modules/@headlessui/react/README.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h3 align="center">
2
+ @headlessui/react
3
+ </h3>
4
+
5
+ <p align="center">
6
+ A set of completely unstyled, fully accessible UI components for React, designed to integrate
7
+ beautifully with Tailwind CSS.
8
+ </p>
9
+
10
+ <p align="center">
11
+ <a href="https://www.npmjs.com/package/@headlessui/react"><img src="https://img.shields.io/npm/dt/@headlessui/react.svg" alt="Total Downloads"></a>
12
+ <a href="https://github.com/tailwindlabs/headlessui/releases"><img src="https://img.shields.io/npm/v/@headlessui/react.svg" alt="Latest Release"></a>
13
+ <a href="https://github.com/tailwindlabs/headlessui/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/@headlessui/react.svg" alt="License"></a>
14
+ </p>
15
+
16
+ ## Installation
17
+
18
+ ```sh
19
+ npm install @headlessui/react
20
+ ```
21
+
22
+ ## Documentation
23
+
24
+ For full documentation, visit [headlessui.dev](https://headlessui.dev/react/menu).
25
+
26
+ ## Community
27
+
28
+ For help, discussion about best practices, or feature ideas:
29
+
30
+ [Discuss Headless UI on GitHub](https://github.com/tailwindlabs/headlessui/discussions)
node_modules/@headlessui/react/dist/hooks/use-quick-release.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useRef as o}from"react";import*as E from'../utils/dom.js';import{useDocumentEvent as d}from'./use-document-event.js';var H=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(H||{});const S={Ignore:{kind:0},Select:r=>({kind:1,target:r}),Close:{kind:2}},M=200,f=5;function L(r,{trigger:n,action:T,close:e,select:p}){let l=o(null),i=o(null),u=o(null);d(r&&n!==null,"pointerdown",t=>{E.isNode(t==null?void 0:t.target)&&n!=null&&n.contains(t.target)&&(i.current=t.x,u.current=t.y,l.current=t.timeStamp)}),d(r&&n!==null,"pointerup",t=>{var s,m;let c=l.current;if(c===null||(l.current=null,!E.isHTMLorSVGElement(t.target))||Math.abs(t.x-((s=i.current)!=null?s:t.x))<f&&Math.abs(t.y-((m=u.current)!=null?m:t.y))<f)return;let a=T(t);switch(a.kind){case 0:return;case 1:{t.timeStamp-c>M&&(p(a.target),e());break}case 2:{e();break}}},{capture:!0})}export{S as Action,L as useQuickRelease};
node_modules/@headlessui/react/dist/hooks/use-refocusable-input.d.ts ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ /**
2
+ * The `useRefocusableInput` hook exposes a function to re-focus the input element.
3
+ *
4
+ * This hook will also keep the cursor position into account to make sure the
5
+ * cursor is placed at the correct position as-if we didn't loose focus at all.
6
+ */
7
+ export declare function useRefocusableInput(input: HTMLInputElement | null): () => void;
node_modules/@headlessui/react/dist/hooks/use-refocusable-input.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useRef as u}from"react";import*as r from'../utils/dom.js';import{isActiveElement as o}from'../utils/owner.js';import{useEvent as s}from'./use-event.js';import{useEventListener as c}from'./use-event-listener.js';function v(e){let l=u({value:"",selectionStart:null,selectionEnd:null});return c(e,"blur",n=>{let t=n.target;r.isHTMLInputElement(t)&&(l.current={value:t.value,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})}),s(()=>{if(!o(e)&&r.isHTMLInputElement(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==l.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:t}=l.current;n!==null&&t!==null&&e.setSelectionRange(n,t)}l.current={value:"",selectionStart:null,selectionEnd:null}}})}export{v as useRefocusableInput};
node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.d.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ export declare function useResolveButtonType<TTag>(props: {
2
+ type?: string;
3
+ as?: TTag;
4
+ }, element: HTMLElement | null): string | undefined;
node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useMemo as a}from"react";function e(t,u){return a(()=>{var n;if(t.type)return t.type;let r=(n=t.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(u==null?void 0:u.tagName)==="BUTTON"&&!u.hasAttribute("type"))return"button"},[t.type,t.as,u])}export{e as useResolveButtonType};
node_modules/@headlessui/react/dist/hooks/use-resolved-tag.d.ts ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ /// <reference types="react" />
2
+ /**
3
+ * Resolve the actual rendered tag of a DOM node. If the `tag` provided is
4
+ * already a string we can use that as-is. This will happen when the `as` prop is
5
+ * not used or when it's used with a string value.
6
+ *
7
+ * If an actual component is used, then we need to do some more work because
8
+ * then we actually need to render the component to know what the tag name is.
9
+ */
10
+ export declare function useResolvedTag<T extends React.ElementType>(tag: T): readonly [string | undefined, (ref: any) => void];
node_modules/@headlessui/react/dist/hooks/use-resolved-tag.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useCallback as r,useState as a}from"react";import*as i from'../utils/dom.js';function d(t){let e=typeof t=="string"?t:void 0,[s,o]=a(e);return[e!=null?e:s,r(n=>{e||i.isHTMLElement(n)&&o(n.tagName.toLowerCase())},[e])]}export{d as useResolvedTag};
node_modules/@headlessui/react/dist/hooks/use-root-containers.d.ts ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React, { type MutableRefObject } from 'react';
2
+ export declare function useRootContainers({ defaultContainers, portals, mainTreeNode, }?: {
3
+ defaultContainers?: (Element | null | MutableRefObject<Element | null>)[];
4
+ portals?: MutableRefObject<Element[]>;
5
+ mainTreeNode?: Element | null;
6
+ }): {
7
+ resolveContainers: () => Element[];
8
+ contains: (element: Element) => boolean;
9
+ };
10
+ /**
11
+ * A provider for the main tree node.
12
+ *
13
+ * When a component is rendered in a `Portal`, it is no longer part of the main
14
+ * tree. This provider helps to find the main tree node and pass it along to the
15
+ * components that need it.
16
+ *
17
+ * The main tree node is used for features such as outside click behavior, where
18
+ * we allow clicks in 3rd party containers, but not in the parent of the "main
19
+ * tree".
20
+ *
21
+ * In case of a `Popover`, we can use the `PopoverButton` as a marker in the
22
+ * "main tree", the `PopoverPanel` can't be used because it could be rendered in
23
+ * a `Portal` (e.g. when using the `anchor` props).
24
+ *
25
+ * However, we can't use the `PopoverButton` when it's nested inside of another
26
+ * `Popover`'s `PopoverPanel` component if the parent `PopoverPanel` is
27
+ * rendered in a `Portal`.
28
+ *
29
+ * This is where the `MainTreeProvider` comes in. It will find the "main tree"
30
+ * node and pass it on. The top-level `PopoverButton` will be used as a marker
31
+ * in the "main tree" and nested `Popover` will use this button as well.
32
+ */
33
+ export declare function MainTreeProvider({ children, node, }: {
34
+ children: React.ReactNode;
35
+ node?: Element | null;
36
+ }): React.JSX.Element;
37
+ /**
38
+ * Get the main tree node from context or fallback to the optionally provided node.
39
+ */
40
+ export declare function useMainTreeNode(fallbackMainTreeNode?: Element | null): Element | null;
node_modules/@headlessui/react/dist/hooks/use-root-containers.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import s,{createContext as h,useContext as b,useState as p}from"react";import{Hidden as M,HiddenFeatures as v}from'../internal/hidden.js';import*as f from'../utils/dom.js';import{getOwnerDocument as a}from'../utils/owner.js';import{useEvent as m}from'./use-event.js';function S({defaultContainers:l=[],portals:n,mainTreeNode:o}={}){let c=m(()=>{var r,u;let i=a(o),t=[];for(let e of l)e!==null&&(f.isElement(e)?t.push(e):"current"in e&&f.isElement(e.current)&&t.push(e.current));if(n!=null&&n.current)for(let e of n.current)t.push(e);for(let e of(r=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?r:[])e!==document.body&&e!==document.head&&f.isElement(e)&&e.id!=="headlessui-portal-root"&&(o&&(e.contains(o)||e.contains((u=o==null?void 0:o.getRootNode())==null?void 0:u.host))||t.some(E=>e.contains(E))||t.push(e));return t});return{resolveContainers:c,contains:m(i=>c().some(t=>t.contains(i)))}}let d=h(null);function j({children:l,node:n}){let[o,c]=p(null),i=x(n!=null?n:o);return s.createElement(d.Provider,{value:i},l,i===null&&s.createElement(M,{features:v.Hidden,ref:t=>{var r,u;if(t){for(let e of(u=(r=a(t))==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?u:[])if(e!==document.body&&e!==document.head&&f.isElement(e)&&e!=null&&e.contains(t)){c(e);break}}}}))}function x(l=null){var n;return(n=b(d))!=null?n:l}export{j as MainTreeProvider,x as useMainTreeNode,S as useRootContainers};
node_modules/@headlessui/react/dist/hooks/use-scroll-lock.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export declare function useScrollLock(enabled: boolean, ownerDocument: Document | null, resolveAllowedContainers?: () => Element[]): void;
node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useDocumentOverflowLockedEffect as l}from'./document-overflow/use-document-overflow.js';import{useIsTopLayer as m}from'./use-is-top-layer.js';function f(e,c,n=()=>[document.body]){let r=m(e,"scroll-lock");l(r,c,t=>{var o;return{containers:[...(o=t.containers)!=null?o:[],n]}})}export{f as useScrollLock};
node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export declare function useServerHandoffComplete(): boolean;
node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import*as t from"react";import{env as f}from'../utils/env.js';function s(){let r=typeof document=="undefined";return"useSyncExternalStore"in t?(o=>o.useSyncExternalStore)(t)(()=>()=>{},()=>!1,()=>!r):!1}function l(){let r=s(),[e,n]=t.useState(f.isHandoffComplete);return e&&f.isHandoffComplete===!1&&n(!1),t.useEffect(()=>{e!==!0&&n(!0)},[e]),t.useEffect(()=>f.handoff(),[]),r?!1:e}export{l as useServerHandoffComplete};
node_modules/@headlessui/react/dist/hooks/use-slot.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export declare function useSlot<ExpectedType extends Record<string, any>>(object: ExpectedType): ExpectedType;
node_modules/@headlessui/react/dist/hooks/use-slot.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useMemo as t}from"react";function n(e){return t(()=>e,Object.values(e))}export{n as useSlot};
node_modules/@headlessui/react/dist/hooks/use-store.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import type { Store } from '../utils/store.js';
2
+ export declare function useStore<T>(store: Store<T, any>): T;
node_modules/@headlessui/react/dist/hooks/use-store.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useSyncExternalStore as e}from"react";function o(t){return e(t.subscribe,t.getSnapshot,t.getSnapshot)}export{o as useStore};
node_modules/@headlessui/react/dist/hooks/use-sync-refs.d.ts ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ /// <reference types="react" />
2
+ export declare function optionalRef<T>(cb: (ref: T) => void, isOptional?: boolean): ((ref: T) => void) & {
3
+ [x: symbol]: boolean;
4
+ };
5
+ export declare function useSyncRefs<TType>(...refs: (React.MutableRefObject<TType | null> | ((instance: TType) => void) | null)[]): ((value: TType) => void) | undefined;
node_modules/@headlessui/react/dist/hooks/use-sync-refs.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useEffect as l,useRef as i}from"react";import{useEvent as r}from'./use-event.js';let u=Symbol();function T(t,n=!0){return Object.assign(t,{[u]:n})}function y(...t){let n=i(t);l(()=>{n.current=t},[t]);let c=r(e=>{for(let o of n.current)o!=null&&(typeof o=="function"?o(e):o.current=e)});return t.every(e=>e==null||(e==null?void 0:e[u]))?void 0:c}export{T as optionalRef,y as useSyncRefs};
node_modules/@headlessui/react/dist/hooks/use-tab-direction.d.ts ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ /// <reference types="react" />
2
+ export declare enum Direction {
3
+ Forwards = 0,
4
+ Backwards = 1
5
+ }
6
+ export declare function useTabDirection(): import("react").MutableRefObject<Direction>;
node_modules/@headlessui/react/dist/hooks/use-tab-direction.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useRef as o}from"react";import{useWindowEvent as t}from'./use-window-event.js';var a=(r=>(r[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r))(a||{});function u(){let e=o(0);return t(!0,"keydown",r=>{r.key==="Tab"&&(e.current=r.shiftKey?1:0)},!0),e}export{a as Direction,u as useTabDirection};
node_modules/@headlessui/react/dist/hooks/use-text-value.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import { type MutableRefObject } from 'react';
2
+ export declare function useTextValue(element: MutableRefObject<HTMLElement | null>): () => string;
node_modules/@headlessui/react/dist/hooks/use-text-value.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useRef as l}from"react";import{getTextValue as i}from'../utils/get-text-value.js';import{useEvent as o}from'./use-event.js';function s(c){let t=l(""),r=l("");return o(()=>{let e=c.current;if(!e)return"";let u=e.innerText;if(t.current===u)return r.current;let n=i(e).trim().toLowerCase();return t.current=u,r.current=n,n})}export{s as useTextValue};
node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.d.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ export declare function useTrackedPointer(): {
2
+ wasMoved(evt: PointerEvent): boolean;
3
+ update(evt: PointerEvent): void;
4
+ };
node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useRef as o}from"react";function t(e){return[e.screenX,e.screenY]}function u(){let e=o([-1,-1]);return{wasMoved(r){let n=t(r);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(r){e.current=t(r)}}}export{u as useTrackedPointer};
node_modules/@headlessui/react/dist/hooks/use-transition.d.ts ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ type TransitionData = {
2
+ closed?: boolean;
3
+ enter?: boolean;
4
+ leave?: boolean;
5
+ transition?: boolean;
6
+ };
7
+ export declare function transitionDataAttributes(data: TransitionData): Record<string, string>;
8
+ export declare function useTransition(enabled: boolean, element: HTMLElement | null, show: boolean, events?: {
9
+ start?: (show: boolean) => void;
10
+ end?: (show: boolean) => void;
11
+ }): [visible: boolean, data: TransitionData];
12
+ export {};
node_modules/@headlessui/react/dist/hooks/use-transition.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ var T,S;import{useRef as c,useState as b}from"react";import{disposables as m}from'../utils/disposables.js';import{useDisposables as g}from'./use-disposables.js';import{useFlags as y}from'./use-flags.js';import{useIsoMorphicEffect as L}from'./use-iso-morphic-effect.js';typeof process!="undefined"&&typeof globalThis!="undefined"&&typeof Element!="undefined"&&((T=process==null?void 0:process.env)==null?void 0:T["NODE_ENV"])==="test"&&typeof((S=Element==null?void 0:Element.prototype)==null?void 0:S.getAnimations)=="undefined"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
2
+ `)),[]});var A=(i=>(i[i.None=0]="None",i[i.Closed=1]="Closed",i[i.Enter=2]="Enter",i[i.Leave=4]="Leave",i))(A||{});function x(e){let r={};for(let t in e)e[t]===!0&&(r[`data-${t}`]="");return r}function N(e,r,t,n){let[i,a]=b(t),{hasFlag:s,addFlag:o,removeFlag:l}=y(e&&i?3:0),u=c(!1),f=c(!1),E=g();return L(()=>{var d;if(e){if(t&&a(!0),!r){t&&o(3);return}return(d=n==null?void 0:n.start)==null||d.call(n,t),C(r,{inFlight:u,prepare(){f.current?f.current=!1:f.current=u.current,u.current=!0,!f.current&&(t?(o(3),l(4)):(o(4),l(2)))},run(){f.current?t?(l(3),o(4)):(l(4),o(3)):t?l(1):o(1)},done(){var p;f.current&&D(r)||(u.current=!1,l(7),t||a(!1),(p=n==null?void 0:n.end)==null||p.call(n,t))}})}},[e,t,r,E]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[t,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function C(e,{prepare:r,run:t,done:n,inFlight:i}){let a=m();return j(e,{prepare:r,inFlight:i}),a.nextFrame(()=>{t(),a.requestAnimationFrame(()=>{a.add(M(e,n))})}),a.dispose}function M(e,r){var a,s;let t=m();if(!e)return t.dispose;let n=!1;t.add(()=>{n=!0});let i=(s=(a=e.getAnimations)==null?void 0:a.call(e).filter(o=>o instanceof CSSTransition))!=null?s:[];return i.length===0?(r(),t.dispose):(Promise.allSettled(i.map(o=>o.finished)).then(()=>{n||r()}),t.dispose)}function j(e,{inFlight:r,prepare:t}){if(r!=null&&r.current){t();return}let n=e.style.transition;e.style.transition="none",t(),e.offsetHeight,e.style.transition=n}function D(e){var t,n;return((n=(t=e.getAnimations)==null?void 0:t.call(e))!=null?n:[]).some(i=>i instanceof CSSTransition&&i.playState!=="finished")}export{x as transitionDataAttributes,N as useTransition};
node_modules/@headlessui/react/dist/hooks/use-tree-walker.d.ts ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ type AcceptNode = (node: HTMLElement) => typeof NodeFilter.FILTER_ACCEPT | typeof NodeFilter.FILTER_SKIP | typeof NodeFilter.FILTER_REJECT;
2
+ export declare function useTreeWalker(enabled: boolean, { container, accept, walk, }: {
3
+ container: HTMLElement | null;
4
+ accept: AcceptNode;
5
+ walk(node: HTMLElement): void;
6
+ }): void;
7
+ export {};
node_modules/@headlessui/react/dist/hooks/use-tree-walker.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useEffect as T,useRef as E}from"react";import{getOwnerDocument as d}from'../utils/owner.js';import{useIsoMorphicEffect as N}from'./use-iso-morphic-effect.js';function F(c,{container:e,accept:t,walk:r}){let o=E(t),l=E(r);T(()=>{o.current=t,l.current=r},[t,r]),N(()=>{if(!e||!c)return;let n=d(e);if(!n)return;let f=o.current,p=l.current,i=Object.assign(m=>f(m),{acceptNode:f}),u=n.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i,!1);for(;u.nextNode();)p(u.currentNode)},[e,c,o,l])}export{F as useTreeWalker};
node_modules/@headlessui/react/dist/hooks/use-watch.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export declare function useWatch<T extends any[]>(cb: (newValues: [...T], oldValues: [...T]) => void | (() => void), dependencies: [...T]): void;
node_modules/@headlessui/react/dist/hooks/use-watch.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useEffect as f,useRef as s}from"react";import{useEvent as i}from'./use-event.js';function m(u,t){let e=s([]),r=i(u);f(()=>{let o=[...e.current];for(let[a,l]of t.entries())if(e.current[a]!==l){let n=r(t,o);return e.current=t,n}},[r,...t])}export{m as useWatch};
node_modules/@headlessui/react/dist/hooks/use-window-event.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ export declare function useWindowEvent<TType extends keyof WindowEventMap>(enabled: boolean, type: TType, listener: (ev: WindowEventMap[TType]) => any, options?: boolean | AddEventListenerOptions): void;
node_modules/@headlessui/react/dist/hooks/use-window-event.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{useEffect as a}from"react";import{useLatestValue as f}from'./use-latest-value.js';function s(t,e,o,n){let i=f(o);a(()=>{if(!t)return;function r(d){i.current(d)}return window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)},[t,e,n])}export{s as useWindowEvent};
node_modules/@headlessui/react/dist/index.cjs ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ 'use strict'
2
+
3
+ if (process.env.NODE_ENV === 'production') {
4
+ module.exports = require('./headlessui.prod.cjs')
5
+ } else {
6
+ module.exports = require('./headlessui.dev.cjs')
7
+ }
node_modules/@headlessui/react/dist/index.d.cts ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export * from './components/button/button';
2
+ export * from './components/checkbox/checkbox';
3
+ export * from './components/close-button/close-button';
4
+ export * from './components/combobox/combobox';
5
+ export * from './components/data-interactive/data-interactive';
6
+ export { Description, type DescriptionProps } from './components/description/description';
7
+ export * from './components/dialog/dialog';
8
+ export * from './components/disclosure/disclosure';
9
+ export * from './components/field/field';
10
+ export * from './components/fieldset/fieldset';
11
+ export * from './components/focus-trap/focus-trap';
12
+ export * from './components/input/input';
13
+ export { Label, type LabelProps } from './components/label/label';
14
+ export * from './components/legend/legend';
15
+ export * from './components/listbox/listbox';
16
+ export * from './components/menu/menu';
17
+ export * from './components/popover/popover';
18
+ export { Portal } from './components/portal/portal';
19
+ export * from './components/radio-group/radio-group';
20
+ export * from './components/select/select';
21
+ export * from './components/switch/switch';
22
+ export * from './components/tabs/tabs';
23
+ export * from './components/textarea/textarea';
24
+ export { useClose } from './internal/close-provider';
25
+ export * from './components/transition/transition';
node_modules/@headlessui/react/dist/index.d.ts ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export * from './components/button/button.js';
2
+ export * from './components/checkbox/checkbox.js';
3
+ export * from './components/close-button/close-button.js';
4
+ export * from './components/combobox/combobox.js';
5
+ export * from './components/data-interactive/data-interactive.js';
6
+ export { Description, type DescriptionProps } from './components/description/description.js';
7
+ export * from './components/dialog/dialog.js';
8
+ export * from './components/disclosure/disclosure.js';
9
+ export * from './components/field/field.js';
10
+ export * from './components/fieldset/fieldset.js';
11
+ export * from './components/focus-trap/focus-trap.js';
12
+ export * from './components/input/input.js';
13
+ export { Label, type LabelProps } from './components/label/label.js';
14
+ export * from './components/legend/legend.js';
15
+ export * from './components/listbox/listbox.js';
16
+ export * from './components/menu/menu.js';
17
+ export * from './components/popover/popover.js';
18
+ export { Portal } from './components/portal/portal.js';
19
+ export * from './components/radio-group/radio-group.js';
20
+ export * from './components/select/select.js';
21
+ export * from './components/switch/switch.js';
22
+ export * from './components/tabs/tabs.js';
23
+ export * from './components/textarea/textarea.js';
24
+ export { useClose } from './internal/close-provider.js';
25
+ export * from './components/transition/transition.js';
node_modules/@headlessui/react/dist/index.js ADDED
@@ -0,0 +1 @@
 
 
1
+ export*from'./components/button/button.js';export*from'./components/checkbox/checkbox.js';export*from'./components/close-button/close-button.js';export*from'./components/combobox/combobox.js';export*from'./components/data-interactive/data-interactive.js';import{Description as x}from'./components/description/description.js';export*from'./components/dialog/dialog.js';export*from'./components/disclosure/disclosure.js';export*from'./components/field/field.js';export*from'./components/fieldset/fieldset.js';export*from'./components/focus-trap/focus-trap.js';export*from'./components/input/input.js';import{Label as n}from'./components/label/label.js';export*from'./components/legend/legend.js';export*from'./components/listbox/listbox.js';export*from'./components/menu/menu.js';export*from'./components/popover/popover.js';import{Portal as d}from'./components/portal/portal.js';export*from'./components/radio-group/radio-group.js';export*from'./components/select/select.js';export*from'./components/switch/switch.js';export*from'./components/tabs/tabs.js';export*from'./components/textarea/textarea.js';import{useClose as w}from'./internal/close-provider.js';export*from'./components/transition/transition.js';export{x as Description,n as Label,d as Portal,w as useClose};
node_modules/@headlessui/react/dist/internal/close-provider.d.ts ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import React from 'react';
2
+ export declare function useClose(): () => void;
3
+ export declare function CloseProvider({ value, children }: React.PropsWithChildren<{
4
+ value: () => void;
5
+ }>): React.JSX.Element;
node_modules/@headlessui/react/dist/internal/close-provider.js ADDED
@@ -0,0 +1 @@
 
 
1
+ "use client";import r,{createContext as n,useContext as i}from"react";let e=n(()=>{});function u(){return i(e)}function C({value:t,children:o}){return r.createElement(e.Provider,{value:t},o)}export{C as CloseProvider,u as useClose};
node_modules/@headlessui/react/dist/internal/disabled.d.ts ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import React from 'react';
2
+ export declare function useDisabled(): boolean | undefined;
3
+ export declare function DisabledProvider({ value, children, }: React.PropsWithChildren<{
4
+ value?: boolean;
5
+ }>): React.JSX.Element;
node_modules/@headlessui/react/dist/internal/disabled.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import n,{createContext as r,useContext as i}from"react";let e=r(void 0);function a(){return i(e)}function l({value:t,children:o}){return n.createElement(e.Provider,{value:t},o)}export{l as DisabledProvider,a as useDisabled};
node_modules/@headlessui/react/dist/internal/floating.d.ts ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { type InnerProps } from '@floating-ui/react';
2
+ import * as React from 'react';
3
+ type Align = 'start' | 'end';
4
+ type Placement = 'top' | 'right' | 'bottom' | 'left';
5
+ type AnchorTo = `${Placement}` | `${Placement} ${Align}`;
6
+ type AnchorToWithSelection = `${Placement | 'selection'}` | `${Placement | 'selection'} ${Align}`;
7
+ type BaseAnchorProps = {
8
+ /**
9
+ * The `gap` is the space between the trigger and the panel.
10
+ */
11
+ gap: number | string;
12
+ /**
13
+ * The `offset` is the amount the panel should be nudged from its original position.
14
+ */
15
+ offset: number | string;
16
+ /**
17
+ * The `padding` is the minimum space between the panel and the viewport.
18
+ */
19
+ padding: number | string;
20
+ };
21
+ export type AnchorProps = false | AnchorTo | Partial<BaseAnchorProps & {
22
+ /**
23
+ * The `to` value defines which side of the trigger the panel should be placed on and its
24
+ * alignment.
25
+ */
26
+ to: AnchorTo;
27
+ }>;
28
+ export type AnchorPropsWithSelection = false | AnchorToWithSelection | Partial<BaseAnchorProps & {
29
+ /**
30
+ * The `to` value defines which side of the trigger the panel should be placed on and its
31
+ * alignment.
32
+ */
33
+ to: AnchorToWithSelection;
34
+ }>;
35
+ export type InternalFloatingPanelProps = Partial<{
36
+ inner: {
37
+ listRef: InnerProps['listRef'];
38
+ index: InnerProps['index'];
39
+ };
40
+ }>;
41
+ export declare function useResolvedAnchor<T extends AnchorProps | AnchorPropsWithSelection>(anchor?: T): Exclude<T, boolean | string> | null;
42
+ export declare function useFloatingReference(): ((node: import("@floating-ui/react-dom").ReferenceType | null) => void) & ((node: any) => void);
43
+ export declare function useFloatingReferenceProps(): (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
44
+ export declare function useFloatingPanelProps(): (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown> & {
45
+ 'data-anchor': AnchorToWithSelection | undefined;
46
+ };
47
+ export declare function useFloatingPanel(placement?: (AnchorPropsWithSelection & InternalFloatingPanelProps) | null): readonly [((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void), React.CSSProperties | undefined];
48
+ export declare function FloatingProvider({ children, enabled, }: {
49
+ children: React.ReactNode;
50
+ enabled?: boolean;
51
+ }): React.JSX.Element;
52
+ export {};
node_modules/@headlessui/react/dist/internal/floating.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{autoUpdate as Z,flip as ee,inner as te,offset as ne,shift as re,size as le,useFloating as oe,useInnerOffset as ie,useInteractions as se}from"@floating-ui/react";import*as j from"react";import{createContext as _,useCallback as ae,useContext as T,useMemo as R,useRef as ue,useState as v}from"react";import{useDisposables as fe}from'../hooks/use-disposables.js';import{useEvent as z}from'../hooks/use-event.js';import{useIsoMorphicEffect as C}from'../hooks/use-iso-morphic-effect.js';import*as pe from'../utils/dom.js';let y=_({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});y.displayName="FloatingContext";let $=_(null);$.displayName="PlacementContext";function ye(e){return R(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function Fe(){return T(y).setReference}function be(){return T(y).getReferenceProps}function Te(){let{getFloatingProps:e,slot:t}=T(y);return ae((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function Re(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=T($),n=R(()=>e,[JSON.stringify(e,(l,o)=>{var u;return(u=o==null?void 0:o.outerHTML)!=null?u:o})]);C(()=>{t==null||t(n!=null?n:null)},[t,n]);let r=T(y);return R(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let D=4;function Ae({children:e,enabled:t=!0}){let[n,r]=v(null),[l,o]=v(0),u=ue(null),[f,s]=v(null);ce(f);let i=t&&n!==null&&f!==null,{to:F="bottom",gap:E=0,offset:A=0,padding:c=0,inner:h}=ge(n,f),[a,p="center"]=F.split(" ");C(()=>{i&&o(0)},[i]);let{refs:b,floatingStyles:S,context:g}=oe({open:i,placement:a==="selection"?p==="center"?"bottom":`bottom-${p}`:p==="center"?`${a}`:`${a}-${p}`,strategy:"absolute",transform:!1,middleware:[ne({mainAxis:a==="selection"?0:E,crossAxis:A}),re({padding:c}),a!=="selection"&&ee({padding:c}),a==="selection"&&h?te({...h,padding:c,overflowRef:u,offset:l,minItemsVisible:D,referenceOverflowThreshold:c,onFallbackChange(P){var L,N;if(!P)return;let d=g.elements.floating;if(!d)return;let M=parseFloat(getComputedStyle(d).scrollPaddingBottom)||0,I=Math.min(D,d.childElementCount),W=0,B=0;for(let m of(N=(L=g.elements.floating)==null?void 0:L.childNodes)!=null?N:[])if(pe.isHTMLElement(m)){let x=m.offsetTop,k=x+m.clientHeight+M,H=d.scrollTop,U=H+d.clientHeight;if(x>=H&&k<=U)I--;else{B=Math.max(0,Math.min(k,U)-Math.max(x,H)),W=m.clientHeight;break}}I>=1&&o(m=>{let x=W*I-B+M;return m>=x?m:x})}}):null,le({padding:c,apply({availableWidth:P,availableHeight:d,elements:M}){Object.assign(M.floating.style,{overflow:"auto",maxWidth:`${P}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${d}px)`})}})].filter(Boolean),whileElementsMounted:Z}),[w=a,V=p]=g.placement.split("-");a==="selection"&&(w="selection");let G=R(()=>({anchor:[w,V].filter(Boolean).join(" ")}),[w,V]),K=ie(g,{overflowRef:u,onChange:o}),{getReferenceProps:Q,getFloatingProps:X}=se([K]),Y=z(P=>{s(P),b.setFloating(P)});return j.createElement($.Provider,{value:r},j.createElement(y.Provider,{value:{setFloating:Y,setReference:b.setReference,styles:S,getReferenceProps:Q,getFloatingProps:X,slot:G}},e))}function ce(e){C(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let l=parseInt(n);isNaN(l)||r!==l&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function ge(e,t){var o,u,f;let n=O((o=e==null?void 0:e.gap)!=null?o:"var(--anchor-gap, 0)",t),r=O((u=e==null?void 0:e.offset)!=null?u:"var(--anchor-offset, 0)",t),l=O((f=e==null?void 0:e.padding)!=null?f:"var(--anchor-padding, 0)",t);return{...e,gap:n,offset:r,padding:l}}function O(e,t,n=void 0){let r=fe(),l=z((s,i)=>{if(s==null)return[n,null];if(typeof s=="number")return[s,null];if(typeof s=="string"){if(!i)return[n,null];let F=J(s,i);return[F,E=>{let A=q(s);{let c=A.map(h=>window.getComputedStyle(i).getPropertyValue(h));r.requestAnimationFrame(function h(){r.nextFrame(h);let a=!1;for(let[b,S]of A.entries()){let g=window.getComputedStyle(i).getPropertyValue(S);if(c[b]!==g){c[b]=g,a=!0;break}}if(!a)return;let p=J(s,i);F!==p&&(E(p),F=p)})}return r.dispose}]}return[n,null]}),o=R(()=>l(e,t)[0],[e,t]),[u=o,f]=v();return C(()=>{let[s,i]=l(e,t);if(f(s),!!i)return i(f)},[e,t]),u}function q(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),l=t[1].slice(n+1).trim();return l?[r,...q(l)]:[r]}return[]}function J(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}export{Ae as FloatingProvider,Re as useFloatingPanel,Te as useFloatingPanelProps,Fe as useFloatingReference,be as useFloatingReferenceProps,ye as useResolvedAnchor};
node_modules/@headlessui/react/dist/internal/focus-sentinel.d.ts ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import React from 'react';
2
+ interface FocusSentinelProps {
3
+ onFocus(): boolean;
4
+ }
5
+ export declare function FocusSentinel({ onFocus }: FocusSentinelProps): React.JSX.Element | null;
6
+ export {};
node_modules/@headlessui/react/dist/internal/focus-sentinel.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import s,{useState as c}from"react";import{useIsMounted as m}from'../hooks/use-is-mounted.js';import{Hidden as f,HiddenFeatures as l}from'./hidden.js';function b({onFocus:n}){let[r,o]=c(!0),u=m();return r?s.createElement(f,{as:"button",type:"button",features:l.Focusable,onFocus:a=>{a.preventDefault();let e,i=50;function t(){if(i--<=0){e&&cancelAnimationFrame(e);return}if(n()){if(cancelAnimationFrame(e),!u.current)return;o(!1);return}e=requestAnimationFrame(t)}e=requestAnimationFrame(t)}}):null}export{b as FocusSentinel};
node_modules/@headlessui/react/dist/internal/form-fields.d.ts ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from 'react';
2
+ export declare function FormFieldsProvider(props: React.PropsWithChildren<{}>): React.JSX.Element;
3
+ export declare function HoistFormFields({ children }: React.PropsWithChildren<{}>): React.JSX.Element | null;
4
+ export declare function FormFields({ data, form: formId, disabled, onReset, overrides, }: {
5
+ data: Record<string, any>;
6
+ overrides?: Record<string, any>;
7
+ form?: string;
8
+ disabled?: boolean;
9
+ onReset?: (e: Event) => void;
10
+ }): React.JSX.Element;
node_modules/@headlessui/react/dist/internal/form-fields.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import o,{createContext as H,useContext as E,useEffect as m,useState as u}from"react";import{createPortal as g}from"react-dom";import{useDisposables as h}from'../hooks/use-disposables.js';import{objectToFormEntries as x}from'../utils/form.js';import{compact as y}from'../utils/render.js';import{Hidden as l,HiddenFeatures as d}from'./hidden.js';let f=H(null);function W(t){let[e,r]=u(null);return o.createElement(f.Provider,{value:{target:e}},t.children,o.createElement(l,{features:d.Hidden,ref:r}))}function c({children:t}){let e=E(f);if(!e)return o.createElement(o.Fragment,null,t);let{target:r}=e;return r?g(o.createElement(o.Fragment,null,t),r):null}function j({data:t,form:e,disabled:r,onReset:n,overrides:F}){let[i,a]=u(null),p=h();return m(()=>{if(n&&i)return p.addEventListener(i,"reset",n)},[i,e,n]),o.createElement(c,null,o.createElement(C,{setForm:a,formId:e}),x(t).map(([s,v])=>o.createElement(l,{features:d.Hidden,...y({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:e,disabled:r,name:s,value:v,...F})})))}function C({setForm:t,formId:e}){return m(()=>{if(e){let r=document.getElementById(e);r&&t(r)}},[t,e]),e?null:o.createElement(l,{features:d.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:r=>{if(!r)return;let n=r.closest("form");n&&t(n)}})}export{j as FormFields,W as FormFieldsProvider,c as HoistFormFields};
node_modules/@headlessui/react/dist/internal/frozen.d.ts ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import React from 'react';
2
+ export declare const Frozen: React.ForwardRefExoticComponent<{
3
+ children: React.ReactNode;
4
+ freeze: boolean;
5
+ } & React.RefAttributes<HTMLElement>>;
6
+ export declare function useFrozenData<T>(freeze: boolean, data: T): T;