add hw2
This commit is contained in:
		
							
								
								
									
										19
									
								
								node_modules/@headlessui/react/dist/components/data-interactive/data-interactive.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								node_modules/@headlessui/react/dist/components/data-interactive/data-interactive.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| import { type ElementType, type Ref } from 'react'; | ||||
| import type { Props } from '../../types.js'; | ||||
| import { type HasDisplayName, type RefProp } from '../../utils/render.js'; | ||||
| declare let DEFAULT_DATA_INTERACTIVE_TAG: import("react").ExoticComponent<{ | ||||
|     children?: import("react").ReactNode; | ||||
| }>; | ||||
| type DataInteractiveRenderPropArg = { | ||||
|     hover: boolean; | ||||
|     focus: boolean; | ||||
|     active: boolean; | ||||
| }; | ||||
| type DataInteractivePropsWeControl = never; | ||||
| export type DataInteractiveProps<TTag extends ElementType = typeof DEFAULT_DATA_INTERACTIVE_TAG> = Props<TTag, DataInteractiveRenderPropArg, DataInteractivePropsWeControl, {}>; | ||||
| declare function DataInteractiveFn<TTag extends ElementType = typeof DEFAULT_DATA_INTERACTIVE_TAG>(props: DataInteractiveProps<TTag>, ref: Ref<HTMLElement>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null; | ||||
| export interface _internal_ComponentDataInteractive extends HasDisplayName { | ||||
|     <TTag extends ElementType = typeof DEFAULT_DATA_INTERACTIVE_TAG>(props: DataInteractiveProps<TTag> & RefProp<typeof DataInteractiveFn>): React.JSX.Element; | ||||
| } | ||||
| export declare let DataInteractive: _internal_ComponentDataInteractive; | ||||
| export {}; | ||||
							
								
								
									
										1
									
								
								node_modules/@headlessui/react/dist/components/data-interactive/data-interactive.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/@headlessui/react/dist/components/data-interactive/data-interactive.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| "use client";import{useFocusRing as c}from"@react-aria/focus";import{useHover as A}from"@react-aria/interactions";import{Fragment as D}from"react";import{useActivePress as f}from'../../hooks/use-active-press.js';import{useSlot as v}from'../../hooks/use-slot.js';import{forwardRefWithAs as I,mergeProps as y,useRender as P}from'../../utils/render.js';let E=D;function d(t,r){let{...a}=t,e=!1,{isFocusVisible:o,focusProps:n}=c(),{isHovered:p,hoverProps:s}=A({isDisabled:e}),{pressed:i,pressProps:T}=f({disabled:e}),l=y({ref:r},n,s,T),m=v({hover:p,focus:o,active:i});return P()({ourProps:l,theirProps:a,slot:m,defaultTag:E,name:"DataInteractive"})}let b=I(d);export{b as DataInteractive}; | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik