mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 11:34:21 +00:00
🐛 Fix module exports
This commit is contained in:
parent
e25cf8f5a7
commit
7643b3d858
4 changed files with 6 additions and 6 deletions
|
@ -12,7 +12,7 @@ import { FormCheckboxGroup } from "./FormCheckboxGroup"
|
|||
import { FormRow } from "./FormRow"
|
||||
import { Button } from "../inputs/Button"
|
||||
import { Parenthesis } from "../panels/Parenthesis"
|
||||
import { useFormState } from "../../hooks/useValidatedState"
|
||||
import { useFormState } from "../../hooks/useFormState"
|
||||
|
||||
|
||||
export default {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import {BluelibHTMLProps, BluelibProps, ClassNames, State, Validator, Validity} from "./types";
|
||||
|
||||
export {Ruby} from "./components/annotations/Ruby"
|
||||
|
||||
export {Chapter} from "./components/chapters/Chapter"
|
||||
|
@ -51,3 +53,6 @@ export {Table} from "./components/tables/Table"
|
|||
|
||||
export {Bluelib} from "./components/Bluelib"
|
||||
export {Bluelib as default} from "./components/Bluelib"
|
||||
|
||||
export {usePromise} from "./hooks/usePromise"
|
||||
export {useFormState} from "./hooks/useFormState"
|
||||
|
|
|
@ -7,7 +7,6 @@ export type ClassNames = ClassNamesArgument
|
|||
|
||||
|
||||
export type State<Value> = [Value, React.Dispatch<React.SetStateAction<Value>>]
|
||||
export type StateContext<Value> = React.Context<State<Value> | undefined>
|
||||
|
||||
|
||||
export interface BluelibProps {
|
||||
|
@ -20,9 +19,6 @@ export interface BluelibProps {
|
|||
export interface BluelibHTMLProps<Element extends HTMLElement> extends BluelibProps, React.HTMLProps<Element> {}
|
||||
|
||||
|
||||
export type InputValue = readonly string[] | string | number | undefined
|
||||
|
||||
|
||||
/**
|
||||
* An optionally async function that checks if a value is acceptable for a certain form field or not.
|
||||
*
|
||||
|
@ -41,4 +37,3 @@ export type Validator<T> = (value: T, abort: AbortSignal) => Promise<Validity> |
|
|||
* - `null` means that the value is in progress of being checked.
|
||||
*/
|
||||
export type Validity = boolean | null | undefined
|
||||
|
||||
|
|
Loading…
Reference in a new issue