@tremolo-ui/react 0.6.0 → 0.7.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/index.cjs +252 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +550 -133
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +550 -133
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +218 -39
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/DropZone/index.tsx +100 -0
- package/src/components/FileInput/Trigger.tsx +39 -0
- package/src/components/FileInput/context.tsx +24 -0
- package/src/components/FileInput/index.tsx +144 -0
- package/src/components/Knob/index.tsx +8 -5
- package/src/components/NumberInput/DecrementStepper.tsx +2 -13
- package/src/components/NumberInput/IncrementStepper.tsx +2 -14
- package/src/components/NumberInput/InputField.tsx +5 -11
- package/src/components/NumberInput/Stepper.tsx +4 -19
- package/src/components/NumberInput/StepperButton.tsx +13 -8
- package/src/components/NumberInput/context.tsx +6 -7
- package/src/components/NumberInput/index.tsx +4 -13
- package/src/components/Piano/index.tsx +10 -13
- package/src/components/PointsEditor/Background.tsx +2 -8
- package/src/components/PointsEditor/Container.tsx +2 -8
- package/src/components/PointsEditor/Point.tsx +7 -5
- package/src/components/PointsEditor/SelectionBox.tsx +2 -8
- package/src/components/PointsEditor/context.tsx +6 -6
- package/src/components/PointsEditor/index.tsx +9 -11
- package/src/components/Slider/Marks.tsx +6 -9
- package/src/components/Slider/MarksOption.tsx +7 -2
- package/src/components/Slider/Thumb.tsx +9 -15
- package/src/components/Slider/Track.tsx +6 -13
- package/src/components/Slider/index.tsx +5 -12
- package/src/components/Slider/type.ts +4 -2
- package/src/components/XYPad/Area.tsx +5 -10
- package/src/components/XYPad/Thumb.tsx +5 -11
- package/src/components/XYPad/index.tsx +3 -5
- package/src/components/_util/VisuallyHiddenRangeInput.tsx +3 -15
- package/src/components/_util/decimal-digits.ts +23 -0
- package/src/components/_util/visually-hidden.ts +25 -0
- package/src/css-variables.ts +23 -0
- package/src/hooks/_internal/useCheckSteps.ts +2 -3
- package/src/hooks/useDrag.ts +13 -4
- package/src/hooks/useDragValue.ts +17 -2
- package/src/hooks/useDropZone.ts +78 -0
- package/src/hooks/useWheel.ts +4 -1
- package/src/index.ts +12 -9
- package/src/input-event.ts +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { AriaAttributes, CSSProperties, ComponentPropsWithoutRef, DependencyList, ReactNode, Ref, RefObject, SVGProps } from "react";
|
|
2
|
-
import { AnimationFrame, AxisOptions, DragState, MIDIAccessError, MIDIAccessOptions, MIDIAccessOptions as MIDIAccessOptions$1, MIDIInputHandlers, NOT_SUPPORTED, PERMISSION_DENIED, PITCH_BEND_CENTER, SelectionBoxRect, UNAVAILABLE, WheelOptions, XY, XY as XY$1, XYInput, XYInput as XYInput$1 } from "@tremolo-ui/dom";
|
|
3
|
-
import {
|
|
2
|
+
import { AnimationFrame, AxisOptions, DragState, DropZoneOptions, InputEventOption, MIDIAccessError, MIDIAccessOptions, MIDIAccessOptions as MIDIAccessOptions$1, MIDIInputHandlers, ModifierState, ModifierValue, NOT_SUPPORTED, NoteRange, PERMISSION_DENIED, PITCH_BEND_CENTER, SelectionBoxRect, UNAVAILABLE, WheelOptions, XY, XY as XY$1, XYInput, XYInput as XYInput$1 } from "@tremolo-ui/dom";
|
|
3
|
+
import { Scale, ValueRange } from "@tremolo-ui/functions";
|
|
4
4
|
//#region src/components/AnimationCanvas/index.d.ts
|
|
5
5
|
type InitFunction = (context: CanvasRenderingContext2D, option: {
|
|
6
6
|
/** current canvas width */
|
|
@@ -82,7 +82,118 @@ type Props = AnimationCanvasProps & Omit<ComponentPropsWithoutRef<'canvas'>, key
|
|
|
82
82
|
/**
|
|
83
83
|
* A simple animatable canvas with requestAnimationFrame()
|
|
84
84
|
*/
|
|
85
|
-
declare const AnimationCanvas: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLCanvasElement>>;
|
|
85
|
+
export declare const AnimationCanvas: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLCanvasElement>>;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/components/DropZone/index.d.ts
|
|
88
|
+
interface DropZoneProps {
|
|
89
|
+
/**
|
|
90
|
+
* Which files to take, written the way the `accept` attribute of a file
|
|
91
|
+
* input is: a comma separated list of extensions (`.wav`), MIME types
|
|
92
|
+
* (`audio/wav`) and type groups (`audio/*`).
|
|
93
|
+
*
|
|
94
|
+
* What does not match goes to `onReject` rather than `onDrop`. While the
|
|
95
|
+
* drag is still in the air the element is marked `[data-invalid]`, as far as
|
|
96
|
+
* the browser lets it be told apart — a rule written as an extension cannot
|
|
97
|
+
* be decided until the drop.
|
|
98
|
+
*/
|
|
99
|
+
accept?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Take more than one file from a single drop. With it off, only the first
|
|
102
|
+
* accepted file is reported, as a file input without `multiple` does.
|
|
103
|
+
*
|
|
104
|
+
* @default false
|
|
105
|
+
*/
|
|
106
|
+
multiple?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Refuse the drop. The drag is still swallowed rather than let through: an
|
|
109
|
+
* unhandled drop makes the browser leave the page and open the file.
|
|
110
|
+
*
|
|
111
|
+
* @default false
|
|
112
|
+
*/
|
|
113
|
+
disabled?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Called with the dropped files that match `accept`.
|
|
116
|
+
*
|
|
117
|
+
* @param event the drop, for anything the files leave out — where on the
|
|
118
|
+
* element it landed, most of all.
|
|
119
|
+
*/
|
|
120
|
+
onDrop?: (files: File[], event: DragEvent) => void;
|
|
121
|
+
/**
|
|
122
|
+
* Called with the dropped files that do not match `accept`, so that the
|
|
123
|
+
* reason can be shown.
|
|
124
|
+
*/
|
|
125
|
+
onReject?: (files: File[], event: DragEvent) => void;
|
|
126
|
+
/** What the zone shows. */
|
|
127
|
+
children: ReactNode;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* An area that takes files dropped onto it.
|
|
131
|
+
*/
|
|
132
|
+
export declare const DropZone: {
|
|
133
|
+
Root: import("react").ForwardRefExoticComponent<DropZoneProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof DropZoneProps> & import("react").RefAttributes<HTMLDivElement>>;
|
|
134
|
+
};
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/components/FileInput/Trigger.d.ts
|
|
137
|
+
interface FileInputTriggerProps {
|
|
138
|
+
/** What the trigger reads. It is the accessible name of the file input. */
|
|
139
|
+
children: ReactNode;
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/components/FileInput/context.d.ts
|
|
143
|
+
type FileInputContextValue = {
|
|
144
|
+
/** The id of the hidden `<input type="file">`, for `Trigger`'s `htmlFor`. */
|
|
145
|
+
inputId: string;
|
|
146
|
+
disabled: boolean;
|
|
147
|
+
};
|
|
148
|
+
export declare function useFileInputContext(): FileInputContextValue;
|
|
149
|
+
export declare function useFileInputContext<T>(selector: (state: FileInputContextValue) => T): T;
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/components/FileInput/index.d.ts
|
|
152
|
+
interface FileInputProps {
|
|
153
|
+
/**
|
|
154
|
+
* Which files to take, written the way the HTML attribute is: a comma
|
|
155
|
+
* separated list of extensions (`.wav`), MIME types (`audio/wav`) and type
|
|
156
|
+
* groups (`audio/*`).
|
|
157
|
+
*
|
|
158
|
+
* **The browser treats it as a hint to the picker, not a rule.** A person
|
|
159
|
+
* can switch the picker to "All Files", so what arrives is checked again
|
|
160
|
+
* here, and anything that does not match goes to `onReject` instead.
|
|
161
|
+
*/
|
|
162
|
+
accept?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Let more than one file be picked at a time.
|
|
165
|
+
* @default false
|
|
166
|
+
*/
|
|
167
|
+
multiple?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Refuse to open the picker, and mark every part with `[data-disabled]`.
|
|
170
|
+
* @default false
|
|
171
|
+
*/
|
|
172
|
+
disabled?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Called with the files that were picked and match `accept`.
|
|
175
|
+
*
|
|
176
|
+
* It is not called at all when the picker is dismissed, or when every file
|
|
177
|
+
* picked was rejected — an empty array never arrives, so there is no need to
|
|
178
|
+
* tell "nothing was chosen" from "the choice was cleared".
|
|
179
|
+
*/
|
|
180
|
+
onChange?: (files: File[]) => void;
|
|
181
|
+
/**
|
|
182
|
+
* Called with the files that were picked and do not match `accept`, so that
|
|
183
|
+
* the reason can be shown. Given alongside `onChange` when a selection held
|
|
184
|
+
* both.
|
|
185
|
+
*/
|
|
186
|
+
onReject?: (files: File[]) => void;
|
|
187
|
+
/** Normally a `FileInput.Trigger`, and whatever shows what was picked. */
|
|
188
|
+
children: ReactNode;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Picks files, and hands them over as `File`s.
|
|
192
|
+
*/
|
|
193
|
+
export declare const FileInput: {
|
|
194
|
+
Root: import("react").ForwardRefExoticComponent<FileInputProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof FileInputProps> & import("react").RefAttributes<HTMLDivElement>>;
|
|
195
|
+
Trigger: import("react").ForwardRefExoticComponent<FileInputTriggerProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref">, "children" | "htmlFor"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
196
|
+
};
|
|
86
197
|
//#endregion
|
|
87
198
|
//#region src/components/Knob/ActiveLine.d.ts
|
|
88
199
|
declare function ActiveLine({ stroke, strokeWidth, className, ...props }: Omit<SVGProps<SVGPathElement>, 'd'>): import("react").JSX.Element;
|
|
@@ -138,6 +249,27 @@ interface KnobThumbProps {
|
|
|
138
249
|
}
|
|
139
250
|
declare function Thumb({ className, thumb, thumbLine, thumbSize, thumbLineWeight, thumbLineLength, classes, ...props }: KnobThumbProps & Omit<SVGProps<SVGSVGElement>, 'd' | keyof KnobThumbProps>): import("react").JSX.Element;
|
|
140
251
|
//#endregion
|
|
252
|
+
//#region src/css-variables.d.ts
|
|
253
|
+
/**
|
|
254
|
+
* CSS custom properties, for a `style` object.
|
|
255
|
+
*
|
|
256
|
+
* React's `CSSProperties` has no key starting with `--`, so
|
|
257
|
+
* `style={{ '--color': 'red' }}` is refused as an unknown property even though
|
|
258
|
+
* the browser takes it. Every part accepts this alongside `CSSProperties`,
|
|
259
|
+
* which is how a variable the component or a theme reads is set inline.
|
|
260
|
+
*
|
|
261
|
+
* `T` names the custom properties the part itself writes or reads, without the
|
|
262
|
+
* leading `--`, so that an editor can suggest them. Any other `--` name is
|
|
263
|
+
* still accepted — a theme reads variables of its own, such as the colours of
|
|
264
|
+
* each kind of key.
|
|
265
|
+
*
|
|
266
|
+
* @example
|
|
267
|
+
* CSSVariables<'thickness' | 'length'>
|
|
268
|
+
* // { '--thickness'?: string | number, '--length'?: string | number,
|
|
269
|
+
* // [name: `--${string}`]: string | number | undefined }
|
|
270
|
+
*/
|
|
271
|
+
type CSSVariables<T extends string = never> = { [K in T as `--${K}`]?: string | number; } & { [K in `--${string}`]?: string | number; };
|
|
272
|
+
//#endregion
|
|
141
273
|
//#region src/components/Knob/context.d.ts
|
|
142
274
|
type KnobConfig = {
|
|
143
275
|
value: number;
|
|
@@ -165,8 +297,8 @@ type KnobContextValue = KnobConfig & {
|
|
|
165
297
|
* Everything here is derived during render, so there is no state to keep in
|
|
166
298
|
* sync: `value` comes from the props of `Root` and the rest follows from it.
|
|
167
299
|
*/
|
|
168
|
-
declare function useKnobContext(): KnobContextValue;
|
|
169
|
-
declare function useKnobContext<T>(selector: (state: KnobContextValue) => T): T;
|
|
300
|
+
export declare function useKnobContext(): KnobContextValue;
|
|
301
|
+
export declare function useKnobContext<T>(selector: (state: KnobContextValue) => T): T;
|
|
170
302
|
//#endregion
|
|
171
303
|
//#region src/components/Knob/index.d.ts
|
|
172
304
|
interface KnobProps {
|
|
@@ -318,6 +450,7 @@ interface KnobProps {
|
|
|
318
450
|
* </Knob.Root>
|
|
319
451
|
*/
|
|
320
452
|
children: ReactNode;
|
|
453
|
+
style?: CSSProperties & CSSVariables<'knob-size'>;
|
|
321
454
|
}
|
|
322
455
|
interface KnobMethods {
|
|
323
456
|
focus: () => void;
|
|
@@ -326,7 +459,7 @@ interface KnobMethods {
|
|
|
326
459
|
/**
|
|
327
460
|
* Interactive rotary knob component implemented in SVG.
|
|
328
461
|
*/
|
|
329
|
-
declare const Knob: {
|
|
462
|
+
export declare const Knob: {
|
|
330
463
|
Root: import("react").ForwardRefExoticComponent<KnobProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof KnobProps> & import("react").RefAttributes<KnobMethods>>;
|
|
331
464
|
SVGRoot: typeof SVGRoot;
|
|
332
465
|
InactiveLine: typeof InactiveLine;
|
|
@@ -334,37 +467,22 @@ declare const Knob: {
|
|
|
334
467
|
Thumb: typeof Thumb;
|
|
335
468
|
};
|
|
336
469
|
//#endregion
|
|
337
|
-
//#region src/components/NumberInput/InputField.d.ts
|
|
338
|
-
interface NumberInputInputFieldProps {
|
|
339
|
-
className?: string;
|
|
340
|
-
style?: CSSProperties;
|
|
341
|
-
}
|
|
342
|
-
//#endregion
|
|
343
|
-
//#region src/components/NumberInput/Stepper.d.ts
|
|
344
|
-
interface NumberInputStepperProps {
|
|
345
|
-
className?: string;
|
|
346
|
-
style?: CSSProperties;
|
|
347
|
-
/** `<NumberInput.IncrementStepper />` and `<NumberInput.DecrementStepper />` go here. */
|
|
348
|
-
children?: ReactNode;
|
|
349
|
-
}
|
|
350
|
-
//#endregion
|
|
351
470
|
//#region src/components/NumberInput/StepperButton.d.ts
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
471
|
+
/**
|
|
472
|
+
* `--stepper-icon-size` is read by the default arrow inside, and set on the
|
|
473
|
+
* button so that it inherits there.
|
|
474
|
+
*/
|
|
475
|
+
type StepperButtonProps = Omit<ComponentPropsWithoutRef<'div'>, 'style'> & {
|
|
476
|
+
style?: CSSProperties & CSSVariables<'stepper-icon-size'>;
|
|
477
|
+
};
|
|
358
478
|
//#endregion
|
|
359
479
|
//#region src/components/NumberInput/DecrementStepper.d.ts
|
|
360
|
-
interface NumberInputDecrementStepperProps extends StepperButtonProps {}
|
|
361
480
|
/** Lowers the value by one `step`, repeating while held. */
|
|
362
|
-
declare function DecrementStepper(props:
|
|
481
|
+
declare function DecrementStepper(props: StepperButtonProps): import("react").JSX.Element;
|
|
363
482
|
//#endregion
|
|
364
483
|
//#region src/components/NumberInput/IncrementStepper.d.ts
|
|
365
|
-
interface NumberInputIncrementStepperProps extends StepperButtonProps {}
|
|
366
484
|
/** Raises the value by one `step`, repeating while held. */
|
|
367
|
-
declare function IncrementStepper(props:
|
|
485
|
+
declare function IncrementStepper(props: StepperButtonProps): import("react").JSX.Element;
|
|
368
486
|
//#endregion
|
|
369
487
|
//#region src/components/NumberInput/context.d.ts
|
|
370
488
|
type NumberInputContextValue = {
|
|
@@ -429,8 +547,8 @@ type NumberInputContextValue = {
|
|
|
429
547
|
* The only state behind this is the editing draft; `value` comes from the props
|
|
430
548
|
* of `Root` and everything else is derived during render.
|
|
431
549
|
*/
|
|
432
|
-
declare function useNumberInputContext(): NumberInputContextValue;
|
|
433
|
-
declare function useNumberInputContext<T>(selector: (state: NumberInputContextValue) => T): T;
|
|
550
|
+
export declare function useNumberInputContext(): NumberInputContextValue;
|
|
551
|
+
export declare function useNumberInputContext<T>(selector: (state: NumberInputContextValue) => T): T;
|
|
434
552
|
//#endregion
|
|
435
553
|
//#region src/components/NumberInput/index.d.ts
|
|
436
554
|
interface NumberInputProps {
|
|
@@ -608,8 +726,6 @@ interface NumberInputProps {
|
|
|
608
726
|
* The parts carry `data-readonly` while it is set.
|
|
609
727
|
*/
|
|
610
728
|
readonly?: boolean;
|
|
611
|
-
className?: string;
|
|
612
|
-
style?: CSSProperties;
|
|
613
729
|
/**
|
|
614
730
|
* Called with the new value. While the user types, it is called for every
|
|
615
731
|
* entry that reads as a number, unclamped; committing the entry calls it
|
|
@@ -638,10 +754,319 @@ interface NumberInputMethods {
|
|
|
638
754
|
/**
|
|
639
755
|
* Input with some useful functions for entering numerical values.
|
|
640
756
|
*/
|
|
641
|
-
declare const NumberInput: {
|
|
757
|
+
export declare const NumberInput: {
|
|
642
758
|
Root: import("react").ForwardRefExoticComponent<NumberInputProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof NumberInputProps> & import("react").RefAttributes<NumberInputMethods>>;
|
|
643
|
-
InputField: import("react").ForwardRefExoticComponent<
|
|
644
|
-
|
|
759
|
+
InputField: import("react").ForwardRefExoticComponent<{
|
|
760
|
+
form?: string | undefined | undefined;
|
|
761
|
+
slot?: string | undefined | undefined;
|
|
762
|
+
style?: import("react").CSSProperties | undefined;
|
|
763
|
+
title?: string | undefined | undefined;
|
|
764
|
+
pattern?: string | undefined | undefined;
|
|
765
|
+
key?: import("react").Key | null | undefined;
|
|
766
|
+
height?: number | string | undefined | undefined;
|
|
767
|
+
width?: number | string | undefined | undefined;
|
|
768
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
769
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
770
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
771
|
+
accessKey?: string | undefined | undefined;
|
|
772
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
773
|
+
autoFocus?: boolean | undefined | undefined;
|
|
774
|
+
className?: string | undefined | undefined;
|
|
775
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
776
|
+
contextMenu?: string | undefined | undefined;
|
|
777
|
+
dir?: string | undefined | undefined;
|
|
778
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
779
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
780
|
+
hidden?: boolean | undefined | undefined;
|
|
781
|
+
id?: string | undefined | undefined;
|
|
782
|
+
lang?: string | undefined | undefined;
|
|
783
|
+
nonce?: string | undefined | undefined;
|
|
784
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
785
|
+
tabIndex?: number | undefined | undefined;
|
|
786
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
787
|
+
radioGroup?: string | undefined | undefined;
|
|
788
|
+
role?: import("react").AriaRole | undefined;
|
|
789
|
+
about?: string | undefined | undefined;
|
|
790
|
+
content?: string | undefined | undefined;
|
|
791
|
+
datatype?: string | undefined | undefined;
|
|
792
|
+
inlist?: any;
|
|
793
|
+
prefix?: string | undefined | undefined;
|
|
794
|
+
property?: string | undefined | undefined;
|
|
795
|
+
rel?: string | undefined | undefined;
|
|
796
|
+
resource?: string | undefined | undefined;
|
|
797
|
+
rev?: string | undefined | undefined;
|
|
798
|
+
typeof?: string | undefined | undefined;
|
|
799
|
+
vocab?: string | undefined | undefined;
|
|
800
|
+
autoCorrect?: string | undefined | undefined;
|
|
801
|
+
autoSave?: string | undefined | undefined;
|
|
802
|
+
color?: string | undefined | undefined;
|
|
803
|
+
itemProp?: string | undefined | undefined;
|
|
804
|
+
itemScope?: boolean | undefined | undefined;
|
|
805
|
+
itemType?: string | undefined | undefined;
|
|
806
|
+
itemID?: string | undefined | undefined;
|
|
807
|
+
itemRef?: string | undefined | undefined;
|
|
808
|
+
results?: number | undefined | undefined;
|
|
809
|
+
security?: string | undefined | undefined;
|
|
810
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
811
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
812
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
813
|
+
popoverTarget?: string | undefined | undefined;
|
|
814
|
+
inert?: boolean | undefined | undefined;
|
|
815
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
816
|
+
is?: string | undefined | undefined;
|
|
817
|
+
exportparts?: string | undefined | undefined;
|
|
818
|
+
part?: string | undefined | undefined;
|
|
819
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
820
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
821
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
822
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
823
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
824
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
825
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
826
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
827
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
828
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
829
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
830
|
+
"aria-controls"?: string | undefined | undefined;
|
|
831
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
832
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
833
|
+
"aria-description"?: string | undefined | undefined;
|
|
834
|
+
"aria-details"?: string | undefined | undefined;
|
|
835
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
836
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
837
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
838
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
839
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
840
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
841
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
842
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
843
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
844
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
845
|
+
"aria-label"?: string | undefined | undefined;
|
|
846
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
847
|
+
"aria-level"?: number | undefined | undefined;
|
|
848
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
849
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
850
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
851
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
852
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
853
|
+
"aria-owns"?: string | undefined | undefined;
|
|
854
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
855
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
856
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
857
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
858
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
859
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
860
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
861
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
862
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
863
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
864
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
865
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
866
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
867
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
868
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
869
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
870
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
871
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
872
|
+
children?: ReactNode;
|
|
873
|
+
dangerouslySetInnerHTML?: {
|
|
874
|
+
__html: string | TrustedHTML;
|
|
875
|
+
} | undefined | undefined;
|
|
876
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
877
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
878
|
+
onCut?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
879
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
880
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
881
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
882
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
883
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
884
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
885
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
886
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
887
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
888
|
+
onFocus?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
889
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
890
|
+
onBlur?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
891
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
892
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
893
|
+
onChangeCapture?: import("react").ChangeEventHandler<HTMLInputElement, Element> | undefined;
|
|
894
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLInputElement> | undefined;
|
|
895
|
+
onBeforeInputCapture?: import("react").InputEventHandler<HTMLInputElement> | undefined;
|
|
896
|
+
onInput?: import("react").InputEventHandler<HTMLInputElement> | undefined;
|
|
897
|
+
onInputCapture?: import("react").InputEventHandler<HTMLInputElement> | undefined;
|
|
898
|
+
onReset?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
899
|
+
onResetCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
900
|
+
onSubmit?: import("react").SubmitEventHandler<HTMLInputElement> | undefined;
|
|
901
|
+
onSubmitCapture?: import("react").SubmitEventHandler<HTMLInputElement> | undefined;
|
|
902
|
+
onInvalid?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
903
|
+
onInvalidCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
904
|
+
onLoad?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
905
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
906
|
+
onError?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
907
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
908
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
909
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
910
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
911
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
912
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
913
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
914
|
+
onAbort?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
915
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
916
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
917
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
918
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
919
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
920
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
921
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
922
|
+
onEmptied?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
923
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
924
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
925
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
926
|
+
onEnded?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
927
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
928
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
929
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
930
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
931
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
932
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
933
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
934
|
+
onPause?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
935
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
936
|
+
onPlay?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
937
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
938
|
+
onPlaying?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
939
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
940
|
+
onProgress?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
941
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
942
|
+
onRateChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
943
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
944
|
+
onSeeked?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
945
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
946
|
+
onSeeking?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
947
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
948
|
+
onStalled?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
949
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
950
|
+
onSuspend?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
951
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
952
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
953
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
954
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
955
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
956
|
+
onWaiting?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
957
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
958
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
959
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
960
|
+
onClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
961
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
962
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
963
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
964
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
965
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
966
|
+
onDrag?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
967
|
+
onDragCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
968
|
+
onDragEnd?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
969
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
970
|
+
onDragEnter?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
971
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
972
|
+
onDragExit?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
973
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
974
|
+
onDragLeave?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
975
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
976
|
+
onDragOver?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
977
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
978
|
+
onDragStart?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
979
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
980
|
+
onDrop?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
981
|
+
onDropCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
982
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
983
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
984
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
985
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
986
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
987
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
988
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
989
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
990
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
991
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
992
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
993
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
994
|
+
onSelect?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
995
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
996
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
997
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
998
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
999
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
1000
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
1001
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
1002
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
1003
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
1004
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1005
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1006
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1007
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1008
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1009
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1010
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1011
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1012
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1013
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1014
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1015
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1016
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1017
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1018
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1019
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1020
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1021
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
1022
|
+
onScroll?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
1023
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
1024
|
+
onScrollEnd?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
1025
|
+
onScrollEndCapture?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
1026
|
+
onWheel?: import("react").WheelEventHandler<HTMLInputElement> | undefined;
|
|
1027
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLInputElement> | undefined;
|
|
1028
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1029
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1030
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1031
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1032
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1033
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1034
|
+
onToggle?: import("react").ToggleEventHandler<HTMLInputElement> | undefined;
|
|
1035
|
+
onBeforeToggle?: import("react").ToggleEventHandler<HTMLInputElement> | undefined;
|
|
1036
|
+
onTransitionCancel?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1037
|
+
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1038
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1039
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1040
|
+
onTransitionRun?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1041
|
+
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1042
|
+
onTransitionStart?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1043
|
+
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1044
|
+
min?: number | string | undefined | undefined;
|
|
1045
|
+
max?: number | string | undefined | undefined;
|
|
1046
|
+
step?: number | string | undefined | undefined;
|
|
1047
|
+
disabled?: boolean | undefined | undefined;
|
|
1048
|
+
alt?: string | undefined | undefined;
|
|
1049
|
+
accept?: string | undefined | undefined;
|
|
1050
|
+
multiple?: boolean | undefined | undefined;
|
|
1051
|
+
size?: number | undefined | undefined;
|
|
1052
|
+
autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
|
|
1053
|
+
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
1054
|
+
checked?: boolean | undefined | undefined;
|
|
1055
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
1056
|
+
formEncType?: string | undefined | undefined;
|
|
1057
|
+
formMethod?: string | undefined | undefined;
|
|
1058
|
+
formNoValidate?: boolean | undefined | undefined;
|
|
1059
|
+
formTarget?: string | undefined | undefined;
|
|
1060
|
+
list?: string | undefined | undefined;
|
|
1061
|
+
maxLength?: number | undefined | undefined;
|
|
1062
|
+
minLength?: number | undefined | undefined;
|
|
1063
|
+
name?: string | undefined | undefined;
|
|
1064
|
+
placeholder?: string | undefined | undefined;
|
|
1065
|
+
readOnly?: boolean | undefined | undefined;
|
|
1066
|
+
required?: boolean | undefined | undefined;
|
|
1067
|
+
src?: string | undefined | undefined;
|
|
1068
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
1069
|
+
Stepper: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
645
1070
|
IncrementStepper: typeof IncrementStepper;
|
|
646
1071
|
DecrementStepper: typeof DecrementStepper;
|
|
647
1072
|
};
|
|
@@ -661,7 +1086,7 @@ type KeyboardShortcuts = {
|
|
|
661
1086
|
/**
|
|
662
1087
|
* Ready-made keyboard layouts. Both assume `noteRange.first` is a C.
|
|
663
1088
|
*/
|
|
664
|
-
declare const SHORTCUTS: {
|
|
1089
|
+
export declare const SHORTCUTS: {
|
|
665
1090
|
/** Every semitone from C, over the two rows of a QWERTY keyboard. */
|
|
666
1091
|
HOME_ROW: {
|
|
667
1092
|
keys: string[];
|
|
@@ -674,11 +1099,6 @@ declare const SHORTCUTS: {
|
|
|
674
1099
|
//#endregion
|
|
675
1100
|
//#region src/components/Piano/index.d.ts
|
|
676
1101
|
type KeyboardShortcutsScope = 'root' | 'window';
|
|
677
|
-
/**
|
|
678
|
-
* `style` that also takes CSS custom properties, which is how a key's colours
|
|
679
|
-
* are set: see `index.css` for the ones each key type reads.
|
|
680
|
-
*/
|
|
681
|
-
type CSSVariables = Record<`--${string}`, string | number | undefined>;
|
|
682
1102
|
/**
|
|
683
1103
|
* What {@link PianoProps.keyProps} may return for one key.
|
|
684
1104
|
*
|
|
@@ -687,7 +1107,7 @@ type CSSVariables = Record<`--${string}`, string | number | undefined>;
|
|
|
687
1107
|
* mark a key out.
|
|
688
1108
|
*/
|
|
689
1109
|
type KeyAttributes = Omit<ComponentPropsWithoutRef<'div'>, 'style'> & {
|
|
690
|
-
style?: CSSProperties & CSSVariables
|
|
1110
|
+
style?: CSSProperties & CSSVariables<'color' | 'bg' | 'active-color' | 'active-bg'>;
|
|
691
1111
|
} & Record<`data-${string}`, string | number | boolean | undefined>;
|
|
692
1112
|
/** What a key is, when {@link PianoProps.label} or `keyProps` is asked about it. */
|
|
693
1113
|
interface KeyState {
|
|
@@ -775,7 +1195,6 @@ interface PianoProps {
|
|
|
775
1195
|
* `data-resizable`.
|
|
776
1196
|
*/
|
|
777
1197
|
height?: number | string;
|
|
778
|
-
style?: CSSProperties & CSSVariables;
|
|
779
1198
|
/**
|
|
780
1199
|
* What to draw inside a key. `''`, `null` and `undefined` leave it bare, so
|
|
781
1200
|
* a layout with gaps — {@link SHORTCUTS.HOME_ROW_NATURAL}, say — needs no
|
|
@@ -805,6 +1224,7 @@ interface PianoProps {
|
|
|
805
1224
|
onPlayNote?: (note: number, velocity?: number) => void;
|
|
806
1225
|
/** Called once everything holding a note has let go of it. */
|
|
807
1226
|
onStopNote?: (note: number) => void;
|
|
1227
|
+
style?: CSSProperties & CSSVariables<'height'>;
|
|
808
1228
|
}
|
|
809
1229
|
interface PianoMethods {
|
|
810
1230
|
playNote: (note: number, velocity?: number) => void;
|
|
@@ -813,29 +1233,19 @@ interface PianoMethods {
|
|
|
813
1233
|
/**
|
|
814
1234
|
* Customizable piano component.
|
|
815
1235
|
*/
|
|
816
|
-
declare const Piano: {
|
|
1236
|
+
export declare const Piano: {
|
|
817
1237
|
Root: import("react").ForwardRefExoticComponent<PianoProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof PianoProps> & import("react").RefAttributes<PianoMethods>>;
|
|
818
1238
|
};
|
|
819
1239
|
//#endregion
|
|
820
|
-
//#region src/components/PointsEditor/Container.d.ts
|
|
821
|
-
interface PointsEditorContainerProps {
|
|
822
|
-
/** `<PointsEditor.Point />` goes here. */
|
|
823
|
-
children?: ReactNode;
|
|
824
|
-
}
|
|
825
|
-
//#endregion
|
|
826
1240
|
//#region src/components/PointsEditor/Background.d.ts
|
|
827
|
-
|
|
828
|
-
/** Whatever the points are placed over: a graph, a canvas, an image. */
|
|
829
|
-
children?: ReactNode;
|
|
830
|
-
}
|
|
831
|
-
declare function Background({ className, children, style, ...props }: PointsEditorBackgroundProps & Omit<ComponentPropsWithoutRef<'div'>, keyof PointsEditorBackgroundProps>): import("react").JSX.Element;
|
|
1241
|
+
declare function Background({ className, children, style, ...props }: ComponentPropsWithoutRef<'div'>): import("react").JSX.Element;
|
|
832
1242
|
//#endregion
|
|
833
1243
|
//#region src/components/PointsEditor/Point.d.ts
|
|
834
1244
|
type PointBaseType = {
|
|
835
1245
|
x: number;
|
|
836
1246
|
y: number;
|
|
837
1247
|
};
|
|
838
|
-
declare function clampPoint(point: PointBaseType, min?: Partial<PointBaseType>, max?: Partial<PointBaseType>): {
|
|
1248
|
+
export declare function clampPoint(point: PointBaseType, min?: Partial<PointBaseType>, max?: Partial<PointBaseType>): {
|
|
839
1249
|
x: number;
|
|
840
1250
|
y: number;
|
|
841
1251
|
};
|
|
@@ -845,8 +1255,6 @@ interface PointsEditorPointProps<T extends PointBaseType> {
|
|
|
845
1255
|
* growing downwards.
|
|
846
1256
|
*/
|
|
847
1257
|
value: T;
|
|
848
|
-
/** Drawn inside the point: the theme's own dot stands when it is left out. */
|
|
849
|
-
children?: ReactNode;
|
|
850
1258
|
/**
|
|
851
1259
|
* How the selection refers to this point. One is generated when it is left
|
|
852
1260
|
* out, which lasts as long as the point is mounted — give your own if the
|
|
@@ -889,21 +1297,18 @@ interface PointsEditorPointProps<T extends PointBaseType> {
|
|
|
889
1297
|
onDragStart?: (value: PointBaseType) => void;
|
|
890
1298
|
/** Called when that drag ends, with where the point is. */
|
|
891
1299
|
onDragEnd?: (value: PointBaseType) => void;
|
|
1300
|
+
style?: CSSProperties & CSSVariables<'width' | 'height' | 'color' | 'translate'>;
|
|
892
1301
|
}
|
|
893
1302
|
declare function Point<T extends PointBaseType>({ value, children, id: idProp, min, max, size, width, height, color, disabled: _disabled, readonly: _readonly, wheel: _wheel, keyboard: _keyboard, 'aria-label': ariaLabel, 'aria-valuetext': ariaValuetext, onChange, onDragStart, onDragEnd, className, style, onPointerDown, onKeyDown, onFocus, ...props }: PointsEditorPointProps<T> & Omit<ComponentPropsWithoutRef<'div'>, keyof PointsEditorPointProps<T>>): import("react").JSX.Element;
|
|
894
1303
|
//#endregion
|
|
895
1304
|
//#region src/components/PointsEditor/SelectionBox.d.ts
|
|
896
|
-
interface PointsEditorSelectionBoxProps {
|
|
897
|
-
/** Drawn inside the box, which is only there while a drag is running. */
|
|
898
|
-
children?: ReactNode;
|
|
899
|
-
}
|
|
900
1305
|
/**
|
|
901
1306
|
* The box a drag on empty space draws, and what it covers is selected.
|
|
902
1307
|
*
|
|
903
1308
|
* Nothing is rendered while no drag is running, and leaving it out leaves the
|
|
904
1309
|
* editor without one — the selection still works, it just cannot be seen.
|
|
905
1310
|
*/
|
|
906
|
-
declare function SelectionBox({ children, className, style, ...props }:
|
|
1311
|
+
declare function SelectionBox({ children, className, style, ...props }: ComponentPropsWithoutRef<'div'>): import("react").JSX.Element | null;
|
|
907
1312
|
//#endregion
|
|
908
1313
|
//#region src/components/PointsEditor/context.d.ts
|
|
909
1314
|
/**
|
|
@@ -982,8 +1387,8 @@ type PointsEditorContextValue = {
|
|
|
982
1387
|
* value still belongs to the `Point` that draws it; what the root keeps is
|
|
983
1388
|
* which points are selected, and a registry of who they are.
|
|
984
1389
|
*/
|
|
985
|
-
declare function usePointsEditorContext(): PointsEditorContextValue;
|
|
986
|
-
declare function usePointsEditorContext<T>(selector: (state: PointsEditorContextValue) => T): T;
|
|
1390
|
+
export declare function usePointsEditorContext(): PointsEditorContextValue;
|
|
1391
|
+
export declare function usePointsEditorContext<T>(selector: (state: PointsEditorContextValue) => T): T;
|
|
987
1392
|
//#endregion
|
|
988
1393
|
//#region src/components/PointsEditor/index.d.ts
|
|
989
1394
|
interface PointsEditorProps {
|
|
@@ -1102,14 +1507,15 @@ interface PointsEditorProps {
|
|
|
1102
1507
|
* </PointsEditor.Root>
|
|
1103
1508
|
*/
|
|
1104
1509
|
children: ReactNode;
|
|
1510
|
+
style?: CSSProperties & CSSVariables<'width' | 'height'>;
|
|
1105
1511
|
}
|
|
1106
1512
|
/**
|
|
1107
1513
|
* Multiple Point Controller
|
|
1108
1514
|
*/
|
|
1109
|
-
declare const PointsEditor: {
|
|
1515
|
+
export declare const PointsEditor: {
|
|
1110
1516
|
Root: import("react").ForwardRefExoticComponent<PointsEditorProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof PointsEditorProps> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1111
1517
|
Background: typeof Background;
|
|
1112
|
-
Container: import("react").ForwardRefExoticComponent<
|
|
1518
|
+
Container: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1113
1519
|
Point: typeof Point;
|
|
1114
1520
|
SelectionBox: typeof SelectionBox;
|
|
1115
1521
|
};
|
|
@@ -1122,18 +1528,7 @@ interface SliderThumbProps {
|
|
|
1122
1528
|
* leave the matching room around the track.
|
|
1123
1529
|
*/
|
|
1124
1530
|
color?: string;
|
|
1125
|
-
|
|
1126
|
-
style?: CSSProperties;
|
|
1127
|
-
/**
|
|
1128
|
-
* Rendered inside the thumb. The thumb is one element either way, so what
|
|
1129
|
-
* is passed here is decoration on top of it rather than a replacement for
|
|
1130
|
-
* it — `className` and `style` are how its own appearance is changed.
|
|
1131
|
-
*/
|
|
1132
|
-
children?: ReactNode;
|
|
1133
|
-
'aria-label'?: AriaAttributes['aria-label'];
|
|
1134
|
-
'aria-labelledby'?: AriaAttributes['aria-labelledby'];
|
|
1135
|
-
'aria-describedby'?: AriaAttributes['aria-describedby'];
|
|
1136
|
-
'aria-valuetext'?: AriaAttributes['aria-valuetext'];
|
|
1531
|
+
style?: CSSProperties & CSSVariables<'color' | 'translate'>;
|
|
1137
1532
|
}
|
|
1138
1533
|
interface SliderThumbMethods {
|
|
1139
1534
|
focus: () => void;
|
|
@@ -1153,10 +1548,7 @@ interface SliderTrackProps {
|
|
|
1153
1548
|
active?: string;
|
|
1154
1549
|
/** Colour of the rest of the track. Sets `--inactive`. */
|
|
1155
1550
|
inactive?: string;
|
|
1156
|
-
|
|
1157
|
-
style?: CSSProperties;
|
|
1158
|
-
/** `<Slider.Thumb />` goes here. */
|
|
1159
|
-
children?: ReactNode;
|
|
1551
|
+
style?: CSSProperties & CSSVariables<'length' | 'thickness' | 'active' | 'inactive' | 'percent'>;
|
|
1160
1552
|
}
|
|
1161
1553
|
//#endregion
|
|
1162
1554
|
//#region src/components/Slider/type.d.ts
|
|
@@ -1188,11 +1580,7 @@ interface SliderMarksProps {
|
|
|
1188
1580
|
* `'step'` makes one per step, which is a great many for a fine `step`.
|
|
1189
1581
|
*/
|
|
1190
1582
|
options?: MarksOptions;
|
|
1191
|
-
|
|
1192
|
-
* `<Slider.MarksOption />` goes here, one per mark. Ignored while `options`
|
|
1193
|
-
* is set.
|
|
1194
|
-
*/
|
|
1195
|
-
children?: ReactNode;
|
|
1583
|
+
style?: CSSProperties & CSSVariables<'gap'>;
|
|
1196
1584
|
}
|
|
1197
1585
|
declare function Marks({ gap, options, children, className, style, ...props }: SliderMarksProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SliderMarksProps>): import("react").JSX.Element;
|
|
1198
1586
|
//#endregion
|
|
@@ -1228,6 +1616,7 @@ interface SliderMarksOptionProps {
|
|
|
1228
1616
|
mark?: CSSProperties;
|
|
1229
1617
|
label?: CSSProperties;
|
|
1230
1618
|
};
|
|
1619
|
+
style?: CSSProperties & CSSVariables<'thickness' | 'length' | 'gap' | 'label-width' | 'translate'>;
|
|
1231
1620
|
}
|
|
1232
1621
|
declare function MarksOption({ value, mark, label, thickness, length, gap, labelWidth, classes, styles, className, style, ...props }: SliderMarksOptionProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SliderMarksOptionProps>): import("react").JSX.Element;
|
|
1233
1622
|
//#endregion
|
|
@@ -1258,8 +1647,8 @@ type SliderContextValue = {
|
|
|
1258
1647
|
* Everything here is derived during render, so there is no state to keep in
|
|
1259
1648
|
* sync: `value` comes from the props of `Root` and the rest follows from it.
|
|
1260
1649
|
*/
|
|
1261
|
-
declare function useSliderContext(): SliderContextValue;
|
|
1262
|
-
declare function useSliderContext<T>(selector: (state: SliderContextValue) => T): T;
|
|
1650
|
+
export declare function useSliderContext(): SliderContextValue;
|
|
1651
|
+
export declare function useSliderContext<T>(selector: (state: SliderContextValue) => T): T;
|
|
1263
1652
|
//#endregion
|
|
1264
1653
|
//#region src/components/Slider/index.d.ts
|
|
1265
1654
|
interface SliderProps {
|
|
@@ -1364,8 +1753,6 @@ interface SliderProps {
|
|
|
1364
1753
|
* The parts carry `data-readonly` while it is set.
|
|
1365
1754
|
*/
|
|
1366
1755
|
readonly?: boolean;
|
|
1367
|
-
className?: string;
|
|
1368
|
-
style?: CSSProperties;
|
|
1369
1756
|
/** Called with the new value when a drag, the wheel or an arrow key moves it. */
|
|
1370
1757
|
onChange?: (value: number) => void;
|
|
1371
1758
|
/** Called when a drag starts, with the value where the track was pressed. */
|
|
@@ -1392,7 +1779,7 @@ interface SliderMethods {
|
|
|
1392
1779
|
/**
|
|
1393
1780
|
* Customizable slider
|
|
1394
1781
|
*/
|
|
1395
|
-
declare const Slider: {
|
|
1782
|
+
export declare const Slider: {
|
|
1396
1783
|
Root: React.ForwardRefExoticComponent<SliderProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SliderProps> & React.RefAttributes<SliderMethods>>;
|
|
1397
1784
|
Thumb: React.ForwardRefExoticComponent<SliderThumbProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SliderThumbProps> & React.RefAttributes<SliderThumbMethods>>;
|
|
1398
1785
|
Track: React.ForwardRefExoticComponent<SliderTrackProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SliderTrackProps> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1425,8 +1812,8 @@ type XYPadContextValue = {
|
|
|
1425
1812
|
* Everything here is derived during render, so there is no state to keep in
|
|
1426
1813
|
* sync: `value` comes from the props of `Root` and the rest follows from it.
|
|
1427
1814
|
*/
|
|
1428
|
-
declare function useXYPadContext(): XYPadContextValue;
|
|
1429
|
-
declare function useXYPadContext<T>(selector: (state: XYPadContextValue) => T): T;
|
|
1815
|
+
export declare function useXYPadContext(): XYPadContextValue;
|
|
1816
|
+
export declare function useXYPadContext<T>(selector: (state: XYPadContextValue) => T): T;
|
|
1430
1817
|
//#endregion
|
|
1431
1818
|
//#region src/components/XYPad/Thumb.d.ts
|
|
1432
1819
|
interface XYPadThumbProps {
|
|
@@ -1436,14 +1823,6 @@ interface XYPadThumbProps {
|
|
|
1436
1823
|
* the matching room around the area.
|
|
1437
1824
|
*/
|
|
1438
1825
|
color?: string;
|
|
1439
|
-
className?: string;
|
|
1440
|
-
style?: CSSProperties;
|
|
1441
|
-
/**
|
|
1442
|
-
* Rendered inside the thumb. The thumb is one element either way, so what
|
|
1443
|
-
* is passed here is decoration on top of it rather than a replacement for
|
|
1444
|
-
* it — `className` and `style` are how its own appearance is changed.
|
|
1445
|
-
*/
|
|
1446
|
-
children?: ReactNode;
|
|
1447
1826
|
/**
|
|
1448
1827
|
* The accessible name of each axis, as `[x, y]`. There are two range inputs
|
|
1449
1828
|
* inside the thumb, so each takes a name of its own; a single string names
|
|
@@ -1459,6 +1838,7 @@ interface XYPadThumbProps {
|
|
|
1459
1838
|
* `[x, y]` or one for both.
|
|
1460
1839
|
*/
|
|
1461
1840
|
'aria-valuetext'?: XYInput<AriaAttributes['aria-valuetext']>;
|
|
1841
|
+
style?: CSSProperties & CSSVariables<'color' | 'translate'>;
|
|
1462
1842
|
}
|
|
1463
1843
|
interface XYPadThumbMethods {
|
|
1464
1844
|
focus: () => void;
|
|
@@ -1473,10 +1853,7 @@ interface XYPadAreaProps {
|
|
|
1473
1853
|
height?: number | string;
|
|
1474
1854
|
/** Sets `--color`, for the theme to colour the area with. */
|
|
1475
1855
|
color?: string;
|
|
1476
|
-
|
|
1477
|
-
style?: CSSProperties;
|
|
1478
|
-
/** `<XYPad.Thumb />` goes here. */
|
|
1479
|
-
children?: ReactNode;
|
|
1856
|
+
style?: CSSProperties & CSSVariables<'width' | 'height' | 'color'>;
|
|
1480
1857
|
}
|
|
1481
1858
|
//#endregion
|
|
1482
1859
|
//#region src/components/XYPad/index.d.ts
|
|
@@ -1610,20 +1987,24 @@ interface XYPadMethods {
|
|
|
1610
1987
|
/**
|
|
1611
1988
|
* Simple XYPad
|
|
1612
1989
|
*/
|
|
1613
|
-
declare const XYPad: {
|
|
1990
|
+
export declare const XYPad: {
|
|
1614
1991
|
Root: import("react").ForwardRefExoticComponent<XYPadProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof XYPadProps> & import("react").RefAttributes<XYPadMethods>>;
|
|
1615
1992
|
Thumb: import("react").ForwardRefExoticComponent<XYPadThumbProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof XYPadThumbProps> & import("react").RefAttributes<XYPadThumbMethods>>;
|
|
1616
1993
|
Area: import("react").ForwardRefExoticComponent<XYPadAreaProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof XYPadAreaProps> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1617
1994
|
};
|
|
1618
1995
|
//#endregion
|
|
1619
1996
|
//#region src/hooks/useAnimationFrame.d.ts
|
|
1620
|
-
declare function useAnimationFrame(callback?: () => void, deps?: DependencyList): void;
|
|
1997
|
+
export declare function useAnimationFrame(callback?: () => void, deps?: DependencyList): void;
|
|
1621
1998
|
//#endregion
|
|
1622
1999
|
//#region src/hooks/useDrag.d.ts
|
|
1623
|
-
interface
|
|
2000
|
+
interface UseDragOptions {
|
|
1624
2001
|
/**
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
2002
|
+
* Pixels the pointer has to travel before the drag counts as one.
|
|
2003
|
+
*
|
|
2004
|
+
* A click moves the pointer by a pixel or two, so without a threshold a
|
|
2005
|
+
* double click reports a drag between the two presses.
|
|
2006
|
+
*
|
|
2007
|
+
* @default 1
|
|
1627
2008
|
*/
|
|
1628
2009
|
threshold?: number;
|
|
1629
2010
|
/** CSS cursor to show while dragging. Applied to the element itself. */
|
|
@@ -1637,11 +2018,16 @@ interface UseDragProps {
|
|
|
1637
2018
|
*/
|
|
1638
2019
|
pointerLock?: boolean;
|
|
1639
2020
|
/**
|
|
2021
|
+
* Called on every move once the drag has started, with the pointer position
|
|
2022
|
+
* relative to the element and how far it moved since the last call.
|
|
2023
|
+
*
|
|
1640
2024
|
* @param state the whole drag, for anything the four numbers leave out —
|
|
1641
2025
|
* the pointer event and its modifier keys, most of all.
|
|
1642
2026
|
*/
|
|
1643
2027
|
onDrag?: (x: number, y: number, deltaX: number, deltaY: number, state: DragState) => void;
|
|
2028
|
+
/** Called once the pointer has moved past `threshold`, not on pointerdown. */
|
|
1644
2029
|
onDragStart?: (state: DragState) => void;
|
|
2030
|
+
/** Called when the pointer is released, only if the drag ever started. */
|
|
1645
2031
|
onDragEnd?: (state: DragState) => void;
|
|
1646
2032
|
}
|
|
1647
2033
|
/**
|
|
@@ -1649,7 +2035,7 @@ interface UseDragProps {
|
|
|
1649
2035
|
*
|
|
1650
2036
|
* @returns a ref callback to attach to the element being dragged
|
|
1651
2037
|
*/
|
|
1652
|
-
declare function useDrag<T extends Element>({ threshold, cursor, pointerLock, onDrag, onDragStart, onDragEnd }:
|
|
2038
|
+
export declare function useDrag<T extends Element>({ threshold, cursor, pointerLock, onDrag, onDragStart, onDragEnd }: UseDragOptions): (node: T | null) => void;
|
|
1653
2039
|
//#endregion
|
|
1654
2040
|
//#region src/hooks/useDragValue.d.ts
|
|
1655
2041
|
interface UseDragValueOptions {
|
|
@@ -1687,9 +2073,19 @@ interface UseDragValueOptions {
|
|
|
1687
2073
|
* @see elementMapping
|
|
1688
2074
|
*/
|
|
1689
2075
|
sensitivity?: (state: DragState) => number;
|
|
1690
|
-
/**
|
|
2076
|
+
/**
|
|
2077
|
+
* Move the value on pointerdown, before the pointer has moved at all. With
|
|
2078
|
+
* `baseElementRef` that makes a press jump the value to where it landed.
|
|
2079
|
+
*
|
|
2080
|
+
* @see DragValueOptions.updateOnPointerDown
|
|
2081
|
+
*/
|
|
1691
2082
|
updateOnPointerDown?: boolean;
|
|
1692
|
-
/**
|
|
2083
|
+
/**
|
|
2084
|
+
* Pixels the pointer has to travel before the drag counts as one. The
|
|
2085
|
+
* default is 0, so the value follows the very first move.
|
|
2086
|
+
*
|
|
2087
|
+
* @default 0
|
|
2088
|
+
*/
|
|
1693
2089
|
threshold?: number;
|
|
1694
2090
|
/** CSS cursor to show while dragging. Applied to the element itself. */
|
|
1695
2091
|
cursor?: string;
|
|
@@ -1710,11 +2106,16 @@ interface UseDragValueOptions {
|
|
|
1710
2106
|
*/
|
|
1711
2107
|
shouldStart?: (event: PointerEvent) => boolean;
|
|
1712
2108
|
/**
|
|
2109
|
+
* Called with the new value whenever the drag moves it. The hook holds no
|
|
2110
|
+
* value of its own, so this is where it is stored.
|
|
2111
|
+
*
|
|
1713
2112
|
* @param state the whole drag, for anything the value leaves out — the
|
|
1714
2113
|
* pointer event and its modifier keys, most of all.
|
|
1715
2114
|
*/
|
|
1716
2115
|
onChange?: (value: XY$1<number>, state: DragState) => void;
|
|
2116
|
+
/** Called once the drag starts, with the value it starts from. */
|
|
1717
2117
|
onDragStart?: (value: XY$1<number>, state: DragState) => void;
|
|
2118
|
+
/** Called when the pointer is released, with the value it ends on. */
|
|
1718
2119
|
onDragEnd?: (value: XY$1<number>, state: DragState) => void;
|
|
1719
2120
|
}
|
|
1720
2121
|
/**
|
|
@@ -1722,23 +2123,39 @@ interface UseDragValueOptions {
|
|
|
1722
2123
|
*
|
|
1723
2124
|
* @returns a ref callback for the element that starts the drag, and whether a drag is in progress
|
|
1724
2125
|
*/
|
|
1725
|
-
declare function useDragValue<T extends Element>(options: UseDragValueOptions): {
|
|
2126
|
+
export declare function useDragValue<T extends Element>(options: UseDragValueOptions): {
|
|
1726
2127
|
refCallback: (node: T | null) => void;
|
|
1727
2128
|
dragging: boolean;
|
|
1728
2129
|
};
|
|
1729
2130
|
//#endregion
|
|
2131
|
+
//#region src/hooks/useDropZone.d.ts
|
|
2132
|
+
interface UseDropZoneOptions extends Omit<DropZoneOptions, 'onStateChange'> {}
|
|
2133
|
+
/**
|
|
2134
|
+
* Take files dropped onto an element.
|
|
2135
|
+
*
|
|
2136
|
+
* Any element can become a drop target this way — a waveform display, a track
|
|
2137
|
+
* lane, a canvas — without wrapping it in anything.
|
|
2138
|
+
*
|
|
2139
|
+
* @returns a ref callback for the element, and whether a drag is over it
|
|
2140
|
+
*/
|
|
2141
|
+
export declare function useDropZone<T extends Element>({ accept, multiple, disabled, onDrop, onReject }?: UseDropZoneOptions): {
|
|
2142
|
+
refCallback: (node: T | null) => void;
|
|
2143
|
+
over: boolean;
|
|
2144
|
+
invalid: boolean;
|
|
2145
|
+
};
|
|
2146
|
+
//#endregion
|
|
1730
2147
|
//#region src/hooks/useEventListener.d.ts
|
|
1731
2148
|
type Target = EventTarget | null | (() => EventTarget | null);
|
|
1732
2149
|
type Options = boolean | AddEventListenerOptions;
|
|
1733
|
-
declare function useEventListener<K extends keyof DocumentEventMap>(target: Target, event: K, handler: (event: DocumentEventMap[K]) => void, options?: Options): VoidFunction;
|
|
1734
|
-
declare function useEventListener<K extends keyof WindowEventMap>(target: Target, event: K, handler: (event: WindowEventMap[K]) => void, options?: Options): VoidFunction;
|
|
1735
|
-
declare function useEventListener<K extends keyof GlobalEventHandlersEventMap>(target: Target, event: K, handler: (event: GlobalEventHandlersEventMap[K]) => void, options?: Options): VoidFunction;
|
|
2150
|
+
export declare function useEventListener<K extends keyof DocumentEventMap>(target: Target, event: K, handler: (event: DocumentEventMap[K]) => void, options?: Options): VoidFunction;
|
|
2151
|
+
export declare function useEventListener<K extends keyof WindowEventMap>(target: Target, event: K, handler: (event: WindowEventMap[K]) => void, options?: Options): VoidFunction;
|
|
2152
|
+
export declare function useEventListener<K extends keyof GlobalEventHandlersEventMap>(target: Target, event: K, handler: (event: GlobalEventHandlersEventMap[K]) => void, options?: Options): VoidFunction;
|
|
1736
2153
|
//#endregion
|
|
1737
2154
|
//#region src/hooks/useInterval.d.ts
|
|
1738
|
-
declare function useInterval(callback: () => void, delay: number | null): void;
|
|
2155
|
+
export declare function useInterval(callback: () => void, delay: number | null): void;
|
|
1739
2156
|
//#endregion
|
|
1740
2157
|
//#region src/hooks/useLongPress.d.ts
|
|
1741
|
-
declare function useLongPress(callback: () => void, initialDelay?: number, interval?: number): (event?: Pick<PointerEvent, "button" | "pointerId">) => void;
|
|
2158
|
+
export declare function useLongPress(callback: () => void, initialDelay?: number, interval?: number): (event?: Pick<PointerEvent, "button" | "pointerId">) => void;
|
|
1742
2159
|
//#endregion
|
|
1743
2160
|
//#region src/hooks/useMIDIAccess.d.ts
|
|
1744
2161
|
/**
|
|
@@ -1751,7 +2168,7 @@ declare function useLongPress(callback: () => void, initialDelay?: number, inter
|
|
|
1751
2168
|
* messages. Browsers treat that as a separate, more sensitive permission, so
|
|
1752
2169
|
* ask for it only when it is actually used.
|
|
1753
2170
|
*/
|
|
1754
|
-
declare function useMIDIAccess(requestOnMount?: boolean): {
|
|
2171
|
+
export declare function useMIDIAccess(requestOnMount?: boolean): {
|
|
1755
2172
|
request: (options?: MIDIAccessOptions$1) => void;
|
|
1756
2173
|
midiAccess: MIDIAccess | null;
|
|
1757
2174
|
error: import("@tremolo-ui/dom").MIDIAccessError | null;
|
|
@@ -1776,7 +2193,7 @@ declare function useMIDIAccess(requestOnMount?: boolean): {
|
|
|
1776
2193
|
* },
|
|
1777
2194
|
* })
|
|
1778
2195
|
*/
|
|
1779
|
-
declare function useMIDIInput(midiAccess: MIDIAccess | null, handlers: MIDIInputHandlers): void;
|
|
2196
|
+
export declare function useMIDIInput(midiAccess: MIDIAccess | null, handlers: MIDIInputHandlers): void;
|
|
1780
2197
|
//#endregion
|
|
1781
2198
|
//#region src/hooks/useMIDIMessage.d.ts
|
|
1782
2199
|
/**
|
|
@@ -1786,10 +2203,10 @@ declare function useMIDIInput(midiAccess: MIDIAccess | null, handlers: MIDIInput
|
|
|
1786
2203
|
* listeners are attached once per `midiAccess` and stay attached, and devices
|
|
1787
2204
|
* plugged in later are picked up.
|
|
1788
2205
|
*/
|
|
1789
|
-
declare function useMIDIMessage(midiAccess: MIDIAccess | null, onMIDIMessage: (event: MIDIMessageEvent) => void): void;
|
|
2206
|
+
export declare function useMIDIMessage(midiAccess: MIDIAccess | null, onMIDIMessage: (event: MIDIMessageEvent) => void): void;
|
|
1790
2207
|
//#endregion
|
|
1791
2208
|
//#region src/hooks/useWheel.d.ts
|
|
1792
|
-
interface UseWheelOptions extends WheelOptions {
|
|
2209
|
+
interface UseWheelOptions extends Omit<WheelOptions, 'onWheel'> {
|
|
1793
2210
|
/**
|
|
1794
2211
|
* Listen on this element rather than on the one the returned ref callback is
|
|
1795
2212
|
* attached to, and ignore that callback.
|
|
@@ -1811,7 +2228,7 @@ interface UseWheelOptions extends WheelOptions {
|
|
|
1811
2228
|
*
|
|
1812
2229
|
* @returns a ref callback to attach to the element, unused when `target` is given
|
|
1813
2230
|
*/
|
|
1814
|
-
declare function useWheel<T extends Element>(onWheel: (event: WheelEvent) => void, { requireFocus, target }?: UseWheelOptions): (node: T | null) => void;
|
|
2231
|
+
export declare function useWheel<T extends Element>(onWheel: (event: WheelEvent) => void, { requireFocus, target }?: UseWheelOptions): (node: T | null) => void;
|
|
1815
2232
|
//#endregion
|
|
1816
2233
|
//#region src/input-event.d.ts
|
|
1817
2234
|
/**
|
|
@@ -1821,21 +2238,21 @@ declare function useWheel<T extends Element>(onWheel: (event: WheelEvent) => voi
|
|
|
1821
2238
|
* `useCheckSteps` warns about.
|
|
1822
2239
|
*
|
|
1823
2240
|
* A modifier entry is not snapped to `step`, which is what lets the finer
|
|
1824
|
-
* amount move at all — see `applyDelta` in `@tremolo-ui/
|
|
2241
|
+
* amount move at all — see `applyDelta` in `@tremolo-ui/dom`.
|
|
1825
2242
|
*/
|
|
1826
|
-
declare const DEFAULT_KEYBOARD_OPTIONS: ModifierValue<InputEventOption>;
|
|
2243
|
+
export declare const DEFAULT_KEYBOARD_OPTIONS: ModifierValue<InputEventOption>;
|
|
1827
2244
|
/**
|
|
1828
2245
|
* The wheel amount used by Knob, NumberInput, Slider, and XYPad by default.
|
|
1829
2246
|
*
|
|
1830
2247
|
* Browsers turn shift+wheel into horizontal scrolling, which empties `deltaY`
|
|
1831
2248
|
* and fills `deltaX`, so no modifier is bound here.
|
|
1832
2249
|
*/
|
|
1833
|
-
declare const DEFAULT_WHEEL_OPTIONS: ModifierValue<InputEventOption>;
|
|
2250
|
+
export declare const DEFAULT_WHEEL_OPTIONS: ModifierValue<InputEventOption>;
|
|
1834
2251
|
/**
|
|
1835
2252
|
* The drag sensitivity used by value controls by default. Shift makes the
|
|
1836
2253
|
* same movement cover a tenth of the range, matching the arrow keys.
|
|
1837
2254
|
*/
|
|
1838
|
-
declare const DEFAULT_DRAG_SENSITIVITY: ModifierValue<number>;
|
|
2255
|
+
export declare const DEFAULT_DRAG_SENSITIVITY: ModifierValue<number>;
|
|
1839
2256
|
//#endregion
|
|
1840
|
-
export {
|
|
2257
|
+
export { type AnimationCanvasCommonProps, type AnimationCanvasFixedProps, type AnimationCanvasProps, type AnimationCanvasResizableProps, type CSSVariables, type DrawFunction, type DropZoneProps, type FileInputContextValue, type FileInputProps, type FileInputTriggerProps, type InitFunction, type KeyAttributes, type KeyState, type KeyboardShortcuts, type KnobContextValue, type KnobMethods, type KnobProps, type KnobSVGRootProps, type KnobThumbProps, type MIDIAccessError, type MIDIAccessOptions, type MIDIInputHandlers, type MarksOptions, NOT_SUPPORTED, type NumberInputContextValue, type NumberInputMethods, type NumberInputProps, PERMISSION_DENIED, PITCH_BEND_CENTER, type PianoMethods, type PianoProps, type PointBaseType, type PointsEditorContextValue, type PointsEditorPointProps, type PointsEditorProps, type SliderContextValue, type SliderMarksOptionProps, type SliderMarksProps, type SliderMethods, type SliderProps, type SliderThumbMethods, type SliderThumbProps, type SliderTrackProps, UNAVAILABLE, type UseDragOptions, type UseDragValueOptions, type UseDropZoneOptions, type UseWheelOptions, type XY, type XYInput, type XYPadAreaProps, type XYPadContextValue, type XYPadMethods, type XYPadProps, type XYPadThumbMethods, type XYPadThumbProps };
|
|
1841
2258
|
//# sourceMappingURL=index.d.cts.map
|