@sentry/scraps 0.1.0 → 0.3.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/README.md +13 -21
- package/dist/alert/alert.d.ts +25 -0
- package/dist/alert/alert.js +262 -0
- package/dist/alert/alertLink.d.ts +32 -0
- package/dist/alert/alertLink.js +94 -0
- package/dist/alert/index.d.ts +2 -0
- package/dist/alert/index.js +2 -0
- package/dist/backdrop/backdrop.d.ts +9 -0
- package/dist/backdrop/backdrop.js +28 -0
- package/dist/backdrop/index.d.ts +1 -0
- package/dist/backdrop/index.js +1 -0
- package/dist/badge/badge.d.ts +12 -0
- package/dist/badge/badge.js +80 -0
- package/dist/badge/featureBadge.d.ts +6 -0
- package/dist/badge/featureBadge.js +86 -0
- package/dist/badge/index.d.ts +3 -0
- package/dist/badge/index.js +3 -0
- package/dist/badge/tag.d.ts +15 -0
- package/dist/badge/tag.js +119 -0
- package/dist/boundaryContext.d.ts +2 -0
- package/dist/boundaryContext.js +5 -0
- package/dist/button/button.d.ts +3 -0
- package/dist/button/button.js +83 -0
- package/dist/button/buttonBar.d.ts +10 -0
- package/dist/button/buttonBar.js +141 -0
- package/dist/button/index.d.ts +5 -0
- package/dist/button/index.js +4 -0
- package/dist/button/linkButton.d.ts +3 -0
- package/dist/button/linkButton.js +110 -0
- package/dist/button/styles.d.ts +10 -0
- package/dist/button/styles.js +247 -0
- package/dist/button/types.d.ts +77 -0
- package/dist/button/types.js +0 -0
- package/dist/button/useButtonFunctionality.d.ts +5 -0
- package/dist/button/useButtonFunctionality.js +9 -0
- package/dist/checkbox/checkbox.d.ts +20 -0
- package/dist/checkbox/checkbox.js +193 -0
- package/dist/checkbox/index.d.ts +1 -0
- package/dist/checkbox/index.js +1 -0
- package/dist/chip/chip.d.ts +128 -0
- package/dist/chip/chip.js +364 -0
- package/dist/chip/index.d.ts +1 -0
- package/dist/chip/index.js +1 -0
- package/dist/code/inlineCode.d.ts +1 -0
- package/dist/datetime.d.ts +39 -0
- package/dist/datetime.js +20 -0
- package/dist/descriptionList/descriptionList.d.ts +69 -0
- package/dist/descriptionList/descriptionList.js +76 -0
- package/dist/descriptionList/index.d.ts +1 -0
- package/dist/descriptionList/index.js +1 -0
- package/dist/disclosure/disclosure.d.ts +37 -0
- package/dist/disclosure/disclosure.js +155 -0
- package/dist/disclosure/index.d.ts +1 -0
- package/dist/disclosure/index.js +1 -0
- package/dist/dragHandle/dragHandle.d.ts +34 -0
- package/dist/dragHandle/dragHandle.js +115 -0
- package/dist/dragHandle/index.d.ts +4 -0
- package/dist/dragHandle/index.js +4 -0
- package/dist/dragHandle/setDocumentDragging.d.ts +9 -0
- package/dist/dragHandle/setDocumentDragging.js +6 -0
- package/dist/dragHandle/useDragMove.d.ts +244 -0
- package/dist/dragHandle/useDragMove.js +66 -0
- package/dist/dragHandle/useDragSeparator.d.ts +256 -0
- package/dist/dragHandle/useDragSeparator.js +36 -0
- package/dist/emptyState/emptyState.d.ts +10 -0
- package/dist/emptyState/emptyState.js +81 -0
- package/dist/emptyState/index.d.ts +1 -0
- package/dist/emptyState/index.js +1 -0
- package/dist/formPresentation/autoSaveContext.d.ts +23 -0
- package/dist/formPresentation/autoSaveContext.js +13 -0
- package/dist/formPresentation/base.d.ts +11 -0
- package/dist/formPresentation/base.js +37 -0
- package/dist/formPresentation/displayField.d.ts +17 -0
- package/dist/formPresentation/displayField.js +69 -0
- package/dist/formPresentation/fieldIds.d.ts +3 -0
- package/dist/formPresentation/fieldIds.js +14 -0
- package/dist/formPresentation/fieldLayout.d.ts +23 -0
- package/dist/formPresentation/fieldLayout.js +76 -0
- package/dist/formPresentation/formContext.d.ts +4 -0
- package/dist/formPresentation/formContext.js +6 -0
- package/dist/formPresentation/groupContext.d.ts +24 -0
- package/dist/formPresentation/groupContext.js +22 -0
- package/dist/formPresentation/icons.d.ts +11 -0
- package/dist/formPresentation/icons.js +61 -0
- package/dist/formPresentation/index.d.ts +8 -0
- package/dist/formPresentation/index.js +8 -0
- package/dist/formPresentation/meta.d.ts +18 -0
- package/dist/formPresentation/meta.js +88 -0
- package/dist/formPresentation/useStackedLayout.d.ts +1 -0
- package/dist/formPresentation/useStackedLayout.js +9 -0
- package/dist/hotkey/hotkey.d.ts +22 -0
- package/dist/hotkey/hotkey.js +41 -0
- package/dist/hotkey/index.d.ts +4 -0
- package/dist/hotkey/index.js +3 -0
- package/dist/hotkey/kbd.d.ts +1 -0
- package/dist/hotkey/keyMappings.d.ts +23 -0
- package/dist/hotkey/keyMappings.js +223 -0
- package/dist/hotkey/useHotkeys.d.ts +47 -0
- package/dist/hotkey/useHotkeys.js +44 -0
- package/dist/image/image.d.ts +21 -0
- package/dist/image/image.js +20 -0
- package/dist/image/index.d.ts +1 -0
- package/dist/image/index.js +1 -0
- package/dist/info/index.d.ts +2 -0
- package/dist/info/index.js +2 -0
- package/dist/info/infoText.d.ts +15 -0
- package/dist/info/infoText.js +43 -0
- package/dist/info/infoTip.d.ts +10 -0
- package/dist/info/infoTip.js +54 -0
- package/dist/input/index.d.ts +8 -0
- package/dist/input/index.js +6 -0
- package/dist/input/input.d.ts +19 -0
- package/dist/input/input.js +14 -0
- package/dist/input/inputGroup.d.ts +29 -0
- package/dist/input/inputGroup.js +167 -0
- package/dist/input/inputStyles.d.ts +13 -0
- package/dist/input/inputStyles.js +52 -0
- package/dist/input/numberDragInput.d.ts +20 -0
- package/dist/input/numberDragInput.js +97 -0
- package/dist/input/numberInput.d.ts +10 -0
- package/dist/input/numberInput.js +94 -0
- package/dist/input/otpInput.d.ts +28 -0
- package/dist/input/otpInput.js +81 -0
- package/dist/input/useAutosizeInput.d.ts +17 -0
- package/dist/input/useAutosizeInput.js +56 -0
- package/dist/interactionStateLayer/index.d.ts +1 -0
- package/dist/interactionStateLayer/index.js +1 -0
- package/dist/interactionStateLayer/interactionStateLayer.d.ts +23 -0
- package/dist/interactionStateLayer/interactionStateLayer.js +67 -0
- package/dist/layout/flex.d.ts +1 -0
- package/dist/layout/grid.d.ts +1 -0
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/layout/stack.d.ts +1 -0
- package/dist/layout/styles.d.ts +1 -1
- package/dist/layout/surface.d.ts +1 -0
- package/dist/link/index.d.ts +2 -0
- package/dist/link/index.js +2 -0
- package/dist/link/link.d.ts +43 -0
- package/dist/link/link.js +71 -0
- package/dist/link/linkBehaviorContext.d.ts +14 -0
- package/dist/link/linkBehaviorContext.js +31 -0
- package/dist/loader/indeterminateLoader.d.ts +1 -0
- package/dist/overlay.d.ts +59 -0
- package/dist/overlay.js +113 -0
- package/dist/overlayArrow.d.ts +9 -0
- package/dist/overlayArrow.js +55 -0
- package/dist/overlayPositioning.d.ts +70 -0
- package/dist/overlayPositioning.js +139 -0
- package/dist/panelProvider.d.ts +8 -0
- package/dist/panelProvider.js +20 -0
- package/dist/quote/quote.js +1 -1
- package/dist/radio/index.d.ts +1 -0
- package/dist/radio/index.js +1 -0
- package/dist/radio/radio.d.ts +9 -0
- package/dist/radio/radio.js +77 -0
- package/dist/renderToString.d.ts +2 -0
- package/dist/renderToString.js +25 -0
- package/dist/revealOnHover/index.d.ts +1 -0
- package/dist/revealOnHover/index.js +1 -0
- package/dist/revealOnHover/revealOnHover.d.ts +20 -0
- package/dist/revealOnHover/revealOnHover.js +62 -0
- package/dist/segmentedControl/index.d.ts +1 -0
- package/dist/segmentedControl/index.js +1 -0
- package/dist/segmentedControl/segmentedControl.d.ts +41 -0
- package/dist/segmentedControl/segmentedControl.js +217 -0
- package/dist/separator/separator.d.ts +4 -3
- package/dist/separator/separator.js +1 -1
- package/dist/sizeContext.d.ts +9 -0
- package/dist/sizeContext.js +13 -0
- package/dist/slider/index.d.ts +1 -0
- package/dist/slider/index.js +1 -0
- package/dist/slider/slider.d.ts +41 -0
- package/dist/slider/slider.js +386 -0
- package/dist/slot/index.d.ts +1 -0
- package/dist/slot/index.js +1 -0
- package/dist/slot/knownContexts.d.ts +1 -0
- package/dist/slot/knownContexts.js +7 -0
- package/dist/slot/slot.d.ts +26 -0
- package/dist/slot/slot.js +274 -0
- package/dist/statusIndicator/index.d.ts +1 -0
- package/dist/statusIndicator/index.js +1 -0
- package/dist/statusIndicator/statusIndicator.d.ts +24 -0
- package/dist/statusIndicator/statusIndicator.js +130 -0
- package/dist/switch/index.d.ts +1 -0
- package/dist/switch/index.js +1 -0
- package/dist/switch/switch.d.ts +6 -0
- package/dist/switch/switch.js +172 -0
- package/dist/table/index.d.ts +3 -0
- package/dist/table/index.js +3 -0
- package/dist/table/sortableHeaderCell.d.ts +36 -0
- package/dist/table/sortableHeaderCell.js +99 -0
- package/dist/table/styles.d.ts +46 -0
- package/dist/table/styles.js +93 -0
- package/dist/table/table.d.ts +64 -0
- package/dist/table/table.js +228 -0
- package/dist/table/useColumnResize.d.ts +27 -0
- package/dist/table/useColumnResize.js +62 -0
- package/dist/table/useObservedColumnSize.d.ts +12 -0
- package/dist/table/useObservedColumnSize.js +74 -0
- package/dist/text/heading.d.ts +2 -1
- package/dist/text/index.d.ts +1 -0
- package/dist/text/index.js +1 -0
- package/dist/text/prose.d.ts +8 -0
- package/dist/text/prose.js +45 -0
- package/dist/text/text.d.ts +8 -0
- package/dist/text/text.js +1 -1
- package/dist/textarea/index.d.ts +1 -0
- package/dist/textarea/index.js +1 -0
- package/dist/textarea/textarea.d.ts +22 -0
- package/dist/textarea/textarea.js +77 -0
- package/dist/theme/dark.d.ts +129 -10
- package/dist/theme/dark.js +41 -13
- package/dist/theme/index.d.ts +3 -12
- package/dist/theme/index.js +2 -2
- package/dist/theme/light.d.ts +129 -10
- package/dist/theme/light.js +42 -14
- package/dist/theme/swatch.d.ts +27 -0
- package/dist/theme/swatch.js +37 -0
- package/dist/theme/theme.d.ts +648 -0
- package/dist/theme/theme.js +780 -0
- package/dist/theme/types.d.ts +1 -0
- package/dist/theme/useInvertedTheme.d.ts +1 -0
- package/dist/theme/useInvertedTheme.js +7 -0
- package/dist/tooltip/index.d.ts +2 -0
- package/dist/tooltip/index.js +2 -0
- package/dist/tooltip/tooltip.d.ts +166 -0
- package/dist/tooltip/tooltip.js +181 -0
- package/dist/tooltip/useDisabledTooltip.d.ts +22 -0
- package/dist/tooltip/useDisabledTooltip.js +24 -0
- package/dist/trackingContext.d.ts +34 -0
- package/dist/trackingContext.js +29 -0
- package/dist/translation/index.d.ts +4 -0
- package/dist/translation/index.js +4 -0
- package/dist/translation/translationContext.d.ts +6 -0
- package/dist/translation/translationContext.js +6 -0
- package/dist/translation/useTranslation.d.ts +1 -0
- package/dist/translation/useTranslation.js +6 -0
- package/dist/unreachable.d.ts +1 -0
- package/dist/unreachable.js +4 -0
- package/dist/useHoverOverlay.d.ts +113 -0
- package/dist/useHoverOverlay.js +370 -0
- package/dist/useIsInsideInteractiveElement.d.ts +6 -0
- package/dist/useIsInsideInteractiveElement.js +31 -0
- package/dist/useOverlay.d.ts +82 -0
- package/dist/useOverlay.js +217 -0
- package/dist/useScrollLock.d.ts +5 -0
- package/dist/useScrollLock.js +100 -0
- package/dist/useStableMergeRef.d.ts +9 -0
- package/dist/useStableMergeRef.js +18 -0
- package/package.json +219 -11
- package/dist/index.d.ts +0 -9
- package/dist/index.js +0 -9
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext, useRef } from "react";
|
|
3
|
+
import styled from "@emotion/styled";
|
|
4
|
+
import { useDisclosure } from "@react-aria/disclosure";
|
|
5
|
+
import { usePress } from "@react-aria/interactions";
|
|
6
|
+
import { useDisclosureState } from "@react-stately/disclosure";
|
|
7
|
+
import { IconChevron } from "@sentry/icons/chevron";
|
|
8
|
+
import { Button } from "../button/index.js";
|
|
9
|
+
import { Container, Flex, Stack } from "../layout/index.js";
|
|
10
|
+
const DisclosureContext = /*#__PURE__*/ createContext(null);
|
|
11
|
+
function useDisclosureContext() {
|
|
12
|
+
const context = useContext(DisclosureContext);
|
|
13
|
+
if (!context) throw new Error('useDisclosureContext must be used within a Disclosure component');
|
|
14
|
+
return context;
|
|
15
|
+
}
|
|
16
|
+
function DisclosureComponent({ children, size = 'md', variant = 'default', ref, onExpandedChange, ...props }) {
|
|
17
|
+
const panelRef = useRef(null);
|
|
18
|
+
const state = useDisclosureState({
|
|
19
|
+
...props,
|
|
20
|
+
isExpanded: props.expanded,
|
|
21
|
+
onExpandedChange
|
|
22
|
+
});
|
|
23
|
+
const { buttonProps, panelProps } = useDisclosure({
|
|
24
|
+
...props,
|
|
25
|
+
onExpandedChange,
|
|
26
|
+
isExpanded: props.expanded
|
|
27
|
+
}, state, panelRef);
|
|
28
|
+
return /*#__PURE__*/ jsx(DisclosureContext.Provider, {
|
|
29
|
+
value: {
|
|
30
|
+
buttonProps,
|
|
31
|
+
panelProps,
|
|
32
|
+
panelRef,
|
|
33
|
+
state,
|
|
34
|
+
context: {
|
|
35
|
+
size,
|
|
36
|
+
variant
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
children: /*#__PURE__*/ jsx(Stack, {
|
|
40
|
+
"data-disclosure": true,
|
|
41
|
+
align: "start",
|
|
42
|
+
ref: ref,
|
|
43
|
+
...props,
|
|
44
|
+
children: children
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function Title({ children, leadingItems, trailingItems, ...rest }) {
|
|
49
|
+
const { buttonProps, state, context } = useDisclosureContext();
|
|
50
|
+
const { isDisabled, ...restProps } = buttonProps;
|
|
51
|
+
const { pressProps } = usePress({
|
|
52
|
+
...restProps
|
|
53
|
+
});
|
|
54
|
+
const chevron = /*#__PURE__*/ jsx(IconChevron, {
|
|
55
|
+
direction: state.isExpanded ? 'down' : 'right'
|
|
56
|
+
});
|
|
57
|
+
return /*#__PURE__*/ jsxs(TitleRow, {
|
|
58
|
+
justify: "start",
|
|
59
|
+
gap: context.size,
|
|
60
|
+
align: "center",
|
|
61
|
+
width: "100%",
|
|
62
|
+
paddingLeft: leadingItems ? 'xs' : void 0,
|
|
63
|
+
paddingRight: "xs",
|
|
64
|
+
radius: "md",
|
|
65
|
+
children: [
|
|
66
|
+
leadingItems ? /*#__PURE__*/ jsx(Flex, {
|
|
67
|
+
flexShrink: 0,
|
|
68
|
+
children: leadingItems
|
|
69
|
+
}) : null,
|
|
70
|
+
/*#__PURE__*/ jsx(StretchedButton, {
|
|
71
|
+
icon: leadingItems ? void 0 : chevron,
|
|
72
|
+
disabled: isDisabled,
|
|
73
|
+
size: context.size,
|
|
74
|
+
variant: "transparent",
|
|
75
|
+
...pressProps,
|
|
76
|
+
...rest,
|
|
77
|
+
children: leadingItems ? /*#__PURE__*/ jsxs(Flex, {
|
|
78
|
+
align: "center",
|
|
79
|
+
gap: "xs",
|
|
80
|
+
minWidth: 0,
|
|
81
|
+
children: [
|
|
82
|
+
children,
|
|
83
|
+
chevron
|
|
84
|
+
]
|
|
85
|
+
}) : children
|
|
86
|
+
}),
|
|
87
|
+
trailingItems ? /*#__PURE__*/ jsx(Flex, {
|
|
88
|
+
flexShrink: 0,
|
|
89
|
+
children: trailingItems
|
|
90
|
+
}) : null
|
|
91
|
+
]
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
const TitleRow = styled(Flex)`
|
|
95
|
+
&:hover {
|
|
96
|
+
background: ${(p)=>p.theme.tokens.interactive.transparent.neutral.background.hover};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:active {
|
|
100
|
+
background: ${(p)=>p.theme.tokens.interactive.transparent.neutral.background.active};
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
103
|
+
const StretchedButton = styled(Button)`
|
|
104
|
+
flex-grow: 1;
|
|
105
|
+
min-width: 0;
|
|
106
|
+
justify-content: flex-start;
|
|
107
|
+
padding-left: ${(p)=>p.theme.space.xs};
|
|
108
|
+
|
|
109
|
+
/* TitleRow owns the row's hover/active background; suppress the button's own
|
|
110
|
+
* states entirely so it never renders a second, nested background on top. */
|
|
111
|
+
&&:hover,
|
|
112
|
+
&&:active {
|
|
113
|
+
background-color: transparent;
|
|
114
|
+
}
|
|
115
|
+
`;
|
|
116
|
+
const OUTLINE_PADDING = {
|
|
117
|
+
xs: 'sm',
|
|
118
|
+
sm: 'md',
|
|
119
|
+
md: 'lg'
|
|
120
|
+
};
|
|
121
|
+
const OUTLINE_RADIUS = {
|
|
122
|
+
xs: 'md',
|
|
123
|
+
sm: 'lg',
|
|
124
|
+
md: 'xl'
|
|
125
|
+
};
|
|
126
|
+
function Content({ children, ...props }) {
|
|
127
|
+
const { panelProps, panelRef, context } = useDisclosureContext();
|
|
128
|
+
if ('outline' === context.variant) return /*#__PURE__*/ jsx(Container, {
|
|
129
|
+
ref: panelRef,
|
|
130
|
+
...panelProps,
|
|
131
|
+
border: "primary",
|
|
132
|
+
radius: OUTLINE_RADIUS[context.size],
|
|
133
|
+
padding: OUTLINE_PADDING[context.size],
|
|
134
|
+
width: "100%",
|
|
135
|
+
...props,
|
|
136
|
+
children: children
|
|
137
|
+
});
|
|
138
|
+
return /*#__PURE__*/ jsx(AlignedContainer, {
|
|
139
|
+
ref: panelRef,
|
|
140
|
+
...panelProps,
|
|
141
|
+
padding: context.size,
|
|
142
|
+
size: context.size,
|
|
143
|
+
width: "100%",
|
|
144
|
+
...props,
|
|
145
|
+
children: children
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
const AlignedContainer = styled(Container)`
|
|
149
|
+
padding-left: ${(p)=>'xs' === p.size ? '22px' : 'sm' === p.size ? '26px' : '26px'};
|
|
150
|
+
`;
|
|
151
|
+
const Disclosure = Object.assign(DisclosureComponent, {
|
|
152
|
+
Title: Title,
|
|
153
|
+
Content: Content
|
|
154
|
+
});
|
|
155
|
+
export { Disclosure };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Disclosure } from './disclosure.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Disclosure } from "./disclosure.js";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export type Orientation = 'horizontal' | 'vertical';
|
|
3
|
+
export type DragHandleVariant = 'solid' | 'ghost';
|
|
4
|
+
export declare const DRAG_HANDLE_SIZE = 1;
|
|
5
|
+
/** The 24x24 CSS pixel minimum that WCAG 2.5.8 asks of a pointer target. */
|
|
6
|
+
export declare const DRAG_SEPARATOR_TARGET_SIZE = 24;
|
|
7
|
+
/**
|
|
8
|
+
* A focusable `separator` is a widget, so it needs a name, or it is announced as a bare
|
|
9
|
+
* value with no subject. Prefer `aria-labelledby` when the handle sits inside an element
|
|
10
|
+
* that is named from its content, such as a table header cell: an `aria-label` there
|
|
11
|
+
* would also become part of that element's own name.
|
|
12
|
+
*/
|
|
13
|
+
type DragHandleNameProps = {
|
|
14
|
+
'aria-label': string;
|
|
15
|
+
'aria-labelledby'?: never;
|
|
16
|
+
} | {
|
|
17
|
+
'aria-labelledby': string;
|
|
18
|
+
'aria-label'?: never;
|
|
19
|
+
};
|
|
20
|
+
export type DragHandleProps = DragHandleNameProps & {
|
|
21
|
+
isSizedFirst: boolean;
|
|
22
|
+
max: number;
|
|
23
|
+
min: number;
|
|
24
|
+
onDoubleClick: React.MouseEventHandler<HTMLElement>;
|
|
25
|
+
onMove: (delta: number) => void;
|
|
26
|
+
orientation: Orientation;
|
|
27
|
+
value: number;
|
|
28
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
29
|
+
onMoveEnd?: () => void;
|
|
30
|
+
onMoveStart?: () => void;
|
|
31
|
+
variant?: DragHandleVariant;
|
|
32
|
+
};
|
|
33
|
+
export declare function DragHandle({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, variant, isSizedFirst, max, min, orientation, value, onDoubleClick, onKeyDown, onMove, onMoveEnd, onMoveStart, }: DragHandleProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import styled from "@emotion/styled";
|
|
3
|
+
import { mergeProps } from "@react-aria/utils";
|
|
4
|
+
import { Container } from "../layout/index.js";
|
|
5
|
+
import { useDragSeparator } from "./useDragSeparator.js";
|
|
6
|
+
const DRAG_HANDLE_SIZE = 1;
|
|
7
|
+
const DRAG_SEPARATOR_TARGET_SIZE = 24;
|
|
8
|
+
const targetLength = 'var(--drag-separator-target-length, none)';
|
|
9
|
+
const targetOffset = `calc(50% - ${DRAG_SEPARATOR_TARGET_SIZE / 2}px)`;
|
|
10
|
+
function DragHandle({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, variant = 'solid', isSizedFirst, max, min, orientation, value, onDoubleClick, onKeyDown, onMove, onMoveEnd, onMoveStart }) {
|
|
11
|
+
const { cursor, separatorProps } = useDragSeparator({
|
|
12
|
+
isSizedFirst,
|
|
13
|
+
max,
|
|
14
|
+
min,
|
|
15
|
+
onMove,
|
|
16
|
+
onMoveEnd,
|
|
17
|
+
onMoveStart,
|
|
18
|
+
orientation,
|
|
19
|
+
value
|
|
20
|
+
});
|
|
21
|
+
return /*#__PURE__*/ jsx(Container, {
|
|
22
|
+
position: "relative",
|
|
23
|
+
flexShrink: 0,
|
|
24
|
+
children: (containerProps)=>/*#__PURE__*/ jsx(DragHandleLine, {
|
|
25
|
+
...mergeProps(separatorProps, containerProps, {
|
|
26
|
+
onDoubleClick,
|
|
27
|
+
onKeyDown
|
|
28
|
+
}),
|
|
29
|
+
$cursor: cursor,
|
|
30
|
+
"aria-label": ariaLabel,
|
|
31
|
+
"aria-labelledby": ariaLabelledby,
|
|
32
|
+
"data-variant": variant
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
const DragHandleLine = styled('div')`
|
|
37
|
+
user-select: none;
|
|
38
|
+
touch-action: none;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
|
|
41
|
+
/* Invisible wider hit area for dragging, and the only part that takes pointer events */
|
|
42
|
+
&::before {
|
|
43
|
+
content: '';
|
|
44
|
+
position: absolute;
|
|
45
|
+
z-index: ${(p)=>p.theme.zIndex.drawer};
|
|
46
|
+
pointer-events: auto;
|
|
47
|
+
cursor: ${(p)=>p.$cursor};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Accent bar that lights up on hover/drag */
|
|
51
|
+
&::after {
|
|
52
|
+
content: '';
|
|
53
|
+
position: absolute;
|
|
54
|
+
z-index: ${(p)=>p.theme.zIndex.drawer};
|
|
55
|
+
opacity: 0.8;
|
|
56
|
+
background: transparent;
|
|
57
|
+
transition: background ${(p)=>p.theme.motion.smooth.slow};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:hover::after,
|
|
61
|
+
&[data-is-held='true']::after {
|
|
62
|
+
background: ${(p)=>p.theme.tokens.graphics.accent.vibrant};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&[data-orientation='horizontal'] {
|
|
66
|
+
width: 0;
|
|
67
|
+
height: auto;
|
|
68
|
+
align-self: stretch;
|
|
69
|
+
border-left: 1px solid ${(p)=>p.theme.tokens.border.primary};
|
|
70
|
+
|
|
71
|
+
&::before {
|
|
72
|
+
inset: 0 auto 0 ${targetOffset};
|
|
73
|
+
width: ${DRAG_SEPARATOR_TARGET_SIZE}px;
|
|
74
|
+
max-height: ${targetLength};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&::after {
|
|
78
|
+
inset: 0 auto 0 -2px;
|
|
79
|
+
width: 4px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&[data-orientation='vertical'] {
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 0;
|
|
86
|
+
border-top: 1px solid ${(p)=>p.theme.tokens.border.primary};
|
|
87
|
+
|
|
88
|
+
&::before {
|
|
89
|
+
inset: ${targetOffset} 0 auto 0;
|
|
90
|
+
height: ${DRAG_SEPARATOR_TARGET_SIZE}px;
|
|
91
|
+
max-width: ${targetLength};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&::after {
|
|
95
|
+
inset: -2px 0 auto 0;
|
|
96
|
+
height: 4px;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&[data-variant='ghost'] {
|
|
101
|
+
border-color: transparent;
|
|
102
|
+
transition: border-color ${(p)=>p.theme.motion.smooth.slow};
|
|
103
|
+
|
|
104
|
+
&:hover,
|
|
105
|
+
&:focus-visible,
|
|
106
|
+
&[data-is-held='true'] {
|
|
107
|
+
border-color: ${(p)=>p.theme.tokens.border.primary};
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:focus-visible {
|
|
112
|
+
outline: 2px solid ${(p)=>p.theme.tokens.focus.default};
|
|
113
|
+
}
|
|
114
|
+
`;
|
|
115
|
+
export { DRAG_HANDLE_SIZE, DRAG_SEPARATOR_TARGET_SIZE, DragHandle };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DragHandle, type DragHandleProps, type DragHandleVariant, type Orientation, DRAG_HANDLE_SIZE, DRAG_SEPARATOR_TARGET_SIZE, } from './dragHandle.js';
|
|
2
|
+
export { useDragMove } from './useDragMove.js';
|
|
3
|
+
export { useDragSeparator } from './useDragSeparator.js';
|
|
4
|
+
export { setDocumentDragging } from './setDocumentDragging.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CSS } from '../cssTypes.js';
|
|
2
|
+
/**
|
|
3
|
+
* Locks the document for the duration of a drag, or releases it when passed `null`.
|
|
4
|
+
*
|
|
5
|
+
* A drag travels outside the element that started it, so suppressing hover and text
|
|
6
|
+
* selection — and holding the resize cursor — has to happen at the document level.
|
|
7
|
+
* The cursor goes on the root element because pointer events are disabled on `body`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function setDocumentDragging(cursor: CSS['cursor'] | null): void;
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Orientation } from './dragHandle.js';
|
|
3
|
+
interface UseDragMoveOptions {
|
|
4
|
+
onMove: (delta: number) => void;
|
|
5
|
+
orientation: Orientation;
|
|
6
|
+
onMoveEnd?: () => void;
|
|
7
|
+
onMoveStart?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function useDragMove({ onMove, onMoveEnd, onMoveStart, orientation, }: UseDragMoveOptions): {
|
|
10
|
+
isHeld: boolean;
|
|
11
|
+
moveProps: {
|
|
12
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
role?: React.AriaRole | undefined;
|
|
15
|
+
tabIndex?: number | undefined;
|
|
16
|
+
style?: React.CSSProperties | undefined;
|
|
17
|
+
className?: string | undefined;
|
|
18
|
+
"aria-activedescendant"?: string | undefined;
|
|
19
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
20
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
21
|
+
"aria-braillelabel"?: string | undefined;
|
|
22
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
23
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
24
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
25
|
+
"aria-colcount"?: number | undefined;
|
|
26
|
+
"aria-colindex"?: number | undefined;
|
|
27
|
+
"aria-colindextext"?: string | undefined;
|
|
28
|
+
"aria-colspan"?: number | undefined;
|
|
29
|
+
"aria-controls"?: string | undefined;
|
|
30
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
31
|
+
"aria-describedby"?: string | undefined;
|
|
32
|
+
"aria-description"?: string | undefined;
|
|
33
|
+
"aria-details"?: string | undefined;
|
|
34
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
35
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
36
|
+
"aria-errormessage"?: string | undefined;
|
|
37
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
38
|
+
"aria-flowto"?: string | undefined;
|
|
39
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
40
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
41
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
42
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
43
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
44
|
+
"aria-label"?: string | undefined;
|
|
45
|
+
"aria-labelledby"?: string | undefined;
|
|
46
|
+
"aria-level"?: number | undefined;
|
|
47
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
48
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
49
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
50
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
51
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
52
|
+
"aria-owns"?: string | undefined;
|
|
53
|
+
"aria-placeholder"?: string | undefined;
|
|
54
|
+
"aria-posinset"?: number | undefined;
|
|
55
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
56
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
57
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
58
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
59
|
+
"aria-roledescription"?: string | undefined;
|
|
60
|
+
"aria-rowcount"?: number | undefined;
|
|
61
|
+
"aria-rowindex"?: number | undefined;
|
|
62
|
+
"aria-rowindextext"?: string | undefined;
|
|
63
|
+
"aria-rowspan"?: number | undefined;
|
|
64
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
65
|
+
"aria-setsize"?: number | undefined;
|
|
66
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
67
|
+
"aria-valuemax"?: number | undefined;
|
|
68
|
+
"aria-valuemin"?: number | undefined;
|
|
69
|
+
"aria-valuenow"?: number | undefined;
|
|
70
|
+
"aria-valuetext"?: string | undefined;
|
|
71
|
+
children?: React.ReactNode | undefined;
|
|
72
|
+
dangerouslySetInnerHTML?: {
|
|
73
|
+
__html: string | TrustedHTML;
|
|
74
|
+
} | undefined;
|
|
75
|
+
onCopy?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
76
|
+
onCopyCapture?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
77
|
+
onCut?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
78
|
+
onCutCapture?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
79
|
+
onPaste?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
80
|
+
onPasteCapture?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
81
|
+
onCompositionEnd?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
82
|
+
onCompositionEndCapture?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
83
|
+
onCompositionStart?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
84
|
+
onCompositionStartCapture?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
85
|
+
onCompositionUpdate?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
86
|
+
onCompositionUpdateCapture?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
87
|
+
onFocus?: React.FocusEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
88
|
+
onFocusCapture?: React.FocusEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
89
|
+
onBlur?: React.FocusEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
90
|
+
onBlurCapture?: React.FocusEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
91
|
+
onChange?: React.ChangeEventHandler<import("@react-types/shared").FocusableElement, Element> | undefined;
|
|
92
|
+
onChangeCapture?: React.ChangeEventHandler<import("@react-types/shared").FocusableElement, Element> | undefined;
|
|
93
|
+
onBeforeInput?: React.InputEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
94
|
+
onBeforeInputCapture?: React.InputEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
95
|
+
onInput?: React.InputEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
96
|
+
onInputCapture?: React.InputEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
97
|
+
onReset?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
98
|
+
onResetCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
99
|
+
onSubmit?: React.SubmitEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
100
|
+
onSubmitCapture?: React.SubmitEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
101
|
+
onInvalid?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
102
|
+
onInvalidCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
103
|
+
onLoad?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
104
|
+
onLoadCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
105
|
+
onError?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
106
|
+
onErrorCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
107
|
+
onKeyDownCapture?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
108
|
+
onKeyPress?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
109
|
+
onKeyPressCapture?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
110
|
+
onKeyUp?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
111
|
+
onKeyUpCapture?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
112
|
+
onAbort?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
113
|
+
onAbortCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
114
|
+
onCanPlay?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
115
|
+
onCanPlayCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
116
|
+
onCanPlayThrough?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
117
|
+
onCanPlayThroughCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
118
|
+
onDurationChange?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
119
|
+
onDurationChangeCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
120
|
+
onEmptied?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
121
|
+
onEmptiedCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
122
|
+
onEncrypted?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
123
|
+
onEncryptedCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
124
|
+
onEnded?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
125
|
+
onEndedCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
126
|
+
onLoadedData?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
127
|
+
onLoadedDataCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
128
|
+
onLoadedMetadata?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
129
|
+
onLoadedMetadataCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
130
|
+
onLoadStart?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
131
|
+
onLoadStartCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
132
|
+
onPause?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
133
|
+
onPauseCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
134
|
+
onPlay?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
135
|
+
onPlayCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
136
|
+
onPlaying?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
137
|
+
onPlayingCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
138
|
+
onProgress?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
139
|
+
onProgressCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
140
|
+
onRateChange?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
141
|
+
onRateChangeCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
142
|
+
onSeeked?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
143
|
+
onSeekedCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
144
|
+
onSeeking?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
145
|
+
onSeekingCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
146
|
+
onStalled?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
147
|
+
onStalledCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
148
|
+
onSuspend?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
149
|
+
onSuspendCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
150
|
+
onTimeUpdate?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
151
|
+
onTimeUpdateCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
152
|
+
onVolumeChange?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
153
|
+
onVolumeChangeCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
154
|
+
onWaiting?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
155
|
+
onWaitingCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
156
|
+
onAuxClick?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
157
|
+
onAuxClickCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
158
|
+
onClick?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
159
|
+
onClickCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
160
|
+
onContextMenu?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
161
|
+
onContextMenuCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
162
|
+
onDoubleClick?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
163
|
+
onDoubleClickCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
164
|
+
onDrag?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
165
|
+
onDragCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
166
|
+
onDragEnd?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
167
|
+
onDragEndCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
168
|
+
onDragEnter?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
169
|
+
onDragEnterCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
170
|
+
onDragExit?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
171
|
+
onDragExitCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
172
|
+
onDragLeave?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
173
|
+
onDragLeaveCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
174
|
+
onDragOver?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
175
|
+
onDragOverCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
176
|
+
onDragStart?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
177
|
+
onDragStartCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
178
|
+
onDrop?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
179
|
+
onDropCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
180
|
+
onMouseDown?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
181
|
+
onMouseDownCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
182
|
+
onMouseEnter?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
183
|
+
onMouseLeave?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
184
|
+
onMouseMove?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
185
|
+
onMouseMoveCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
186
|
+
onMouseOut?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
187
|
+
onMouseOutCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
188
|
+
onMouseOver?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
189
|
+
onMouseOverCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
190
|
+
onMouseUp?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
191
|
+
onMouseUpCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
192
|
+
onSelect?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
193
|
+
onSelectCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
194
|
+
onTouchCancel?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
195
|
+
onTouchCancelCapture?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
196
|
+
onTouchEnd?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
197
|
+
onTouchEndCapture?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
198
|
+
onTouchMove?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
199
|
+
onTouchMoveCapture?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
200
|
+
onTouchStart?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
201
|
+
onTouchStartCapture?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
202
|
+
onPointerDown?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
203
|
+
onPointerDownCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
204
|
+
onPointerMove?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
205
|
+
onPointerMoveCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
206
|
+
onPointerUp?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
207
|
+
onPointerUpCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
208
|
+
onPointerCancel?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
209
|
+
onPointerCancelCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
210
|
+
onPointerEnter?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
211
|
+
onPointerLeave?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
212
|
+
onPointerOver?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
213
|
+
onPointerOverCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
214
|
+
onPointerOut?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
215
|
+
onPointerOutCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
216
|
+
onGotPointerCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
217
|
+
onGotPointerCaptureCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
218
|
+
onLostPointerCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
219
|
+
onLostPointerCaptureCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
220
|
+
onScroll?: React.UIEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
221
|
+
onScrollCapture?: React.UIEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
222
|
+
onScrollEnd?: React.UIEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
223
|
+
onScrollEndCapture?: React.UIEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
224
|
+
onWheel?: React.WheelEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
225
|
+
onWheelCapture?: React.WheelEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
226
|
+
onAnimationStart?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
227
|
+
onAnimationStartCapture?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
228
|
+
onAnimationEnd?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
229
|
+
onAnimationEndCapture?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
230
|
+
onAnimationIteration?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
231
|
+
onAnimationIterationCapture?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
232
|
+
onToggle?: React.ToggleEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
233
|
+
onBeforeToggle?: React.ToggleEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
234
|
+
onTransitionCancel?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
235
|
+
onTransitionCancelCapture?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
236
|
+
onTransitionEnd?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
237
|
+
onTransitionEndCapture?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
238
|
+
onTransitionRun?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
239
|
+
onTransitionRunCapture?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
240
|
+
onTransitionStart?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
241
|
+
onTransitionStartCapture?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
export {};
|