@alice-ui/react-utils
Advanced tools
| "use client"; |
| export { AriaLabelingProps, AriaValidationProps, DOMAttributes, IdProps, InputDOMAttributes, InputDOMEvents, InputDOMProps, MaybeRenderProp, PropGetter, RequiredPropGetter } from './types.mjs'; |
| "use client"; | ||
| import "./chunk-3Y4TSO72.mjs"; |
| interface AriaLabelingProps { | ||
| 'aria-label'?: string; | ||
| 'aria-labelledby'?: string; | ||
| 'aria-describedby'?: string; | ||
| 'aria-details'?: string; | ||
| } | ||
| interface AriaValidationProps { | ||
| 'aria-errormessage'?: string; | ||
| } | ||
| interface IdProps { | ||
| id?: string; | ||
| } | ||
| interface InputDOMEvents { | ||
| onCopy?: React.ClipboardEventHandler<HTMLInputElement>; | ||
| onCut?: React.ClipboardEventHandler<HTMLInputElement>; | ||
| onPaste?: React.ClipboardEventHandler<HTMLInputElement>; | ||
| onCompositionStart?: React.CompositionEventHandler<HTMLInputElement>; | ||
| onCompositionEnd?: React.CompositionEventHandler<HTMLInputElement>; | ||
| onCompositionUpdate?: React.CompositionEventHandler<HTMLInputElement>; | ||
| onSelect?: React.ReactEventHandler<HTMLInputElement>; | ||
| onBeforeInput?: React.FormEventHandler<HTMLInputElement>; | ||
| onInput?: React.FormEventHandler<HTMLInputElement>; | ||
| } | ||
| interface InputDOMProps extends IdProps, InputDOMEvents { | ||
| autoComplete?: string; | ||
| maxLength?: number; | ||
| minLength?: number; | ||
| name?: string; | ||
| pattern?: string; | ||
| placeholder?: string; | ||
| type?: 'text' | 'search' | 'url' | 'tel' | 'email' | 'password' | 'hidden' | (string & {}); | ||
| inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search'; | ||
| } | ||
| interface DOMElement extends Element, HTMLOrSVGElement { | ||
| } | ||
| type DataAttributes = { | ||
| [dataAttr: string]: any; | ||
| }; | ||
| type DOMAttributes<T = DOMElement> = React.AriaAttributes & React.DOMAttributes<T> & DataAttributes & { | ||
| id?: string; | ||
| role?: React.AriaRole; | ||
| tabIndex?: number; | ||
| style?: React.CSSProperties; | ||
| }; | ||
| type InputDOMAttributes = InputDOMProps & DOMAttributes<HTMLInputElement>; | ||
| type Merge<M, N> = N extends Record<string, unknown> ? M : Omit<M, keyof N> & N; | ||
| type PropGetter<P = Record<string, unknown>, R = DOMAttributes> = (props?: Merge<DOMAttributes, P>, ref?: React.Ref<any>) => R & React.RefAttributes<any>; | ||
| type RequiredPropGetter<P = Record<string, unknown>, R = DOMAttributes> = (props: Merge<DOMAttributes, P>, ref?: React.Ref<any>) => R & React.RefAttributes<any>; | ||
| type MaybeRenderProp<P> = React.ReactNode | ((props: P) => React.ReactNode); | ||
| export { AriaLabelingProps, AriaValidationProps, DOMAttributes, IdProps, InputDOMAttributes, InputDOMEvents, InputDOMProps, MaybeRenderProp, PropGetter, RequiredPropGetter }; |
| "use client"; | ||
| import "./chunk-3Y4TSO72.mjs"; |
+1
-0
@@ -0,1 +1,2 @@ | ||
| "use client"; | ||
| "use strict"; | ||
@@ -2,0 +3,0 @@ var __defProp = Object.defineProperty; |
+1
-0
@@ -0,1 +1,2 @@ | ||
| "use client"; | ||
| "use strict"; | ||
@@ -2,0 +3,0 @@ var __defProp = Object.defineProperty; |
+1
-1
| { | ||
| "name": "@alice-ui/react-utils", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "A set of utilities for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
8588
44.19%11
83.33%92
8.24%