@jobber/components 6.104.0 → 6.105.0
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.
- package/dist/Autocomplete/Autocomplete.types.d.ts +9 -51
- package/dist/Autocomplete/index.cjs +10 -20
- package/dist/Autocomplete/index.mjs +10 -20
- package/dist/Autocomplete/tests/Autocomplete.setup.d.ts +1 -1
- package/dist/Autocomplete/useAutocomplete.d.ts +2 -2
- package/dist/Checkbox/Checkbox.rebuilt.d.ts +2 -2
- package/dist/Checkbox/Checkbox.types.d.ts +24 -18
- package/dist/Checkbox/index.cjs +9 -2
- package/dist/Checkbox/index.mjs +9 -2
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +2 -2
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +2 -2
- package/dist/Chips/InternalChipDismissible/index.cjs +2 -2
- package/dist/Chips/InternalChipDismissible/index.mjs +2 -2
- package/dist/Chips/index.cjs +2 -2
- package/dist/Chips/index.mjs +2 -2
- package/dist/DataList/components/DataListHeader/index.cjs +1 -0
- package/dist/DataList/components/DataListHeader/index.mjs +1 -0
- package/dist/DataList/components/DataListItem/index.cjs +1 -0
- package/dist/DataList/components/DataListItem/index.mjs +1 -0
- package/dist/DataList/components/DataListItems/index.cjs +1 -0
- package/dist/DataList/components/DataListItems/index.mjs +1 -0
- package/dist/DataList/components/DataListLayout/index.cjs +1 -0
- package/dist/DataList/components/DataListLayout/index.mjs +1 -0
- package/dist/DataList/components/DataListSearch/index.cjs +2 -12
- package/dist/DataList/components/DataListSearch/index.mjs +2 -12
- package/dist/DataList/index.cjs +1 -8
- package/dist/DataList/index.mjs +1 -8
- package/dist/DataTable/index.cjs +3 -2
- package/dist/DataTable/index.mjs +3 -2
- package/dist/DatePicker/index.cjs +2 -2
- package/dist/DatePicker/index.mjs +2 -2
- package/dist/FormField/FormFieldTypes.d.ts +0 -2
- package/dist/FormField/hooks/useFormFieldWrapperStyles.d.ts +7 -2
- package/dist/FormField-cjs.js +0 -1
- package/dist/FormField-es.js +1 -1
- package/dist/InputDate/InputDate.types.d.ts +12 -7
- package/dist/InputDate/index.cjs +6 -9
- package/dist/InputDate/index.mjs +6 -9
- package/dist/InputDate/useInputDateActivatorActions.d.ts +4 -8
- package/dist/InputEmail/InputEmail.types.d.ts +10 -20
- package/dist/InputEmail/hooks/useInputEmailActions.d.ts +10 -4
- package/dist/InputEmail/index.cjs +43 -49
- package/dist/InputEmail/index.mjs +43 -49
- package/dist/InputNumber/InputNumber.rebuilt.types.d.ts +7 -15
- package/dist/InputNumber/index.cjs +6 -4
- package/dist/InputNumber/index.mjs +6 -4
- package/dist/InputPhoneNumber/InputPhoneNumber.types.d.ts +12 -28
- package/dist/InputPhoneNumber/hooks/useInputPhoneActions.d.ts +9 -4
- package/dist/InputPhoneNumber/index.cjs +48 -36
- package/dist/InputPhoneNumber/index.mjs +48 -36
- package/dist/InputText/InputText.types.d.ts +31 -25
- package/dist/InputText/index.cjs +66 -62
- package/dist/InputText/index.mjs +67 -63
- package/dist/InputText/useInputTextActions.d.ts +10 -4
- package/dist/InputTime/InputTime.rebuilt.d.ts +1 -1
- package/dist/InputTime/InputTime.types.d.ts +13 -4
- package/dist/InputTime/hooks/useInputTimeActions.d.ts +21 -0
- package/dist/InputTime/index.cjs +91 -30
- package/dist/InputTime/index.mjs +94 -33
- package/dist/List/index.cjs +2 -2
- package/dist/List/index.mjs +2 -2
- package/dist/MultiSelect/index.cjs +1 -0
- package/dist/MultiSelect/index.mjs +1 -0
- package/dist/RecurringSelect/index.cjs +3 -2
- package/dist/RecurringSelect/index.mjs +3 -2
- package/dist/Select/Select.types.d.ts +7 -3
- package/dist/Select/hooks/useSelectActions.d.ts +5 -5
- package/dist/Select/index.cjs +27 -41
- package/dist/Select/index.mjs +29 -43
- package/dist/Tabs-es.js +1 -1
- package/dist/_baseEach-cjs.js +12 -12
- package/dist/_baseEach-es.js +1 -1
- package/dist/_baseFlatten-cjs.js +2 -2
- package/dist/_baseFlatten-es.js +1 -1
- package/dist/{_baseGet-cjs.js → _getAllKeys-cjs.js} +181 -181
- package/dist/{_baseGet-es.js → _getAllKeys-es.js} +182 -182
- package/dist/debounce-es.js +1 -1
- package/dist/filterDataAttributes-cjs.js +26 -0
- package/dist/filterDataAttributes-es.js +24 -0
- package/dist/index.cjs +3 -2
- package/dist/index.mjs +3 -2
- package/dist/omit-cjs.js +14 -14
- package/dist/omit-es.js +1 -1
- package/dist/sharedHelpers/filterDataAttributes.d.ts +17 -0
- package/dist/sharedHelpers/types.d.ts +231 -0
- package/dist/useScrollToActive-cjs.js +3 -3
- package/dist/useScrollToActive-es.js +2 -2
- package/package.json +2 -2
- package/dist/InputEmail/hooks/useInputEmailFormField.d.ts +0 -32
- package/dist/InputPhoneNumber/hooks/useInputPhoneFormField.d.ts +0 -71
- package/dist/InputText/useInputTextFormField.d.ts +0 -366
- package/dist/Select/hooks/useSelectFormField.d.ts +0 -34
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
import type { ChangeEvent, FocusEvent, KeyboardEvent, ReactNode } from "react";
|
|
2
|
-
export interface useInputTextFormFieldProps extends React.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
3
|
-
/**
|
|
4
|
-
* The html id for the field
|
|
5
|
-
*/
|
|
6
|
-
readonly id: string;
|
|
7
|
-
/**
|
|
8
|
-
* The auto-generated name for the html input field if a nameProp is not provided
|
|
9
|
-
*/
|
|
10
|
-
readonly name: string;
|
|
11
|
-
/**
|
|
12
|
-
* The error message for the field
|
|
13
|
-
*/
|
|
14
|
-
readonly error?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Adjusts the form field to go inline with a content. This also silences the
|
|
17
|
-
* given `validations` prop. You'd have to used the `onValidate` prop to
|
|
18
|
-
* capture the message and render it somewhere else using the
|
|
19
|
-
* `InputValidation` component.
|
|
20
|
-
*/
|
|
21
|
-
readonly inline?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Further description of the input, can be used for a hint.
|
|
24
|
-
*/
|
|
25
|
-
readonly description?: ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* Callback for when the field value changes
|
|
28
|
-
*/
|
|
29
|
-
handleChange: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
30
|
-
/**
|
|
31
|
-
* Callback for when the field loses focus
|
|
32
|
-
*/
|
|
33
|
-
handleBlur: () => void;
|
|
34
|
-
/**
|
|
35
|
-
* Callback for when the field gains focus
|
|
36
|
-
*/
|
|
37
|
-
handleFocus: (event: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Callback for when keydown event is triggered on the field
|
|
40
|
-
*/
|
|
41
|
-
handleKeyDown: (event: KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
42
|
-
readonly invalid?: boolean;
|
|
43
|
-
}
|
|
44
|
-
export interface UseInputTextFormFieldReturn {
|
|
45
|
-
fieldProps: React.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement>;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Provides the props for the html fields rendered by the html input.
|
|
49
|
-
* DO not repeat this pattern. We are doing this as a proof of concept relating to the refactoring of Form inputs to see what can be removed.
|
|
50
|
-
*/
|
|
51
|
-
export declare function useInputTextFormField({ id, name, description, inline, handleChange, handleBlur, handleFocus, handleKeyDown, error, ...rest }: useInputTextFormFieldProps): {
|
|
52
|
-
fieldProps: {
|
|
53
|
-
"aria-invalid": boolean | undefined;
|
|
54
|
-
autoFocus: boolean | undefined;
|
|
55
|
-
invalid: string | undefined;
|
|
56
|
-
onKeyDown: (event: KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
57
|
-
"aria-describedby"?: string | undefined;
|
|
58
|
-
id: string;
|
|
59
|
-
className: string;
|
|
60
|
-
name: string;
|
|
61
|
-
disabled: boolean | undefined;
|
|
62
|
-
inputMode: "none" | "text" | "search" | "email" | "decimal" | "tel" | "url" | "numeric" | undefined;
|
|
63
|
-
onChange: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
64
|
-
onBlur: () => void;
|
|
65
|
-
onFocus: (event: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
66
|
-
accept?: string | undefined;
|
|
67
|
-
alt?: string | undefined;
|
|
68
|
-
autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
|
|
69
|
-
capture?: boolean | "user" | "environment" | undefined;
|
|
70
|
-
checked?: boolean | undefined;
|
|
71
|
-
form?: string | undefined;
|
|
72
|
-
formAction?: string | ((formData: FormData) => void | Promise<void>) | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
73
|
-
formEncType?: string | undefined;
|
|
74
|
-
formMethod?: string | undefined;
|
|
75
|
-
formNoValidate?: boolean | undefined;
|
|
76
|
-
formTarget?: string | undefined;
|
|
77
|
-
height?: number | string | undefined;
|
|
78
|
-
list?: string | undefined;
|
|
79
|
-
max?: number | string | undefined;
|
|
80
|
-
maxLength?: number | undefined;
|
|
81
|
-
min?: number | string | undefined;
|
|
82
|
-
minLength?: number | undefined;
|
|
83
|
-
multiple?: boolean | undefined;
|
|
84
|
-
pattern?: string | undefined;
|
|
85
|
-
placeholder?: string | undefined;
|
|
86
|
-
readOnly?: boolean | undefined;
|
|
87
|
-
required?: boolean | undefined;
|
|
88
|
-
size?: number | undefined;
|
|
89
|
-
src?: string | undefined;
|
|
90
|
-
step?: number | string | undefined;
|
|
91
|
-
type?: import("react").HTMLInputTypeAttribute | undefined;
|
|
92
|
-
value?: string | readonly string[] | number | undefined;
|
|
93
|
-
width?: number | string | undefined;
|
|
94
|
-
defaultChecked?: boolean | undefined;
|
|
95
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
96
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
97
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
98
|
-
accessKey?: string | undefined;
|
|
99
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
100
|
-
contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
|
|
101
|
-
contextMenu?: string | undefined;
|
|
102
|
-
dir?: string | undefined;
|
|
103
|
-
draggable?: (boolean | "false" | "true") | undefined;
|
|
104
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
105
|
-
hidden?: boolean | undefined;
|
|
106
|
-
lang?: string | undefined;
|
|
107
|
-
nonce?: string | undefined;
|
|
108
|
-
slot?: string | undefined;
|
|
109
|
-
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
110
|
-
style?: import("react").CSSProperties | undefined;
|
|
111
|
-
tabIndex?: number | undefined;
|
|
112
|
-
title?: string | undefined;
|
|
113
|
-
translate?: "yes" | "no" | undefined;
|
|
114
|
-
radioGroup?: string | undefined;
|
|
115
|
-
role?: import("react").AriaRole | undefined;
|
|
116
|
-
about?: string | undefined;
|
|
117
|
-
content?: string | undefined;
|
|
118
|
-
datatype?: string | undefined;
|
|
119
|
-
inlist?: any;
|
|
120
|
-
prefix?: string | undefined;
|
|
121
|
-
property?: string | undefined;
|
|
122
|
-
rel?: string | undefined;
|
|
123
|
-
resource?: string | undefined;
|
|
124
|
-
rev?: string | undefined;
|
|
125
|
-
typeof?: string | undefined;
|
|
126
|
-
vocab?: string | undefined;
|
|
127
|
-
autoCorrect?: string | undefined;
|
|
128
|
-
autoSave?: string | undefined;
|
|
129
|
-
color?: string | undefined;
|
|
130
|
-
itemProp?: string | undefined;
|
|
131
|
-
itemScope?: boolean | undefined;
|
|
132
|
-
itemType?: string | undefined;
|
|
133
|
-
itemID?: string | undefined;
|
|
134
|
-
itemRef?: string | undefined;
|
|
135
|
-
results?: number | undefined;
|
|
136
|
-
security?: string | undefined;
|
|
137
|
-
unselectable?: "on" | "off" | undefined;
|
|
138
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
139
|
-
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
140
|
-
popoverTarget?: string | undefined;
|
|
141
|
-
inert?: boolean | undefined;
|
|
142
|
-
is?: string | undefined;
|
|
143
|
-
exportparts?: string | undefined;
|
|
144
|
-
part?: string | undefined;
|
|
145
|
-
"aria-activedescendant"?: string | undefined;
|
|
146
|
-
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
147
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
148
|
-
"aria-braillelabel"?: string | undefined;
|
|
149
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
150
|
-
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
151
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
152
|
-
"aria-colcount"?: number | undefined;
|
|
153
|
-
"aria-colindex"?: number | undefined;
|
|
154
|
-
"aria-colindextext"?: string | undefined;
|
|
155
|
-
"aria-colspan"?: number | undefined;
|
|
156
|
-
"aria-controls"?: string | undefined;
|
|
157
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
158
|
-
"aria-description"?: string | undefined;
|
|
159
|
-
"aria-details"?: string | undefined;
|
|
160
|
-
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
161
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
162
|
-
"aria-errormessage"?: string | undefined;
|
|
163
|
-
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
164
|
-
"aria-flowto"?: string | undefined;
|
|
165
|
-
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
166
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
167
|
-
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
168
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
169
|
-
"aria-label"?: string | undefined;
|
|
170
|
-
"aria-labelledby"?: string | undefined;
|
|
171
|
-
"aria-level"?: number | undefined;
|
|
172
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
173
|
-
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
174
|
-
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
175
|
-
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
176
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
177
|
-
"aria-owns"?: string | undefined;
|
|
178
|
-
"aria-placeholder"?: string | undefined;
|
|
179
|
-
"aria-posinset"?: number | undefined;
|
|
180
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
181
|
-
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
182
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
183
|
-
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
184
|
-
"aria-roledescription"?: string | undefined;
|
|
185
|
-
"aria-rowcount"?: number | undefined;
|
|
186
|
-
"aria-rowindex"?: number | undefined;
|
|
187
|
-
"aria-rowindextext"?: string | undefined;
|
|
188
|
-
"aria-rowspan"?: number | undefined;
|
|
189
|
-
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
190
|
-
"aria-setsize"?: number | undefined;
|
|
191
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
192
|
-
"aria-valuemax"?: number | undefined;
|
|
193
|
-
"aria-valuemin"?: number | undefined;
|
|
194
|
-
"aria-valuenow"?: number | undefined;
|
|
195
|
-
"aria-valuetext"?: string | undefined;
|
|
196
|
-
children?: ReactNode | undefined;
|
|
197
|
-
dangerouslySetInnerHTML?: {
|
|
198
|
-
__html: string | TrustedHTML;
|
|
199
|
-
} | undefined;
|
|
200
|
-
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
201
|
-
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
202
|
-
onCut?: import("react").ClipboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
203
|
-
onCutCapture?: import("react").ClipboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
204
|
-
onPaste?: import("react").ClipboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
205
|
-
onPasteCapture?: import("react").ClipboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
206
|
-
onCompositionEnd?: import("react").CompositionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
207
|
-
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
208
|
-
onCompositionStart?: import("react").CompositionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
209
|
-
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
210
|
-
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
211
|
-
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
212
|
-
onFocusCapture?: import("react").FocusEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
213
|
-
onBlurCapture?: import("react").FocusEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
214
|
-
onChangeCapture?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
215
|
-
onBeforeInput?: import("react").InputEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
216
|
-
onBeforeInputCapture?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
217
|
-
onInput?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
218
|
-
onInputCapture?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
219
|
-
onReset?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
220
|
-
onResetCapture?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
221
|
-
onSubmit?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
222
|
-
onSubmitCapture?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
223
|
-
onInvalid?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
224
|
-
onInvalidCapture?: import("react").FormEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
225
|
-
onLoad?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
226
|
-
onLoadCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
227
|
-
onError?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
228
|
-
onErrorCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
229
|
-
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
230
|
-
onKeyPress?: import("react").KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
231
|
-
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
232
|
-
onKeyUp?: import("react").KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
233
|
-
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
234
|
-
onAbort?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
235
|
-
onAbortCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
236
|
-
onCanPlay?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
237
|
-
onCanPlayCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
238
|
-
onCanPlayThrough?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
239
|
-
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
240
|
-
onDurationChange?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
241
|
-
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
242
|
-
onEmptied?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
243
|
-
onEmptiedCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
244
|
-
onEncrypted?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
245
|
-
onEncryptedCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
246
|
-
onEnded?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
247
|
-
onEndedCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
248
|
-
onLoadedData?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
249
|
-
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
250
|
-
onLoadedMetadata?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
251
|
-
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
252
|
-
onLoadStart?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
253
|
-
onLoadStartCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
254
|
-
onPause?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
255
|
-
onPauseCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
256
|
-
onPlay?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
257
|
-
onPlayCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
258
|
-
onPlaying?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
259
|
-
onPlayingCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
260
|
-
onProgress?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
261
|
-
onProgressCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
262
|
-
onRateChange?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
263
|
-
onRateChangeCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
264
|
-
onSeeked?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
265
|
-
onSeekedCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
266
|
-
onSeeking?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
267
|
-
onSeekingCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
268
|
-
onStalled?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
269
|
-
onStalledCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
270
|
-
onSuspend?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
271
|
-
onSuspendCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
272
|
-
onTimeUpdate?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
273
|
-
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
274
|
-
onVolumeChange?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
275
|
-
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
276
|
-
onWaiting?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
277
|
-
onWaitingCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
278
|
-
onAuxClick?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
279
|
-
onAuxClickCapture?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
280
|
-
onClick?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
281
|
-
onClickCapture?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
282
|
-
onContextMenu?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
283
|
-
onContextMenuCapture?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
284
|
-
onDoubleClick?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
285
|
-
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
286
|
-
onDrag?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
287
|
-
onDragCapture?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
288
|
-
onDragEnd?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
289
|
-
onDragEndCapture?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
290
|
-
onDragEnter?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
291
|
-
onDragEnterCapture?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
292
|
-
onDragExit?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
293
|
-
onDragExitCapture?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
294
|
-
onDragLeave?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
295
|
-
onDragLeaveCapture?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
296
|
-
onDragOver?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
297
|
-
onDragOverCapture?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
298
|
-
onDragStart?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
299
|
-
onDragStartCapture?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
300
|
-
onDrop?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
301
|
-
onDropCapture?: import("react").DragEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
302
|
-
onMouseDown?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
303
|
-
onMouseDownCapture?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
304
|
-
onMouseEnter?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
305
|
-
onMouseLeave?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
306
|
-
onMouseMove?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
307
|
-
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
308
|
-
onMouseOut?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
309
|
-
onMouseOutCapture?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
310
|
-
onMouseOver?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
311
|
-
onMouseOverCapture?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
312
|
-
onMouseUp?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
313
|
-
onMouseUpCapture?: import("react").MouseEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
314
|
-
onSelect?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
315
|
-
onSelectCapture?: import("react").ReactEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
316
|
-
onTouchCancel?: import("react").TouchEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
317
|
-
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
318
|
-
onTouchEnd?: import("react").TouchEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
319
|
-
onTouchEndCapture?: import("react").TouchEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
320
|
-
onTouchMove?: import("react").TouchEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
321
|
-
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
322
|
-
onTouchStart?: import("react").TouchEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
323
|
-
onTouchStartCapture?: import("react").TouchEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
324
|
-
onPointerDown?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
325
|
-
onPointerDownCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
326
|
-
onPointerMove?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
327
|
-
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
328
|
-
onPointerUp?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
329
|
-
onPointerUpCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
330
|
-
onPointerCancel?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
331
|
-
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
332
|
-
onPointerEnter?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
333
|
-
onPointerLeave?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
334
|
-
onPointerOver?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
335
|
-
onPointerOverCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
336
|
-
onPointerOut?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
337
|
-
onPointerOutCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
338
|
-
onGotPointerCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
339
|
-
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
340
|
-
onLostPointerCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
341
|
-
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
342
|
-
onScroll?: import("react").UIEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
343
|
-
onScrollCapture?: import("react").UIEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
344
|
-
onScrollEnd?: import("react").UIEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
345
|
-
onScrollEndCapture?: import("react").UIEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
346
|
-
onWheel?: import("react").WheelEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
347
|
-
onWheelCapture?: import("react").WheelEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
348
|
-
onAnimationStart?: import("react").AnimationEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
349
|
-
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
350
|
-
onAnimationEnd?: import("react").AnimationEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
351
|
-
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
352
|
-
onAnimationIteration?: import("react").AnimationEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
353
|
-
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
354
|
-
onToggle?: import("react").ToggleEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
355
|
-
onBeforeToggle?: import("react").ToggleEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
356
|
-
onTransitionCancel?: import("react").TransitionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
357
|
-
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
358
|
-
onTransitionEnd?: import("react").TransitionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
359
|
-
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
360
|
-
onTransitionRun?: import("react").TransitionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
361
|
-
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
362
|
-
onTransitionStart?: import("react").TransitionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
363
|
-
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
364
|
-
};
|
|
365
|
-
descriptionIdentifier: string;
|
|
366
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { ChangeEvent, ReactNode } from "react";
|
|
2
|
-
export interface UseSelectFormFieldProps {
|
|
3
|
-
readonly id: string;
|
|
4
|
-
readonly name: string;
|
|
5
|
-
readonly disabled?: boolean;
|
|
6
|
-
readonly autofocus?: boolean;
|
|
7
|
-
readonly description?: ReactNode;
|
|
8
|
-
readonly inline?: boolean;
|
|
9
|
-
readonly error?: string;
|
|
10
|
-
readonly invalid?: boolean;
|
|
11
|
-
readonly value?: string | number;
|
|
12
|
-
readonly handleChange: (event: ChangeEvent<HTMLSelectElement>) => void;
|
|
13
|
-
readonly handleBlur: () => void;
|
|
14
|
-
readonly handleFocus: () => void;
|
|
15
|
-
}
|
|
16
|
-
export interface UseSelectFormFieldReturn {
|
|
17
|
-
readonly fieldProps: {
|
|
18
|
-
readonly id: string;
|
|
19
|
-
readonly name: string;
|
|
20
|
-
readonly disabled?: boolean;
|
|
21
|
-
readonly autoFocus?: boolean;
|
|
22
|
-
readonly onChange: (event: ChangeEvent<HTMLSelectElement>) => void;
|
|
23
|
-
readonly onBlur: () => void;
|
|
24
|
-
readonly onFocus: () => void;
|
|
25
|
-
readonly value?: string | number;
|
|
26
|
-
readonly "aria-describedby"?: string;
|
|
27
|
-
};
|
|
28
|
-
readonly descriptionIdentifier: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Hook for managing the props of a Select component.
|
|
32
|
-
* Extracted from FormField's useAtlantisFormField.
|
|
33
|
-
*/
|
|
34
|
-
export declare function useSelectFormField({ id, name, disabled, autofocus, description, inline, value, handleChange, handleBlur, handleFocus, }: UseSelectFormFieldProps): UseSelectFormFieldReturn;
|