@octanejs/aria 0.0.4 → 0.0.5
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/package.json +7 -5
- package/src/autocomplete/useAutocomplete.ts +656 -0
- package/src/collections/BaseCollection.ts +374 -0
- package/src/collections/CollectionBuilder.ts +343 -0
- package/src/collections/Document.ts +451 -0
- package/src/collections/Hidden.ts +84 -0
- package/src/collections/useCachedChildren.ts +103 -0
- package/src/components/Autocomplete.ts +124 -0
- package/src/components/Breadcrumbs.ts +170 -0
- package/src/components/Button.ts +209 -0
- package/src/components/Checkbox.ts +593 -0
- package/src/components/Collection.ts +301 -0
- package/src/components/ComboBox.ts +477 -0
- package/src/components/Dialog.ts +195 -0
- package/src/components/Disclosure.ts +322 -0
- package/src/components/DragAndDrop.ts +177 -0
- package/src/components/FieldError.ts +79 -0
- package/src/components/Form.ts +65 -0
- package/src/components/GridList.ts +1099 -0
- package/src/components/Group.ts +146 -0
- package/src/components/Header.ts +32 -0
- package/src/components/Heading.ts +45 -0
- package/src/components/Input.ts +139 -0
- package/src/components/Keyboard.ts +23 -0
- package/src/components/Label.ts +30 -0
- package/src/components/Link.ts +137 -0
- package/src/components/ListBox.ts +886 -0
- package/src/components/Menu.ts +685 -0
- package/src/components/Meter.ts +100 -0
- package/src/components/Modal.ts +352 -0
- package/src/components/NumberField.ts +221 -0
- package/src/components/OverlayArrow.ts +117 -0
- package/src/components/Popover.ts +385 -0
- package/src/components/ProgressBar.ts +112 -0
- package/src/components/RadioGroup.ts +542 -0
- package/src/components/SearchField.ts +208 -0
- package/src/components/Select.ts +505 -0
- package/src/components/SelectionIndicator.ts +52 -0
- package/src/components/Separator.ts +97 -0
- package/src/components/SharedElementTransition.ts +209 -0
- package/src/components/Slider.ts +472 -0
- package/src/components/Switch.ts +449 -0
- package/src/components/Tabs.ts +675 -0
- package/src/components/TagGroup.ts +443 -0
- package/src/components/Text.ts +27 -0
- package/src/components/TextArea.ts +92 -0
- package/src/components/TextField.ts +200 -0
- package/src/components/ToggleButton.ts +147 -0
- package/src/components/ToggleButtonGroup.ts +106 -0
- package/src/components/Toolbar.ts +74 -0
- package/src/components/Tooltip.ts +249 -0
- package/src/components/index.ts +302 -0
- package/src/components/useDragAndDrop.ts +164 -0
- package/src/components/utils.ts +521 -0
- package/src/intl/autocomplete/ar-AE.json +3 -0
- package/src/intl/autocomplete/bg-BG.json +3 -0
- package/src/intl/autocomplete/cs-CZ.json +3 -0
- package/src/intl/autocomplete/da-DK.json +3 -0
- package/src/intl/autocomplete/de-DE.json +3 -0
- package/src/intl/autocomplete/el-GR.json +3 -0
- package/src/intl/autocomplete/en-US.json +3 -0
- package/src/intl/autocomplete/es-ES.json +3 -0
- package/src/intl/autocomplete/et-EE.json +3 -0
- package/src/intl/autocomplete/fi-FI.json +3 -0
- package/src/intl/autocomplete/fr-FR.json +3 -0
- package/src/intl/autocomplete/he-IL.json +3 -0
- package/src/intl/autocomplete/hr-HR.json +3 -0
- package/src/intl/autocomplete/hu-HU.json +3 -0
- package/src/intl/autocomplete/index.ts +75 -0
- package/src/intl/autocomplete/it-IT.json +3 -0
- package/src/intl/autocomplete/ja-JP.json +3 -0
- package/src/intl/autocomplete/ko-KR.json +3 -0
- package/src/intl/autocomplete/lt-LT.json +3 -0
- package/src/intl/autocomplete/lv-LV.json +3 -0
- package/src/intl/autocomplete/nb-NO.json +3 -0
- package/src/intl/autocomplete/nl-NL.json +3 -0
- package/src/intl/autocomplete/pl-PL.json +3 -0
- package/src/intl/autocomplete/pt-BR.json +3 -0
- package/src/intl/autocomplete/pt-PT.json +3 -0
- package/src/intl/autocomplete/ro-RO.json +3 -0
- package/src/intl/autocomplete/ru-RU.json +3 -0
- package/src/intl/autocomplete/sk-SK.json +3 -0
- package/src/intl/autocomplete/sl-SI.json +3 -0
- package/src/intl/autocomplete/sr-SP.json +3 -0
- package/src/intl/autocomplete/sv-SE.json +3 -0
- package/src/intl/autocomplete/tr-TR.json +3 -0
- package/src/intl/autocomplete/uk-UA.json +3 -0
- package/src/intl/autocomplete/zh-CN.json +3 -0
- package/src/intl/autocomplete/zh-TW.json +3 -0
- package/src/stately/autocomplete/useAutocompleteState.ts +85 -0
- package/src/utils/animation.ts +149 -0
- package/src/utils/useLoadMoreSentinel.ts +78 -0
- package/src/utils/useViewportSize.ts +123 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
// Ported from react-aria-components (source: .react-spectrum/packages/react-aria-components/src/Tooltip.tsx).
|
|
2
|
+
// octane adaptations: `.tsx` → `.ts`, JSX → `createElement`; NO forwardRef — the forwarded ref
|
|
3
|
+
// is `props.ref`, passed into `useContextProps` explicitly; the plain-`.ts` components use the
|
|
4
|
+
// S()/subSlot component-slot convention; `OverlayContainer` comes from the binding's ported
|
|
5
|
+
// `../overlays/useModal`, `FocusableProvider` from `../interactions/useFocusable`, and the
|
|
6
|
+
// enter/exit animation hooks from `../utils/animation`; React's ReactNode/JSX/CSSProperties
|
|
7
|
+
// types → structural aliases.
|
|
8
|
+
import type {
|
|
9
|
+
AriaLabelingProps,
|
|
10
|
+
FocusableElement,
|
|
11
|
+
RefObject as SharedRefObject,
|
|
12
|
+
} from '@react-types/shared';
|
|
13
|
+
import { createContext, createElement, useContext, useRef } from 'octane';
|
|
14
|
+
|
|
15
|
+
import {
|
|
16
|
+
type AriaPositionProps,
|
|
17
|
+
type Placement,
|
|
18
|
+
type PlacementAxis,
|
|
19
|
+
type PositionProps,
|
|
20
|
+
useOverlayPosition,
|
|
21
|
+
} from '../overlays/useOverlayPosition';
|
|
22
|
+
import { S, subSlot } from '../internal';
|
|
23
|
+
import { filterDOMProps } from '../utils/filterDOMProps';
|
|
24
|
+
import { FocusableProvider } from '../interactions/useFocusable';
|
|
25
|
+
import { mergeProps } from '../utils/mergeProps';
|
|
26
|
+
import { OverlayArrowContext } from './OverlayArrow';
|
|
27
|
+
import { OverlayContainer } from '../overlays/useModal';
|
|
28
|
+
import type { OverlayTriggerProps } from '../stately/overlays/useOverlayTriggerState';
|
|
29
|
+
import {
|
|
30
|
+
type TooltipTriggerProps,
|
|
31
|
+
type TooltipTriggerState,
|
|
32
|
+
useTooltipTriggerState,
|
|
33
|
+
} from '../stately/tooltip/useTooltipTriggerState';
|
|
34
|
+
import { useEnterAnimation, useExitAnimation } from '../utils/animation';
|
|
35
|
+
import { useTooltip } from '../tooltip/useTooltip';
|
|
36
|
+
import { useTooltipTrigger } from '../tooltip/useTooltipTrigger';
|
|
37
|
+
import {
|
|
38
|
+
type ClassNameOrFunction,
|
|
39
|
+
type ContextValue,
|
|
40
|
+
dom,
|
|
41
|
+
Provider,
|
|
42
|
+
type RenderProps,
|
|
43
|
+
useContextProps,
|
|
44
|
+
useRenderProps,
|
|
45
|
+
} from './utils';
|
|
46
|
+
|
|
47
|
+
// octane adaptations: structural aliases for the React types upstream drags along.
|
|
48
|
+
type ReactNode = any;
|
|
49
|
+
type GlobalDOMAttributes = Record<string, any>;
|
|
50
|
+
type RefObject<T> = SharedRefObject<T>;
|
|
51
|
+
|
|
52
|
+
export interface TooltipTriggerComponentProps extends TooltipTriggerProps {
|
|
53
|
+
children: ReactNode;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface TooltipProps
|
|
57
|
+
extends
|
|
58
|
+
PositionProps,
|
|
59
|
+
Pick<AriaPositionProps, 'arrowBoundaryOffset'>,
|
|
60
|
+
OverlayTriggerProps,
|
|
61
|
+
AriaLabelingProps,
|
|
62
|
+
RenderProps<TooltipRenderProps>,
|
|
63
|
+
GlobalDOMAttributes {
|
|
64
|
+
/**
|
|
65
|
+
* The CSS [className](https://developer.mozilla.org/en-US/docs/Web/API/Element/className) for the
|
|
66
|
+
* element. A function may be provided to compute the class based on component state.
|
|
67
|
+
*
|
|
68
|
+
* @default 'react-aria-Tooltip'
|
|
69
|
+
*/
|
|
70
|
+
className?: ClassNameOrFunction<TooltipRenderProps>;
|
|
71
|
+
/**
|
|
72
|
+
* The ref for the element which the tooltip positions itself with respect to.
|
|
73
|
+
*
|
|
74
|
+
* When used within a TooltipTrigger this is set automatically. It is only required when used
|
|
75
|
+
* standalone.
|
|
76
|
+
*/
|
|
77
|
+
triggerRef?: RefObject<Element | null>;
|
|
78
|
+
/**
|
|
79
|
+
* Whether the tooltip is currently performing an entry animation.
|
|
80
|
+
*/
|
|
81
|
+
isEntering?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the tooltip is currently performing an exit animation.
|
|
84
|
+
*/
|
|
85
|
+
isExiting?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* The container element in which the overlay portal will be placed. This may have unknown
|
|
88
|
+
* behavior depending on where it is portalled to.
|
|
89
|
+
*
|
|
90
|
+
* @deprecated - Use a parent UNSAFE_PortalProvider to set your portal container instead.
|
|
91
|
+
* @default document.body
|
|
92
|
+
*/
|
|
93
|
+
UNSTABLE_portalContainer?: Element;
|
|
94
|
+
/**
|
|
95
|
+
* The placement of the tooltip with respect to the trigger.
|
|
96
|
+
*
|
|
97
|
+
* @default 'top'
|
|
98
|
+
*/
|
|
99
|
+
placement?: Placement;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface TooltipRenderProps {
|
|
103
|
+
/**
|
|
104
|
+
* The placement of the tooltip relative to the trigger.
|
|
105
|
+
*
|
|
106
|
+
* @selector [data-placement="left | right | top | bottom"]
|
|
107
|
+
*/
|
|
108
|
+
placement: PlacementAxis | null;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the tooltip is currently entering. Use this to apply animations.
|
|
111
|
+
*
|
|
112
|
+
* @selector [data-entering]
|
|
113
|
+
*/
|
|
114
|
+
isEntering: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Whether the tooltip is currently exiting. Use this to apply animations.
|
|
117
|
+
*
|
|
118
|
+
* @selector [data-exiting]
|
|
119
|
+
*/
|
|
120
|
+
isExiting: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* State of the tooltip.
|
|
123
|
+
*/
|
|
124
|
+
state: TooltipTriggerState;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export const TooltipTriggerStateContext = createContext<TooltipTriggerState | null>(null);
|
|
128
|
+
export const TooltipContext = createContext<ContextValue<TooltipProps, HTMLDivElement>>(null);
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* TooltipTrigger wraps around a trigger element and a Tooltip. It handles opening and closing
|
|
132
|
+
* the Tooltip when the user hovers over or focuses the trigger, and positioning the Tooltip
|
|
133
|
+
* relative to the trigger.
|
|
134
|
+
*/
|
|
135
|
+
export function TooltipTrigger(props: TooltipTriggerComponentProps): any {
|
|
136
|
+
const slot = S('TooltipTrigger');
|
|
137
|
+
let state = useTooltipTriggerState(props, subSlot(slot, 'state'));
|
|
138
|
+
let ref = useRef<FocusableElement | null>(null, subSlot(slot, 'ref'));
|
|
139
|
+
let { triggerProps, tooltipProps } = useTooltipTrigger(
|
|
140
|
+
props,
|
|
141
|
+
state,
|
|
142
|
+
ref,
|
|
143
|
+
subSlot(slot, 'trigger'),
|
|
144
|
+
);
|
|
145
|
+
|
|
146
|
+
return createElement(Provider, {
|
|
147
|
+
values: [
|
|
148
|
+
[TooltipTriggerStateContext, state],
|
|
149
|
+
[TooltipContext, { ...tooltipProps, triggerRef: ref }],
|
|
150
|
+
] as any,
|
|
151
|
+
children: createElement(FocusableProvider, {
|
|
152
|
+
...triggerProps,
|
|
153
|
+
ref,
|
|
154
|
+
children: props.children,
|
|
155
|
+
}),
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* A tooltip displays a description of an element on hover or focus.
|
|
161
|
+
*/
|
|
162
|
+
export function Tooltip(allProps: TooltipProps): any {
|
|
163
|
+
const slot = S('Tooltip');
|
|
164
|
+
let { UNSTABLE_portalContainer, ...props } = allProps;
|
|
165
|
+
let ref: any;
|
|
166
|
+
[props, ref] = useContextProps(props, (props as any).ref, TooltipContext, subSlot(slot, 'ctx'));
|
|
167
|
+
let contextState = useContext(TooltipTriggerStateContext);
|
|
168
|
+
let localState = useTooltipTriggerState(props, subSlot(slot, 'state'));
|
|
169
|
+
let state =
|
|
170
|
+
props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
171
|
+
let isExiting =
|
|
172
|
+
useExitAnimation(ref, state.isOpen, subSlot(slot, 'exit')) || props.isExiting || false;
|
|
173
|
+
if (!state.isOpen && !isExiting) {
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return createElement(OverlayContainer, {
|
|
178
|
+
portalContainer: UNSTABLE_portalContainer,
|
|
179
|
+
children: createElement(TooltipInner, { ...props, tooltipRef: ref, isExiting }),
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function TooltipInner(
|
|
184
|
+
allProps: TooltipProps & { isExiting: boolean; tooltipRef: RefObject<HTMLDivElement | null> },
|
|
185
|
+
): any {
|
|
186
|
+
const slot = S('TooltipInner');
|
|
187
|
+
let props: any = allProps;
|
|
188
|
+
let state = useContext(TooltipTriggerStateContext)!;
|
|
189
|
+
let arrowRef = useRef<HTMLDivElement | null>(null, subSlot(slot, 'arrowRef'));
|
|
190
|
+
|
|
191
|
+
let { overlayProps, arrowProps, placement, triggerAnchorPoint } = useOverlayPosition(
|
|
192
|
+
{
|
|
193
|
+
placement: props.placement || 'top',
|
|
194
|
+
targetRef: props.triggerRef!,
|
|
195
|
+
overlayRef: props.tooltipRef,
|
|
196
|
+
arrowRef,
|
|
197
|
+
offset: props.offset,
|
|
198
|
+
crossOffset: props.crossOffset,
|
|
199
|
+
isOpen: state.isOpen,
|
|
200
|
+
arrowBoundaryOffset: props.arrowBoundaryOffset,
|
|
201
|
+
shouldFlip: props.shouldFlip,
|
|
202
|
+
containerPadding: props.containerPadding,
|
|
203
|
+
onClose: () => state.close(true),
|
|
204
|
+
},
|
|
205
|
+
subSlot(slot, 'position'),
|
|
206
|
+
);
|
|
207
|
+
|
|
208
|
+
let isEntering =
|
|
209
|
+
useEnterAnimation(props.tooltipRef, !!placement, subSlot(slot, 'enter')) ||
|
|
210
|
+
props.isEntering ||
|
|
211
|
+
false;
|
|
212
|
+
let renderProps = useRenderProps(
|
|
213
|
+
{
|
|
214
|
+
...props,
|
|
215
|
+
defaultClassName: 'react-aria-Tooltip',
|
|
216
|
+
values: {
|
|
217
|
+
placement,
|
|
218
|
+
isEntering,
|
|
219
|
+
isExiting: props.isExiting,
|
|
220
|
+
state,
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
subSlot(slot, 'render'),
|
|
224
|
+
);
|
|
225
|
+
|
|
226
|
+
props = mergeProps(props, overlayProps);
|
|
227
|
+
let { tooltipProps } = useTooltip(props, state, subSlot(slot, 'tooltip'));
|
|
228
|
+
|
|
229
|
+
let DOMProps = filterDOMProps(props, { global: true });
|
|
230
|
+
|
|
231
|
+
return createElement(dom.div, {
|
|
232
|
+
...mergeProps(DOMProps, renderProps, tooltipProps),
|
|
233
|
+
ref: props.tooltipRef,
|
|
234
|
+
style: {
|
|
235
|
+
...overlayProps.style,
|
|
236
|
+
'--trigger-anchor-point': triggerAnchorPoint
|
|
237
|
+
? `${triggerAnchorPoint.x}px ${triggerAnchorPoint.y}px`
|
|
238
|
+
: undefined,
|
|
239
|
+
...renderProps.style,
|
|
240
|
+
},
|
|
241
|
+
'data-placement': placement ?? undefined,
|
|
242
|
+
'data-entering': isEntering || undefined,
|
|
243
|
+
'data-exiting': props.isExiting || undefined,
|
|
244
|
+
children: createElement(OverlayArrowContext.Provider, {
|
|
245
|
+
value: { ...arrowProps, placement, ref: arrowRef } as any,
|
|
246
|
+
children: renderProps.children,
|
|
247
|
+
}),
|
|
248
|
+
});
|
|
249
|
+
}
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
// @octanejs/aria/components — the react-aria-components surface, ported onto octane.
|
|
2
|
+
// Exports mirror the upstream index (.react-spectrum/packages/react-aria-components/
|
|
3
|
+
// exports/index.ts): the Phase-4 foundation (collections engine, plumbing,
|
|
4
|
+
// non-collection components) plus the Phase-5 collection components (Autocomplete,
|
|
5
|
+
// ListBox, Menu, Select, ComboBox, Tabs, TagGroup, GridList, Breadcrumbs, and the
|
|
6
|
+
// inert DragAndDrop context layer). Tree/Table, date/color families, and the
|
|
7
|
+
// drag-and-drop engine arrive in later phases — see docs/aria-migration-plan.md.
|
|
8
|
+
|
|
9
|
+
// plumbing
|
|
10
|
+
export {
|
|
11
|
+
composeRenderProps,
|
|
12
|
+
DEFAULT_SLOT,
|
|
13
|
+
Provider,
|
|
14
|
+
useContextProps,
|
|
15
|
+
useRenderProps,
|
|
16
|
+
useSlottedContext,
|
|
17
|
+
} from './utils';
|
|
18
|
+
export type { ContextValue, RenderProps, SlotProps, StyleRenderProps } from './utils';
|
|
19
|
+
|
|
20
|
+
// collections engine (mirrors the react-aria/CollectionBuilder + Collection exports)
|
|
21
|
+
export {
|
|
22
|
+
createLeafComponent,
|
|
23
|
+
createBranchComponent,
|
|
24
|
+
CollectionBuilder,
|
|
25
|
+
Collection,
|
|
26
|
+
} from '../collections/CollectionBuilder';
|
|
27
|
+
export type { CollectionProps } from '../collections/CollectionBuilder';
|
|
28
|
+
export { Section, CollectionRendererContext, DefaultCollectionRenderer } from './Collection';
|
|
29
|
+
export type { SectionProps, CollectionRenderer } from './Collection';
|
|
30
|
+
|
|
31
|
+
// components
|
|
32
|
+
export { Button, ButtonContext } from './Button';
|
|
33
|
+
export type { ButtonProps, ButtonRenderProps } from './Button';
|
|
34
|
+
export {
|
|
35
|
+
Checkbox,
|
|
36
|
+
CheckboxGroup,
|
|
37
|
+
CheckboxField,
|
|
38
|
+
CheckboxButton,
|
|
39
|
+
CheckboxContext,
|
|
40
|
+
CheckboxFieldContext,
|
|
41
|
+
CheckboxGroupContext,
|
|
42
|
+
CheckboxGroupStateContext,
|
|
43
|
+
} from './Checkbox';
|
|
44
|
+
export type {
|
|
45
|
+
CheckboxGroupProps,
|
|
46
|
+
CheckboxGroupRenderProps,
|
|
47
|
+
CheckboxRenderProps,
|
|
48
|
+
CheckboxProps,
|
|
49
|
+
CheckboxFieldProps,
|
|
50
|
+
CheckboxFieldRenderProps,
|
|
51
|
+
CheckboxButtonProps,
|
|
52
|
+
CheckboxButtonRenderProps,
|
|
53
|
+
} from './Checkbox';
|
|
54
|
+
export { DialogTrigger, Dialog, DialogContext, OverlayTriggerStateContext } from './Dialog';
|
|
55
|
+
export type { DialogProps, DialogTriggerProps, DialogRenderProps } from './Dialog';
|
|
56
|
+
export {
|
|
57
|
+
Disclosure,
|
|
58
|
+
DisclosureGroup,
|
|
59
|
+
DisclosureGroupStateContext,
|
|
60
|
+
DisclosurePanel,
|
|
61
|
+
DisclosureStateContext,
|
|
62
|
+
DisclosureContext,
|
|
63
|
+
} from './Disclosure';
|
|
64
|
+
export type {
|
|
65
|
+
DisclosureProps,
|
|
66
|
+
DisclosureRenderProps,
|
|
67
|
+
DisclosurePanelProps,
|
|
68
|
+
DisclosurePanelRenderProps,
|
|
69
|
+
DisclosureGroupProps,
|
|
70
|
+
DisclosureGroupRenderProps,
|
|
71
|
+
} from './Disclosure';
|
|
72
|
+
export { FieldError, FieldErrorContext } from './FieldError';
|
|
73
|
+
export type { FieldErrorProps, FieldErrorRenderProps } from './FieldError';
|
|
74
|
+
export { Form, FormContext } from './Form';
|
|
75
|
+
export type { FormProps } from './Form';
|
|
76
|
+
export { Group, GroupContext } from './Group';
|
|
77
|
+
export type { GroupProps, GroupRenderProps } from './Group';
|
|
78
|
+
export { Header, HeaderContext } from './Header';
|
|
79
|
+
export type { HeaderProps } from './Header';
|
|
80
|
+
export { Heading, HeadingContext } from './Heading';
|
|
81
|
+
export type { HeadingProps } from './Heading';
|
|
82
|
+
export { Input, InputContext } from './Input';
|
|
83
|
+
export type { InputProps, InputRenderProps } from './Input';
|
|
84
|
+
export { Keyboard, KeyboardContext } from './Keyboard';
|
|
85
|
+
export { Label, LabelContext } from './Label';
|
|
86
|
+
export type { LabelProps } from './Label';
|
|
87
|
+
export { Link, LinkContext } from './Link';
|
|
88
|
+
export type { LinkProps, LinkRenderProps } from './Link';
|
|
89
|
+
export { Meter, MeterContext } from './Meter';
|
|
90
|
+
export type { MeterProps, MeterRenderProps } from './Meter';
|
|
91
|
+
export { Modal, ModalOverlay, ModalContext } from './Modal';
|
|
92
|
+
export type { ModalOverlayProps, ModalRenderProps } from './Modal';
|
|
93
|
+
export { NumberField, NumberFieldContext, NumberFieldStateContext } from './NumberField';
|
|
94
|
+
export type { NumberFieldProps, NumberFieldRenderProps } from './NumberField';
|
|
95
|
+
export { OverlayArrow } from './OverlayArrow';
|
|
96
|
+
export type { OverlayArrowProps, OverlayArrowRenderProps } from './OverlayArrow';
|
|
97
|
+
export { Popover, PopoverContext } from './Popover';
|
|
98
|
+
export type { PopoverProps, PopoverRenderProps } from './Popover';
|
|
99
|
+
export { ProgressBar, ProgressBarContext } from './ProgressBar';
|
|
100
|
+
export type { ProgressBarProps, ProgressBarRenderProps } from './ProgressBar';
|
|
101
|
+
export {
|
|
102
|
+
RadioGroup,
|
|
103
|
+
Radio,
|
|
104
|
+
RadioField,
|
|
105
|
+
RadioButton,
|
|
106
|
+
RadioGroupContext,
|
|
107
|
+
RadioContext,
|
|
108
|
+
RadioFieldContext,
|
|
109
|
+
RadioGroupStateContext,
|
|
110
|
+
} from './RadioGroup';
|
|
111
|
+
export type {
|
|
112
|
+
RadioGroupProps,
|
|
113
|
+
RadioGroupRenderProps,
|
|
114
|
+
RadioProps,
|
|
115
|
+
RadioRenderProps,
|
|
116
|
+
RadioFieldProps,
|
|
117
|
+
RadioFieldRenderProps,
|
|
118
|
+
RadioButtonProps,
|
|
119
|
+
RadioButtonRenderProps,
|
|
120
|
+
} from './RadioGroup';
|
|
121
|
+
export { SearchField, SearchFieldContext } from './SearchField';
|
|
122
|
+
export type { SearchFieldProps, SearchFieldRenderProps } from './SearchField';
|
|
123
|
+
export { SelectionIndicator, SelectionIndicatorContext } from './SelectionIndicator';
|
|
124
|
+
export type { SelectionIndicatorProps } from './SelectionIndicator';
|
|
125
|
+
export { Separator, SeparatorContext } from './Separator';
|
|
126
|
+
export type { SeparatorProps } from './Separator';
|
|
127
|
+
export { SharedElementTransition, SharedElement } from './SharedElementTransition';
|
|
128
|
+
export type {
|
|
129
|
+
SharedElementTransitionProps,
|
|
130
|
+
SharedElementProps,
|
|
131
|
+
SharedElementRenderProps,
|
|
132
|
+
} from './SharedElementTransition';
|
|
133
|
+
export {
|
|
134
|
+
Slider,
|
|
135
|
+
SliderOutput,
|
|
136
|
+
SliderTrack,
|
|
137
|
+
SliderThumb,
|
|
138
|
+
SliderFill,
|
|
139
|
+
SliderContext,
|
|
140
|
+
SliderOutputContext,
|
|
141
|
+
SliderTrackContext,
|
|
142
|
+
SliderFillContext,
|
|
143
|
+
SliderStateContext,
|
|
144
|
+
} from './Slider';
|
|
145
|
+
export type {
|
|
146
|
+
SliderOutputProps,
|
|
147
|
+
SliderProps,
|
|
148
|
+
SliderRenderProps,
|
|
149
|
+
SliderThumbProps,
|
|
150
|
+
SliderTrackProps,
|
|
151
|
+
SliderTrackRenderProps,
|
|
152
|
+
SliderFillProps,
|
|
153
|
+
SliderFillRenderProps,
|
|
154
|
+
SliderThumbRenderProps,
|
|
155
|
+
} from './Slider';
|
|
156
|
+
export { Switch, SwitchField, SwitchButton, SwitchContext, SwitchFieldContext } from './Switch';
|
|
157
|
+
export type {
|
|
158
|
+
SwitchProps,
|
|
159
|
+
SwitchRenderProps,
|
|
160
|
+
SwitchFieldProps,
|
|
161
|
+
SwitchFieldRenderProps,
|
|
162
|
+
SwitchButtonProps,
|
|
163
|
+
SwitchButtonRenderProps,
|
|
164
|
+
} from './Switch';
|
|
165
|
+
export { Text, TextContext } from './Text';
|
|
166
|
+
export type { TextProps } from './Text';
|
|
167
|
+
export { TextArea, TextAreaContext } from './TextArea';
|
|
168
|
+
export type { TextAreaProps } from './TextArea';
|
|
169
|
+
export { TextField, TextFieldContext } from './TextField';
|
|
170
|
+
export type { TextFieldProps, TextFieldRenderProps } from './TextField';
|
|
171
|
+
export { ToggleButton, ToggleButtonContext } from './ToggleButton';
|
|
172
|
+
export type { ToggleButtonProps, ToggleButtonRenderProps } from './ToggleButton';
|
|
173
|
+
export {
|
|
174
|
+
ToggleButtonGroup,
|
|
175
|
+
ToggleButtonGroupContext,
|
|
176
|
+
ToggleGroupStateContext,
|
|
177
|
+
} from './ToggleButtonGroup';
|
|
178
|
+
export type { ToggleButtonGroupProps, ToggleButtonGroupRenderProps } from './ToggleButtonGroup';
|
|
179
|
+
export { Toolbar, ToolbarContext } from './Toolbar';
|
|
180
|
+
export type { ToolbarProps, ToolbarRenderProps } from './Toolbar';
|
|
181
|
+
export { TooltipTrigger, Tooltip, TooltipTriggerStateContext, TooltipContext } from './Tooltip';
|
|
182
|
+
export type { TooltipProps, TooltipRenderProps, TooltipTriggerComponentProps } from './Tooltip';
|
|
183
|
+
|
|
184
|
+
// collection components (Phase 5)
|
|
185
|
+
export {
|
|
186
|
+
Autocomplete,
|
|
187
|
+
AutocompleteContext,
|
|
188
|
+
AutocompleteStateContext,
|
|
189
|
+
SelectableCollectionContext,
|
|
190
|
+
FieldInputContext,
|
|
191
|
+
} from './Autocomplete';
|
|
192
|
+
export type { AutocompleteProps, SelectableCollectionContextValue } from './Autocomplete';
|
|
193
|
+
export {
|
|
194
|
+
ListBoxLoadMoreItem,
|
|
195
|
+
ListBox,
|
|
196
|
+
ListBoxItem,
|
|
197
|
+
ListBoxSection,
|
|
198
|
+
ListBoxContext,
|
|
199
|
+
ListStateContext,
|
|
200
|
+
} from './ListBox';
|
|
201
|
+
export type {
|
|
202
|
+
ListBoxProps,
|
|
203
|
+
ListBoxRenderProps,
|
|
204
|
+
ListBoxItemProps,
|
|
205
|
+
ListBoxItemRenderProps,
|
|
206
|
+
ListBoxSectionProps,
|
|
207
|
+
ListBoxLoadMoreItemProps,
|
|
208
|
+
} from './ListBox';
|
|
209
|
+
export {
|
|
210
|
+
Menu,
|
|
211
|
+
MenuItem,
|
|
212
|
+
MenuTrigger,
|
|
213
|
+
MenuSection,
|
|
214
|
+
MenuContext,
|
|
215
|
+
MenuStateContext,
|
|
216
|
+
RootMenuTriggerStateContext,
|
|
217
|
+
SubmenuTrigger,
|
|
218
|
+
} from './Menu';
|
|
219
|
+
export type {
|
|
220
|
+
MenuProps,
|
|
221
|
+
MenuItemProps,
|
|
222
|
+
MenuItemRenderProps,
|
|
223
|
+
MenuTriggerProps,
|
|
224
|
+
SubmenuTriggerProps,
|
|
225
|
+
MenuSectionProps,
|
|
226
|
+
} from './Menu';
|
|
227
|
+
export {
|
|
228
|
+
Select,
|
|
229
|
+
SelectValue,
|
|
230
|
+
SelectContext,
|
|
231
|
+
SelectValueContext,
|
|
232
|
+
SelectStateContext,
|
|
233
|
+
} from './Select';
|
|
234
|
+
export type {
|
|
235
|
+
SelectProps,
|
|
236
|
+
SelectValueProps,
|
|
237
|
+
SelectValueRenderProps,
|
|
238
|
+
SelectRenderProps,
|
|
239
|
+
} from './Select';
|
|
240
|
+
export {
|
|
241
|
+
ComboBox,
|
|
242
|
+
ComboBoxValue,
|
|
243
|
+
ComboBoxContext,
|
|
244
|
+
ComboBoxStateContext,
|
|
245
|
+
ComboBoxValueContext,
|
|
246
|
+
} from './ComboBox';
|
|
247
|
+
export type {
|
|
248
|
+
ComboBoxProps,
|
|
249
|
+
ComboBoxRenderProps,
|
|
250
|
+
ComboBoxValueProps,
|
|
251
|
+
ComboBoxValueRenderProps,
|
|
252
|
+
} from './ComboBox';
|
|
253
|
+
export { Tabs, TabList, TabPanels, TabPanel, Tab, TabsContext, TabListStateContext } from './Tabs';
|
|
254
|
+
export type {
|
|
255
|
+
TabListProps,
|
|
256
|
+
TabListRenderProps,
|
|
257
|
+
TabPanelsProps,
|
|
258
|
+
TabPanelProps,
|
|
259
|
+
TabPanelRenderProps,
|
|
260
|
+
TabProps,
|
|
261
|
+
TabsProps,
|
|
262
|
+
TabRenderProps,
|
|
263
|
+
TabsRenderProps,
|
|
264
|
+
} from './Tabs';
|
|
265
|
+
export { TagGroup, TagGroupContext, TagList, TagListContext, Tag } from './TagGroup';
|
|
266
|
+
export type {
|
|
267
|
+
TagGroupProps,
|
|
268
|
+
TagListProps,
|
|
269
|
+
TagListRenderProps,
|
|
270
|
+
TagProps,
|
|
271
|
+
TagRenderProps,
|
|
272
|
+
} from './TagGroup';
|
|
273
|
+
export {
|
|
274
|
+
GridListLoadMoreItem,
|
|
275
|
+
GridList,
|
|
276
|
+
GridListItem,
|
|
277
|
+
GridListContext,
|
|
278
|
+
GridListHeader,
|
|
279
|
+
GridListHeaderContext,
|
|
280
|
+
GridListSection,
|
|
281
|
+
} from './GridList';
|
|
282
|
+
export type {
|
|
283
|
+
GridListProps,
|
|
284
|
+
GridListRenderProps,
|
|
285
|
+
GridListItemProps,
|
|
286
|
+
GridListItemRenderProps,
|
|
287
|
+
GridListLoadMoreItemProps,
|
|
288
|
+
GridListSectionProps,
|
|
289
|
+
} from './GridList';
|
|
290
|
+
export { Breadcrumbs, BreadcrumbsContext, Breadcrumb } from './Breadcrumbs';
|
|
291
|
+
export type { BreadcrumbsProps, BreadcrumbProps, BreadcrumbRenderProps } from './Breadcrumbs';
|
|
292
|
+
export { DropIndicator, DropIndicatorContext, DragAndDropContext } from './DragAndDrop';
|
|
293
|
+
export type { DropIndicatorProps, DropIndicatorRenderProps } from './DragAndDrop';
|
|
294
|
+
export { useDragAndDrop } from './useDragAndDrop';
|
|
295
|
+
export type { DragAndDropHooks, DragAndDropOptions } from './useDragAndDrop';
|
|
296
|
+
|
|
297
|
+
// re-exports from the hooks surface, as upstream's index does
|
|
298
|
+
export { VisuallyHidden } from '../visually-hidden/VisuallyHidden';
|
|
299
|
+
export type { VisuallyHiddenProps } from '../visually-hidden/VisuallyHidden';
|
|
300
|
+
export type { Placement } from '../overlays/useOverlayPosition';
|
|
301
|
+
export { useFilter } from '../i18n/useFilter';
|
|
302
|
+
export type { Filter } from '../i18n/useFilter';
|