@wirekyt/dom 0.0.34 → 0.0.35
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-DQHeEQMM.d.cts → index-3tNJficI.d.cts} +1 -1
- package/dist/{index-DQHeEQMM.d.ts → index-3tNJficI.d.ts} +1 -1
- package/dist/machines/angle-slider/index.d.cts +1 -1
- package/dist/machines/angle-slider/index.d.ts +1 -1
- package/dist/machines/carousel/index.d.cts +1 -1
- package/dist/machines/carousel/index.d.ts +1 -1
- package/dist/machines/cascade-select/index.d.cts +3 -3
- package/dist/machines/cascade-select/index.d.ts +3 -3
- package/dist/machines/checkbox/index.d.cts +1 -1
- package/dist/machines/checkbox/index.d.ts +1 -1
- package/dist/machines/clipboard/index.d.cts +1 -1
- package/dist/machines/clipboard/index.d.ts +1 -1
- package/dist/machines/collapsible/index.d.cts +1 -1
- package/dist/machines/collapsible/index.d.ts +1 -1
- package/dist/machines/color-picker/index.d.cts +2 -2
- package/dist/machines/color-picker/index.d.ts +2 -2
- package/dist/machines/combobox/index.d.cts +2 -2
- package/dist/machines/combobox/index.d.ts +2 -2
- package/dist/machines/date-picker/index.d.cts +2 -2
- package/dist/machines/date-picker/index.d.ts +2 -2
- package/dist/machines/dialog/index.d.cts +1 -1
- package/dist/machines/dialog/index.d.ts +1 -1
- package/dist/machines/drawer/index.cjs +0 -3
- package/dist/machines/drawer/index.d.cts +1 -1
- package/dist/machines/drawer/index.d.ts +1 -1
- package/dist/machines/drawer/index.js +0 -3
- package/dist/machines/editable/index.d.cts +1 -1
- package/dist/machines/editable/index.d.ts +1 -1
- package/dist/machines/file-upload/index.d.cts +1 -1
- package/dist/machines/file-upload/index.d.ts +1 -1
- package/dist/machines/floating-panel/index.d.cts +1 -1
- package/dist/machines/floating-panel/index.d.ts +1 -1
- package/dist/machines/hover-card/index.d.cts +2 -2
- package/dist/machines/hover-card/index.d.ts +2 -2
- package/dist/machines/image-cropper/index.d.cts +1 -1
- package/dist/machines/image-cropper/index.d.ts +1 -1
- package/dist/machines/listbox/index.d.cts +1 -1
- package/dist/machines/listbox/index.d.ts +1 -1
- package/dist/machines/marquee/index.d.cts +3 -3
- package/dist/machines/marquee/index.d.ts +3 -3
- package/dist/machines/menu/index.d.cts +2 -2
- package/dist/machines/menu/index.d.ts +2 -2
- package/dist/machines/navigation-menu/index.d.cts +1 -1
- package/dist/machines/navigation-menu/index.d.ts +1 -1
- package/dist/machines/number-input/index.d.cts +1 -1
- package/dist/machines/number-input/index.d.ts +1 -1
- package/dist/machines/pagination/index.d.cts +1 -1
- package/dist/machines/pagination/index.d.ts +1 -1
- package/dist/machines/password-input/index.d.cts +1 -1
- package/dist/machines/password-input/index.d.ts +1 -1
- package/dist/machines/pin-input/index.d.cts +1 -1
- package/dist/machines/pin-input/index.d.ts +1 -1
- package/dist/machines/popover/index.d.cts +2 -2
- package/dist/machines/popover/index.d.ts +2 -2
- package/dist/machines/progress/index.d.cts +1 -1
- package/dist/machines/progress/index.d.ts +1 -1
- package/dist/machines/qr-code/index.d.cts +1 -1
- package/dist/machines/qr-code/index.d.ts +1 -1
- package/dist/machines/radio-group/index.d.cts +1 -111
- package/dist/machines/radio-group/index.d.ts +1 -111
- package/dist/machines/scroll-area/index.d.cts +1 -1
- package/dist/machines/scroll-area/index.d.ts +1 -1
- package/dist/machines/select/index.d.cts +2 -2
- package/dist/machines/select/index.d.ts +2 -2
- package/dist/machines/signature-pad/index.d.cts +1 -1
- package/dist/machines/signature-pad/index.d.ts +1 -1
- package/dist/machines/slider/index.d.cts +1 -1
- package/dist/machines/slider/index.d.ts +1 -1
- package/dist/machines/splitter/index.d.cts +0 -3
- package/dist/machines/splitter/index.d.ts +0 -3
- package/dist/machines/steps/index.d.cts +1 -1
- package/dist/machines/steps/index.d.ts +1 -1
- package/dist/machines/tabs/index.d.cts +1 -1
- package/dist/machines/tabs/index.d.ts +1 -1
- package/dist/machines/tags-input/index.d.cts +1 -1
- package/dist/machines/tags-input/index.d.ts +1 -1
- package/dist/machines/timer/index.d.cts +1 -1
- package/dist/machines/timer/index.d.ts +1 -1
- package/dist/machines/toast/index.d.cts +1 -1
- package/dist/machines/toast/index.d.ts +1 -1
- package/dist/machines/toc/index.cjs +0 -4
- package/dist/machines/toc/index.d.cts +1 -1
- package/dist/machines/toc/index.d.ts +1 -1
- package/dist/machines/toc/index.js +0 -4
- package/dist/machines/tooltip/index.d.cts +2 -2
- package/dist/machines/tooltip/index.d.ts +2 -2
- package/dist/machines/tour/index.d.cts +2 -2
- package/dist/machines/tour/index.d.ts +2 -2
- package/dist/machines/tree-view/index.d.cts +1 -1
- package/dist/machines/tree-view/index.d.ts +1 -1
- package/dist/popper.d.cts +1 -1
- package/dist/popper.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { b as PropTypes, g as RequiredBy, o as LocaleProperties, t as CommonProp
|
|
|
4
4
|
import "../../index-DNDQD0mg.js";
|
|
5
5
|
import { NumberParser } from "@internationalized/number";
|
|
6
6
|
//#region src/machines/number-input/anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"
|
|
7
|
+
declare const anatomy: AnatomyInstance<"input" | "root" | "label" | "control" | "valueText" | "incrementTrigger" | "decrementTrigger" | "scrubber">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/number-input/types.d.ts
|
|
10
10
|
interface ValueChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-pUYD4e
|
|
|
3
3
|
import { b as PropTypes, g as RequiredBy, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.cjs";
|
|
4
4
|
import "../../index-DlAisY_i.cjs";
|
|
5
5
|
//#region src/machines/pagination/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "item" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "item" | "nextTrigger" | "prevTrigger" | "ellipsis" | "firstTrigger" | "lastTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/pagination/types.d.ts
|
|
9
9
|
interface PageChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-CF2VuD
|
|
|
3
3
|
import { b as PropTypes, g as RequiredBy, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.js";
|
|
4
4
|
import "../../index-DNDQD0mg.js";
|
|
5
5
|
//#region src/machines/pagination/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "item" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "item" | "nextTrigger" | "prevTrigger" | "ellipsis" | "firstTrigger" | "lastTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/pagination/types.d.ts
|
|
9
9
|
interface PageChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-pUYD4e
|
|
|
3
3
|
import { b as PropTypes, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.cjs";
|
|
4
4
|
import "../../index-DlAisY_i.cjs";
|
|
5
5
|
//#region src/machines/password-input/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"
|
|
6
|
+
declare const anatomy: AnatomyInstance<"input" | "visibilityTrigger" | "root" | "label" | "control" | "indicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/password-input/types.d.ts
|
|
9
9
|
interface VisibilityChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-CF2VuD
|
|
|
3
3
|
import { b as PropTypes, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.js";
|
|
4
4
|
import "../../index-DNDQD0mg.js";
|
|
5
5
|
//#region src/machines/password-input/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"
|
|
6
|
+
declare const anatomy: AnatomyInstance<"input" | "visibilityTrigger" | "root" | "label" | "control" | "indicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/password-input/types.d.ts
|
|
9
9
|
interface VisibilityChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-pUYD4e
|
|
|
3
3
|
import { b as PropTypes, g as RequiredBy, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.cjs";
|
|
4
4
|
import "../../index-DlAisY_i.cjs";
|
|
5
5
|
//#region src/machines/pin-input/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"
|
|
6
|
+
declare const anatomy: AnatomyInstance<"input" | "root" | "label" | "control">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/pin-input/types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-CF2VuD
|
|
|
3
3
|
import { b as PropTypes, g as RequiredBy, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.js";
|
|
4
4
|
import "../../index-DNDQD0mg.js";
|
|
5
5
|
//#region src/machines/pin-input/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"
|
|
6
|
+
declare const anatomy: AnatomyInstance<"input" | "root" | "label" | "control">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/pin-input/types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -4,9 +4,9 @@ import { b as PropTypes, g as RequiredBy, r as DirectionProperty, s as MaybeElem
|
|
|
4
4
|
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-C2865AJq.cjs";
|
|
5
5
|
import { r as PersistentElementOptions, t as DismissableElementHandlers } from "../../dismissable-layer-Ch5niVaq.cjs";
|
|
6
6
|
import "../../index-DlAisY_i.cjs";
|
|
7
|
-
import { p as PositioningOptions, u as Placement } from "../../index-
|
|
7
|
+
import { p as PositioningOptions, u as Placement } from "../../index-3tNJficI.cjs";
|
|
8
8
|
//#region src/machines/popover/anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"
|
|
9
|
+
declare const anatomy: AnatomyInstance<"indicator" | "trigger" | "content" | "arrow" | "title" | "positioner" | "arrowTip" | "closeTrigger" | "anchor" | "description">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/popover/types.d.ts
|
|
12
12
|
interface OpenChangeDetails {
|
|
@@ -4,9 +4,9 @@ import { b as PropTypes, g as RequiredBy, r as DirectionProperty, s as MaybeElem
|
|
|
4
4
|
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-C2865AJq.js";
|
|
5
5
|
import { r as PersistentElementOptions, t as DismissableElementHandlers } from "../../dismissable-layer-BTX5EvXw.js";
|
|
6
6
|
import "../../index-DNDQD0mg.js";
|
|
7
|
-
import { p as PositioningOptions, u as Placement } from "../../index-
|
|
7
|
+
import { p as PositioningOptions, u as Placement } from "../../index-3tNJficI.js";
|
|
8
8
|
//#region src/machines/popover/anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"
|
|
9
|
+
declare const anatomy: AnatomyInstance<"indicator" | "trigger" | "content" | "arrow" | "title" | "positioner" | "arrowTip" | "closeTrigger" | "anchor" | "description">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/popover/types.d.ts
|
|
12
12
|
interface OpenChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-pUYD4e
|
|
|
3
3
|
import { b as PropTypes, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.cjs";
|
|
4
4
|
import "../../index-DlAisY_i.cjs";
|
|
5
5
|
//#region src/machines/progress/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"track" | "root" | "label" | "circle" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"track" | "root" | "label" | "circle" | "range" | "valueText" | "view" | "circleTrack" | "circleRange">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/progress/types.d.ts
|
|
9
9
|
type ProgressState = "indeterminate" | "loading" | "complete";
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-CF2VuD
|
|
|
3
3
|
import { b as PropTypes, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.js";
|
|
4
4
|
import "../../index-DNDQD0mg.js";
|
|
5
5
|
//#region src/machines/progress/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"track" | "root" | "label" | "circle" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"track" | "root" | "label" | "circle" | "range" | "valueText" | "view" | "circleTrack" | "circleRange">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/progress/types.d.ts
|
|
9
9
|
type ProgressState = "indeterminate" | "loading" | "complete";
|
|
@@ -6,7 +6,7 @@ import "../../index-BWiYePx8.cjs";
|
|
|
6
6
|
import "../../index-DlAisY_i.cjs";
|
|
7
7
|
import { QrCodeGenerateOptions, QrCodeGenerateOptions as QrCodeGenerateOptions$1, QrCodeGenerateResult, QrCodeGenerateResult as QrCodeGenerateResult$1 } from "uqr";
|
|
8
8
|
//#region src/machines/qr-code/anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
9
|
+
declare const anatomy: AnatomyInstance<"root" | "frame" | "pattern" | "overlay" | "downloadTrigger">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/qr-code/types.d.ts
|
|
12
12
|
interface ValueChangeDetails {
|
|
@@ -6,7 +6,7 @@ import "../../index-vPrqYDHu.js";
|
|
|
6
6
|
import "../../index-DNDQD0mg.js";
|
|
7
7
|
import { QrCodeGenerateOptions, QrCodeGenerateOptions as QrCodeGenerateOptions$1, QrCodeGenerateResult, QrCodeGenerateResult as QrCodeGenerateResult$1 } from "uqr";
|
|
8
8
|
//#region src/machines/qr-code/anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
9
|
+
declare const anatomy: AnatomyInstance<"root" | "frame" | "pattern" | "overlay" | "downloadTrigger">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/qr-code/types.d.ts
|
|
12
12
|
interface ValueChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-pUYD4e
|
|
|
3
3
|
import { b as PropTypes, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.cjs";
|
|
4
4
|
import "../../index-DlAisY_i.cjs";
|
|
5
5
|
//#region src/machines/radio-group/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "indicator" | "item" | "itemText" | "itemControl">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/radio-group/types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -19,106 +19,35 @@ type ElementIds = Partial<{
|
|
|
19
19
|
itemHiddenInput: (value: string) => string;
|
|
20
20
|
}>;
|
|
21
21
|
interface RadioGroupProps extends DirectionProperty, CommonProperties {
|
|
22
|
-
/**
|
|
23
|
-
* The ids of the elements in the radio. Useful for composition.
|
|
24
|
-
*/
|
|
25
22
|
ids?: ElementIds | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* The controlled value of the radio group
|
|
28
|
-
*/
|
|
29
23
|
value?: string | null | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* The initial value of the checked radio when rendered.
|
|
32
|
-
* Use when you don't need to control the value of the radio group.
|
|
33
|
-
*/
|
|
34
24
|
defaultValue?: string | null | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* The name of the input fields in the radio
|
|
37
|
-
* (Useful for form submission).
|
|
38
|
-
*/
|
|
39
25
|
name?: string | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* The associate form of the underlying input.
|
|
42
|
-
*/
|
|
43
26
|
form?: string | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* If `true`, the radio group will be disabled
|
|
46
|
-
*/
|
|
47
27
|
disabled?: boolean | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* If `true`, the radio group is marked as invalid.
|
|
50
|
-
*/
|
|
51
28
|
invalid?: boolean | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* If `true`, the radio group is marked as required.
|
|
54
|
-
*/
|
|
55
29
|
required?: boolean | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Whether the radio group is read-only
|
|
58
|
-
*/
|
|
59
30
|
readOnly?: boolean | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* Function called once a radio is checked
|
|
62
|
-
*/
|
|
63
31
|
onValueChange?: ((details: ValueChangeDetails) => void) | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Orientation of the radio group
|
|
66
|
-
*/
|
|
67
32
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
68
33
|
}
|
|
69
34
|
interface PrivateContext {
|
|
70
|
-
/**
|
|
71
|
-
* The value of the checked radio
|
|
72
|
-
*/
|
|
73
35
|
value: string | null;
|
|
74
|
-
/**
|
|
75
|
-
* The id of the active radio
|
|
76
|
-
*/
|
|
77
36
|
activeValue: string | null;
|
|
78
|
-
/**
|
|
79
|
-
* The id of the focused radio
|
|
80
|
-
*/
|
|
81
37
|
focusedValue: string | null;
|
|
82
|
-
/**
|
|
83
|
-
* The id of the radio that has focus-visible
|
|
84
|
-
*/
|
|
85
38
|
focusVisibleValue: string | null;
|
|
86
|
-
/**
|
|
87
|
-
* The id of the hovered radio
|
|
88
|
-
*/
|
|
89
39
|
hoveredValue: string | null;
|
|
90
|
-
/**
|
|
91
|
-
* The active tab indicator's dom rect
|
|
92
|
-
*/
|
|
93
40
|
indicatorRect: Rect | null;
|
|
94
|
-
/**
|
|
95
|
-
* Whether indicator transitions should be animated
|
|
96
|
-
*/
|
|
97
41
|
animateIndicator: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Whether the radio group's fieldset is disabled
|
|
100
|
-
*/
|
|
101
42
|
fieldsetDisabled: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Whether the radio group is in server-side rendering
|
|
104
|
-
*/
|
|
105
43
|
ssr: boolean;
|
|
106
44
|
}
|
|
107
45
|
type PropsWithDefault = "orientation";
|
|
108
46
|
type ComputedContext = Readonly<{
|
|
109
|
-
/**
|
|
110
|
-
* Whether the radio group is disabled
|
|
111
|
-
*/
|
|
112
47
|
isDisabled: boolean;
|
|
113
48
|
}>;
|
|
114
49
|
interface Refs {
|
|
115
|
-
/**
|
|
116
|
-
* Function to clean up the observer for the active tab's rect
|
|
117
|
-
*/
|
|
118
50
|
indicatorCleanup: VoidFunction | null;
|
|
119
|
-
/**
|
|
120
|
-
* Previous selected value, used to detect real value transitions
|
|
121
|
-
*/
|
|
122
51
|
prevValue: string | null;
|
|
123
52
|
}
|
|
124
53
|
interface RadioGroupSchema {
|
|
@@ -140,59 +69,20 @@ interface ItemProps {
|
|
|
140
69
|
invalid?: boolean | undefined;
|
|
141
70
|
}
|
|
142
71
|
interface ItemState {
|
|
143
|
-
/**
|
|
144
|
-
* The value of the item
|
|
145
|
-
*/
|
|
146
72
|
value: string;
|
|
147
|
-
/**
|
|
148
|
-
* Whether the item is invalid
|
|
149
|
-
*/
|
|
150
73
|
invalid: boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Whether the item is disabled
|
|
153
|
-
*/
|
|
154
74
|
disabled: boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Whether the item is checked
|
|
157
|
-
*/
|
|
158
75
|
checked: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Whether the item is focused
|
|
161
|
-
*/
|
|
162
76
|
focused: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* Whether the item is focused and the focus is visible
|
|
165
|
-
*/
|
|
166
77
|
focusVisible: boolean;
|
|
167
|
-
/**
|
|
168
|
-
* Whether the item is hovered
|
|
169
|
-
*/
|
|
170
78
|
hovered: boolean;
|
|
171
|
-
/**
|
|
172
|
-
* Whether the item is active or pressed
|
|
173
|
-
*/
|
|
174
79
|
active: boolean;
|
|
175
80
|
}
|
|
176
81
|
interface RadioGroupApi<T extends PropTypes = PropTypes> {
|
|
177
|
-
/**
|
|
178
|
-
* The current value of the radio group
|
|
179
|
-
*/
|
|
180
82
|
value: string | null;
|
|
181
|
-
/**
|
|
182
|
-
* Function to set the value of the radio group
|
|
183
|
-
*/
|
|
184
83
|
setValue: (value: string) => void;
|
|
185
|
-
/**
|
|
186
|
-
* Function to clear the value of the radio group
|
|
187
|
-
*/
|
|
188
84
|
clearValue: VoidFunction;
|
|
189
|
-
/**
|
|
190
|
-
* Function to focus the radio group
|
|
191
|
-
*/
|
|
192
85
|
focus: VoidFunction;
|
|
193
|
-
/**
|
|
194
|
-
* Returns the state details of a radio input
|
|
195
|
-
*/
|
|
196
86
|
getItemState: (props: ItemProps) => ItemState;
|
|
197
87
|
getRootProps: () => T["element"];
|
|
198
88
|
getLabelProps: () => T["element"];
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-CF2VuD
|
|
|
3
3
|
import { b as PropTypes, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.js";
|
|
4
4
|
import "../../index-DNDQD0mg.js";
|
|
5
5
|
//#region src/machines/radio-group/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "indicator" | "item" | "itemText" | "itemControl">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/radio-group/types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -19,106 +19,35 @@ type ElementIds = Partial<{
|
|
|
19
19
|
itemHiddenInput: (value: string) => string;
|
|
20
20
|
}>;
|
|
21
21
|
interface RadioGroupProps extends DirectionProperty, CommonProperties {
|
|
22
|
-
/**
|
|
23
|
-
* The ids of the elements in the radio. Useful for composition.
|
|
24
|
-
*/
|
|
25
22
|
ids?: ElementIds | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* The controlled value of the radio group
|
|
28
|
-
*/
|
|
29
23
|
value?: string | null | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* The initial value of the checked radio when rendered.
|
|
32
|
-
* Use when you don't need to control the value of the radio group.
|
|
33
|
-
*/
|
|
34
24
|
defaultValue?: string | null | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* The name of the input fields in the radio
|
|
37
|
-
* (Useful for form submission).
|
|
38
|
-
*/
|
|
39
25
|
name?: string | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* The associate form of the underlying input.
|
|
42
|
-
*/
|
|
43
26
|
form?: string | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* If `true`, the radio group will be disabled
|
|
46
|
-
*/
|
|
47
27
|
disabled?: boolean | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* If `true`, the radio group is marked as invalid.
|
|
50
|
-
*/
|
|
51
28
|
invalid?: boolean | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* If `true`, the radio group is marked as required.
|
|
54
|
-
*/
|
|
55
29
|
required?: boolean | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Whether the radio group is read-only
|
|
58
|
-
*/
|
|
59
30
|
readOnly?: boolean | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* Function called once a radio is checked
|
|
62
|
-
*/
|
|
63
31
|
onValueChange?: ((details: ValueChangeDetails) => void) | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Orientation of the radio group
|
|
66
|
-
*/
|
|
67
32
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
68
33
|
}
|
|
69
34
|
interface PrivateContext {
|
|
70
|
-
/**
|
|
71
|
-
* The value of the checked radio
|
|
72
|
-
*/
|
|
73
35
|
value: string | null;
|
|
74
|
-
/**
|
|
75
|
-
* The id of the active radio
|
|
76
|
-
*/
|
|
77
36
|
activeValue: string | null;
|
|
78
|
-
/**
|
|
79
|
-
* The id of the focused radio
|
|
80
|
-
*/
|
|
81
37
|
focusedValue: string | null;
|
|
82
|
-
/**
|
|
83
|
-
* The id of the radio that has focus-visible
|
|
84
|
-
*/
|
|
85
38
|
focusVisibleValue: string | null;
|
|
86
|
-
/**
|
|
87
|
-
* The id of the hovered radio
|
|
88
|
-
*/
|
|
89
39
|
hoveredValue: string | null;
|
|
90
|
-
/**
|
|
91
|
-
* The active tab indicator's dom rect
|
|
92
|
-
*/
|
|
93
40
|
indicatorRect: Rect | null;
|
|
94
|
-
/**
|
|
95
|
-
* Whether indicator transitions should be animated
|
|
96
|
-
*/
|
|
97
41
|
animateIndicator: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Whether the radio group's fieldset is disabled
|
|
100
|
-
*/
|
|
101
42
|
fieldsetDisabled: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Whether the radio group is in server-side rendering
|
|
104
|
-
*/
|
|
105
43
|
ssr: boolean;
|
|
106
44
|
}
|
|
107
45
|
type PropsWithDefault = "orientation";
|
|
108
46
|
type ComputedContext = Readonly<{
|
|
109
|
-
/**
|
|
110
|
-
* Whether the radio group is disabled
|
|
111
|
-
*/
|
|
112
47
|
isDisabled: boolean;
|
|
113
48
|
}>;
|
|
114
49
|
interface Refs {
|
|
115
|
-
/**
|
|
116
|
-
* Function to clean up the observer for the active tab's rect
|
|
117
|
-
*/
|
|
118
50
|
indicatorCleanup: VoidFunction | null;
|
|
119
|
-
/**
|
|
120
|
-
* Previous selected value, used to detect real value transitions
|
|
121
|
-
*/
|
|
122
51
|
prevValue: string | null;
|
|
123
52
|
}
|
|
124
53
|
interface RadioGroupSchema {
|
|
@@ -140,59 +69,20 @@ interface ItemProps {
|
|
|
140
69
|
invalid?: boolean | undefined;
|
|
141
70
|
}
|
|
142
71
|
interface ItemState {
|
|
143
|
-
/**
|
|
144
|
-
* The value of the item
|
|
145
|
-
*/
|
|
146
72
|
value: string;
|
|
147
|
-
/**
|
|
148
|
-
* Whether the item is invalid
|
|
149
|
-
*/
|
|
150
73
|
invalid: boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Whether the item is disabled
|
|
153
|
-
*/
|
|
154
74
|
disabled: boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Whether the item is checked
|
|
157
|
-
*/
|
|
158
75
|
checked: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Whether the item is focused
|
|
161
|
-
*/
|
|
162
76
|
focused: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* Whether the item is focused and the focus is visible
|
|
165
|
-
*/
|
|
166
77
|
focusVisible: boolean;
|
|
167
|
-
/**
|
|
168
|
-
* Whether the item is hovered
|
|
169
|
-
*/
|
|
170
78
|
hovered: boolean;
|
|
171
|
-
/**
|
|
172
|
-
* Whether the item is active or pressed
|
|
173
|
-
*/
|
|
174
79
|
active: boolean;
|
|
175
80
|
}
|
|
176
81
|
interface RadioGroupApi<T extends PropTypes = PropTypes> {
|
|
177
|
-
/**
|
|
178
|
-
* The current value of the radio group
|
|
179
|
-
*/
|
|
180
82
|
value: string | null;
|
|
181
|
-
/**
|
|
182
|
-
* Function to set the value of the radio group
|
|
183
|
-
*/
|
|
184
83
|
setValue: (value: string) => void;
|
|
185
|
-
/**
|
|
186
|
-
* Function to clear the value of the radio group
|
|
187
|
-
*/
|
|
188
84
|
clearValue: VoidFunction;
|
|
189
|
-
/**
|
|
190
|
-
* Function to focus the radio group
|
|
191
|
-
*/
|
|
192
85
|
focus: VoidFunction;
|
|
193
|
-
/**
|
|
194
|
-
* Returns the state details of a radio input
|
|
195
|
-
*/
|
|
196
86
|
getItemState: (props: ItemProps) => ItemState;
|
|
197
87
|
getRootProps: () => T["element"];
|
|
198
88
|
getLabelProps: () => T["element"];
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-pUYD4e
|
|
|
3
3
|
import { _ as Size, b as PropTypes, d as Orientation, p as Point, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.cjs";
|
|
4
4
|
import "../../index-DlAisY_i.cjs";
|
|
5
5
|
//#region src/machines/scroll-area/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "viewport" | "content" | "thumb" | "scrollbar" | "corner">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/scroll-area/utils/timeout.d.ts
|
|
9
9
|
declare class Timeout {
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-CF2VuD
|
|
|
3
3
|
import { _ as Size, b as PropTypes, d as Orientation, p as Point, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.js";
|
|
4
4
|
import "../../index-DNDQD0mg.js";
|
|
5
5
|
//#region src/machines/scroll-area/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "viewport" | "content" | "thumb" | "scrollbar" | "corner">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/scroll-area/utils/timeout.d.ts
|
|
9
9
|
declare class Timeout {
|
|
@@ -7,9 +7,9 @@ import "../../index-BWiYePx8.cjs";
|
|
|
7
7
|
import { n as TypeaheadState } from "../../typeahead-DremEgML.cjs";
|
|
8
8
|
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-C2865AJq.cjs";
|
|
9
9
|
import "../../index-DlAisY_i.cjs";
|
|
10
|
-
import { p as PositioningOptions, u as Placement } from "../../index-
|
|
10
|
+
import { p as PositioningOptions, u as Placement } from "../../index-3tNJficI.cjs";
|
|
11
11
|
//#region src/machines/select/anatomy.d.ts
|
|
12
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
12
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "indicator" | "item" | "trigger" | "content" | "list" | "itemIndicator" | "valueText" | "itemText" | "clearTrigger" | "positioner" | "itemGroup" | "itemGroupLabel">;
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/machines/select/collection.d.ts
|
|
15
15
|
declare const collection: {
|
|
@@ -7,9 +7,9 @@ import "../../index-vPrqYDHu.js";
|
|
|
7
7
|
import { n as TypeaheadState } from "../../typeahead-DremEgML.js";
|
|
8
8
|
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-C2865AJq.js";
|
|
9
9
|
import "../../index-DNDQD0mg.js";
|
|
10
|
-
import { p as PositioningOptions, u as Placement } from "../../index-
|
|
10
|
+
import { p as PositioningOptions, u as Placement } from "../../index-3tNJficI.js";
|
|
11
11
|
//#region src/machines/select/anatomy.d.ts
|
|
12
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
12
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "indicator" | "item" | "trigger" | "content" | "list" | "itemIndicator" | "valueText" | "itemText" | "clearTrigger" | "positioner" | "itemGroup" | "itemGroupLabel">;
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/machines/select/collection.d.ts
|
|
15
15
|
declare const collection: {
|
|
@@ -4,7 +4,7 @@ import { b as PropTypes, g as RequiredBy, r as DirectionProperty, t as CommonPro
|
|
|
4
4
|
import "../../index-DlAisY_i.cjs";
|
|
5
5
|
import { StrokeOptions } from "perfect-freehand";
|
|
6
6
|
//#region src/machines/signature-pad/anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "segment" | "segmentPath" | "guide" | "clearTrigger">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/signature-pad/types.d.ts
|
|
10
10
|
interface Point {
|
|
@@ -4,7 +4,7 @@ import { b as PropTypes, g as RequiredBy, r as DirectionProperty, t as CommonPro
|
|
|
4
4
|
import "../../index-DNDQD0mg.js";
|
|
5
5
|
import { StrokeOptions } from "perfect-freehand";
|
|
6
6
|
//#region src/machines/signature-pad/anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "segment" | "segmentPath" | "guide" | "clearTrigger">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/signature-pad/types.d.ts
|
|
10
10
|
interface Point {
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-pUYD4e
|
|
|
3
3
|
import { b as PropTypes, g as RequiredBy, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.cjs";
|
|
4
4
|
import "../../index-DlAisY_i.cjs";
|
|
5
5
|
//#region src/machines/slider/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"track" | "root" | "label" | "control" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"track" | "root" | "label" | "control" | "range" | "valueText" | "thumb" | "marker" | "markerGroup" | "draggingIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/slider/types.d.ts
|
|
9
9
|
type ThumbCollisionBehavior = "none" | "push" | "swap";
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-CF2VuD
|
|
|
3
3
|
import { b as PropTypes, g as RequiredBy, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.js";
|
|
4
4
|
import "../../index-DNDQD0mg.js";
|
|
5
5
|
//#region src/machines/slider/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"track" | "root" | "label" | "control" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"track" | "root" | "label" | "control" | "range" | "valueText" | "thumb" | "marker" | "markerGroup" | "draggingIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/slider/types.d.ts
|
|
9
9
|
type ThumbCollisionBehavior = "none" | "push" | "swap";
|
|
@@ -229,9 +229,6 @@ interface SplitterApi<T extends PropTypes = PropTypes> {
|
|
|
229
229
|
* Resets the splitter to its initial state.
|
|
230
230
|
*/
|
|
231
231
|
resetSizes: VoidFunction;
|
|
232
|
-
/**
|
|
233
|
-
* Returns the state of the resize trigger.
|
|
234
|
-
*/
|
|
235
232
|
getResizeTriggerState: (props: ResizeTriggerProps) => ResizeTriggerState;
|
|
236
233
|
getRootProps: () => T["element"];
|
|
237
234
|
getPanelProps: (props: PanelProps) => T["element"];
|
|
@@ -229,9 +229,6 @@ interface SplitterApi<T extends PropTypes = PropTypes> {
|
|
|
229
229
|
* Resets the splitter to its initial state.
|
|
230
230
|
*/
|
|
231
231
|
resetSizes: VoidFunction;
|
|
232
|
-
/**
|
|
233
|
-
* Returns the state of the resize trigger.
|
|
234
|
-
*/
|
|
235
232
|
getResizeTriggerState: (props: ResizeTriggerProps) => ResizeTriggerState;
|
|
236
233
|
getRootProps: () => T["element"];
|
|
237
234
|
getPanelProps: (props: PanelProps) => T["element"];
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-pUYD4e
|
|
|
3
3
|
import { b as PropTypes, g as RequiredBy, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.cjs";
|
|
4
4
|
import "../../index-DlAisY_i.cjs";
|
|
5
5
|
//#region src/machines/steps/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "item" | "trigger" | "content" | "list" | "progress" | "separator" | "nextTrigger" | "prevTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/steps/types.d.ts
|
|
9
9
|
interface StepChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-CF2VuD
|
|
|
3
3
|
import { b as PropTypes, g as RequiredBy, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.js";
|
|
4
4
|
import "../../index-DNDQD0mg.js";
|
|
5
5
|
//#region src/machines/steps/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "item" | "trigger" | "content" | "list" | "progress" | "separator" | "nextTrigger" | "prevTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/steps/types.d.ts
|
|
9
9
|
interface StepChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { M as Service, S as EventObject, T as Machine } from "../../index-pUYD4e
|
|
|
3
3
|
import { b as PropTypes, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, y as NormalizeProps } from "../../index-BXfunVyD.cjs";
|
|
4
4
|
import "../../index-DlAisY_i.cjs";
|
|
5
5
|
//#region src/machines/tabs/anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "trigger" | "content" | "list">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/tabs/types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|