react-aria-components 1.0.0-alpha.5 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/import.mjs +1016 -364
- package/dist/main.js +1018 -360
- package/dist/main.js.map +1 -1
- package/dist/module.js +1016 -364
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +579 -141
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/Breadcrumbs.tsx +63 -37
- package/src/Button.tsx +7 -5
- package/src/Calendar.tsx +58 -12
- package/src/Checkbox.tsx +22 -16
- package/src/Collection.tsx +113 -30
- package/src/ComboBox.tsx +85 -24
- package/src/DateField.tsx +61 -18
- package/src/DatePicker.tsx +85 -13
- package/src/DropZone.tsx +15 -14
- package/src/FileTrigger.tsx +27 -25
- package/src/GridList.tsx +35 -7
- package/src/Group.tsx +2 -1
- package/src/Header.tsx +3 -3
- package/src/Input.tsx +23 -8
- package/src/Label.tsx +3 -3
- package/src/Link.tsx +7 -4
- package/src/ListBox.tsx +61 -21
- package/src/Menu.tsx +5 -10
- package/src/Meter.tsx +1 -1
- package/src/Modal.tsx +19 -11
- package/src/NumberField.tsx +32 -3
- package/src/OverlayArrow.tsx +4 -1
- package/src/Popover.tsx +13 -8
- package/src/ProgressBar.tsx +1 -1
- package/src/RadioGroup.tsx +74 -58
- package/src/SearchField.tsx +26 -5
- package/src/Select.tsx +94 -50
- package/src/Separator.tsx +4 -4
- package/src/Slider.tsx +63 -13
- package/src/Switch.tsx +8 -3
- package/src/Table.tsx +335 -54
- package/src/Tabs.tsx +107 -40
- package/src/TagGroup.tsx +34 -19
- package/src/Text.tsx +1 -1
- package/src/TextArea.tsx +48 -0
- package/src/TextField.tsx +49 -10
- package/src/ToggleButton.tsx +11 -4
- package/src/Tooltip.tsx +7 -2
- package/src/index.ts +19 -16
- package/src/utils.tsx +82 -13
package/dist/import.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {DIRECTORY_DRAG_TYPE as $67da31f5140672c4$re_export$DIRECTORY_DRAG_TYPE, isDirectoryDropItem as $67da31f5140672c4$re_export$isDirectoryDropItem, isFileDropItem as $67da31f5140672c4$re_export$isFileDropItem, isTextDropItem as $67da31f5140672c4$re_export$isTextDropItem, SSRProvider as $67da31f5140672c4$re_export$SSRProvider,
|
|
2
|
-
import {filterDOMProps as $dGqE5$filterDOMProps, useObjectRef as $dGqE5$useObjectRef, mergeRefs as $dGqE5$mergeRefs, mergeProps as $dGqE5$mergeProps1, useLayoutEffect as $dGqE5$useLayoutEffect, useResizeObserver as $dGqE5$useResizeObserver, useViewportSize as $dGqE5$useViewportSize, useLabels as $dGqE5$useLabels, isWebKit as $dGqE5$isWebKit, isIOS as $dGqE5$isIOS} from "@react-aria/utils";
|
|
3
|
-
import $dGqE5$react, {createContext as $dGqE5$createContext, forwardRef as $dGqE5$forwardRef, useMemo as $dGqE5$useMemo, cloneElement as $dGqE5$cloneElement, useCallback as $dGqE5$useCallback, useContext as $dGqE5$useContext, useEffect as $dGqE5$useEffect, useState as $dGqE5$useState
|
|
1
|
+
import {DIRECTORY_DRAG_TYPE as $67da31f5140672c4$re_export$DIRECTORY_DRAG_TYPE, isDirectoryDropItem as $67da31f5140672c4$re_export$isDirectoryDropItem, isFileDropItem as $67da31f5140672c4$re_export$isFileDropItem, isTextDropItem as $67da31f5140672c4$re_export$isTextDropItem, SSRProvider as $67da31f5140672c4$re_export$SSRProvider, useIsSSR as $dGqE5$useIsSSR, mergeProps as $dGqE5$mergeProps, useLink as $dGqE5$useLink, useHover as $dGqE5$useHover, useFocusRing as $dGqE5$useFocusRing, useButton as $dGqE5$useButton, useLocale as $dGqE5$useLocale, useCalendar as $dGqE5$useCalendar, VisuallyHidden as $dGqE5$VisuallyHidden, useRangeCalendar as $dGqE5$useRangeCalendar, useCalendarGrid as $dGqE5$useCalendarGrid, useCalendarCell as $dGqE5$useCalendarCell, useCheckboxGroup as $dGqE5$useCheckboxGroup, useCheckboxGroupItem as $dGqE5$useCheckboxGroupItem, useCheckbox as $dGqE5$useCheckbox, usePress as $dGqE5$usePress, useFilter as $dGqE5$useFilter, useComboBox as $dGqE5$useComboBox, ListKeyboardDelegate as $dGqE5$ListKeyboardDelegate, useListBox as $dGqE5$useListBox, FocusScope as $dGqE5$FocusScope, useListBoxSection as $dGqE5$useListBoxSection, useOption as $dGqE5$useOption, useDraggableCollection as $dGqE5$useDraggableCollection, useDraggableItem as $dGqE5$useDraggableItem, DragPreview as $dGqE5$DragPreview, useDroppableItem as $dGqE5$useDroppableItem, useDroppableCollection as $dGqE5$useDroppableCollection, useDropIndicator as $dGqE5$useDropIndicator, ListDropTargetDelegate as $dGqE5$ListDropTargetDelegate, useSeparator as $dGqE5$useSeparator, usePopover as $dGqE5$usePopover, Overlay as $dGqE5$Overlay, DismissButton as $dGqE5$DismissButton, useDateField as $dGqE5$useDateField, useTimeField as $dGqE5$useTimeField, useDateSegment as $dGqE5$useDateSegment, useDatePicker as $dGqE5$useDatePicker, useDateRangePicker as $dGqE5$useDateRangePicker, useOverlayTrigger as $dGqE5$useOverlayTrigger, useDialog as $dGqE5$useDialog, useModalOverlay as $dGqE5$useModalOverlay, useDrop as $dGqE5$useDrop, useClipboard as $dGqE5$useClipboard, useGridList as $dGqE5$useGridList, useGridListItem as $dGqE5$useGridListItem, useGridListSelectionCheckbox as $dGqE5$useGridListSelectionCheckbox, useVisuallyHidden as $dGqE5$useVisuallyHidden, useMenuTrigger as $dGqE5$useMenuTrigger, useMenu as $dGqE5$useMenu, useMenuSection as $dGqE5$useMenuSection, useMenuItem as $dGqE5$useMenuItem, useMeter as $dGqE5$useMeter, useNumberField as $dGqE5$useNumberField, useProgressBar as $dGqE5$useProgressBar, useRadioGroup as $dGqE5$useRadioGroup, useRadio as $dGqE5$useRadio, useSearchField as $dGqE5$useSearchField, useSelect as $dGqE5$useSelect, HiddenSelect as $dGqE5$HiddenSelect, useNumberFormatter as $dGqE5$useNumberFormatter, useSlider as $dGqE5$useSlider, useSliderThumb as $dGqE5$useSliderThumb, useSwitch as $dGqE5$useSwitch, useTable as $dGqE5$useTable, useTableRowGroup as $dGqE5$useTableRowGroup, useTableHeaderRow as $dGqE5$useTableHeaderRow, useTableSelectAllCheckbox as $dGqE5$useTableSelectAllCheckbox, useTableColumnHeader as $dGqE5$useTableColumnHeader, useTableColumnResize as $dGqE5$useTableColumnResize, useTableRow as $dGqE5$useTableRow, useTableSelectionCheckbox as $dGqE5$useTableSelectionCheckbox, useTableCell as $dGqE5$useTableCell, useTabList as $dGqE5$useTabList, useTab as $dGqE5$useTab, useTabPanel as $dGqE5$useTabPanel, useTagGroup as $dGqE5$useTagGroup, useTag as $dGqE5$useTag, useTextField as $dGqE5$useTextField, useToggleButton as $dGqE5$useToggleButton, useTooltipTrigger as $dGqE5$useTooltipTrigger, OverlayContainer as $dGqE5$OverlayContainer, useOverlayPosition as $dGqE5$useOverlayPosition, useTooltip as $dGqE5$useTooltip} from "react-aria";
|
|
2
|
+
import {filterDOMProps as $dGqE5$filterDOMProps, useObjectRef as $dGqE5$useObjectRef, mergeRefs as $dGqE5$mergeRefs, mergeProps as $dGqE5$mergeProps1, useLayoutEffect as $dGqE5$useLayoutEffect, useResizeObserver as $dGqE5$useResizeObserver, useViewportSize as $dGqE5$useViewportSize, useSlotId as $dGqE5$useSlotId, useLabels as $dGqE5$useLabels, isWebKit as $dGqE5$isWebKit, isIOS as $dGqE5$isIOS} from "@react-aria/utils";
|
|
3
|
+
import $dGqE5$react, {createContext as $dGqE5$createContext, forwardRef as $dGqE5$forwardRef, useMemo as $dGqE5$useMemo, cloneElement as $dGqE5$cloneElement, useRef as $dGqE5$useRef, useCallback as $dGqE5$useCallback, useContext as $dGqE5$useContext, useEffect as $dGqE5$useEffect, useState as $dGqE5$useState} from "react";
|
|
4
4
|
import $dGqE5$reactdom, {createPortal as $dGqE5$createPortal} from "react-dom";
|
|
5
5
|
import {useSyncExternalStore as $dGqE5$useSyncExternalStore} from "use-sync-external-store/shim/index.js";
|
|
6
6
|
import {createCalendar as $dGqE5$createCalendar, endOfMonth as $dGqE5$endOfMonth, getWeeksInMonth as $dGqE5$getWeeksInMonth, isSameMonth as $dGqE5$isSameMonth, isSameDay as $dGqE5$isSameDay} from "@internationalized/date";
|
|
7
|
-
import {useCalendarState as $dGqE5$useCalendarState, useRangeCalendarState as $dGqE5$useRangeCalendarState, useCheckboxGroupState as $dGqE5$useCheckboxGroupState, useToggleState as $dGqE5$useToggleState, useComboBoxState as $dGqE5$useComboBoxState, useListState as $dGqE5$useListState, useDraggableCollectionState as $dGqE5$useDraggableCollectionState, useDroppableCollectionState as $dGqE5$useDroppableCollectionState, useOverlayTriggerState as $dGqE5$useOverlayTriggerState, useDateFieldState as $dGqE5$useDateFieldState, useTimeFieldState as $dGqE5$useTimeFieldState, useDatePickerState as $dGqE5$useDatePickerState, useDateRangePickerState as $dGqE5$useDateRangePickerState, useMenuTriggerState as $dGqE5$useMenuTriggerState, useTreeState as $dGqE5$useTreeState, useNumberFieldState as $dGqE5$useNumberFieldState, useRadioGroupState as $dGqE5$useRadioGroupState, useSearchFieldState as $dGqE5$useSearchFieldState, useSelectState as $dGqE5$useSelectState, useSliderState as $dGqE5$useSliderState, useTableState as $dGqE5$useTableState, useTabListState as $dGqE5$useTabListState, useTooltipTriggerState as $dGqE5$useTooltipTriggerState} from "react-stately";
|
|
7
|
+
import {useCalendarState as $dGqE5$useCalendarState, useRangeCalendarState as $dGqE5$useRangeCalendarState, useCheckboxGroupState as $dGqE5$useCheckboxGroupState, useToggleState as $dGqE5$useToggleState, useComboBoxState as $dGqE5$useComboBoxState, useListState as $dGqE5$useListState, useDraggableCollectionState as $dGqE5$useDraggableCollectionState, useDroppableCollectionState as $dGqE5$useDroppableCollectionState, useOverlayTriggerState as $dGqE5$useOverlayTriggerState, useDateFieldState as $dGqE5$useDateFieldState, useTimeFieldState as $dGqE5$useTimeFieldState, useDatePickerState as $dGqE5$useDatePickerState, useDateRangePickerState as $dGqE5$useDateRangePickerState, useMenuTriggerState as $dGqE5$useMenuTriggerState, useTreeState as $dGqE5$useTreeState, useNumberFieldState as $dGqE5$useNumberFieldState, useRadioGroupState as $dGqE5$useRadioGroupState, useSearchFieldState as $dGqE5$useSearchFieldState, useSelectState as $dGqE5$useSelectState, useSliderState as $dGqE5$useSliderState, useTableColumnResizeState as $dGqE5$useTableColumnResizeState, useTableState as $dGqE5$useTableState, useTabListState as $dGqE5$useTabListState, useTooltipTriggerState as $dGqE5$useTooltipTriggerState} from "react-stately";
|
|
8
8
|
import {PressResponder as $dGqE5$PressResponder} from "@react-aria/interactions";
|
|
9
9
|
import {buildHeaderRows as $dGqE5$buildHeaderRows} from "@react-stately/table";
|
|
10
10
|
import {FocusableProvider as $dGqE5$FocusableProvider} from "@react-aria/focus";
|
|
@@ -29,8 +29,7 @@ import {FocusableProvider as $dGqE5$FocusableProvider} from "@react-aria/focus";
|
|
|
29
29
|
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
30
30
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
31
31
|
* governing permissions and limitations under the License.
|
|
32
|
-
*/
|
|
33
|
-
/*
|
|
32
|
+
*/ /*
|
|
34
33
|
* Copyright 2022 Adobe. All rights reserved.
|
|
35
34
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
36
35
|
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
@@ -202,7 +201,6 @@ class $7135fc7d473fd974$export$f5d856d854e74713 {
|
|
|
202
201
|
this.ownerDocument = ownerDocument;
|
|
203
202
|
}
|
|
204
203
|
}
|
|
205
|
-
let $7135fc7d473fd974$var$id = 0;
|
|
206
204
|
class $7135fc7d473fd974$export$dc064fe9e59310fd extends $7135fc7d473fd974$var$BaseNode {
|
|
207
205
|
get index() {
|
|
208
206
|
return this._index;
|
|
@@ -265,7 +263,7 @@ class $7135fc7d473fd974$export$dc064fe9e59310fd extends $7135fc7d473fd974$var$Ba
|
|
|
265
263
|
;
|
|
266
264
|
this._index = 0;
|
|
267
265
|
this.hasSetProps = false;
|
|
268
|
-
this.node = new $7135fc7d473fd974$export$f5d856d854e74713(type, `react-aria-${
|
|
266
|
+
this.node = new $7135fc7d473fd974$export$f5d856d854e74713(type, `react-aria-${++ownerDocument.nodeId}`);
|
|
269
267
|
// Start a transaction so that no updates are emitted from the collection
|
|
270
268
|
// until the props for this node are set. We don't know the real id for the
|
|
271
269
|
// node until then, so we need to avoid emitting collections in an inconsistent state.
|
|
@@ -356,11 +354,11 @@ class $7135fc7d473fd974$export$408d25a4e12db025 {
|
|
|
356
354
|
if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
|
|
357
355
|
this.keyMap.delete(key);
|
|
358
356
|
}
|
|
359
|
-
commit(firstKey, lastKey) {
|
|
357
|
+
commit(firstKey, lastKey, isSSR = false) {
|
|
360
358
|
if (this.frozen) throw new Error("Cannot commit a frozen collection");
|
|
361
359
|
this.firstKey = firstKey;
|
|
362
360
|
this.lastKey = lastKey;
|
|
363
|
-
this.frozen =
|
|
361
|
+
this.frozen = !isSSR;
|
|
364
362
|
}
|
|
365
363
|
constructor(){
|
|
366
364
|
this.keyMap = new Map();
|
|
@@ -387,7 +385,7 @@ class $7135fc7d473fd974$export$b34a105447964f9f extends $7135fc7d473fd974$var$Ba
|
|
|
387
385
|
return node;
|
|
388
386
|
}
|
|
389
387
|
getMutableCollection() {
|
|
390
|
-
if (!this.collectionMutated) {
|
|
388
|
+
if (!this.isSSR && !this.collectionMutated) {
|
|
391
389
|
this.collection = this.collection.clone();
|
|
392
390
|
this.collectionMutated = true;
|
|
393
391
|
}
|
|
@@ -421,6 +419,10 @@ class $7135fc7d473fd974$export$b34a105447964f9f extends $7135fc7d473fd974$var$Ba
|
|
|
421
419
|
}
|
|
422
420
|
/** Finalizes the collection update, updating all nodes and freezing the collection. */ getCollection() {
|
|
423
421
|
if (this.transactionCount > 0) return this.collection;
|
|
422
|
+
this.updateCollection();
|
|
423
|
+
return this.collection;
|
|
424
|
+
}
|
|
425
|
+
updateCollection() {
|
|
424
426
|
for (let element of this.dirtyNodes)if (element instanceof $7135fc7d473fd974$export$dc064fe9e59310fd && element.parentNode) element.updateNode();
|
|
425
427
|
this.dirtyNodes.clear();
|
|
426
428
|
if (this.mutatedNodes.size) {
|
|
@@ -428,11 +430,10 @@ class $7135fc7d473fd974$export$b34a105447964f9f extends $7135fc7d473fd974$var$Ba
|
|
|
428
430
|
let collection = this.getMutableCollection();
|
|
429
431
|
for (let element of this.mutatedNodes)if (element.parentNode) collection.addNode(element.node);
|
|
430
432
|
var _this_firstChild_node_key, _this_lastChild_node_key;
|
|
431
|
-
collection.commit((_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null, (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null);
|
|
433
|
+
collection.commit((_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null, (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null, this.isSSR);
|
|
432
434
|
this.mutatedNodes.clear();
|
|
433
435
|
}
|
|
434
436
|
this.collectionMutated = false;
|
|
435
|
-
return this.collection;
|
|
436
437
|
}
|
|
437
438
|
queueUpdate() {
|
|
438
439
|
// Don't emit any updates if there is a transaction in progress.
|
|
@@ -444,6 +445,14 @@ class $7135fc7d473fd974$export$b34a105447964f9f extends $7135fc7d473fd974$var$Ba
|
|
|
444
445
|
this.subscriptions.add(fn);
|
|
445
446
|
return ()=>this.subscriptions.delete(fn);
|
|
446
447
|
}
|
|
448
|
+
resetAfterSSR() {
|
|
449
|
+
if (this.isSSR) {
|
|
450
|
+
this.isSSR = false;
|
|
451
|
+
this.firstChild = null;
|
|
452
|
+
this.lastChild = null;
|
|
453
|
+
this.nodeId = 0;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
447
456
|
constructor(collection){
|
|
448
457
|
// @ts-ignore
|
|
449
458
|
super(null);
|
|
@@ -451,6 +460,9 @@ class $7135fc7d473fd974$export$b34a105447964f9f extends $7135fc7d473fd974$var$Ba
|
|
|
451
460
|
;
|
|
452
461
|
this.ownerDocument = this;
|
|
453
462
|
this.dirtyNodes = new Set();
|
|
463
|
+
this.isSSR = false;
|
|
464
|
+
this.nodeId = 0;
|
|
465
|
+
this.nodesByProps = new WeakMap();
|
|
454
466
|
this.mutatedNodes = new Set();
|
|
455
467
|
this.subscriptions = new Set();
|
|
456
468
|
this.transactionCount = 0;
|
|
@@ -514,6 +526,25 @@ function $7135fc7d473fd974$export$6cd28814d92fa9c9(props, initialCollection) {
|
|
|
514
526
|
collection: collection
|
|
515
527
|
};
|
|
516
528
|
}
|
|
529
|
+
// React 16 and 17 don't support useSyncExternalStore natively, and the shim provided by React does not support getServerSnapshot.
|
|
530
|
+
// This wrapper uses the shim, but additionally calls getServerSnapshot during SSR (according to SSRProvider).
|
|
531
|
+
function $7135fc7d473fd974$var$useSyncExternalStoreFallback(subscribe, getSnapshot, getServerSnapshot) {
|
|
532
|
+
let isSSR = (0, $dGqE5$useIsSSR)();
|
|
533
|
+
let isSSRRef = (0, $dGqE5$useRef)(isSSR);
|
|
534
|
+
// This is read immediately inside the wrapper, which also runs during render.
|
|
535
|
+
// We just need a ref to avoid invalidating the callback itself, which
|
|
536
|
+
// would cause React to re-run the callback more than necessary.
|
|
537
|
+
// eslint-disable-next-line rulesdir/pure-render
|
|
538
|
+
isSSRRef.current = isSSR;
|
|
539
|
+
let getSnapshotWrapper = (0, $dGqE5$useCallback)(()=>{
|
|
540
|
+
return isSSRRef.current ? getServerSnapshot() : getSnapshot();
|
|
541
|
+
}, [
|
|
542
|
+
getSnapshot,
|
|
543
|
+
getServerSnapshot
|
|
544
|
+
]);
|
|
545
|
+
return (0, $dGqE5$useSyncExternalStore)(subscribe, getSnapshotWrapper);
|
|
546
|
+
}
|
|
547
|
+
const $7135fc7d473fd974$var$useSyncExternalStore = typeof (0, $dGqE5$react)["useSyncExternalStore"] === "function" ? (0, $dGqE5$react)["useSyncExternalStore"] : $7135fc7d473fd974$var$useSyncExternalStoreFallback;
|
|
517
548
|
function $7135fc7d473fd974$export$7cd71aa5ddd6dc4e(initialCollection) {
|
|
518
549
|
// The document instance is mutable, and should never change between renders.
|
|
519
550
|
// useSyncExternalStore is used to subscribe to updates, which vends immutable Collection objects.
|
|
@@ -523,15 +554,29 @@ function $7135fc7d473fd974$export$7cd71aa5ddd6dc4e(initialCollection) {
|
|
|
523
554
|
let subscribe = (0, $dGqE5$useCallback)((fn)=>document.subscribe(fn), [
|
|
524
555
|
document
|
|
525
556
|
]);
|
|
526
|
-
let getSnapshot = (0, $dGqE5$useCallback)(()=>
|
|
557
|
+
let getSnapshot = (0, $dGqE5$useCallback)(()=>{
|
|
558
|
+
let collection = document.getCollection();
|
|
559
|
+
if (document.isSSR) // After SSR is complete, reset the document to empty so it is ready for React to render the portal into.
|
|
560
|
+
// We do this _after_ getting the collection above so that the collection still has content in it from SSR
|
|
561
|
+
// during the current render, before React has finished the client render.
|
|
562
|
+
document.resetAfterSSR();
|
|
563
|
+
return collection;
|
|
564
|
+
}, [
|
|
565
|
+
document
|
|
566
|
+
]);
|
|
567
|
+
let getServerSnapshot = (0, $dGqE5$useCallback)(()=>{
|
|
568
|
+
document.isSSR = true;
|
|
569
|
+
return document.getCollection();
|
|
570
|
+
}, [
|
|
527
571
|
document
|
|
528
572
|
]);
|
|
529
|
-
let collection =
|
|
573
|
+
let collection = $7135fc7d473fd974$var$useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
530
574
|
return {
|
|
531
575
|
collection: collection,
|
|
532
576
|
document: document
|
|
533
577
|
};
|
|
534
578
|
}
|
|
579
|
+
const $7135fc7d473fd974$var$SSRContext = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
535
580
|
function $7135fc7d473fd974$export$ad42d5efb4461b31(props, document) {
|
|
536
581
|
let children = $7135fc7d473fd974$export$901dbff4e54a6dd0(props);
|
|
537
582
|
let wrappedChildren = (0, $dGqE5$useMemo)(()=>/*#__PURE__*/ (0, $dGqE5$react).createElement($7135fc7d473fd974$var$ShallowRenderContext.Provider, {
|
|
@@ -539,15 +584,18 @@ function $7135fc7d473fd974$export$ad42d5efb4461b31(props, document) {
|
|
|
539
584
|
}, children), [
|
|
540
585
|
children
|
|
541
586
|
]);
|
|
542
|
-
|
|
587
|
+
// During SSR, we render the content directly, and append nodes to the document during render.
|
|
588
|
+
// The collection children return null so that nothing is actually rendered into the HTML.
|
|
589
|
+
return (0, $dGqE5$useIsSSR)() ? /*#__PURE__*/ (0, $dGqE5$react).createElement($7135fc7d473fd974$var$SSRContext.Provider, {
|
|
590
|
+
value: document
|
|
591
|
+
}, wrappedChildren) : /*#__PURE__*/ (0, $dGqE5$createPortal)(wrappedChildren, document);
|
|
543
592
|
}
|
|
544
593
|
function $7135fc7d473fd974$export$aeba0b1fb3dcd8b8(Element, props, ref) {
|
|
545
594
|
let isShallow = (0, $dGqE5$useContext)($7135fc7d473fd974$var$ShallowRenderContext);
|
|
546
|
-
|
|
547
|
-
if (isShallow) //
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
});
|
|
595
|
+
var _useSSRCollectionNode;
|
|
596
|
+
if (isShallow) // Elements cannot be re-parented, so the context will always be there.
|
|
597
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
598
|
+
return (_useSSRCollectionNode = $7135fc7d473fd974$export$e7c29ae2353b16ea(Element, props, ref, props.children)) !== null && _useSSRCollectionNode !== void 0 ? _useSSRCollectionNode : /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null);
|
|
551
599
|
return null;
|
|
552
600
|
}
|
|
553
601
|
function $7135fc7d473fd974$export$636783d3732b5559(props, ref, rendered) {
|
|
@@ -560,19 +608,40 @@ function $7135fc7d473fd974$export$636783d3732b5559(props, ref, rendered) {
|
|
|
560
608
|
rendered
|
|
561
609
|
]);
|
|
562
610
|
}
|
|
563
|
-
function $7135fc7d473fd974$
|
|
611
|
+
function $7135fc7d473fd974$export$e7c29ae2353b16ea(Type, props, ref, rendered, children) {
|
|
612
|
+
// During SSR, portals are not supported, so the collection children will be wrapped in an SSRContext.
|
|
613
|
+
// Since SSR occurs only once, we assume that the elements are rendered in order and never re-render.
|
|
614
|
+
// Therefore we can create elements in our collection document during render so that they are in the
|
|
615
|
+
// collection by the time we need to use the collection to render to the real DOM.
|
|
616
|
+
// After hydration, we switch to client rendering using the portal.
|
|
617
|
+
let itemRef = $7135fc7d473fd974$export$636783d3732b5559(props, ref, rendered);
|
|
618
|
+
let parentNode = (0, $dGqE5$useContext)($7135fc7d473fd974$var$SSRContext);
|
|
619
|
+
if (parentNode) {
|
|
620
|
+
// Guard against double rendering in strict mode.
|
|
621
|
+
let element = parentNode.ownerDocument.nodesByProps.get(props);
|
|
622
|
+
if (!element) {
|
|
623
|
+
element = parentNode.ownerDocument.createElement(Type);
|
|
624
|
+
element.setProps(props, ref, rendered);
|
|
625
|
+
parentNode.appendChild(element);
|
|
626
|
+
parentNode.ownerDocument.updateCollection();
|
|
627
|
+
parentNode.ownerDocument.nodesByProps.set(props, element);
|
|
628
|
+
}
|
|
629
|
+
return children ? /*#__PURE__*/ (0, $dGqE5$react).createElement($7135fc7d473fd974$var$SSRContext.Provider, {
|
|
630
|
+
value: element
|
|
631
|
+
}, children) : null;
|
|
632
|
+
}
|
|
564
633
|
// @ts-ignore
|
|
565
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement(
|
|
566
|
-
ref:
|
|
567
|
-
});
|
|
634
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement(Type, {
|
|
635
|
+
ref: itemRef
|
|
636
|
+
}, children);
|
|
637
|
+
}
|
|
638
|
+
function $7135fc7d473fd974$var$Item(props, ref) {
|
|
639
|
+
return $7135fc7d473fd974$export$e7c29ae2353b16ea("item", props, ref, props.children);
|
|
568
640
|
}
|
|
569
641
|
const $7135fc7d473fd974$export$6d08773d2e66f8f2 = /*#__PURE__*/ (0, $dGqE5$forwardRef)($7135fc7d473fd974$var$Item);
|
|
570
642
|
function $7135fc7d473fd974$var$Section(props, ref) {
|
|
571
643
|
let children = $7135fc7d473fd974$export$901dbff4e54a6dd0(props);
|
|
572
|
-
|
|
573
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement("section", {
|
|
574
|
-
ref: $7135fc7d473fd974$export$636783d3732b5559(props, ref)
|
|
575
|
-
}, children);
|
|
644
|
+
return $7135fc7d473fd974$export$e7c29ae2353b16ea("section", props, ref, null, children);
|
|
576
645
|
}
|
|
577
646
|
const $7135fc7d473fd974$export$6e2c8f0811a474ce = /*#__PURE__*/ (0, $dGqE5$forwardRef)($7135fc7d473fd974$var$Section);
|
|
578
647
|
const $7135fc7d473fd974$export$db36075d98ba73d3 = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
@@ -600,6 +669,7 @@ function $7135fc7d473fd974$export$fb8073518f34e6ec(props) {
|
|
|
600
669
|
*/
|
|
601
670
|
|
|
602
671
|
|
|
672
|
+
|
|
603
673
|
const $64fa3d84918910a7$export$91172ebb93c441a2 = Symbol("callback");
|
|
604
674
|
const $64fa3d84918910a7$export$8e0ef2c5844bfb6b = Symbol("default");
|
|
605
675
|
function $64fa3d84918910a7$export$2881499e37b75b9a({ values: values , children: children }) {
|
|
@@ -625,7 +695,8 @@ function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
|
|
|
625
695
|
return {
|
|
626
696
|
className: computedClassName !== null && computedClassName !== void 0 ? computedClassName : defaultClassName,
|
|
627
697
|
style: computedStyle,
|
|
628
|
-
children: computedChildren
|
|
698
|
+
children: computedChildren,
|
|
699
|
+
"data-rac": ""
|
|
629
700
|
};
|
|
630
701
|
}, [
|
|
631
702
|
className,
|
|
@@ -636,15 +707,20 @@ function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
|
|
|
636
707
|
values
|
|
637
708
|
]);
|
|
638
709
|
}
|
|
639
|
-
function $64fa3d84918910a7$export$
|
|
640
|
-
let ctx = (0, $dGqE5$useContext)(context)
|
|
641
|
-
if ("slots" in ctx && ctx.slots) {
|
|
642
|
-
if (!
|
|
643
|
-
let
|
|
644
|
-
if (!ctx.slots[
|
|
645
|
-
throw new Error(`Invalid slot "${
|
|
646
|
-
|
|
710
|
+
function $64fa3d84918910a7$export$fabf2dc03a41866e(context, slot) {
|
|
711
|
+
let ctx = (0, $dGqE5$useContext)(context);
|
|
712
|
+
if (ctx && "slots" in ctx && ctx.slots) {
|
|
713
|
+
if (!slot && !ctx.slots[$64fa3d84918910a7$export$8e0ef2c5844bfb6b]) throw new Error("A slot prop is required");
|
|
714
|
+
let slotKey = slot || $64fa3d84918910a7$export$8e0ef2c5844bfb6b;
|
|
715
|
+
if (!ctx.slots[slotKey]) // @ts-ignore
|
|
716
|
+
throw new Error(`Invalid slot "${slot}". Valid slot names are ` + new Intl.ListFormat().format(Object.keys(ctx.slots).map((p)=>`"${p}"`)) + ".");
|
|
717
|
+
return ctx.slots[slotKey];
|
|
647
718
|
}
|
|
719
|
+
// @ts-ignore
|
|
720
|
+
return ctx;
|
|
721
|
+
}
|
|
722
|
+
function $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, context) {
|
|
723
|
+
let ctx = $64fa3d84918910a7$export$fabf2dc03a41866e(context, props.slot) || {};
|
|
648
724
|
// @ts-ignore - TS says "Type 'unique symbol' cannot be used as an index type." but not sure why.
|
|
649
725
|
let { ref: contextRef , [$64fa3d84918910a7$export$91172ebb93c441a2]: callback , ...contextProps } = ctx;
|
|
650
726
|
let mergedRef = (0, $dGqE5$useObjectRef)((0, $dGqE5$useMemo)(()=>(0, $dGqE5$mergeRefs)(ref, contextRef), [
|
|
@@ -740,33 +816,51 @@ function $64fa3d84918910a7$var$useAnimation(ref, isActive, onEnd) {
|
|
|
740
816
|
onEnd
|
|
741
817
|
]);
|
|
742
818
|
}
|
|
819
|
+
// React doesn't understand the <template> element, which doesn't have children like a normal element.
|
|
820
|
+
// It will throw an error during hydration when it expects the firstChild to contain content rendered
|
|
821
|
+
// on the server, when in reality, the browser will have placed this inside the `content` document fragment.
|
|
822
|
+
// This monkey patches the firstChild property for our special hidden template elements to work around this error.
|
|
823
|
+
// See https://github.com/facebook/react/issues/19932
|
|
824
|
+
if (typeof HTMLTemplateElement !== "undefined") {
|
|
825
|
+
const getFirstChild = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild").get;
|
|
826
|
+
Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
|
|
827
|
+
configurable: true,
|
|
828
|
+
enumerable: true,
|
|
829
|
+
get: function() {
|
|
830
|
+
if (this.dataset.reactAriaHidden) return this.content.firstChild;
|
|
831
|
+
else return getFirstChild.call(this);
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
}
|
|
743
835
|
const $64fa3d84918910a7$export$94b6d0abf7d33e8c = /*#__PURE__*/ (0, $dGqE5$createContext)(false);
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
*/
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
function $5cb03073d3f54797$var$Heading(props, ref) {
|
|
761
|
-
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $5cb03073d3f54797$export$d688439359537581);
|
|
762
|
-
let { children: children , level: level = 3 , className: className , ...domProps } = props;
|
|
763
|
-
let Element = `h${level}`;
|
|
764
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement(Element, {
|
|
765
|
-
...domProps,
|
|
766
|
-
className: className !== null && className !== void 0 ? className : "react-aria-Heading"
|
|
767
|
-
}, children);
|
|
836
|
+
// Portal to nowhere
|
|
837
|
+
const $64fa3d84918910a7$var$hiddenFragment = typeof DocumentFragment !== "undefined" ? new DocumentFragment() : null;
|
|
838
|
+
function $64fa3d84918910a7$export$8dc98ba7eadeaa56(props) {
|
|
839
|
+
let isHidden = (0, $dGqE5$useContext)($64fa3d84918910a7$export$94b6d0abf7d33e8c);
|
|
840
|
+
let isSSR = (0, $dGqE5$useIsSSR)();
|
|
841
|
+
if (isHidden) // Don't hide again if we are already hidden.
|
|
842
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null, props.children);
|
|
843
|
+
let children = /*#__PURE__*/ (0, $dGqE5$react).createElement($64fa3d84918910a7$export$94b6d0abf7d33e8c.Provider, {
|
|
844
|
+
value: true
|
|
845
|
+
}, props.children);
|
|
846
|
+
// In SSR, portals are not supported by React. Instead, render into a <template>
|
|
847
|
+
// element, which the browser will never display to the user. In addition, the
|
|
848
|
+
// content is not part of the DOM tree, so it won't affect ids or other accessibility attributes.
|
|
849
|
+
return isSSR ? /*#__PURE__*/ (0, $dGqE5$react).createElement("template", {
|
|
850
|
+
"data-react-aria-hidden": true
|
|
851
|
+
}, children) : /*#__PURE__*/ (0, $dGqE5$reactdom).createPortal(children, $64fa3d84918910a7$var$hiddenFragment);
|
|
768
852
|
}
|
|
769
|
-
|
|
853
|
+
function $64fa3d84918910a7$export$86427a43e3e48ebb(fn) {
|
|
854
|
+
let Wrapper = (props, ref)=>{
|
|
855
|
+
let isHidden = (0, $dGqE5$useContext)($64fa3d84918910a7$export$94b6d0abf7d33e8c);
|
|
856
|
+
if (isHidden) return null;
|
|
857
|
+
return fn(props, ref);
|
|
858
|
+
};
|
|
859
|
+
// @ts-ignore - for react dev tools
|
|
860
|
+
Wrapper.displayName = fn.displayName || fn.name;
|
|
861
|
+
return (0, $dGqE5$react).forwardRef(Wrapper);
|
|
862
|
+
}
|
|
863
|
+
|
|
770
864
|
|
|
771
865
|
|
|
772
866
|
/*
|
|
@@ -816,9 +910,12 @@ function $4f118338184dc1d9$var$Link(props, ref) {
|
|
|
816
910
|
slot: props.slot,
|
|
817
911
|
...(0, $dGqE5$mergeProps)(DOMProps, renderProps, linkProps, hoverProps, focusProps, {
|
|
818
912
|
children: element.props.children,
|
|
913
|
+
"data-focused": isFocused || undefined,
|
|
819
914
|
"data-hovered": isHovered || undefined,
|
|
820
915
|
"data-pressed": isPressed || undefined,
|
|
821
|
-
"data-focus-visible": isFocusVisible || undefined
|
|
916
|
+
"data-focus-visible": isFocusVisible || undefined,
|
|
917
|
+
"data-current": !!props["aria-current"] || undefined,
|
|
918
|
+
"data-disabled": props.isDisabled || undefined
|
|
822
919
|
}, element.props)
|
|
823
920
|
});
|
|
824
921
|
}
|
|
@@ -832,53 +929,59 @@ function $4f118338184dc1d9$var$Link(props, ref) {
|
|
|
832
929
|
const $778035c5624f61e7$export$65596d3621b0a4a0 = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
833
930
|
function $778035c5624f61e7$var$Breadcrumbs(props, ref) {
|
|
834
931
|
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $778035c5624f61e7$export$65596d3621b0a4a0);
|
|
835
|
-
let { navProps: navProps } = (0, $dGqE5$useBreadcrumbs)(props);
|
|
836
932
|
let { portal: portal , collection: collection } = (0, $7135fc7d473fd974$export$6cd28814d92fa9c9)(props);
|
|
933
|
+
// Render the portal first so that we have the collection by the time we render the DOM in SSR
|
|
934
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null, portal, /*#__PURE__*/ (0, $dGqE5$react).createElement($778035c5624f61e7$var$BreadcrumbsInner, {
|
|
935
|
+
props: props,
|
|
936
|
+
collection: collection,
|
|
937
|
+
breadcrumbsRef: ref
|
|
938
|
+
}));
|
|
939
|
+
}
|
|
940
|
+
function $778035c5624f61e7$var$BreadcrumbsInner({ props: props , collection: collection , breadcrumbsRef: ref }) {
|
|
837
941
|
var _props_className;
|
|
838
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement("
|
|
942
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement("ol", {
|
|
839
943
|
ref: ref,
|
|
840
|
-
...(0, $dGqE5$filterDOMProps)(props
|
|
841
|
-
|
|
944
|
+
...(0, $dGqE5$filterDOMProps)(props, {
|
|
945
|
+
labelable: true
|
|
946
|
+
}),
|
|
842
947
|
slot: props.slot,
|
|
843
948
|
style: props.style,
|
|
844
949
|
className: (_props_className = props.className) !== null && _props_className !== void 0 ? _props_className : "react-aria-Breadcrumbs"
|
|
845
|
-
},
|
|
950
|
+
}, [
|
|
846
951
|
...collection
|
|
847
952
|
].map((node, i)=>/*#__PURE__*/ (0, $dGqE5$react).createElement($778035c5624f61e7$var$BreadcrumbItem, {
|
|
848
953
|
key: node.key,
|
|
849
954
|
node: node,
|
|
850
955
|
isCurrent: i === collection.size - 1,
|
|
851
|
-
isDisabled: props.isDisabled
|
|
852
|
-
|
|
956
|
+
isDisabled: props.isDisabled,
|
|
957
|
+
onAction: props.onAction
|
|
958
|
+
})));
|
|
853
959
|
}
|
|
854
960
|
/**
|
|
855
961
|
* Breadcrumbs display a heirarchy of links to the current page or resource in an application.
|
|
856
962
|
*/ const $778035c5624f61e7$export$2dc68d50d56fbbd = /*#__PURE__*/ (0, $dGqE5$forwardRef)($778035c5624f61e7$var$Breadcrumbs);
|
|
857
|
-
function $778035c5624f61e7$var$
|
|
963
|
+
function $778035c5624f61e7$var$Breadcrumb(props, ref) {
|
|
964
|
+
return (0, $7135fc7d473fd974$export$e7c29ae2353b16ea)("item", props, ref, props.children);
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* A Breadcrumb represents an individual item in a `<Breadcrumbs>` list.
|
|
968
|
+
*/ const $778035c5624f61e7$export$dabcc1ec9dd9d1cc = /*#__PURE__*/ (0, $dGqE5$forwardRef)($778035c5624f61e7$var$Breadcrumb);
|
|
969
|
+
function $778035c5624f61e7$var$BreadcrumbItem({ node: node , isCurrent: isCurrent , isDisabled: isDisabled , onAction: onAction }) {
|
|
858
970
|
// Recreating useBreadcrumbItem because we want to use composition instead of having the link builtin.
|
|
859
|
-
let headingProps = isCurrent ? {
|
|
860
|
-
"aria-current": "page"
|
|
861
|
-
} : null;
|
|
862
971
|
let linkProps = {
|
|
863
972
|
"aria-current": isCurrent ? "page" : null,
|
|
864
|
-
isDisabled: isDisabled || isCurrent
|
|
973
|
+
isDisabled: isDisabled || isCurrent,
|
|
974
|
+
onPress: ()=>{
|
|
975
|
+
return onAction === null || onAction === void 0 ? void 0 : onAction(node.key);
|
|
976
|
+
}
|
|
865
977
|
};
|
|
866
978
|
var _node_props_className;
|
|
867
979
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("li", {
|
|
868
980
|
...(0, $dGqE5$filterDOMProps)(node.props),
|
|
869
981
|
style: node.props.style,
|
|
870
|
-
className: (_node_props_className = node.props.className) !== null && _node_props_className !== void 0 ? _node_props_className : "react-aria-
|
|
871
|
-
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $
|
|
872
|
-
|
|
873
|
-
[
|
|
874
|
-
(0, $4f118338184dc1d9$export$e2509388b49734e7),
|
|
875
|
-
linkProps
|
|
876
|
-
],
|
|
877
|
-
[
|
|
878
|
-
(0, $5cb03073d3f54797$export$d688439359537581),
|
|
879
|
-
headingProps
|
|
880
|
-
]
|
|
881
|
-
]
|
|
982
|
+
className: (_node_props_className = node.props.className) !== null && _node_props_className !== void 0 ? _node_props_className : "react-aria-Breadcrumb"
|
|
983
|
+
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $4f118338184dc1d9$export$e2509388b49734e7).Provider, {
|
|
984
|
+
value: linkProps
|
|
882
985
|
}, node.rendered));
|
|
883
986
|
}
|
|
884
987
|
|
|
@@ -933,14 +1036,16 @@ function $d2b4bc8c273e7be6$var$Button(props, ref) {
|
|
|
933
1036
|
...renderProps,
|
|
934
1037
|
ref: ref,
|
|
935
1038
|
slot: props.slot,
|
|
1039
|
+
"data-disabled": props.isDisabled || undefined,
|
|
936
1040
|
"data-pressed": ctx.isPressed || isPressed || undefined,
|
|
937
1041
|
"data-hovered": isHovered || undefined,
|
|
1042
|
+
"data-focused": isFocused || undefined,
|
|
938
1043
|
"data-focus-visible": isFocusVisible || undefined
|
|
939
1044
|
});
|
|
940
1045
|
}
|
|
941
1046
|
/**
|
|
942
1047
|
* A button allows a user to perform an action, with mouse, touch, and keyboard interactions.
|
|
943
|
-
*/ const $d2b4bc8c273e7be6$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $
|
|
1048
|
+
*/ const $d2b4bc8c273e7be6$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $64fa3d84918910a7$export$86427a43e3e48ebb)($d2b4bc8c273e7be6$var$Button);
|
|
944
1049
|
|
|
945
1050
|
|
|
946
1051
|
/*
|
|
@@ -959,6 +1064,30 @@ function $d2b4bc8c273e7be6$var$Button(props, ref) {
|
|
|
959
1064
|
|
|
960
1065
|
|
|
961
1066
|
|
|
1067
|
+
/*
|
|
1068
|
+
* Copyright 2022 Adobe. All rights reserved.
|
|
1069
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
1070
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
1071
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
1072
|
+
*
|
|
1073
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
1074
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
1075
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
1076
|
+
* governing permissions and limitations under the License.
|
|
1077
|
+
*/
|
|
1078
|
+
|
|
1079
|
+
const $5cb03073d3f54797$export$d688439359537581 = /*#__PURE__*/ (0, $dGqE5$createContext)({});
|
|
1080
|
+
function $5cb03073d3f54797$var$Heading(props, ref) {
|
|
1081
|
+
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $5cb03073d3f54797$export$d688439359537581);
|
|
1082
|
+
let { children: children , level: level = 3 , className: className , ...domProps } = props;
|
|
1083
|
+
let Element = `h${level}`;
|
|
1084
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement(Element, {
|
|
1085
|
+
...domProps,
|
|
1086
|
+
className: className !== null && className !== void 0 ? className : "react-aria-Heading"
|
|
1087
|
+
}, children);
|
|
1088
|
+
}
|
|
1089
|
+
const $5cb03073d3f54797$export$a8a3e93435678ff9 = /*#__PURE__*/ (0, $dGqE5$forwardRef)($5cb03073d3f54797$var$Heading);
|
|
1090
|
+
|
|
962
1091
|
|
|
963
1092
|
|
|
964
1093
|
/*
|
|
@@ -979,6 +1108,7 @@ function $514c0188e459b4c0$var$Text(props, ref) {
|
|
|
979
1108
|
let { elementType: ElementType = "span" , ...domProps } = props;
|
|
980
1109
|
// @ts-ignore
|
|
981
1110
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement(ElementType, {
|
|
1111
|
+
className: "react-aria-Text",
|
|
982
1112
|
...domProps,
|
|
983
1113
|
ref: ref
|
|
984
1114
|
});
|
|
@@ -1000,14 +1130,20 @@ function $dfd62f934fc76fed$var$Calendar(props, ref) {
|
|
|
1000
1130
|
let { calendarProps: calendarProps , prevButtonProps: prevButtonProps , nextButtonProps: nextButtonProps , errorMessageProps: errorMessageProps , title: title } = (0, $dGqE5$useCalendar)(props, state);
|
|
1001
1131
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
1002
1132
|
...props,
|
|
1003
|
-
values:
|
|
1133
|
+
values: {
|
|
1134
|
+
state: state,
|
|
1135
|
+
isDisabled: props.isDisabled || false,
|
|
1136
|
+
isInvalid: state.isValueInvalid
|
|
1137
|
+
},
|
|
1004
1138
|
defaultClassName: "react-aria-Calendar"
|
|
1005
1139
|
});
|
|
1006
1140
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
1007
1141
|
...renderProps,
|
|
1008
1142
|
...calendarProps,
|
|
1009
1143
|
ref: ref,
|
|
1010
|
-
slot: props.slot
|
|
1144
|
+
slot: props.slot,
|
|
1145
|
+
"data-disabled": props.isDisabled || undefined,
|
|
1146
|
+
"data-invalid": state.isValueInvalid || undefined
|
|
1011
1147
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
1012
1148
|
values: [
|
|
1013
1149
|
[
|
|
@@ -1061,14 +1197,20 @@ function $dfd62f934fc76fed$var$RangeCalendar(props, ref) {
|
|
|
1061
1197
|
let { calendarProps: calendarProps , prevButtonProps: prevButtonProps , nextButtonProps: nextButtonProps , errorMessageProps: errorMessageProps , title: title } = (0, $dGqE5$useRangeCalendar)(props, state, ref);
|
|
1062
1198
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
1063
1199
|
...props,
|
|
1064
|
-
values:
|
|
1200
|
+
values: {
|
|
1201
|
+
state: state,
|
|
1202
|
+
isDisabled: props.isDisabled || false,
|
|
1203
|
+
isInvalid: state.isValueInvalid
|
|
1204
|
+
},
|
|
1065
1205
|
defaultClassName: "react-aria-RangeCalendar"
|
|
1066
1206
|
});
|
|
1067
1207
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
1068
1208
|
...renderProps,
|
|
1069
1209
|
...calendarProps,
|
|
1070
1210
|
ref: ref,
|
|
1071
|
-
slot: props.slot
|
|
1211
|
+
slot: props.slot,
|
|
1212
|
+
"data-disabled": props.isDisabled || undefined,
|
|
1213
|
+
"data-invalid": state.isValueInvalid || undefined
|
|
1072
1214
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
1073
1215
|
values: [
|
|
1074
1216
|
[
|
|
@@ -1194,7 +1336,10 @@ function $dfd62f934fc76fed$var$CalendarGridBody(props, ref) {
|
|
|
1194
1336
|
*/ const $dfd62f934fc76fed$export$e11f8ba65d857bff = /*#__PURE__*/ (0, $dGqE5$forwardRef)($dfd62f934fc76fed$var$CalendarGridBody);
|
|
1195
1337
|
function $dfd62f934fc76fed$var$CalendarCell({ date: date , ...otherProps }, ref) {
|
|
1196
1338
|
let state = (0, $dGqE5$useContext)($dfd62f934fc76fed$var$InternalCalendarContext);
|
|
1197
|
-
|
|
1339
|
+
var _useContext;
|
|
1340
|
+
let { startDate: currentMonth } = (_useContext = (0, $dGqE5$useContext)($dfd62f934fc76fed$var$InternalCalendarGridContext)) !== null && _useContext !== void 0 ? _useContext : {
|
|
1341
|
+
startDate: state.visibleRange.start
|
|
1342
|
+
};
|
|
1198
1343
|
let objectRef = (0, $dGqE5$useObjectRef)(ref);
|
|
1199
1344
|
let { cellProps: cellProps , buttonProps: buttonProps , ...states } = (0, $dGqE5$useCalendarCell)({
|
|
1200
1345
|
date: date
|
|
@@ -1225,6 +1370,7 @@ function $dfd62f934fc76fed$var$CalendarCell({ date: date , ...otherProps }, ref)
|
|
|
1225
1370
|
}
|
|
1226
1371
|
});
|
|
1227
1372
|
let dataAttrs = {
|
|
1373
|
+
"data-focused": states.isFocused || undefined,
|
|
1228
1374
|
"data-hovered": isHovered || undefined,
|
|
1229
1375
|
"data-pressed": states.isPressed || undefined,
|
|
1230
1376
|
"data-unavailable": states.isUnavailable || undefined,
|
|
@@ -1234,7 +1380,8 @@ function $dfd62f934fc76fed$var$CalendarCell({ date: date , ...otherProps }, ref)
|
|
|
1234
1380
|
"data-outside-month": isOutsideMonth || undefined,
|
|
1235
1381
|
"data-selected": states.isSelected || undefined,
|
|
1236
1382
|
"data-selection-start": isSelectionStart || undefined,
|
|
1237
|
-
"data-selection-end": isSelectionEnd || undefined
|
|
1383
|
+
"data-selection-end": isSelectionEnd || undefined,
|
|
1384
|
+
"data-invalid": states.isInvalid || undefined
|
|
1238
1385
|
};
|
|
1239
1386
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("td", cellProps, /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
1240
1387
|
...(0, $dGqE5$mergeProps)((0, $dGqE5$filterDOMProps)(otherProps), buttonProps, focusProps, hoverProps, dataAttrs, renderProps),
|
|
@@ -1283,7 +1430,7 @@ function $01b77f81d0f07f68$var$Label(props, ref) {
|
|
|
1283
1430
|
ref: ref
|
|
1284
1431
|
});
|
|
1285
1432
|
}
|
|
1286
|
-
const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /*#__PURE__*/ (0, $
|
|
1433
|
+
const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /*#__PURE__*/ (0, $64fa3d84918910a7$export$86427a43e3e48ebb)($01b77f81d0f07f68$var$Label);
|
|
1287
1434
|
|
|
1288
1435
|
|
|
1289
1436
|
|
|
@@ -1304,7 +1451,8 @@ function $bc237834342dbd75$var$CheckboxGroup(props, ref) {
|
|
|
1304
1451
|
isDisabled: state.isDisabled,
|
|
1305
1452
|
isReadOnly: state.isReadOnly,
|
|
1306
1453
|
isRequired: props.isRequired || false,
|
|
1307
|
-
|
|
1454
|
+
isInvalid: state.isInvalid,
|
|
1455
|
+
state: state
|
|
1308
1456
|
},
|
|
1309
1457
|
defaultClassName: "react-aria-CheckboxGroup"
|
|
1310
1458
|
});
|
|
@@ -1315,7 +1463,8 @@ function $bc237834342dbd75$var$CheckboxGroup(props, ref) {
|
|
|
1315
1463
|
slot: props.slot,
|
|
1316
1464
|
"data-readonly": state.isReadOnly || undefined,
|
|
1317
1465
|
"data-required": props.isRequired || undefined,
|
|
1318
|
-
"data-
|
|
1466
|
+
"data-invalid": state.isInvalid || undefined,
|
|
1467
|
+
"data-disabled": props.isDisabled || undefined
|
|
1319
1468
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
1320
1469
|
values: [
|
|
1321
1470
|
[
|
|
@@ -1326,7 +1475,8 @@ function $bc237834342dbd75$var$CheckboxGroup(props, ref) {
|
|
|
1326
1475
|
(0, $01b77f81d0f07f68$export$75b6ee27786ba447),
|
|
1327
1476
|
{
|
|
1328
1477
|
...labelProps,
|
|
1329
|
-
ref: labelRef
|
|
1478
|
+
ref: labelRef,
|
|
1479
|
+
elementType: "span"
|
|
1330
1480
|
}
|
|
1331
1481
|
],
|
|
1332
1482
|
[
|
|
@@ -1388,7 +1538,7 @@ function $bc237834342dbd75$var$Checkbox(props, ref) {
|
|
|
1388
1538
|
isFocusVisible: isFocusVisible,
|
|
1389
1539
|
isDisabled: isDisabled,
|
|
1390
1540
|
isReadOnly: isReadOnly,
|
|
1391
|
-
|
|
1541
|
+
isInvalid: props.isInvalid || (groupState === null || groupState === void 0 ? void 0 : groupState.isInvalid) || false,
|
|
1392
1542
|
isRequired: props.isRequired || false
|
|
1393
1543
|
}
|
|
1394
1544
|
});
|
|
@@ -1405,7 +1555,7 @@ function $bc237834342dbd75$var$Checkbox(props, ref) {
|
|
|
1405
1555
|
"data-focus-visible": isFocusVisible || undefined,
|
|
1406
1556
|
"data-disabled": isDisabled || undefined,
|
|
1407
1557
|
"data-readonly": isReadOnly || undefined,
|
|
1408
|
-
"data-
|
|
1558
|
+
"data-invalid": props.isInvalid || (groupState === null || groupState === void 0 ? void 0 : groupState.isInvalid) || undefined,
|
|
1409
1559
|
"data-required": props.isRequired || undefined
|
|
1410
1560
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$VisuallyHidden), {
|
|
1411
1561
|
elementType: "span"
|
|
@@ -1438,6 +1588,7 @@ function $bc237834342dbd75$var$Checkbox(props, ref) {
|
|
|
1438
1588
|
|
|
1439
1589
|
|
|
1440
1590
|
|
|
1591
|
+
|
|
1441
1592
|
/*
|
|
1442
1593
|
* Copyright 2022 Adobe. All rights reserved.
|
|
1443
1594
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -1459,13 +1610,15 @@ function $3985021b0ad6602f$var$Input(props, ref) {
|
|
|
1459
1610
|
isTextInput: true,
|
|
1460
1611
|
autoFocus: props.autoFocus
|
|
1461
1612
|
});
|
|
1613
|
+
let isInvalid = !!props["aria-invalid"] && props["aria-invalid"] !== "false";
|
|
1462
1614
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
1463
1615
|
...props,
|
|
1464
1616
|
values: {
|
|
1465
1617
|
isHovered: isHovered,
|
|
1466
1618
|
isFocused: isFocused,
|
|
1467
1619
|
isFocusVisible: isFocusVisible,
|
|
1468
|
-
isDisabled: props.disabled || false
|
|
1620
|
+
isDisabled: props.disabled || false,
|
|
1621
|
+
isInvalid: isInvalid
|
|
1469
1622
|
},
|
|
1470
1623
|
defaultClassName: "react-aria-Input"
|
|
1471
1624
|
});
|
|
@@ -1473,13 +1626,16 @@ function $3985021b0ad6602f$var$Input(props, ref) {
|
|
|
1473
1626
|
...(0, $dGqE5$mergeProps)(props, focusProps, hoverProps),
|
|
1474
1627
|
...renderProps,
|
|
1475
1628
|
ref: ref,
|
|
1629
|
+
"data-focused": isFocused || undefined,
|
|
1630
|
+
"data-disabled": props.disabled || undefined,
|
|
1476
1631
|
"data-hovered": isHovered || undefined,
|
|
1477
|
-
"data-focus-visible": isFocusVisible || undefined
|
|
1632
|
+
"data-focus-visible": isFocusVisible || undefined,
|
|
1633
|
+
"data-invalid": isInvalid || undefined
|
|
1478
1634
|
});
|
|
1479
1635
|
}
|
|
1480
1636
|
/**
|
|
1481
1637
|
* An input allows a user to input text.
|
|
1482
|
-
*/ const $3985021b0ad6602f$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, $
|
|
1638
|
+
*/ const $3985021b0ad6602f$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, $64fa3d84918910a7$export$86427a43e3e48ebb)($3985021b0ad6602f$var$Input);
|
|
1483
1639
|
|
|
1484
1640
|
|
|
1485
1641
|
|
|
@@ -1579,9 +1735,9 @@ function $d8f176866e6dc039$var$DropIndicator(props, ref) {
|
|
|
1579
1735
|
|
|
1580
1736
|
|
|
1581
1737
|
const $72a5793c14baf454$export$e0e4026c12a8bdbb = /*#__PURE__*/ (0, $dGqE5$createContext)({});
|
|
1582
|
-
function $72a5793c14baf454$var$Header(
|
|
1583
|
-
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(
|
|
1584
|
-
let shallow = (0, $7135fc7d473fd974$export$aeba0b1fb3dcd8b8)("header",
|
|
1738
|
+
function $72a5793c14baf454$var$Header(originalProps, originalRef) {
|
|
1739
|
+
let [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(originalProps, originalRef, $72a5793c14baf454$export$e0e4026c12a8bdbb);
|
|
1740
|
+
let shallow = (0, $7135fc7d473fd974$export$aeba0b1fb3dcd8b8)("header", originalProps, originalRef);
|
|
1585
1741
|
if (shallow) return shallow;
|
|
1586
1742
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("header", {
|
|
1587
1743
|
className: "react-aria-Header",
|
|
@@ -1609,8 +1765,8 @@ const $72a5793c14baf454$export$8b251419efc915eb = /*#__PURE__*/ (0, $dGqE5$forwa
|
|
|
1609
1765
|
|
|
1610
1766
|
|
|
1611
1767
|
const $431f98aba6844401$export$6615d83f6de245ce = /*#__PURE__*/ (0, $dGqE5$createContext)({});
|
|
1612
|
-
function $431f98aba6844401$var$Separator(
|
|
1613
|
-
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(
|
|
1768
|
+
function $431f98aba6844401$var$Separator(originalProps, originalRef) {
|
|
1769
|
+
let [props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(originalProps, originalRef, $431f98aba6844401$export$6615d83f6de245ce);
|
|
1614
1770
|
let { elementType: elementType , orientation: orientation , style: style , className: className } = props;
|
|
1615
1771
|
let Element = elementType || "hr";
|
|
1616
1772
|
if (Element === "hr" && orientation === "vertical") Element = "div";
|
|
@@ -1618,7 +1774,7 @@ function $431f98aba6844401$var$Separator(props, ref) {
|
|
|
1618
1774
|
elementType: elementType,
|
|
1619
1775
|
orientation: orientation
|
|
1620
1776
|
});
|
|
1621
|
-
let shallow = (0, $7135fc7d473fd974$export$aeba0b1fb3dcd8b8)("separator",
|
|
1777
|
+
let shallow = (0, $7135fc7d473fd974$export$aeba0b1fb3dcd8b8)("separator", originalProps, originalRef);
|
|
1622
1778
|
if (shallow) return shallow;
|
|
1623
1779
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement(Element, {
|
|
1624
1780
|
...(0, $dGqE5$filterDOMProps)(props),
|
|
@@ -1637,19 +1793,25 @@ const $eed445e0843c11d0$export$7ff8f37d2d81a48d = /*#__PURE__*/ (0, $dGqE5$creat
|
|
|
1637
1793
|
const $eed445e0843c11d0$var$InternalListBoxContext = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
1638
1794
|
function $eed445e0843c11d0$var$ListBox(props, ref) {
|
|
1639
1795
|
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $eed445e0843c11d0$export$7ff8f37d2d81a48d);
|
|
1640
|
-
let
|
|
1796
|
+
let ctx = props;
|
|
1641
1797
|
let isHidden = (0, $dGqE5$useContext)((0, $64fa3d84918910a7$export$94b6d0abf7d33e8c));
|
|
1642
|
-
|
|
1643
|
-
|
|
1798
|
+
// The structure of ListBox is a bit strange because it needs to work inside other components like ComboBox and Select.
|
|
1799
|
+
// Those components render two copies of their children so that the collection can be built even when the popover is closed.
|
|
1800
|
+
// The first copy sends a collection document via context which we render the collection portal into.
|
|
1801
|
+
// The second copy sends a ListState object via context which we use to render the ListBox without rebuilding the state.
|
|
1802
|
+
// Otherwise, we have a standalone ListBox, so we need to create a collection and state ourselves.
|
|
1803
|
+
if (ctx.document) return /*#__PURE__*/ (0, $dGqE5$react).createElement($eed445e0843c11d0$var$ListBoxPortal, props);
|
|
1804
|
+
if (ctx.state) return isHidden ? null : /*#__PURE__*/ (0, $dGqE5$react).createElement($eed445e0843c11d0$var$ListBoxInner, {
|
|
1805
|
+
state: ctx.state,
|
|
1644
1806
|
props: props,
|
|
1645
1807
|
listBoxRef: ref
|
|
1646
1808
|
});
|
|
1647
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement($eed445e0843c11d0$var$
|
|
1809
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement($eed445e0843c11d0$var$StandaloneListBox, {
|
|
1648
1810
|
props: props,
|
|
1649
1811
|
listBoxRef: ref
|
|
1650
1812
|
});
|
|
1651
1813
|
}
|
|
1652
|
-
function $eed445e0843c11d0$var$
|
|
1814
|
+
function $eed445e0843c11d0$var$StandaloneListBox({ props: props , listBoxRef: listBoxRef }) {
|
|
1653
1815
|
let { portal: portal , collection: collection } = (0, $7135fc7d473fd974$export$6cd28814d92fa9c9)(props);
|
|
1654
1816
|
props = {
|
|
1655
1817
|
...props,
|
|
@@ -1664,6 +1826,9 @@ function $eed445e0843c11d0$var$ListBoxPortal({ props: props , listBoxRef: listBo
|
|
|
1664
1826
|
listBoxRef: listBoxRef
|
|
1665
1827
|
}));
|
|
1666
1828
|
}
|
|
1829
|
+
function $eed445e0843c11d0$var$ListBoxPortal(props) {
|
|
1830
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null, (0, $7135fc7d473fd974$export$ad42d5efb4461b31)(props, props.document));
|
|
1831
|
+
}
|
|
1667
1832
|
/**
|
|
1668
1833
|
* A listbox displays a list of options and allows a user to select one or more of them.
|
|
1669
1834
|
*/ const $eed445e0843c11d0$export$41f133550aa26f48 = /*#__PURE__*/ (0, $dGqE5$forwardRef)($eed445e0843c11d0$var$ListBox);
|
|
@@ -1769,7 +1934,9 @@ function $eed445e0843c11d0$var$ListBoxInner({ state: state , props: props , list
|
|
|
1769
1934
|
isDropTarget: isRootDropTarget,
|
|
1770
1935
|
isEmpty: state.collection.size === 0,
|
|
1771
1936
|
isFocused: isFocused,
|
|
1772
|
-
isFocusVisible: isFocusVisible
|
|
1937
|
+
isFocusVisible: isFocusVisible,
|
|
1938
|
+
layout: props.layout || "stack",
|
|
1939
|
+
state: state
|
|
1773
1940
|
}
|
|
1774
1941
|
});
|
|
1775
1942
|
let emptyState = null;
|
|
@@ -1807,7 +1974,7 @@ function $eed445e0843c11d0$var$ListBoxInner({ state: state , props: props , list
|
|
|
1807
1974
|
[
|
|
1808
1975
|
(0, $431f98aba6844401$export$6615d83f6de245ce),
|
|
1809
1976
|
{
|
|
1810
|
-
elementType: "
|
|
1977
|
+
elementType: "div"
|
|
1811
1978
|
}
|
|
1812
1979
|
],
|
|
1813
1980
|
[
|
|
@@ -1819,7 +1986,7 @@ function $eed445e0843c11d0$var$ListBoxInner({ state: state , props: props , list
|
|
|
1819
1986
|
]
|
|
1820
1987
|
}, children), emptyState, dragPreview));
|
|
1821
1988
|
}
|
|
1822
|
-
function $eed445e0843c11d0$var$ListBoxSection({ section: section , className: className , style: style
|
|
1989
|
+
function $eed445e0843c11d0$var$ListBoxSection({ section: section , className: className , style: style }) {
|
|
1823
1990
|
var _section_props, _section_props1;
|
|
1824
1991
|
let { state: state } = (0, $dGqE5$useContext)($eed445e0843c11d0$var$InternalListBoxContext);
|
|
1825
1992
|
let [headingRef, heading] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)();
|
|
@@ -1833,14 +2000,11 @@ function $eed445e0843c11d0$var$ListBoxSection({ section: section , className: cl
|
|
|
1833
2000
|
children: (item)=>{
|
|
1834
2001
|
switch(item.type){
|
|
1835
2002
|
case "header":
|
|
1836
|
-
{
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
ref: (0, $dGqE5$mergeRefs)(headingRef, ref)
|
|
1842
|
-
}, item.rendered);
|
|
1843
|
-
}
|
|
2003
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement($eed445e0843c11d0$var$SectionHeader, {
|
|
2004
|
+
item: item,
|
|
2005
|
+
headingProps: headingProps,
|
|
2006
|
+
headingRef: headingRef
|
|
2007
|
+
});
|
|
1844
2008
|
case "item":
|
|
1845
2009
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement($eed445e0843c11d0$var$Option, {
|
|
1846
2010
|
item: item
|
|
@@ -1851,13 +2015,22 @@ function $eed445e0843c11d0$var$ListBoxSection({ section: section , className: cl
|
|
|
1851
2015
|
}
|
|
1852
2016
|
});
|
|
1853
2017
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("section", {
|
|
1854
|
-
...(0, $dGqE5$filterDOMProps)(
|
|
2018
|
+
...(0, $dGqE5$filterDOMProps)(section.props),
|
|
1855
2019
|
...groupProps,
|
|
1856
2020
|
className: className || ((_section_props = section.props) === null || _section_props === void 0 ? void 0 : _section_props.className) || "react-aria-Section",
|
|
1857
2021
|
style: style || ((_section_props1 = section.props) === null || _section_props1 === void 0 ? void 0 : _section_props1.style),
|
|
1858
2022
|
ref: section.props.ref
|
|
1859
2023
|
}, children);
|
|
1860
2024
|
}
|
|
2025
|
+
// This is a separate component so that headingProps.id doesn't override the item key in useCachedChildren.
|
|
2026
|
+
function $eed445e0843c11d0$var$SectionHeader({ item: item , headingProps: headingProps , headingRef: headingRef }) {
|
|
2027
|
+
let { ref: ref , ...otherProps } = item.props;
|
|
2028
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $72a5793c14baf454$export$8b251419efc915eb), {
|
|
2029
|
+
...headingProps,
|
|
2030
|
+
...otherProps,
|
|
2031
|
+
ref: (0, $dGqE5$mergeRefs)(headingRef, ref)
|
|
2032
|
+
}, item.rendered);
|
|
2033
|
+
}
|
|
1861
2034
|
function $eed445e0843c11d0$var$Option({ item: item }) {
|
|
1862
2035
|
let ref = (0, $dGqE5$useObjectRef)(item.props.ref);
|
|
1863
2036
|
let { state: state , shouldFocusOnHover: shouldFocusOnHover , dragAndDropHooks: dragAndDropHooks , dragState: dragState , dropState: dropState } = (0, $dGqE5$useContext)($eed445e0843c11d0$var$InternalListBoxContext);
|
|
@@ -1916,12 +2089,16 @@ function $eed445e0843c11d0$var$Option({ item: item }) {
|
|
|
1916
2089
|
...(0, $dGqE5$mergeProps)((0, $dGqE5$filterDOMProps)(props), optionProps, hoverProps, draggableItem === null || draggableItem === void 0 ? void 0 : draggableItem.dragProps, droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.dropProps),
|
|
1917
2090
|
...renderProps,
|
|
1918
2091
|
ref: ref,
|
|
2092
|
+
"data-allows-dragging": !!dragState || undefined,
|
|
2093
|
+
"data-selected": states.isSelected || undefined,
|
|
2094
|
+
"data-disabled": states.isDisabled || undefined,
|
|
1919
2095
|
"data-hovered": isHovered || undefined,
|
|
1920
2096
|
"data-focused": states.isFocused || undefined,
|
|
1921
2097
|
"data-focus-visible": states.isFocusVisible || undefined,
|
|
1922
2098
|
"data-pressed": states.isPressed || undefined,
|
|
1923
2099
|
"data-dragging": isDragging || undefined,
|
|
1924
|
-
"data-drop-target": (droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget) || undefined
|
|
2100
|
+
"data-drop-target": (droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget) || undefined,
|
|
2101
|
+
"data-selection-mode": state.selectionManager.selectionMode === "none" ? undefined : state.selectionManager.selectionMode
|
|
1925
2102
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
1926
2103
|
values: [
|
|
1927
2104
|
[
|
|
@@ -1999,7 +2176,10 @@ const $eed445e0843c11d0$var$ListBoxtDropIndicatorForwardRef = /*#__PURE__*/ (0,
|
|
|
1999
2176
|
*/
|
|
2000
2177
|
|
|
2001
2178
|
|
|
2002
|
-
const $44f671af83e7d9e0$export$2de4954e8ae13b9f = /*#__PURE__*/ (0, $dGqE5$createContext)(
|
|
2179
|
+
const $44f671af83e7d9e0$export$2de4954e8ae13b9f = /*#__PURE__*/ (0, $dGqE5$createContext)({
|
|
2180
|
+
arrowProps: {},
|
|
2181
|
+
placement: "bottom"
|
|
2182
|
+
});
|
|
2003
2183
|
function $44f671af83e7d9e0$var$OverlayArrow(props, ref) {
|
|
2004
2184
|
let { arrowProps: arrowProps , placement: placement } = (0, $dGqE5$useContext)($44f671af83e7d9e0$export$2de4954e8ae13b9f);
|
|
2005
2185
|
let style = {
|
|
@@ -2041,17 +2221,18 @@ function $07b14b47974efb58$var$Popover(props, ref) {
|
|
|
2041
2221
|
let localState = (0, $dGqE5$useOverlayTriggerState)(props);
|
|
2042
2222
|
let state = props.isOpen != null || props.defaultOpen != null || !(ctx === null || ctx === void 0 ? void 0 : ctx.state) ? localState : ctx.state;
|
|
2043
2223
|
let isExiting = (0, $64fa3d84918910a7$export$45fda7c47f93fd48)(ref, state.isOpen);
|
|
2044
|
-
|
|
2224
|
+
let isHidden = (0, $dGqE5$useContext)((0, $64fa3d84918910a7$export$94b6d0abf7d33e8c));
|
|
2225
|
+
// If we are in a hidden tree, we still need to preserve our children.
|
|
2226
|
+
if (isHidden) {
|
|
2045
2227
|
let children = props.children;
|
|
2046
2228
|
if (typeof children === "function") children = children({
|
|
2047
2229
|
placement: "bottom",
|
|
2048
2230
|
isEntering: false,
|
|
2049
2231
|
isExiting: false
|
|
2050
2232
|
});
|
|
2051
|
-
return
|
|
2052
|
-
value: true
|
|
2053
|
-
}, children) : null;
|
|
2233
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null, children);
|
|
2054
2234
|
}
|
|
2235
|
+
if (state && !state.isOpen && !isExiting) return null;
|
|
2055
2236
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement($07b14b47974efb58$var$PopoverInner, {
|
|
2056
2237
|
...props,
|
|
2057
2238
|
triggerRef: ctx.triggerRef,
|
|
@@ -2084,7 +2265,9 @@ function $07b14b47974efb58$var$PopoverInner({ state: state , isExiting: isExitin
|
|
|
2084
2265
|
...renderProps.style,
|
|
2085
2266
|
...popoverProps.style
|
|
2086
2267
|
};
|
|
2087
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$Overlay),
|
|
2268
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$Overlay), {
|
|
2269
|
+
isExiting: isExiting
|
|
2270
|
+
}, !props.isNonModal && /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
2088
2271
|
...underlayProps,
|
|
2089
2272
|
style: {
|
|
2090
2273
|
position: "fixed",
|
|
@@ -2115,21 +2298,40 @@ function $07b14b47974efb58$var$PopoverInner({ state: state , isExiting: isExitin
|
|
|
2115
2298
|
|
|
2116
2299
|
|
|
2117
2300
|
|
|
2118
|
-
|
|
2119
2301
|
const $d01f2c01039c0eec$export$d414ccceff7063c3 = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
2120
2302
|
function $d01f2c01039c0eec$var$ComboBox(props, ref) {
|
|
2121
2303
|
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $d01f2c01039c0eec$export$d414ccceff7063c3);
|
|
2122
|
-
let
|
|
2123
|
-
|
|
2124
|
-
|
|
2304
|
+
let { collection: collection , document: document } = (0, $7135fc7d473fd974$export$7cd71aa5ddd6dc4e)();
|
|
2305
|
+
let { children: children , isDisabled: isDisabled = false , isInvalid: isInvalid = false , isRequired: isRequired = false } = props;
|
|
2306
|
+
children = (0, $dGqE5$useMemo)(()=>typeof children === "function" ? children({
|
|
2307
|
+
isOpen: false,
|
|
2308
|
+
isDisabled: isDisabled,
|
|
2309
|
+
isInvalid: isInvalid,
|
|
2310
|
+
isRequired: isRequired
|
|
2311
|
+
}) : children, [
|
|
2312
|
+
children,
|
|
2313
|
+
isDisabled,
|
|
2314
|
+
isInvalid,
|
|
2315
|
+
isRequired
|
|
2316
|
+
]);
|
|
2317
|
+
var _props_items;
|
|
2318
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$8dc98ba7eadeaa56), null, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $eed445e0843c11d0$export$7ff8f37d2d81a48d).Provider, {
|
|
2319
|
+
value: {
|
|
2320
|
+
document: document,
|
|
2321
|
+
items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems
|
|
2322
|
+
}
|
|
2323
|
+
}, children)), /*#__PURE__*/ (0, $dGqE5$react).createElement($d01f2c01039c0eec$var$ComboBoxInner, {
|
|
2324
|
+
props: props,
|
|
2325
|
+
collection: collection,
|
|
2326
|
+
comboBoxRef: ref
|
|
2327
|
+
}));
|
|
2328
|
+
}
|
|
2329
|
+
function $d01f2c01039c0eec$var$ComboBoxInner({ props: props , collection: collection , comboBoxRef: ref }) {
|
|
2330
|
+
let { name: name , formValue: formValue = "key" , allowsCustomValue: allowsCustomValue } = props;
|
|
2331
|
+
if (allowsCustomValue) formValue = "text";
|
|
2125
2332
|
let { contains: contains } = (0, $dGqE5$useFilter)({
|
|
2126
2333
|
sensitivity: "base"
|
|
2127
2334
|
});
|
|
2128
|
-
var _props_items, _ref;
|
|
2129
|
-
let { portal: portal , collection: collection } = (0, $7135fc7d473fd974$export$6cd28814d92fa9c9)({
|
|
2130
|
-
items: (_ref = (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems) !== null && _ref !== void 0 ? _ref : propsFromListBox.items,
|
|
2131
|
-
children: propsFromListBox.children
|
|
2132
|
-
});
|
|
2133
2335
|
let state = (0, $dGqE5$useComboBoxState)({
|
|
2134
2336
|
defaultFilter: props.defaultFilter || contains,
|
|
2135
2337
|
...props,
|
|
@@ -2141,10 +2343,14 @@ function $d01f2c01039c0eec$var$ComboBox(props, ref) {
|
|
|
2141
2343
|
// Only expose a subset of state to renderProps function to avoid infinite render loop
|
|
2142
2344
|
let renderPropsState = (0, $dGqE5$useMemo)(()=>({
|
|
2143
2345
|
isOpen: state.isOpen,
|
|
2144
|
-
|
|
2346
|
+
isDisabled: props.isDisabled || false,
|
|
2347
|
+
isInvalid: props.isInvalid || false,
|
|
2348
|
+
isRequired: props.isRequired || false
|
|
2145
2349
|
}), [
|
|
2146
2350
|
state.isOpen,
|
|
2147
|
-
|
|
2351
|
+
props.isDisabled,
|
|
2352
|
+
props.isInvalid,
|
|
2353
|
+
props.isRequired
|
|
2148
2354
|
]);
|
|
2149
2355
|
let buttonRef = (0, $dGqE5$useRef)(null);
|
|
2150
2356
|
let inputRef = (0, $dGqE5$useRef)(null);
|
|
@@ -2157,7 +2363,8 @@ function $d01f2c01039c0eec$var$ComboBox(props, ref) {
|
|
|
2157
2363
|
inputRef: inputRef,
|
|
2158
2364
|
buttonRef: buttonRef,
|
|
2159
2365
|
listBoxRef: listBoxRef,
|
|
2160
|
-
popoverRef: popoverRef
|
|
2366
|
+
popoverRef: popoverRef,
|
|
2367
|
+
name: formValue === "text" ? name : undefined
|
|
2161
2368
|
}, state);
|
|
2162
2369
|
// Make menu width match input + button
|
|
2163
2370
|
let [menuWidth, setMenuWidth] = (0, $dGqE5$useState)(null);
|
|
@@ -2217,7 +2424,6 @@ function $d01f2c01039c0eec$var$ComboBox(props, ref) {
|
|
|
2217
2424
|
ref: popoverRef,
|
|
2218
2425
|
triggerRef: inputRef,
|
|
2219
2426
|
placement: "bottom start",
|
|
2220
|
-
preserveChildren: true,
|
|
2221
2427
|
isNonModal: true,
|
|
2222
2428
|
style: {
|
|
2223
2429
|
"--trigger-width": menuWidth
|
|
@@ -2228,7 +2434,6 @@ function $d01f2c01039c0eec$var$ComboBox(props, ref) {
|
|
|
2228
2434
|
(0, $eed445e0843c11d0$export$7ff8f37d2d81a48d),
|
|
2229
2435
|
{
|
|
2230
2436
|
state: state,
|
|
2231
|
-
[(0, $64fa3d84918910a7$export$91172ebb93c441a2)]: setListBoxProps,
|
|
2232
2437
|
...listBoxProps,
|
|
2233
2438
|
ref: listBoxRef
|
|
2234
2439
|
}
|
|
@@ -2249,8 +2454,15 @@ function $d01f2c01039c0eec$var$ComboBox(props, ref) {
|
|
|
2249
2454
|
ref: ref,
|
|
2250
2455
|
slot: props.slot,
|
|
2251
2456
|
"data-focused": state.isFocused || undefined,
|
|
2252
|
-
"data-open": state.isOpen || undefined
|
|
2253
|
-
|
|
2457
|
+
"data-open": state.isOpen || undefined,
|
|
2458
|
+
"data-disabled": props.isDisabled || undefined,
|
|
2459
|
+
"data-invalid": props.isInvalid || undefined,
|
|
2460
|
+
"data-required": props.isRequired || undefined
|
|
2461
|
+
}), name && formValue === "key" && /*#__PURE__*/ (0, $dGqE5$react).createElement("input", {
|
|
2462
|
+
type: "hidden",
|
|
2463
|
+
name: name,
|
|
2464
|
+
value: state.selectedKey
|
|
2465
|
+
}));
|
|
2254
2466
|
}
|
|
2255
2467
|
/**
|
|
2256
2468
|
* A combo box combines a text input with a listbox, allowing users to filter a list of options to items matching a query.
|
|
@@ -2288,13 +2500,19 @@ function $40825cdb76e74f70$var$DateField(props, ref) {
|
|
|
2288
2500
|
});
|
|
2289
2501
|
let fieldRef = (0, $dGqE5$useRef)(null);
|
|
2290
2502
|
let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)();
|
|
2291
|
-
let
|
|
2503
|
+
let inputRef = (0, $dGqE5$useRef)(null);
|
|
2504
|
+
let { labelProps: labelProps , fieldProps: fieldProps , inputProps: inputProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = (0, $dGqE5$useDateField)({
|
|
2292
2505
|
...props,
|
|
2293
|
-
label: label
|
|
2506
|
+
label: label,
|
|
2507
|
+
inputRef: inputRef
|
|
2294
2508
|
}, state, fieldRef);
|
|
2295
2509
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
2296
2510
|
...props,
|
|
2297
|
-
values:
|
|
2511
|
+
values: {
|
|
2512
|
+
state: state,
|
|
2513
|
+
isInvalid: state.isInvalid,
|
|
2514
|
+
isDisabled: state.isDisabled
|
|
2515
|
+
},
|
|
2298
2516
|
defaultClassName: "react-aria-DateField"
|
|
2299
2517
|
});
|
|
2300
2518
|
let DOMProps = (0, $dGqE5$filterDOMProps)(props);
|
|
@@ -2306,14 +2524,17 @@ function $40825cdb76e74f70$var$DateField(props, ref) {
|
|
|
2306
2524
|
{
|
|
2307
2525
|
state: state,
|
|
2308
2526
|
fieldProps: fieldProps,
|
|
2309
|
-
ref: fieldRef
|
|
2527
|
+
ref: fieldRef,
|
|
2528
|
+
inputRef: inputRef,
|
|
2529
|
+
inputProps: inputProps
|
|
2310
2530
|
}
|
|
2311
2531
|
],
|
|
2312
2532
|
[
|
|
2313
2533
|
(0, $01b77f81d0f07f68$export$75b6ee27786ba447),
|
|
2314
2534
|
{
|
|
2315
2535
|
...labelProps,
|
|
2316
|
-
ref: labelRef
|
|
2536
|
+
ref: labelRef,
|
|
2537
|
+
elementType: "span"
|
|
2317
2538
|
}
|
|
2318
2539
|
],
|
|
2319
2540
|
[
|
|
@@ -2330,7 +2551,8 @@ function $40825cdb76e74f70$var$DateField(props, ref) {
|
|
|
2330
2551
|
...DOMProps,
|
|
2331
2552
|
...renderProps,
|
|
2332
2553
|
ref: ref,
|
|
2333
|
-
slot: props.slot
|
|
2554
|
+
slot: props.slot,
|
|
2555
|
+
"data-invalid": state.isInvalid || undefined
|
|
2334
2556
|
}));
|
|
2335
2557
|
}
|
|
2336
2558
|
/**
|
|
@@ -2346,13 +2568,19 @@ function $40825cdb76e74f70$var$TimeField(props, ref) {
|
|
|
2346
2568
|
});
|
|
2347
2569
|
let fieldRef = (0, $dGqE5$useRef)(null);
|
|
2348
2570
|
let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)();
|
|
2349
|
-
let
|
|
2571
|
+
let inputRef = (0, $dGqE5$useRef)(null);
|
|
2572
|
+
let { labelProps: labelProps , fieldProps: fieldProps , inputProps: inputProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = (0, $dGqE5$useTimeField)({
|
|
2350
2573
|
...props,
|
|
2351
|
-
label: label
|
|
2574
|
+
label: label,
|
|
2575
|
+
inputRef: inputRef
|
|
2352
2576
|
}, state, fieldRef);
|
|
2353
2577
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
2354
2578
|
...props,
|
|
2355
|
-
values:
|
|
2579
|
+
values: {
|
|
2580
|
+
state: state,
|
|
2581
|
+
isInvalid: state.isInvalid,
|
|
2582
|
+
isDisabled: state.isDisabled
|
|
2583
|
+
},
|
|
2356
2584
|
defaultClassName: "react-aria-TimeField"
|
|
2357
2585
|
});
|
|
2358
2586
|
let DOMProps = (0, $dGqE5$filterDOMProps)(props);
|
|
@@ -2364,7 +2592,9 @@ function $40825cdb76e74f70$var$TimeField(props, ref) {
|
|
|
2364
2592
|
{
|
|
2365
2593
|
state: state,
|
|
2366
2594
|
fieldProps: fieldProps,
|
|
2367
|
-
ref: fieldRef
|
|
2595
|
+
ref: fieldRef,
|
|
2596
|
+
inputRef: inputRef,
|
|
2597
|
+
inputProps: inputProps
|
|
2368
2598
|
}
|
|
2369
2599
|
],
|
|
2370
2600
|
[
|
|
@@ -2389,7 +2619,8 @@ function $40825cdb76e74f70$var$TimeField(props, ref) {
|
|
|
2389
2619
|
...DOMProps,
|
|
2390
2620
|
...renderProps,
|
|
2391
2621
|
ref: ref,
|
|
2392
|
-
slot: props.slot
|
|
2622
|
+
slot: props.slot,
|
|
2623
|
+
"data-invalid": state.isInvalid || undefined
|
|
2393
2624
|
}));
|
|
2394
2625
|
}
|
|
2395
2626
|
/**
|
|
@@ -2398,7 +2629,7 @@ function $40825cdb76e74f70$var$TimeField(props, ref) {
|
|
|
2398
2629
|
*/ const $40825cdb76e74f70$export$5eaee2322dd727eb = /*#__PURE__*/ (0, $dGqE5$forwardRef)($40825cdb76e74f70$var$TimeField);
|
|
2399
2630
|
const $40825cdb76e74f70$var$InternalDateInputContext = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
2400
2631
|
function $40825cdb76e74f70$var$DateInput({ children: children , slot: slot , ...otherProps }, ref) {
|
|
2401
|
-
let [{ state: state , fieldProps: fieldProps }, fieldRef] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)({
|
|
2632
|
+
let [{ state: state , fieldProps: fieldProps , inputProps: inputProps , inputRef: inputRef }, fieldRef] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)({
|
|
2402
2633
|
slot: slot
|
|
2403
2634
|
}, ref, $40825cdb76e74f70$export$75bd233d6b51888d);
|
|
2404
2635
|
let { hoverProps: hoverProps , isHovered: isHovered } = (0, $dGqE5$useHover)({});
|
|
@@ -2423,12 +2654,16 @@ function $40825cdb76e74f70$var$DateInput({ children: children , slot: slot , ...
|
|
|
2423
2654
|
...renderProps,
|
|
2424
2655
|
ref: fieldRef,
|
|
2425
2656
|
slot: slot,
|
|
2657
|
+
"data-focus-within": isFocused || undefined,
|
|
2426
2658
|
"data-hovered": isHovered || undefined,
|
|
2427
2659
|
"data-focus-visible": isFocusVisible || undefined,
|
|
2428
2660
|
"data-disabled": state.isDisabled || undefined
|
|
2429
2661
|
}, state.segments.map((segment, i)=>/*#__PURE__*/ (0, $dGqE5$cloneElement)(children(segment), {
|
|
2430
2662
|
key: i
|
|
2431
|
-
}))))
|
|
2663
|
+
}))), /*#__PURE__*/ (0, $dGqE5$react).createElement("input", {
|
|
2664
|
+
...inputProps,
|
|
2665
|
+
ref: inputRef
|
|
2666
|
+
}));
|
|
2432
2667
|
}
|
|
2433
2668
|
/**
|
|
2434
2669
|
* A date input groups the editable date segments within a date field.
|
|
@@ -2442,7 +2677,7 @@ function $40825cdb76e74f70$var$DateSegment({ segment: segment , ...otherProps },
|
|
|
2442
2677
|
values: {
|
|
2443
2678
|
...segment,
|
|
2444
2679
|
isReadOnly: !segment.isEditable,
|
|
2445
|
-
isInvalid: state.
|
|
2680
|
+
isInvalid: state.isInvalid
|
|
2446
2681
|
},
|
|
2447
2682
|
defaultChildren: segment.text,
|
|
2448
2683
|
defaultClassName: "react-aria-DateSegment"
|
|
@@ -2451,6 +2686,9 @@ function $40825cdb76e74f70$var$DateSegment({ segment: segment , ...otherProps },
|
|
|
2451
2686
|
...(0, $dGqE5$mergeProps)((0, $dGqE5$filterDOMProps)(otherProps), segmentProps),
|
|
2452
2687
|
...renderProps,
|
|
2453
2688
|
ref: domRef,
|
|
2689
|
+
"data-placeholder": segment.isPlaceholder || undefined,
|
|
2690
|
+
"data-invalid": state.isInvalid || undefined,
|
|
2691
|
+
"data-readonly": !segment.isEditable || undefined,
|
|
2454
2692
|
"data-type": segment.type
|
|
2455
2693
|
});
|
|
2456
2694
|
}
|
|
@@ -2531,7 +2769,8 @@ function $f3f84453ead64de5$var$Modal(props, ref) {
|
|
|
2531
2769
|
* A modal is an overlay element which blocks interaction with elements outside it.
|
|
2532
2770
|
*/ const $f3f84453ead64de5$export$2b77a92f1a5ad772 = /*#__PURE__*/ (0, $dGqE5$forwardRef)($f3f84453ead64de5$var$Modal);
|
|
2533
2771
|
function $f3f84453ead64de5$var$ModalOverlayWithForwardRef(props, ref) {
|
|
2534
|
-
|
|
2772
|
+
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $f3f84453ead64de5$export$ab57792b9b6974a6);
|
|
2773
|
+
let ctx = props;
|
|
2535
2774
|
let localState = (0, $dGqE5$useOverlayTriggerState)(props);
|
|
2536
2775
|
let state = props.isOpen != null || props.defaultOpen != null || !(ctx === null || ctx === void 0 ? void 0 : ctx.state) ? localState : ctx.state;
|
|
2537
2776
|
let objectRef = (0, $dGqE5$useObjectRef)(ref);
|
|
@@ -2539,7 +2778,8 @@ function $f3f84453ead64de5$var$ModalOverlayWithForwardRef(props, ref) {
|
|
|
2539
2778
|
let isOverlayExiting = (0, $64fa3d84918910a7$export$45fda7c47f93fd48)(objectRef, state.isOpen);
|
|
2540
2779
|
let isModalExiting = (0, $64fa3d84918910a7$export$45fda7c47f93fd48)(modalRef, state.isOpen);
|
|
2541
2780
|
let isExiting = isOverlayExiting || isModalExiting;
|
|
2542
|
-
|
|
2781
|
+
let isSSR = (0, $dGqE5$useIsSSR)();
|
|
2782
|
+
if (!state.isOpen && !isExiting || isSSR) return null;
|
|
2543
2783
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement($f3f84453ead64de5$var$ModalOverlayInner, {
|
|
2544
2784
|
...props,
|
|
2545
2785
|
state: state,
|
|
@@ -2559,7 +2799,8 @@ function $f3f84453ead64de5$var$ModalOverlayInner(props) {
|
|
|
2559
2799
|
defaultClassName: "react-aria-ModalOverlay",
|
|
2560
2800
|
values: {
|
|
2561
2801
|
isEntering: entering,
|
|
2562
|
-
isExiting: props.isExiting
|
|
2802
|
+
isExiting: props.isExiting,
|
|
2803
|
+
state: state
|
|
2563
2804
|
}
|
|
2564
2805
|
});
|
|
2565
2806
|
let viewport = (0, $dGqE5$useViewportSize)();
|
|
@@ -2567,7 +2808,9 @@ function $f3f84453ead64de5$var$ModalOverlayInner(props) {
|
|
|
2567
2808
|
...renderProps.style,
|
|
2568
2809
|
"--visual-viewport-height": viewport.height + "px"
|
|
2569
2810
|
};
|
|
2570
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$Overlay),
|
|
2811
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$Overlay), {
|
|
2812
|
+
isExiting: props.isExiting
|
|
2813
|
+
}, /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
2571
2814
|
...(0, $dGqE5$mergeProps1)((0, $dGqE5$filterDOMProps)(props), underlayProps),
|
|
2572
2815
|
...renderProps,
|
|
2573
2816
|
style: style,
|
|
@@ -2597,7 +2840,8 @@ function $f3f84453ead64de5$var$ModalContent(props) {
|
|
|
2597
2840
|
defaultClassName: "react-aria-Modal",
|
|
2598
2841
|
values: {
|
|
2599
2842
|
isEntering: entering,
|
|
2600
|
-
isExiting: isExiting
|
|
2843
|
+
isExiting: isExiting,
|
|
2844
|
+
state: state
|
|
2601
2845
|
}
|
|
2602
2846
|
});
|
|
2603
2847
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
@@ -2726,6 +2970,7 @@ function $a049562f99e7db0e$var$Group(props, ref) {
|
|
|
2726
2970
|
...(0, $dGqE5$mergeProps)(props, focusProps, hoverProps),
|
|
2727
2971
|
...renderProps,
|
|
2728
2972
|
ref: ref,
|
|
2973
|
+
"data-focus-within": isFocused || undefined,
|
|
2729
2974
|
"data-hovered": isHovered || undefined,
|
|
2730
2975
|
"data-focus-visible": isFocusVisible || undefined
|
|
2731
2976
|
}, props.children);
|
|
@@ -2757,13 +3002,24 @@ function $06d5b8ec9ee5d538$var$DatePicker(props, ref) {
|
|
|
2757
3002
|
createCalendar: $dGqE5$createCalendar
|
|
2758
3003
|
});
|
|
2759
3004
|
let fieldRef = (0, $dGqE5$useRef)(null);
|
|
2760
|
-
let
|
|
3005
|
+
let inputRef = (0, $dGqE5$useRef)(null);
|
|
3006
|
+
let { focusProps: focusProps , isFocused: isFocused , isFocusVisible: isFocusVisible } = (0, $dGqE5$useFocusRing)({
|
|
3007
|
+
within: true
|
|
3008
|
+
});
|
|
3009
|
+
let { fieldProps: dateFieldProps , inputProps: inputProps } = (0, $dGqE5$useDateField)({
|
|
2761
3010
|
...fieldProps,
|
|
2762
|
-
label: label
|
|
3011
|
+
label: label,
|
|
3012
|
+
inputRef: inputRef
|
|
2763
3013
|
}, fieldState, fieldRef);
|
|
2764
3014
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
2765
3015
|
...props,
|
|
2766
|
-
values:
|
|
3016
|
+
values: {
|
|
3017
|
+
state: state,
|
|
3018
|
+
isFocusWithin: isFocused,
|
|
3019
|
+
isFocusVisible: isFocusVisible,
|
|
3020
|
+
isDisabled: props.isDisabled || false,
|
|
3021
|
+
isInvalid: state.isInvalid
|
|
3022
|
+
},
|
|
2767
3023
|
defaultClassName: "react-aria-DatePicker"
|
|
2768
3024
|
});
|
|
2769
3025
|
let DOMProps = (0, $dGqE5$filterDOMProps)(props);
|
|
@@ -2782,7 +3038,9 @@ function $06d5b8ec9ee5d538$var$DatePicker(props, ref) {
|
|
|
2782
3038
|
{
|
|
2783
3039
|
state: fieldState,
|
|
2784
3040
|
fieldProps: dateFieldProps,
|
|
2785
|
-
ref: fieldRef
|
|
3041
|
+
ref: fieldRef,
|
|
3042
|
+
inputProps: inputProps,
|
|
3043
|
+
inputRef: inputRef
|
|
2786
3044
|
}
|
|
2787
3045
|
],
|
|
2788
3046
|
[
|
|
@@ -2827,10 +3085,15 @@ function $06d5b8ec9ee5d538$var$DatePicker(props, ref) {
|
|
|
2827
3085
|
]
|
|
2828
3086
|
]
|
|
2829
3087
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
3088
|
+
...focusProps,
|
|
2830
3089
|
...DOMProps,
|
|
2831
3090
|
...renderProps,
|
|
2832
3091
|
ref: ref,
|
|
2833
|
-
slot: props.slot
|
|
3092
|
+
slot: props.slot,
|
|
3093
|
+
"data-focus-within": isFocused || undefined,
|
|
3094
|
+
"data-invalid": state.isInvalid || undefined,
|
|
3095
|
+
"data-focus-visible": isFocusVisible || undefined,
|
|
3096
|
+
"data-disabled": props.isDisabled || undefined
|
|
2834
3097
|
}));
|
|
2835
3098
|
}
|
|
2836
3099
|
/**
|
|
@@ -2852,9 +3115,14 @@ function $06d5b8ec9ee5d538$var$DateRangePicker(props, ref) {
|
|
|
2852
3115
|
createCalendar: $dGqE5$createCalendar
|
|
2853
3116
|
});
|
|
2854
3117
|
let startFieldRef = (0, $dGqE5$useRef)(null);
|
|
2855
|
-
let
|
|
3118
|
+
let startInputRef = (0, $dGqE5$useRef)(null);
|
|
3119
|
+
let { focusProps: focusProps , isFocused: isFocused , isFocusVisible: isFocusVisible } = (0, $dGqE5$useFocusRing)({
|
|
3120
|
+
within: true
|
|
3121
|
+
});
|
|
3122
|
+
let { fieldProps: startDateFieldProps , inputProps: startInputProps } = (0, $dGqE5$useDateField)({
|
|
2856
3123
|
...startFieldProps,
|
|
2857
|
-
label: label
|
|
3124
|
+
label: label,
|
|
3125
|
+
inputRef: startInputRef
|
|
2858
3126
|
}, startFieldState, startFieldRef);
|
|
2859
3127
|
let endFieldState = (0, $dGqE5$useDateFieldState)({
|
|
2860
3128
|
...endFieldProps,
|
|
@@ -2862,13 +3130,21 @@ function $06d5b8ec9ee5d538$var$DateRangePicker(props, ref) {
|
|
|
2862
3130
|
createCalendar: $dGqE5$createCalendar
|
|
2863
3131
|
});
|
|
2864
3132
|
let endFieldRef = (0, $dGqE5$useRef)(null);
|
|
2865
|
-
let
|
|
3133
|
+
let endInputRef = (0, $dGqE5$useRef)(null);
|
|
3134
|
+
let { fieldProps: endDateFieldProps , inputProps: endInputProps } = (0, $dGqE5$useDateField)({
|
|
2866
3135
|
...endFieldProps,
|
|
2867
|
-
label: label
|
|
3136
|
+
label: label,
|
|
3137
|
+
inputRef: endInputRef
|
|
2868
3138
|
}, endFieldState, endFieldRef);
|
|
2869
3139
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
2870
3140
|
...props,
|
|
2871
|
-
values:
|
|
3141
|
+
values: {
|
|
3142
|
+
state: state,
|
|
3143
|
+
isFocusWithin: isFocused,
|
|
3144
|
+
isFocusVisible: isFocusVisible,
|
|
3145
|
+
isDisabled: props.isDisabled || false,
|
|
3146
|
+
isInvalid: state.isInvalid
|
|
3147
|
+
},
|
|
2872
3148
|
defaultClassName: "react-aria-DateRangePicker"
|
|
2873
3149
|
});
|
|
2874
3150
|
let DOMProps = (0, $dGqE5$filterDOMProps)(props);
|
|
@@ -2920,12 +3196,16 @@ function $06d5b8ec9ee5d538$var$DateRangePicker(props, ref) {
|
|
|
2920
3196
|
start: {
|
|
2921
3197
|
state: startFieldState,
|
|
2922
3198
|
fieldProps: startDateFieldProps,
|
|
2923
|
-
ref: startFieldRef
|
|
3199
|
+
ref: startFieldRef,
|
|
3200
|
+
inputRef: startInputRef,
|
|
3201
|
+
inputProps: startInputProps
|
|
2924
3202
|
},
|
|
2925
3203
|
end: {
|
|
2926
3204
|
state: endFieldState,
|
|
2927
3205
|
fieldProps: endDateFieldProps,
|
|
2928
|
-
ref: endFieldRef
|
|
3206
|
+
ref: endFieldRef,
|
|
3207
|
+
inputRef: endInputRef,
|
|
3208
|
+
inputProps: endInputProps
|
|
2929
3209
|
}
|
|
2930
3210
|
}
|
|
2931
3211
|
}
|
|
@@ -2941,10 +3221,15 @@ function $06d5b8ec9ee5d538$var$DateRangePicker(props, ref) {
|
|
|
2941
3221
|
]
|
|
2942
3222
|
]
|
|
2943
3223
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
3224
|
+
...focusProps,
|
|
2944
3225
|
...DOMProps,
|
|
2945
3226
|
...renderProps,
|
|
2946
3227
|
ref: ref,
|
|
2947
|
-
slot: props.slot
|
|
3228
|
+
slot: props.slot,
|
|
3229
|
+
"data-focus-within": isFocused || undefined,
|
|
3230
|
+
"data-invalid": state.isInvalid || undefined,
|
|
3231
|
+
"data-focus-visible": isFocusVisible || undefined,
|
|
3232
|
+
"data-disabled": props.isDisabled || undefined
|
|
2948
3233
|
}));
|
|
2949
3234
|
}
|
|
2950
3235
|
/**
|
|
@@ -2966,55 +3251,6 @@ function $06d5b8ec9ee5d538$var$DateRangePicker(props, ref) {
|
|
|
2966
3251
|
* governing permissions and limitations under the License.
|
|
2967
3252
|
*/
|
|
2968
3253
|
|
|
2969
|
-
/*
|
|
2970
|
-
* Copyright 2023 Adobe. All rights reserved.
|
|
2971
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
2972
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
2973
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
2974
|
-
*
|
|
2975
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
2976
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
2977
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
2978
|
-
* governing permissions and limitations under the License.
|
|
2979
|
-
*/
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
const $1e2864c73f66a4da$export$9106743a055caed1 = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
2985
|
-
function $1e2864c73f66a4da$var$FileTrigger(props, ref) {
|
|
2986
|
-
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $1e2864c73f66a4da$export$9106743a055caed1);
|
|
2987
|
-
let { onChange: onChange , acceptedFileTypes: acceptedFileTypes , className: className , allowsMultiple: allowsMultiple , defaultCamera: defaultCamera , children: children , ...otherProps } = props;
|
|
2988
|
-
let inputRef = (0, $dGqE5$useRef)(null);
|
|
2989
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
2990
|
-
className: className || "react-aria-FileTrigger",
|
|
2991
|
-
...(0, $dGqE5$filterDOMProps)(otherProps),
|
|
2992
|
-
ref: ref,
|
|
2993
|
-
slot: props.slot
|
|
2994
|
-
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$PressResponder), {
|
|
2995
|
-
onPress: ()=>{
|
|
2996
|
-
var _inputRef_current;
|
|
2997
|
-
return (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.click();
|
|
2998
|
-
}
|
|
2999
|
-
}, children), /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $3985021b0ad6602f$export$f5b8910cec6cf069), {
|
|
3000
|
-
type: "file",
|
|
3001
|
-
ref: inputRef,
|
|
3002
|
-
style: {
|
|
3003
|
-
display: "none"
|
|
3004
|
-
},
|
|
3005
|
-
accept: acceptedFileTypes === null || acceptedFileTypes === void 0 ? void 0 : acceptedFileTypes.toString(),
|
|
3006
|
-
onChange: (e)=>{
|
|
3007
|
-
return onChange === null || onChange === void 0 ? void 0 : onChange(e.target.files);
|
|
3008
|
-
},
|
|
3009
|
-
capture: defaultCamera,
|
|
3010
|
-
multiple: allowsMultiple
|
|
3011
|
-
}));
|
|
3012
|
-
}
|
|
3013
|
-
/**
|
|
3014
|
-
* A FileTrigger allows a user to access the file system with either a Button or Link.
|
|
3015
|
-
*/ const $1e2864c73f66a4da$export$6fb4a10d2c950550 = /*#__PURE__*/ (0, $dGqE5$forwardRef)($1e2864c73f66a4da$var$FileTrigger);
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
3254
|
|
|
3019
3255
|
|
|
3020
3256
|
|
|
@@ -3029,9 +3265,16 @@ function $cb088e721efb9218$var$DropZone(props, ref) {
|
|
|
3029
3265
|
});
|
|
3030
3266
|
let { hoverProps: hoverProps , isHovered: isHovered } = (0, $dGqE5$useHover)({});
|
|
3031
3267
|
let { focusProps: focusProps , isFocused: isFocused , isFocusVisible: isFocusVisible } = (0, $dGqE5$useFocusRing)();
|
|
3032
|
-
let textId = (0, $dGqE5$
|
|
3268
|
+
let textId = (0, $dGqE5$useSlotId)();
|
|
3269
|
+
let ariaLabel = props["aria-label"] || "DropZone";
|
|
3270
|
+
let messageId = isDropTarget && props["aria-labelledby"] ? props["aria-labelledby"] : null;
|
|
3271
|
+
let ariaLabelledby = [
|
|
3272
|
+
textId,
|
|
3273
|
+
messageId
|
|
3274
|
+
].filter(Boolean).join(" ");
|
|
3033
3275
|
let labelProps = (0, $dGqE5$useLabels)({
|
|
3034
|
-
"aria-
|
|
3276
|
+
"aria-label": ariaLabel,
|
|
3277
|
+
"aria-labelledby": ariaLabelledby
|
|
3035
3278
|
});
|
|
3036
3279
|
let { clipboardProps: clipboardProps } = (0, $dGqE5$useClipboard)({
|
|
3037
3280
|
onPaste: (items)=>{
|
|
@@ -3059,15 +3302,11 @@ function $cb088e721efb9218$var$DropZone(props, ref) {
|
|
|
3059
3302
|
delete DOMProps.id;
|
|
3060
3303
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
3061
3304
|
values: [
|
|
3062
|
-
[
|
|
3063
|
-
(0, $1e2864c73f66a4da$export$9106743a055caed1),
|
|
3064
|
-
{}
|
|
3065
|
-
],
|
|
3066
3305
|
[
|
|
3067
3306
|
(0, $514c0188e459b4c0$export$9afb8bc826b033ea),
|
|
3068
3307
|
{
|
|
3069
3308
|
id: textId,
|
|
3070
|
-
slot: "
|
|
3309
|
+
slot: "label"
|
|
3071
3310
|
}
|
|
3072
3311
|
]
|
|
3073
3312
|
]
|
|
@@ -3075,6 +3314,7 @@ function $cb088e721efb9218$var$DropZone(props, ref) {
|
|
|
3075
3314
|
...(0, $dGqE5$mergeProps)(dropProps, hoverProps, DOMProps),
|
|
3076
3315
|
...renderProps,
|
|
3077
3316
|
slot: props.slot,
|
|
3317
|
+
ref: ref,
|
|
3078
3318
|
onClick: ()=>{
|
|
3079
3319
|
var _buttonRef_current;
|
|
3080
3320
|
return (_buttonRef_current = buttonRef.current) === null || _buttonRef_current === void 0 ? void 0 : _buttonRef_current.focus();
|
|
@@ -3085,16 +3325,57 @@ function $cb088e721efb9218$var$DropZone(props, ref) {
|
|
|
3085
3325
|
"data-drop-target": isDropTarget || undefined
|
|
3086
3326
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$VisuallyHidden), null, /*#__PURE__*/ (0, $dGqE5$react).createElement("button", {
|
|
3087
3327
|
...(0, $dGqE5$mergeProps)(dropButtonProps, focusProps, clipboardProps, labelProps),
|
|
3088
|
-
"aria-label": "DropZone" // will need to update with string formatter
|
|
3089
|
-
,
|
|
3090
3328
|
ref: buttonRef
|
|
3091
3329
|
})), renderProps.children));
|
|
3092
3330
|
}
|
|
3093
3331
|
/**
|
|
3094
|
-
* A
|
|
3332
|
+
* A drop zone is an area into which one or multiple objects can be dragged and dropped.
|
|
3095
3333
|
*/ const $cb088e721efb9218$export$3c6489d84dc98b6 = /*#__PURE__*/ (0, $dGqE5$forwardRef)($cb088e721efb9218$var$DropZone);
|
|
3096
3334
|
|
|
3097
3335
|
|
|
3336
|
+
/*
|
|
3337
|
+
* Copyright 2023 Adobe. All rights reserved.
|
|
3338
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
3339
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
3340
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
3341
|
+
*
|
|
3342
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
3343
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
3344
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
3345
|
+
* governing permissions and limitations under the License.
|
|
3346
|
+
*/
|
|
3347
|
+
|
|
3348
|
+
|
|
3349
|
+
|
|
3350
|
+
function $1e2864c73f66a4da$var$FileTrigger(props, ref) {
|
|
3351
|
+
let { onChange: onChange , acceptedFileTypes: acceptedFileTypes , allowsMultiple: allowsMultiple , defaultCamera: defaultCamera , name: name , children: children , ...rest } = props;
|
|
3352
|
+
let inputRef = (0, $dGqE5$useObjectRef)(ref);
|
|
3353
|
+
let domProps = (0, $dGqE5$filterDOMProps)(rest);
|
|
3354
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$PressResponder), {
|
|
3355
|
+
onPress: ()=>{
|
|
3356
|
+
var _inputRef_current;
|
|
3357
|
+
return (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.click();
|
|
3358
|
+
}
|
|
3359
|
+
}, children), /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $3985021b0ad6602f$export$f5b8910cec6cf069), {
|
|
3360
|
+
...domProps,
|
|
3361
|
+
type: "file",
|
|
3362
|
+
ref: inputRef,
|
|
3363
|
+
style: {
|
|
3364
|
+
display: "none"
|
|
3365
|
+
},
|
|
3366
|
+
accept: acceptedFileTypes === null || acceptedFileTypes === void 0 ? void 0 : acceptedFileTypes.toString(),
|
|
3367
|
+
onChange: (e)=>{
|
|
3368
|
+
return onChange === null || onChange === void 0 ? void 0 : onChange(e.target.files);
|
|
3369
|
+
},
|
|
3370
|
+
capture: defaultCamera,
|
|
3371
|
+
multiple: allowsMultiple,
|
|
3372
|
+
name: name
|
|
3373
|
+
}));
|
|
3374
|
+
}
|
|
3375
|
+
/**
|
|
3376
|
+
* A FileTrigger allows a user to access the file system with any pressable React Aria or React Spectrum component, or custom components built with usePress.
|
|
3377
|
+
*/ const $1e2864c73f66a4da$export$6fb4a10d2c950550 = /*#__PURE__*/ (0, $dGqE5$forwardRef)($1e2864c73f66a4da$var$FileTrigger);
|
|
3378
|
+
|
|
3098
3379
|
|
|
3099
3380
|
/*
|
|
3100
3381
|
* Copyright 2022 Adobe. All rights reserved.
|
|
@@ -3119,9 +3400,17 @@ function $cb088e721efb9218$var$DropZone(props, ref) {
|
|
|
3119
3400
|
const $72e60046c03fbe42$export$54fe942636b6416d = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
3120
3401
|
const $72e60046c03fbe42$var$InternalGridListContext = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
3121
3402
|
function $72e60046c03fbe42$var$GridList(props, ref) {
|
|
3403
|
+
// Render the portal first so that we have the collection by the time we render the DOM in SSR.
|
|
3122
3404
|
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $72e60046c03fbe42$export$54fe942636b6416d);
|
|
3405
|
+
let { collection: collection , portal: portal } = (0, $7135fc7d473fd974$export$6cd28814d92fa9c9)(props);
|
|
3406
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null, portal, /*#__PURE__*/ (0, $dGqE5$react).createElement($72e60046c03fbe42$var$GridListInner, {
|
|
3407
|
+
props: props,
|
|
3408
|
+
collection: collection,
|
|
3409
|
+
gridListRef: ref
|
|
3410
|
+
}));
|
|
3411
|
+
}
|
|
3412
|
+
function $72e60046c03fbe42$var$GridListInner({ props: props , collection: collection , gridListRef: ref }) {
|
|
3123
3413
|
let { dragAndDropHooks: dragAndDropHooks } = props;
|
|
3124
|
-
let { portal: portal , collection: collection } = (0, $7135fc7d473fd974$export$6cd28814d92fa9c9)(props);
|
|
3125
3414
|
let state = (0, $dGqE5$useListState)({
|
|
3126
3415
|
...props,
|
|
3127
3416
|
collection: collection,
|
|
@@ -3195,7 +3484,8 @@ function $72e60046c03fbe42$var$GridList(props, ref) {
|
|
|
3195
3484
|
isDropTarget: isRootDropTarget,
|
|
3196
3485
|
isEmpty: state.collection.size === 0,
|
|
3197
3486
|
isFocused: isFocused,
|
|
3198
|
-
isFocusVisible: isFocusVisible
|
|
3487
|
+
isFocusVisible: isFocusVisible,
|
|
3488
|
+
state: state
|
|
3199
3489
|
}
|
|
3200
3490
|
});
|
|
3201
3491
|
let emptyState = null;
|
|
@@ -3256,7 +3546,7 @@ function $72e60046c03fbe42$var$GridList(props, ref) {
|
|
|
3256
3546
|
}
|
|
3257
3547
|
]
|
|
3258
3548
|
]
|
|
3259
|
-
}, isListDroppable && /*#__PURE__*/ (0, $dGqE5$react).createElement($72e60046c03fbe42$var$RootDropIndicator, null), children), emptyState, dragPreview
|
|
3549
|
+
}, isListDroppable && /*#__PURE__*/ (0, $dGqE5$react).createElement($72e60046c03fbe42$var$RootDropIndicator, null), children), emptyState, dragPreview));
|
|
3260
3550
|
}
|
|
3261
3551
|
/**
|
|
3262
3552
|
* A grid list displays a list of interactive items, with support for keyboard navigation,
|
|
@@ -3342,17 +3632,25 @@ function $72e60046c03fbe42$var$GridListItem({ item: item }) {
|
|
|
3342
3632
|
...(0, $dGqE5$mergeProps)((0, $dGqE5$filterDOMProps)(props), rowProps, focusProps, hoverProps, draggableItem === null || draggableItem === void 0 ? void 0 : draggableItem.dragProps),
|
|
3343
3633
|
...renderProps,
|
|
3344
3634
|
ref: ref,
|
|
3635
|
+
"data-selected": states.isSelected || undefined,
|
|
3636
|
+
"data-disabled": states.isDisabled || undefined,
|
|
3345
3637
|
"data-hovered": isHovered || undefined,
|
|
3346
3638
|
"data-focused": states.isFocused || undefined,
|
|
3347
3639
|
"data-focus-visible": isFocusVisible || undefined,
|
|
3348
3640
|
"data-pressed": states.isPressed || undefined,
|
|
3641
|
+
"data-allows-dragging": !!dragState || undefined,
|
|
3349
3642
|
"data-dragging": isDragging || undefined,
|
|
3350
|
-
"data-drop-target": (dropIndicator === null || dropIndicator === void 0 ? void 0 : dropIndicator.isDropTarget) || undefined
|
|
3643
|
+
"data-drop-target": (dropIndicator === null || dropIndicator === void 0 ? void 0 : dropIndicator.isDropTarget) || undefined,
|
|
3644
|
+
"data-selection-mode": state.selectionManager.selectionMode === "none" ? undefined : state.selectionManager.selectionMode
|
|
3351
3645
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement("div", gridCellProps, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
3352
3646
|
values: [
|
|
3353
3647
|
[
|
|
3354
3648
|
(0, $bc237834342dbd75$export$b085522c77523c51),
|
|
3355
|
-
|
|
3649
|
+
{
|
|
3650
|
+
slots: {
|
|
3651
|
+
selection: checkboxProps
|
|
3652
|
+
}
|
|
3653
|
+
}
|
|
3356
3654
|
],
|
|
3357
3655
|
[
|
|
3358
3656
|
(0, $d2b4bc8c273e7be6$export$24d547caef80ccd1),
|
|
@@ -3669,10 +3967,13 @@ function $3674c52c6b3c5bce$var$MenuItem({ item: item }) {
|
|
|
3669
3967
|
...(0, $dGqE5$mergeProps)(DOMProps, menuItemProps, focusProps),
|
|
3670
3968
|
...renderProps,
|
|
3671
3969
|
ref: ref,
|
|
3970
|
+
"data-disabled": states.isDisabled || undefined,
|
|
3672
3971
|
"data-hovered": states.isFocused || undefined,
|
|
3673
3972
|
"data-focused": states.isFocused || undefined,
|
|
3674
3973
|
"data-focus-visible": isFocusVisible || undefined,
|
|
3675
|
-
"data-pressed": states.isPressed || undefined
|
|
3974
|
+
"data-pressed": states.isPressed || undefined,
|
|
3975
|
+
"data-selected": states.isSelected || undefined,
|
|
3976
|
+
"data-selection-mode": state.selectionManager.selectionMode === "none" ? undefined : state.selectionManager.selectionMode
|
|
3676
3977
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
3677
3978
|
values: [
|
|
3678
3979
|
[
|
|
@@ -3781,7 +4082,11 @@ function $b91743d66a0ed188$var$NumberField(props, ref) {
|
|
|
3781
4082
|
}, state, inputRef);
|
|
3782
4083
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
3783
4084
|
...props,
|
|
3784
|
-
values:
|
|
4085
|
+
values: {
|
|
4086
|
+
state: state,
|
|
4087
|
+
isDisabled: props.isDisabled || false,
|
|
4088
|
+
isInvalid: props.isInvalid || false
|
|
4089
|
+
},
|
|
3785
4090
|
defaultClassName: "react-aria-NumberField"
|
|
3786
4091
|
});
|
|
3787
4092
|
let DOMProps = (0, $dGqE5$filterDOMProps)(props);
|
|
@@ -3829,7 +4134,13 @@ function $b91743d66a0ed188$var$NumberField(props, ref) {
|
|
|
3829
4134
|
...DOMProps,
|
|
3830
4135
|
...renderProps,
|
|
3831
4136
|
ref: ref,
|
|
3832
|
-
slot: props.slot
|
|
4137
|
+
slot: props.slot,
|
|
4138
|
+
"data-disabled": props.isDisabled || undefined,
|
|
4139
|
+
"data-invalid": props.isInvalid || undefined
|
|
4140
|
+
}), props.name && /*#__PURE__*/ (0, $dGqE5$react).createElement("input", {
|
|
4141
|
+
type: "hidden",
|
|
4142
|
+
name: props.name,
|
|
4143
|
+
value: isNaN(state.numberValue) ? "" : state.numberValue
|
|
3833
4144
|
}));
|
|
3834
4145
|
}
|
|
3835
4146
|
/**
|
|
@@ -3911,6 +4222,7 @@ function $0393f8ab869a0f1a$var$ProgressBar(props, ref) {
|
|
|
3911
4222
|
|
|
3912
4223
|
|
|
3913
4224
|
const $b6c3ddc6086f204d$export$a79eda4ff50e30b6 = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
4225
|
+
const $b6c3ddc6086f204d$export$b118023277d4a5c3 = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
3914
4226
|
let $b6c3ddc6086f204d$var$InternalRadioContext = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
3915
4227
|
function $b6c3ddc6086f204d$var$RadioGroup(props, ref) {
|
|
3916
4228
|
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $b6c3ddc6086f204d$export$a79eda4ff50e30b6);
|
|
@@ -3927,7 +4239,8 @@ function $b6c3ddc6086f204d$var$RadioGroup(props, ref) {
|
|
|
3927
4239
|
isDisabled: state.isDisabled,
|
|
3928
4240
|
isReadOnly: state.isReadOnly,
|
|
3929
4241
|
isRequired: state.isRequired,
|
|
3930
|
-
|
|
4242
|
+
isInvalid: state.isInvalid,
|
|
4243
|
+
state: state
|
|
3931
4244
|
},
|
|
3932
4245
|
defaultClassName: "react-aria-RadioGroup"
|
|
3933
4246
|
});
|
|
@@ -3935,7 +4248,12 @@ function $b6c3ddc6086f204d$var$RadioGroup(props, ref) {
|
|
|
3935
4248
|
...radioGroupProps,
|
|
3936
4249
|
...renderProps,
|
|
3937
4250
|
ref: ref,
|
|
3938
|
-
slot: props.slot
|
|
4251
|
+
slot: props.slot,
|
|
4252
|
+
"data-orientation": props.orientation || "vertical",
|
|
4253
|
+
"data-invalid": state.isInvalid || undefined,
|
|
4254
|
+
"data-disabled": state.isDisabled || undefined,
|
|
4255
|
+
"data-readonly": state.isReadOnly || undefined,
|
|
4256
|
+
"data-required": state.isRequired || undefined
|
|
3939
4257
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
3940
4258
|
values: [
|
|
3941
4259
|
[
|
|
@@ -3946,7 +4264,8 @@ function $b6c3ddc6086f204d$var$RadioGroup(props, ref) {
|
|
|
3946
4264
|
(0, $01b77f81d0f07f68$export$75b6ee27786ba447),
|
|
3947
4265
|
{
|
|
3948
4266
|
...labelProps,
|
|
3949
|
-
ref: labelRef
|
|
4267
|
+
ref: labelRef,
|
|
4268
|
+
elementType: "span"
|
|
3950
4269
|
}
|
|
3951
4270
|
],
|
|
3952
4271
|
[
|
|
@@ -3962,6 +4281,7 @@ function $b6c3ddc6086f204d$var$RadioGroup(props, ref) {
|
|
|
3962
4281
|
}, renderProps.children));
|
|
3963
4282
|
}
|
|
3964
4283
|
function $b6c3ddc6086f204d$var$Radio(props, ref) {
|
|
4284
|
+
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $b6c3ddc6086f204d$export$b118023277d4a5c3);
|
|
3965
4285
|
let state = (0, $dGqE5$react).useContext($b6c3ddc6086f204d$var$InternalRadioContext);
|
|
3966
4286
|
let domRef = (0, $dGqE5$useObjectRef)(ref);
|
|
3967
4287
|
let { inputProps: inputProps , isSelected: isSelected , isDisabled: isDisabled , isPressed: isPressedKeyboard } = (0, $dGqE5$useRadio)({
|
|
@@ -3971,7 +4291,7 @@ function $b6c3ddc6086f204d$var$Radio(props, ref) {
|
|
|
3971
4291
|
}, state, domRef);
|
|
3972
4292
|
let { isFocused: isFocused , isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $dGqE5$useFocusRing)();
|
|
3973
4293
|
let interactionDisabled = isDisabled || state.isReadOnly;
|
|
3974
|
-
// Handle press state for full label. Keyboard press state is returned by
|
|
4294
|
+
// Handle press state for full label. Keyboard press state is returned by useRadio
|
|
3975
4295
|
// since it is handled on the <input> element itself.
|
|
3976
4296
|
let [isPressed, setPressed] = (0, $dGqE5$useState)(false);
|
|
3977
4297
|
let { pressProps: pressProps } = (0, $dGqE5$usePress)({
|
|
@@ -3998,7 +4318,7 @@ function $b6c3ddc6086f204d$var$Radio(props, ref) {
|
|
|
3998
4318
|
isFocusVisible: isFocusVisible,
|
|
3999
4319
|
isDisabled: isDisabled,
|
|
4000
4320
|
isReadOnly: state.isReadOnly,
|
|
4001
|
-
|
|
4321
|
+
isInvalid: state.isInvalid,
|
|
4002
4322
|
isRequired: state.isRequired
|
|
4003
4323
|
}
|
|
4004
4324
|
});
|
|
@@ -4013,13 +4333,12 @@ function $b6c3ddc6086f204d$var$Radio(props, ref) {
|
|
|
4013
4333
|
"data-focus-visible": isFocusVisible || undefined,
|
|
4014
4334
|
"data-disabled": isDisabled || undefined,
|
|
4015
4335
|
"data-readonly": state.isReadOnly || undefined,
|
|
4016
|
-
"data-
|
|
4336
|
+
"data-invalid": state.isInvalid || undefined,
|
|
4017
4337
|
"data-required": state.isRequired || undefined
|
|
4018
4338
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$VisuallyHidden), {
|
|
4019
4339
|
elementType: "span"
|
|
4020
4340
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement("input", {
|
|
4021
|
-
...inputProps,
|
|
4022
|
-
...focusProps,
|
|
4341
|
+
...(0, $dGqE5$mergeProps1)(inputProps, focusProps),
|
|
4023
4342
|
ref: domRef
|
|
4024
4343
|
})), renderProps.children);
|
|
4025
4344
|
}
|
|
@@ -4062,7 +4381,12 @@ function $440f4836bcb56932$var$SearchField(props, ref) {
|
|
|
4062
4381
|
}, state, inputRef);
|
|
4063
4382
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
4064
4383
|
...props,
|
|
4065
|
-
values:
|
|
4384
|
+
values: {
|
|
4385
|
+
isEmpty: state.value === "",
|
|
4386
|
+
isDisabled: props.isDisabled || false,
|
|
4387
|
+
isInvalid: props.isInvalid || false,
|
|
4388
|
+
state: state
|
|
4389
|
+
},
|
|
4066
4390
|
defaultClassName: "react-aria-SearchField"
|
|
4067
4391
|
});
|
|
4068
4392
|
let DOMProps = (0, $dGqE5$filterDOMProps)(props);
|
|
@@ -4072,7 +4396,9 @@ function $440f4836bcb56932$var$SearchField(props, ref) {
|
|
|
4072
4396
|
...renderProps,
|
|
4073
4397
|
ref: ref,
|
|
4074
4398
|
slot: props.slot,
|
|
4075
|
-
"data-empty": state.value === "" || undefined
|
|
4399
|
+
"data-empty": state.value === "" || undefined,
|
|
4400
|
+
"data-disabled": props.isDisabled || undefined,
|
|
4401
|
+
"data-invalid": props.isInvalid || undefined
|
|
4076
4402
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
4077
4403
|
values: [
|
|
4078
4404
|
[
|
|
@@ -4135,26 +4461,30 @@ const $82d7e5349645de74$export$7540cee5be7dc19b = /*#__PURE__*/ (0, $dGqE5$creat
|
|
|
4135
4461
|
const $82d7e5349645de74$var$InternalSelectContext = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
4136
4462
|
function $82d7e5349645de74$var$Select(props, ref) {
|
|
4137
4463
|
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $82d7e5349645de74$export$7540cee5be7dc19b);
|
|
4138
|
-
let
|
|
4139
|
-
children: []
|
|
4140
|
-
});
|
|
4141
|
-
var _props_items;
|
|
4142
|
-
let { portal: portal , collection: collection } = (0, $7135fc7d473fd974$export$6cd28814d92fa9c9)({
|
|
4143
|
-
items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : listBoxProps.items,
|
|
4144
|
-
children: listBoxProps.children
|
|
4145
|
-
});
|
|
4464
|
+
let { collection: collection , document: document } = (0, $7135fc7d473fd974$export$7cd71aa5ddd6dc4e)();
|
|
4146
4465
|
let state = (0, $dGqE5$useSelectState)({
|
|
4147
4466
|
...props,
|
|
4148
4467
|
collection: collection,
|
|
4149
4468
|
children: undefined
|
|
4150
4469
|
});
|
|
4470
|
+
let { isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $dGqE5$useFocusRing)({
|
|
4471
|
+
within: true
|
|
4472
|
+
});
|
|
4151
4473
|
// Only expose a subset of state to renderProps function to avoid infinite render loop
|
|
4152
4474
|
let renderPropsState = (0, $dGqE5$useMemo)(()=>({
|
|
4153
4475
|
isOpen: state.isOpen,
|
|
4154
|
-
isFocused: state.isFocused
|
|
4476
|
+
isFocused: state.isFocused,
|
|
4477
|
+
isFocusVisible: isFocusVisible,
|
|
4478
|
+
isDisabled: props.isDisabled || false,
|
|
4479
|
+
isInvalid: props.isInvalid || false,
|
|
4480
|
+
isRequired: props.isRequired || false
|
|
4155
4481
|
}), [
|
|
4156
4482
|
state.isOpen,
|
|
4157
|
-
state.isFocused
|
|
4483
|
+
state.isFocused,
|
|
4484
|
+
isFocusVisible,
|
|
4485
|
+
props.isDisabled,
|
|
4486
|
+
props.isInvalid,
|
|
4487
|
+
props.isRequired
|
|
4158
4488
|
]);
|
|
4159
4489
|
// Get props for child elements from useSelect
|
|
4160
4490
|
let buttonRef = (0, $dGqE5$useRef)(null);
|
|
@@ -4181,7 +4511,24 @@ function $82d7e5349645de74$var$Select(props, ref) {
|
|
|
4181
4511
|
});
|
|
4182
4512
|
let DOMProps = (0, $dGqE5$filterDOMProps)(props);
|
|
4183
4513
|
delete DOMProps.id;
|
|
4184
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
4514
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$8dc98ba7eadeaa56), null, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
4515
|
+
values: [
|
|
4516
|
+
[
|
|
4517
|
+
$82d7e5349645de74$var$InternalSelectContext,
|
|
4518
|
+
{
|
|
4519
|
+
state: state,
|
|
4520
|
+
valueProps: valueProps,
|
|
4521
|
+
placeholder: props.placeholder
|
|
4522
|
+
}
|
|
4523
|
+
],
|
|
4524
|
+
[
|
|
4525
|
+
(0, $eed445e0843c11d0$export$7ff8f37d2d81a48d),
|
|
4526
|
+
{
|
|
4527
|
+
document: document
|
|
4528
|
+
}
|
|
4529
|
+
]
|
|
4530
|
+
]
|
|
4531
|
+
}, renderProps.children)), /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
4185
4532
|
values: [
|
|
4186
4533
|
[
|
|
4187
4534
|
$82d7e5349645de74$var$InternalSelectContext,
|
|
@@ -4212,7 +4559,6 @@ function $82d7e5349645de74$var$Select(props, ref) {
|
|
|
4212
4559
|
{
|
|
4213
4560
|
state: state,
|
|
4214
4561
|
triggerRef: buttonRef,
|
|
4215
|
-
preserveChildren: true,
|
|
4216
4562
|
placement: "bottom start",
|
|
4217
4563
|
style: {
|
|
4218
4564
|
"--trigger-width": buttonWidth
|
|
@@ -4223,7 +4569,6 @@ function $82d7e5349645de74$var$Select(props, ref) {
|
|
|
4223
4569
|
(0, $eed445e0843c11d0$export$7ff8f37d2d81a48d),
|
|
4224
4570
|
{
|
|
4225
4571
|
state: state,
|
|
4226
|
-
[(0, $64fa3d84918910a7$export$91172ebb93c441a2)]: setListBoxProps,
|
|
4227
4572
|
...menuProps
|
|
4228
4573
|
}
|
|
4229
4574
|
],
|
|
@@ -4240,24 +4585,31 @@ function $82d7e5349645de74$var$Select(props, ref) {
|
|
|
4240
4585
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
4241
4586
|
...DOMProps,
|
|
4242
4587
|
...renderProps,
|
|
4588
|
+
...focusProps,
|
|
4243
4589
|
ref: ref,
|
|
4244
4590
|
slot: props.slot,
|
|
4245
4591
|
"data-focused": state.isFocused || undefined,
|
|
4246
|
-
"data-
|
|
4247
|
-
|
|
4592
|
+
"data-focus-visible": isFocusVisible || undefined,
|
|
4593
|
+
"data-open": state.isOpen || undefined,
|
|
4594
|
+
"data-disabled": props.isDisabled || undefined,
|
|
4595
|
+
"data-invalid": props.isInvalid || undefined,
|
|
4596
|
+
"data-required": props.isRequired || undefined
|
|
4597
|
+
}), /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$HiddenSelect), {
|
|
4248
4598
|
state: state,
|
|
4249
4599
|
triggerRef: buttonRef,
|
|
4250
4600
|
label: label,
|
|
4251
|
-
name: props.name
|
|
4252
|
-
|
|
4601
|
+
name: props.name,
|
|
4602
|
+
isDisabled: props.isDisabled
|
|
4603
|
+
})));
|
|
4253
4604
|
}
|
|
4254
4605
|
/**
|
|
4255
4606
|
* A select displays a collapsible list of options and allows a user to select one of them.
|
|
4256
4607
|
*/ const $82d7e5349645de74$export$ef9b1a59e592288f = /*#__PURE__*/ (0, $dGqE5$forwardRef)($82d7e5349645de74$var$Select);
|
|
4257
4608
|
function $82d7e5349645de74$var$SelectValue(props, ref) {
|
|
4258
|
-
var _state_selectedItem, _state_selectedItem1
|
|
4609
|
+
var _state_selectedItem, _state_selectedItem1;
|
|
4259
4610
|
let { state: state , valueProps: valueProps , placeholder: placeholder } = (0, $dGqE5$useContext)($82d7e5349645de74$var$InternalSelectContext);
|
|
4260
|
-
let
|
|
4611
|
+
let selectedItem = state.selectedKey != null ? state.collection.getItem(state.selectedKey) : null;
|
|
4612
|
+
let rendered = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.rendered;
|
|
4261
4613
|
if (typeof rendered === "function") {
|
|
4262
4614
|
// If the selected item has a function as a child, we need to call it to render to JSX.
|
|
4263
4615
|
let fn = rendered;
|
|
@@ -4279,9 +4631,9 @@ function $82d7e5349645de74$var$SelectValue(props, ref) {
|
|
|
4279
4631
|
defaultChildren: rendered || placeholder || "Select an item",
|
|
4280
4632
|
defaultClassName: "react-aria-SelectValue",
|
|
4281
4633
|
values: {
|
|
4282
|
-
selectedItem: (_state_selectedItem_value = (
|
|
4283
|
-
selectedText: (_state_selectedItem_textValue = (
|
|
4284
|
-
isPlaceholder: !
|
|
4634
|
+
selectedItem: (_state_selectedItem_value = (_state_selectedItem = state.selectedItem) === null || _state_selectedItem === void 0 ? void 0 : _state_selectedItem.value) !== null && _state_selectedItem_value !== void 0 ? _state_selectedItem_value : null,
|
|
4635
|
+
selectedText: (_state_selectedItem_textValue = (_state_selectedItem1 = state.selectedItem) === null || _state_selectedItem1 === void 0 ? void 0 : _state_selectedItem1.textValue) !== null && _state_selectedItem_textValue !== void 0 ? _state_selectedItem_textValue : null,
|
|
4636
|
+
isPlaceholder: !selectedItem
|
|
4285
4637
|
}
|
|
4286
4638
|
});
|
|
4287
4639
|
let DOMProps = (0, $dGqE5$filterDOMProps)(props);
|
|
@@ -4291,7 +4643,7 @@ function $82d7e5349645de74$var$SelectValue(props, ref) {
|
|
|
4291
4643
|
...DOMProps,
|
|
4292
4644
|
...valueProps,
|
|
4293
4645
|
...renderProps,
|
|
4294
|
-
"data-placeholder": !
|
|
4646
|
+
"data-placeholder": !selectedItem || undefined
|
|
4295
4647
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $514c0188e459b4c0$export$9afb8bc826b033ea).Provider, {
|
|
4296
4648
|
value: undefined
|
|
4297
4649
|
}, renderProps.children));
|
|
@@ -4336,7 +4688,11 @@ function $6f909507e6374d18$var$Slider(props, ref) {
|
|
|
4336
4688
|
}, state, trackRef);
|
|
4337
4689
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
4338
4690
|
...props,
|
|
4339
|
-
values:
|
|
4691
|
+
values: {
|
|
4692
|
+
orientation: state.orientation,
|
|
4693
|
+
isDisabled: state.isDisabled,
|
|
4694
|
+
state: state
|
|
4695
|
+
},
|
|
4340
4696
|
defaultClassName: "react-aria-Slider"
|
|
4341
4697
|
});
|
|
4342
4698
|
let DOMProps = (0, $dGqE5$filterDOMProps)(props);
|
|
@@ -4381,12 +4737,18 @@ function $6f909507e6374d18$var$SliderOutput({ children: children , style: style
|
|
|
4381
4737
|
children: children,
|
|
4382
4738
|
defaultChildren: state.getThumbValueLabel(0),
|
|
4383
4739
|
defaultClassName: "react-aria-SliderOutput",
|
|
4384
|
-
values:
|
|
4740
|
+
values: {
|
|
4741
|
+
orientation: state.orientation,
|
|
4742
|
+
isDisabled: state.isDisabled,
|
|
4743
|
+
state: state
|
|
4744
|
+
}
|
|
4385
4745
|
});
|
|
4386
4746
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("output", {
|
|
4387
4747
|
...(0, $dGqE5$mergeProps)((0, $dGqE5$filterDOMProps)(otherProps), outputProps),
|
|
4388
4748
|
...renderProps,
|
|
4389
|
-
ref: ref
|
|
4749
|
+
ref: ref,
|
|
4750
|
+
"data-orientation": state.orientation || undefined,
|
|
4751
|
+
"data-disabled": state.isDisabled || undefined
|
|
4390
4752
|
});
|
|
4391
4753
|
}
|
|
4392
4754
|
/**
|
|
@@ -4394,16 +4756,25 @@ function $6f909507e6374d18$var$SliderOutput({ children: children , style: style
|
|
|
4394
4756
|
*/ const $6f909507e6374d18$export$a590f758a961cb5b = /*#__PURE__*/ (0, $dGqE5$forwardRef)($6f909507e6374d18$var$SliderOutput);
|
|
4395
4757
|
function $6f909507e6374d18$var$SliderTrack(props, ref) {
|
|
4396
4758
|
let { state: state , trackProps: trackProps , trackRef: trackRef } = (0, $dGqE5$useContext)($6f909507e6374d18$var$InternalSliderContext);
|
|
4759
|
+
let { hoverProps: hoverProps , isHovered: isHovered } = (0, $dGqE5$useHover)({});
|
|
4397
4760
|
let domRef = (0, $dGqE5$mergeRefs)(ref, trackRef);
|
|
4398
4761
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
4399
4762
|
...props,
|
|
4400
4763
|
defaultClassName: "react-aria-SliderTrack",
|
|
4401
|
-
values:
|
|
4764
|
+
values: {
|
|
4765
|
+
orientation: state.orientation,
|
|
4766
|
+
isDisabled: state.isDisabled,
|
|
4767
|
+
isHovered: isHovered,
|
|
4768
|
+
state: state
|
|
4769
|
+
}
|
|
4402
4770
|
});
|
|
4403
4771
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
4404
|
-
...(0, $dGqE5$mergeProps)((0, $dGqE5$filterDOMProps)(props), trackProps),
|
|
4772
|
+
...(0, $dGqE5$mergeProps)((0, $dGqE5$filterDOMProps)(props), hoverProps, trackProps),
|
|
4405
4773
|
...renderProps,
|
|
4406
|
-
ref: domRef
|
|
4774
|
+
ref: domRef,
|
|
4775
|
+
"data-hovered": isHovered || undefined,
|
|
4776
|
+
"data-orientation": state.orientation || undefined,
|
|
4777
|
+
"data-disabled": state.isDisabled || undefined
|
|
4407
4778
|
});
|
|
4408
4779
|
}
|
|
4409
4780
|
/**
|
|
@@ -4522,7 +4893,8 @@ function $8e59e948500a8fe1$var$Switch(props, ref) {
|
|
|
4522
4893
|
isFocused: isFocused,
|
|
4523
4894
|
isFocusVisible: isFocusVisible,
|
|
4524
4895
|
isDisabled: isDisabled,
|
|
4525
|
-
isReadOnly: isReadOnly
|
|
4896
|
+
isReadOnly: isReadOnly,
|
|
4897
|
+
state: state
|
|
4526
4898
|
}
|
|
4527
4899
|
});
|
|
4528
4900
|
let DOMProps = (0, $dGqE5$filterDOMProps)(props);
|
|
@@ -4560,6 +4932,7 @@ function $8e59e948500a8fe1$var$Switch(props, ref) {
|
|
|
4560
4932
|
|
|
4561
4933
|
|
|
4562
4934
|
|
|
4935
|
+
|
|
4563
4936
|
class $1910c06f0ca9905e$var$TableCollection extends (0, $7135fc7d473fd974$export$408d25a4e12db025) {
|
|
4564
4937
|
addNode(node) {
|
|
4565
4938
|
super.addNode(node);
|
|
@@ -4567,9 +4940,9 @@ class $1910c06f0ca9905e$var$TableCollection extends (0, $7135fc7d473fd974$export
|
|
|
4567
4940
|
if (node.type === "tableheader") this.head = node;
|
|
4568
4941
|
if (node.type === "tablebody") this.body = node;
|
|
4569
4942
|
}
|
|
4570
|
-
commit(firstKey, lastKey) {
|
|
4943
|
+
commit(firstKey, lastKey, isSSR = false) {
|
|
4571
4944
|
this.updateColumns();
|
|
4572
|
-
super.commit(firstKey, lastKey);
|
|
4945
|
+
super.commit(firstKey, lastKey, isSSR);
|
|
4573
4946
|
}
|
|
4574
4947
|
updateColumns() {
|
|
4575
4948
|
if (!this.columnsDirty) return;
|
|
@@ -4678,6 +5051,45 @@ class $1910c06f0ca9905e$var$TableCollection extends (0, $7135fc7d473fd974$export
|
|
|
4678
5051
|
this.columnsDirty = true;
|
|
4679
5052
|
}
|
|
4680
5053
|
}
|
|
5054
|
+
const $1910c06f0ca9905e$var$ResizableTableContainerContext = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
5055
|
+
function $1910c06f0ca9905e$var$ResizableTableContainer(props, ref) {
|
|
5056
|
+
let objectRef = (0, $dGqE5$useObjectRef)(ref);
|
|
5057
|
+
let [width, setWidth] = (0, $dGqE5$useState)(0);
|
|
5058
|
+
(0, $dGqE5$useResizeObserver)({
|
|
5059
|
+
ref: objectRef,
|
|
5060
|
+
onResize () {
|
|
5061
|
+
var _objectRef_current;
|
|
5062
|
+
setWidth((_objectRef_current = objectRef.current) === null || _objectRef_current === void 0 ? void 0 : _objectRef_current.clientWidth);
|
|
5063
|
+
}
|
|
5064
|
+
});
|
|
5065
|
+
(0, $dGqE5$useLayoutEffect)(()=>{
|
|
5066
|
+
var _objectRef_current;
|
|
5067
|
+
setWidth((_objectRef_current = objectRef.current) === null || _objectRef_current === void 0 ? void 0 : _objectRef_current.clientWidth);
|
|
5068
|
+
}, [
|
|
5069
|
+
objectRef
|
|
5070
|
+
]);
|
|
5071
|
+
let ctx = (0, $dGqE5$useMemo)(()=>({
|
|
5072
|
+
tableWidth: width,
|
|
5073
|
+
useTableColumnResizeState: $dGqE5$useTableColumnResizeState,
|
|
5074
|
+
onResizeStart: props.onResizeStart,
|
|
5075
|
+
onResize: props.onResize,
|
|
5076
|
+
onResizeEnd: props.onResizeEnd
|
|
5077
|
+
}), [
|
|
5078
|
+
width,
|
|
5079
|
+
props.onResizeStart,
|
|
5080
|
+
props.onResize,
|
|
5081
|
+
props.onResizeEnd
|
|
5082
|
+
]);
|
|
5083
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
5084
|
+
...(0, $dGqE5$filterDOMProps)(props),
|
|
5085
|
+
ref: objectRef,
|
|
5086
|
+
className: props.className || "react-aria-ResizableTableContainer",
|
|
5087
|
+
style: props.style
|
|
5088
|
+
}, /*#__PURE__*/ (0, $dGqE5$react).createElement($1910c06f0ca9905e$var$ResizableTableContainerContext.Provider, {
|
|
5089
|
+
value: ctx
|
|
5090
|
+
}, props.children));
|
|
5091
|
+
}
|
|
5092
|
+
const $1910c06f0ca9905e$export$7063e69b8a954175 = /*#__PURE__*/ (0, $dGqE5$forwardRef)($1910c06f0ca9905e$var$ResizableTableContainer);
|
|
4681
5093
|
const $1910c06f0ca9905e$export$93e4b0b2cc49b648 = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
4682
5094
|
const $1910c06f0ca9905e$var$InternalTableContext = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
4683
5095
|
function $1910c06f0ca9905e$var$Table(props, ref) {
|
|
@@ -4744,7 +5156,8 @@ function $1910c06f0ca9905e$var$Table(props, ref) {
|
|
|
4744
5156
|
values: {
|
|
4745
5157
|
isDropTarget: isRootDropTarget,
|
|
4746
5158
|
isFocused: isFocused,
|
|
4747
|
-
isFocusVisible: isFocusVisible
|
|
5159
|
+
isFocusVisible: isFocusVisible,
|
|
5160
|
+
state: state
|
|
4748
5161
|
}
|
|
4749
5162
|
});
|
|
4750
5163
|
let { selectionBehavior: selectionBehavior , selectionMode: selectionMode , disallowEmptySelection: disallowEmptySelection } = state.selectionManager;
|
|
@@ -4759,7 +5172,22 @@ function $1910c06f0ca9905e$var$Table(props, ref) {
|
|
|
4759
5172
|
disallowEmptySelection,
|
|
4760
5173
|
isListDraggable
|
|
4761
5174
|
]);
|
|
4762
|
-
|
|
5175
|
+
let style = renderProps.style;
|
|
5176
|
+
let tableContainerContext = (0, $dGqE5$useContext)($1910c06f0ca9905e$var$ResizableTableContainerContext);
|
|
5177
|
+
let layoutState = undefined;
|
|
5178
|
+
if (tableContainerContext) {
|
|
5179
|
+
layoutState = tableContainerContext.useTableColumnResizeState({
|
|
5180
|
+
tableWidth: tableContainerContext.tableWidth
|
|
5181
|
+
}, state);
|
|
5182
|
+
style = {
|
|
5183
|
+
...style,
|
|
5184
|
+
tableLayout: "fixed",
|
|
5185
|
+
width: "fit-content"
|
|
5186
|
+
};
|
|
5187
|
+
}
|
|
5188
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null, /*#__PURE__*/ (0, $dGqE5$react).createElement($1910c06f0ca9905e$var$TableOptionsContext.Provider, {
|
|
5189
|
+
value: ctx
|
|
5190
|
+
}, portal), /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
4763
5191
|
values: [
|
|
4764
5192
|
[
|
|
4765
5193
|
$1910c06f0ca9905e$var$InternalTableContext,
|
|
@@ -4767,7 +5195,8 @@ function $1910c06f0ca9905e$var$Table(props, ref) {
|
|
|
4767
5195
|
state: state,
|
|
4768
5196
|
dragAndDropHooks: dragAndDropHooks,
|
|
4769
5197
|
dragState: dragState,
|
|
4770
|
-
dropState: dropState
|
|
5198
|
+
dropState: dropState,
|
|
5199
|
+
layoutState: layoutState
|
|
4771
5200
|
}
|
|
4772
5201
|
],
|
|
4773
5202
|
[
|
|
@@ -4781,8 +5210,10 @@ function $1910c06f0ca9905e$var$Table(props, ref) {
|
|
|
4781
5210
|
...(0, $dGqE5$filterDOMProps)(props),
|
|
4782
5211
|
...renderProps,
|
|
4783
5212
|
...(0, $dGqE5$mergeProps)(gridProps, focusProps, droppableCollection === null || droppableCollection === void 0 ? void 0 : droppableCollection.collectionProps),
|
|
5213
|
+
style: style,
|
|
4784
5214
|
ref: ref,
|
|
4785
5215
|
slot: props.slot,
|
|
5216
|
+
"data-allows-dragging": isListDraggable || undefined,
|
|
4786
5217
|
"data-drop-target": isRootDropTarget || undefined,
|
|
4787
5218
|
"data-focused": isFocused || undefined,
|
|
4788
5219
|
"data-focus-visible": isFocusVisible || undefined
|
|
@@ -4791,9 +5222,7 @@ function $1910c06f0ca9905e$var$Table(props, ref) {
|
|
|
4791
5222
|
}), /*#__PURE__*/ (0, $dGqE5$react).createElement($1910c06f0ca9905e$var$TableBodyRowGroup, {
|
|
4792
5223
|
collection: collection,
|
|
4793
5224
|
isDroppable: isListDroppable
|
|
4794
|
-
}))), dragPreview)
|
|
4795
|
-
value: ctx
|
|
4796
|
-
}, portal));
|
|
5225
|
+
}))), dragPreview));
|
|
4797
5226
|
}
|
|
4798
5227
|
/**
|
|
4799
5228
|
* A table displays data in rows and columns and enables a user to navigate its contents via directional navigation keys,
|
|
@@ -4811,9 +5240,7 @@ function $1910c06f0ca9905e$var$TableHeader(props, ref) {
|
|
|
4811
5240
|
let renderer = typeof props.children === "function" ? props.children : null;
|
|
4812
5241
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $7135fc7d473fd974$export$4feb769f8ddf26c5).Provider, {
|
|
4813
5242
|
value: renderer
|
|
4814
|
-
},
|
|
4815
|
-
ref: (0, $7135fc7d473fd974$export$636783d3732b5559)(props, ref)
|
|
4816
|
-
}, children));
|
|
5243
|
+
}, (0, $7135fc7d473fd974$export$e7c29ae2353b16ea)("tableheader", props, ref, null, children));
|
|
4817
5244
|
}
|
|
4818
5245
|
/**
|
|
4819
5246
|
* A header within a `<Table>`, containing the table columns.
|
|
@@ -4828,20 +5255,14 @@ function $1910c06f0ca9905e$var$Column(props, ref) {
|
|
|
4828
5255
|
items: props.childColumns
|
|
4829
5256
|
});
|
|
4830
5257
|
var _props_title;
|
|
4831
|
-
|
|
4832
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement("column", {
|
|
4833
|
-
ref: (0, $7135fc7d473fd974$export$636783d3732b5559)(props, ref, (_props_title = props.title) !== null && _props_title !== void 0 ? _props_title : props.children)
|
|
4834
|
-
}, children);
|
|
5258
|
+
return (0, $7135fc7d473fd974$export$e7c29ae2353b16ea)("column", props, ref, (_props_title = props.title) !== null && _props_title !== void 0 ? _props_title : props.children, children);
|
|
4835
5259
|
}
|
|
4836
5260
|
/**
|
|
4837
5261
|
* A column within a `<Table>`.
|
|
4838
5262
|
*/ const $1910c06f0ca9905e$export$816b5d811295e6bc = /*#__PURE__*/ (0, $dGqE5$forwardRef)($1910c06f0ca9905e$var$Column);
|
|
4839
5263
|
function $1910c06f0ca9905e$var$TableBody(props, ref) {
|
|
4840
5264
|
let children = (0, $7135fc7d473fd974$export$901dbff4e54a6dd0)(props);
|
|
4841
|
-
|
|
4842
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement("tablebody", {
|
|
4843
|
-
ref: (0, $7135fc7d473fd974$export$636783d3732b5559)(props, ref)
|
|
4844
|
-
}, children);
|
|
5265
|
+
return (0, $7135fc7d473fd974$export$e7c29ae2353b16ea)("tablebody", props, ref, null, children);
|
|
4845
5266
|
}
|
|
4846
5267
|
/**
|
|
4847
5268
|
* The body of a `<Table>`, containing the table rows.
|
|
@@ -4857,21 +5278,15 @@ function $1910c06f0ca9905e$var$Row(props, ref) {
|
|
|
4857
5278
|
}), [
|
|
4858
5279
|
props.id
|
|
4859
5280
|
]);
|
|
4860
|
-
return(
|
|
4861
|
-
/*#__PURE__*/ (0, $dGqE5$react).createElement("item", {
|
|
4862
|
-
ref: (0, $7135fc7d473fd974$export$636783d3732b5559)(props, ref)
|
|
4863
|
-
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $7135fc7d473fd974$export$db36075d98ba73d3).Provider, {
|
|
5281
|
+
return (0, $7135fc7d473fd974$export$e7c29ae2353b16ea)("item", props, ref, null, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $7135fc7d473fd974$export$db36075d98ba73d3).Provider, {
|
|
4864
5282
|
value: ctx
|
|
4865
|
-
}, children))
|
|
5283
|
+
}, children));
|
|
4866
5284
|
}
|
|
4867
5285
|
/**
|
|
4868
5286
|
* A row within a `<Table>`.
|
|
4869
5287
|
*/ const $1910c06f0ca9905e$export$b59bdbef9ce70de2 = /*#__PURE__*/ (0, $dGqE5$forwardRef)($1910c06f0ca9905e$var$Row);
|
|
4870
5288
|
function $1910c06f0ca9905e$var$Cell(props, ref) {
|
|
4871
|
-
|
|
4872
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement("cell", {
|
|
4873
|
-
ref: (0, $7135fc7d473fd974$export$636783d3732b5559)(props, ref, props.children)
|
|
4874
|
-
});
|
|
5289
|
+
return (0, $7135fc7d473fd974$export$e7c29ae2353b16ea)("cell", props, ref, props.children);
|
|
4875
5290
|
}
|
|
4876
5291
|
/**
|
|
4877
5292
|
* A cell within a table row.
|
|
@@ -4975,14 +5390,27 @@ function $1910c06f0ca9905e$var$TableHeaderRow({ item: item }) {
|
|
|
4975
5390
|
]
|
|
4976
5391
|
}, cells));
|
|
4977
5392
|
}
|
|
5393
|
+
const $1910c06f0ca9905e$var$ColumnResizerContext = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
4978
5394
|
function $1910c06f0ca9905e$var$TableColumnHeader({ column: column }) {
|
|
4979
|
-
var _state_sortDescriptor;
|
|
5395
|
+
var _state_sortDescriptor, _state_sortDescriptor1;
|
|
4980
5396
|
let ref = (0, $dGqE5$useObjectRef)(column.props.ref);
|
|
4981
5397
|
let { state: state } = (0, $dGqE5$useContext)($1910c06f0ca9905e$var$InternalTableContext);
|
|
4982
5398
|
let { columnHeaderProps: columnHeaderProps } = (0, $dGqE5$useTableColumnHeader)({
|
|
4983
5399
|
node: column
|
|
4984
5400
|
}, state, ref);
|
|
4985
5401
|
let { isFocused: isFocused , isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $dGqE5$useFocusRing)();
|
|
5402
|
+
let { hoverProps: hoverProps , isHovered: isHovered } = (0, $dGqE5$useHover)({});
|
|
5403
|
+
let { layoutState: layoutState } = (0, $dGqE5$useContext)($1910c06f0ca9905e$var$InternalTableContext);
|
|
5404
|
+
let isResizing = false;
|
|
5405
|
+
if (layoutState) isResizing = layoutState.resizingColumn === column.key;
|
|
5406
|
+
else {
|
|
5407
|
+
for(let prop in [
|
|
5408
|
+
"width",
|
|
5409
|
+
"defaultWidth",
|
|
5410
|
+
"minWidth",
|
|
5411
|
+
"maxWidth"
|
|
5412
|
+
])if (prop in column.props) console.warn(`The ${prop} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);
|
|
5413
|
+
}
|
|
4986
5414
|
let props = column.props;
|
|
4987
5415
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
4988
5416
|
...props,
|
|
@@ -4990,21 +5418,122 @@ function $1910c06f0ca9905e$var$TableColumnHeader({ column: column }) {
|
|
|
4990
5418
|
children: column.rendered,
|
|
4991
5419
|
defaultClassName: "react-aria-Column",
|
|
4992
5420
|
values: {
|
|
5421
|
+
isHovered: isHovered,
|
|
4993
5422
|
isFocused: isFocused,
|
|
4994
5423
|
isFocusVisible: isFocusVisible,
|
|
4995
5424
|
allowsSorting: column.props.allowsSorting,
|
|
4996
|
-
sortDirection: ((_state_sortDescriptor = state.sortDescriptor) === null || _state_sortDescriptor === void 0 ? void 0 : _state_sortDescriptor.column) === column.key ? state.sortDescriptor.direction : undefined
|
|
5425
|
+
sortDirection: ((_state_sortDescriptor = state.sortDescriptor) === null || _state_sortDescriptor === void 0 ? void 0 : _state_sortDescriptor.column) === column.key ? state.sortDescriptor.direction : undefined,
|
|
5426
|
+
isResizing: isResizing,
|
|
5427
|
+
startResize: ()=>{
|
|
5428
|
+
if (layoutState) {
|
|
5429
|
+
layoutState.startResize(column.key);
|
|
5430
|
+
state.setKeyboardNavigationDisabled(true);
|
|
5431
|
+
} else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
5432
|
+
},
|
|
5433
|
+
sort: (direction)=>{
|
|
5434
|
+
state.sort(column.key, direction);
|
|
5435
|
+
}
|
|
4997
5436
|
}
|
|
4998
5437
|
});
|
|
5438
|
+
let style = renderProps.style;
|
|
5439
|
+
if (layoutState) style = {
|
|
5440
|
+
...style,
|
|
5441
|
+
width: layoutState.getColumnWidth(column.key)
|
|
5442
|
+
};
|
|
4999
5443
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("th", {
|
|
5000
|
-
...(0, $dGqE5$mergeProps)((0, $dGqE5$filterDOMProps)(props), columnHeaderProps, focusProps),
|
|
5444
|
+
...(0, $dGqE5$mergeProps)((0, $dGqE5$filterDOMProps)(props), columnHeaderProps, focusProps, hoverProps),
|
|
5001
5445
|
...renderProps,
|
|
5446
|
+
style: style,
|
|
5002
5447
|
colSpan: column.colspan,
|
|
5003
5448
|
ref: ref,
|
|
5004
5449
|
"data-focused": isFocused || undefined,
|
|
5005
|
-
"data-focus-visible": isFocusVisible || undefined
|
|
5006
|
-
|
|
5450
|
+
"data-focus-visible": isFocusVisible || undefined,
|
|
5451
|
+
"data-resizing": isResizing || undefined,
|
|
5452
|
+
"data-allows-sorting": column.props.allowsSorting || undefined,
|
|
5453
|
+
"data-sort-direction": ((_state_sortDescriptor1 = state.sortDescriptor) === null || _state_sortDescriptor1 === void 0 ? void 0 : _state_sortDescriptor1.column) === column.key ? state.sortDescriptor.direction : undefined
|
|
5454
|
+
}, /*#__PURE__*/ (0, $dGqE5$react).createElement($1910c06f0ca9905e$var$ColumnResizerContext.Provider, {
|
|
5455
|
+
value: {
|
|
5456
|
+
column: column,
|
|
5457
|
+
triggerRef: ref
|
|
5458
|
+
}
|
|
5459
|
+
}, renderProps.children));
|
|
5460
|
+
}
|
|
5461
|
+
function $1910c06f0ca9905e$var$ColumnResizer(props, ref) {
|
|
5462
|
+
let { layoutState: layoutState } = (0, $dGqE5$useContext)($1910c06f0ca9905e$var$InternalTableContext);
|
|
5463
|
+
if (!layoutState) throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
5464
|
+
let { onResizeStart: onResizeStart , onResize: onResize , onResizeEnd: onResizeEnd } = (0, $dGqE5$useContext)($1910c06f0ca9905e$var$ResizableTableContainerContext);
|
|
5465
|
+
let { column: column , triggerRef: triggerRef } = (0, $dGqE5$useContext)($1910c06f0ca9905e$var$ColumnResizerContext);
|
|
5466
|
+
let inputRef = (0, $dGqE5$useRef)(null);
|
|
5467
|
+
let { resizerProps: resizerProps , inputProps: inputProps , isResizing: isResizing } = (0, $dGqE5$useTableColumnResize)({
|
|
5468
|
+
column: column,
|
|
5469
|
+
// TODO: translate
|
|
5470
|
+
"aria-label": props["aria-label"] || "Resizer",
|
|
5471
|
+
onResizeStart: onResizeStart,
|
|
5472
|
+
onResize: onResize,
|
|
5473
|
+
onResizeEnd: onResizeEnd,
|
|
5474
|
+
triggerRef: triggerRef
|
|
5475
|
+
}, layoutState, inputRef);
|
|
5476
|
+
let { focusProps: focusProps , isFocused: isFocused , isFocusVisible: isFocusVisible } = (0, $dGqE5$useFocusRing)();
|
|
5477
|
+
let { hoverProps: hoverProps , isHovered: isHovered } = (0, $dGqE5$useHover)({});
|
|
5478
|
+
let isEResizable = layoutState.getColumnMinWidth(column.key) >= layoutState.getColumnWidth(column.key);
|
|
5479
|
+
let isWResizable = layoutState.getColumnMaxWidth(column.key) <= layoutState.getColumnWidth(column.key);
|
|
5480
|
+
let { direction: direction } = (0, $dGqE5$useLocale)();
|
|
5481
|
+
let resizableDirection = "both";
|
|
5482
|
+
if (isEResizable) resizableDirection = direction === "rtl" ? "right" : "left";
|
|
5483
|
+
else if (isWResizable) resizableDirection = direction === "rtl" ? "left" : "right";
|
|
5484
|
+
else resizableDirection = "both";
|
|
5485
|
+
let objectRef = (0, $dGqE5$useObjectRef)(ref);
|
|
5486
|
+
let [cursor, setCursor] = (0, $dGqE5$useState)("");
|
|
5487
|
+
(0, $dGqE5$useEffect)(()=>{
|
|
5488
|
+
let style = window.getComputedStyle(objectRef.current);
|
|
5489
|
+
setCursor(style.cursor);
|
|
5490
|
+
}, [
|
|
5491
|
+
objectRef,
|
|
5492
|
+
resizableDirection
|
|
5493
|
+
]);
|
|
5494
|
+
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
5495
|
+
...props,
|
|
5496
|
+
defaultClassName: "react-aria-ColumnResizer",
|
|
5497
|
+
values: {
|
|
5498
|
+
isFocused: isFocused,
|
|
5499
|
+
isFocusVisible: isFocusVisible,
|
|
5500
|
+
isResizing: isResizing,
|
|
5501
|
+
isHovered: isHovered,
|
|
5502
|
+
resizableDirection: resizableDirection
|
|
5503
|
+
}
|
|
5504
|
+
});
|
|
5505
|
+
let [isMouseDown, setMouseDown] = (0, $dGqE5$useState)(false);
|
|
5506
|
+
let onPointerDown = (e)=>{
|
|
5507
|
+
if (e.pointerType === "mouse") setMouseDown(true);
|
|
5508
|
+
};
|
|
5509
|
+
if (!isResizing && isMouseDown) setMouseDown(false);
|
|
5510
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
5511
|
+
ref: objectRef,
|
|
5512
|
+
role: "presentation",
|
|
5513
|
+
...renderProps,
|
|
5514
|
+
...(0, $dGqE5$mergeProps)(resizerProps, {
|
|
5515
|
+
onPointerDown: onPointerDown
|
|
5516
|
+
}),
|
|
5517
|
+
"data-hovered": isHovered || undefined,
|
|
5518
|
+
"data-focused": isFocused || undefined,
|
|
5519
|
+
"data-focus-visible": isFocusVisible || undefined,
|
|
5520
|
+
"data-resizing": isResizing || undefined,
|
|
5521
|
+
"data-resizable-direction": resizableDirection
|
|
5522
|
+
}, /*#__PURE__*/ (0, $dGqE5$react).createElement("input", {
|
|
5523
|
+
ref: inputRef,
|
|
5524
|
+
...(0, $dGqE5$mergeProps)(inputProps, focusProps, hoverProps)
|
|
5525
|
+
}), isResizing && isMouseDown && /*#__PURE__*/ (0, $dGqE5$reactdom).createPortal(/*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
5526
|
+
style: {
|
|
5527
|
+
position: "fixed",
|
|
5528
|
+
top: 0,
|
|
5529
|
+
left: 0,
|
|
5530
|
+
bottom: 0,
|
|
5531
|
+
right: 0,
|
|
5532
|
+
cursor: cursor
|
|
5533
|
+
}
|
|
5534
|
+
}), document.body));
|
|
5007
5535
|
}
|
|
5536
|
+
const $1910c06f0ca9905e$export$ee689e97a7664bfd = /*#__PURE__*/ (0, $dGqE5$forwardRef)($1910c06f0ca9905e$var$ColumnResizer);
|
|
5008
5537
|
function $1910c06f0ca9905e$var$TableRow({ item: item }) {
|
|
5009
5538
|
let ref = (0, $dGqE5$useObjectRef)(item.props.ref);
|
|
5010
5539
|
let { state: state , dragAndDropHooks: dragAndDropHooks , dragState: dragState , dropState: dropState } = (0, $dGqE5$useContext)($1910c06f0ca9905e$var$InternalTableContext);
|
|
@@ -5096,12 +5625,15 @@ function $1910c06f0ca9905e$var$TableRow({ item: item }) {
|
|
|
5096
5625
|
...(0, $dGqE5$mergeProps)((0, $dGqE5$filterDOMProps)(props), rowProps, focusProps, hoverProps, draggableItem === null || draggableItem === void 0 ? void 0 : draggableItem.dragProps),
|
|
5097
5626
|
...renderProps,
|
|
5098
5627
|
ref: ref,
|
|
5628
|
+
"data-disabled": states.isDisabled || undefined,
|
|
5629
|
+
"data-selected": states.isSelected || undefined,
|
|
5099
5630
|
"data-hovered": isHovered || undefined,
|
|
5100
5631
|
"data-focused": states.isFocused || undefined,
|
|
5101
5632
|
"data-focus-visible": isFocusVisible || undefined,
|
|
5102
5633
|
"data-pressed": states.isPressed || undefined,
|
|
5103
5634
|
"data-dragging": isDragging || undefined,
|
|
5104
|
-
"data-drop-target": (dropIndicator === null || dropIndicator === void 0 ? void 0 : dropIndicator.isDropTarget) || undefined
|
|
5635
|
+
"data-drop-target": (dropIndicator === null || dropIndicator === void 0 ? void 0 : dropIndicator.isDropTarget) || undefined,
|
|
5636
|
+
"data-selection-mode": state.selectionManager.selectionMode === "none" ? undefined : state.selectionManager.selectionMode
|
|
5105
5637
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
5106
5638
|
values: [
|
|
5107
5639
|
[
|
|
@@ -5144,6 +5676,7 @@ function $1910c06f0ca9905e$var$TableCell({ cell: cell }) {
|
|
|
5144
5676
|
shouldSelectOnPressUp: !!dragState
|
|
5145
5677
|
}, state, ref);
|
|
5146
5678
|
let { isFocused: isFocused , isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $dGqE5$useFocusRing)();
|
|
5679
|
+
let { hoverProps: hoverProps , isHovered: isHovered } = (0, $dGqE5$useHover)({});
|
|
5147
5680
|
let props = cell.props;
|
|
5148
5681
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
5149
5682
|
...props,
|
|
@@ -5152,11 +5685,12 @@ function $1910c06f0ca9905e$var$TableCell({ cell: cell }) {
|
|
|
5152
5685
|
values: {
|
|
5153
5686
|
isFocused: isFocused,
|
|
5154
5687
|
isFocusVisible: isFocusVisible,
|
|
5155
|
-
isPressed: isPressed
|
|
5688
|
+
isPressed: isPressed,
|
|
5689
|
+
isHovered: isHovered
|
|
5156
5690
|
}
|
|
5157
5691
|
});
|
|
5158
5692
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("td", {
|
|
5159
|
-
...(0, $dGqE5$mergeProps)((0, $dGqE5$filterDOMProps)(props), gridCellProps, focusProps),
|
|
5693
|
+
...(0, $dGqE5$mergeProps)((0, $dGqE5$filterDOMProps)(props), gridCellProps, focusProps, hoverProps),
|
|
5160
5694
|
...renderProps,
|
|
5161
5695
|
ref: ref,
|
|
5162
5696
|
"data-focused": isFocused || undefined,
|
|
@@ -5261,20 +5795,44 @@ function $1910c06f0ca9905e$var$RootDropIndicator() {
|
|
|
5261
5795
|
|
|
5262
5796
|
const $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
5263
5797
|
const $5e8ad37a45e1c704$var$InternalTabsContext = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
5798
|
+
const $5e8ad37a45e1c704$var$DocumentContext = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
5264
5799
|
function $5e8ad37a45e1c704$var$Tabs(props, ref) {
|
|
5265
5800
|
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f);
|
|
5266
|
-
let {
|
|
5267
|
-
let
|
|
5801
|
+
let { collection: collection , document: document } = (0, $7135fc7d473fd974$export$7cd71aa5ddd6dc4e)();
|
|
5802
|
+
let { children: children , orientation: orientation = "horizontal" } = props;
|
|
5803
|
+
children = (0, $dGqE5$useMemo)(()=>typeof children === "function" ? children({
|
|
5268
5804
|
orientation: orientation
|
|
5269
|
-
}), [
|
|
5805
|
+
}) : children, [
|
|
5806
|
+
children,
|
|
5270
5807
|
orientation
|
|
5271
5808
|
]);
|
|
5272
|
-
|
|
5809
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$8dc98ba7eadeaa56), null, /*#__PURE__*/ (0, $dGqE5$react).createElement($5e8ad37a45e1c704$var$DocumentContext.Provider, {
|
|
5810
|
+
value: document
|
|
5811
|
+
}, children)), /*#__PURE__*/ (0, $dGqE5$react).createElement($5e8ad37a45e1c704$var$TabsInner, {
|
|
5812
|
+
props: props,
|
|
5813
|
+
collection: collection,
|
|
5814
|
+
tabsRef: ref
|
|
5815
|
+
}));
|
|
5816
|
+
}
|
|
5817
|
+
function $5e8ad37a45e1c704$var$TabsInner({ props: props , tabsRef: ref , collection: collection }) {
|
|
5818
|
+
let { orientation: orientation = "horizontal" , keyboardActivation: keyboardActivation = "automatic" } = props;
|
|
5273
5819
|
let state = (0, $dGqE5$useTabListState)({
|
|
5274
5820
|
...props,
|
|
5275
5821
|
collection: collection,
|
|
5276
5822
|
children: undefined
|
|
5277
5823
|
});
|
|
5824
|
+
let { focusProps: focusProps , isFocused: isFocused , isFocusVisible: isFocusVisible } = (0, $dGqE5$useFocusRing)({
|
|
5825
|
+
within: true
|
|
5826
|
+
});
|
|
5827
|
+
let values = (0, $dGqE5$useMemo)(()=>({
|
|
5828
|
+
orientation: orientation,
|
|
5829
|
+
isFocusWithin: isFocused,
|
|
5830
|
+
isFocusVisible: isFocusVisible
|
|
5831
|
+
}), [
|
|
5832
|
+
orientation,
|
|
5833
|
+
isFocused,
|
|
5834
|
+
isFocusVisible
|
|
5835
|
+
]);
|
|
5278
5836
|
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
5279
5837
|
...props,
|
|
5280
5838
|
defaultClassName: "react-aria-Tabs",
|
|
@@ -5282,14 +5840,17 @@ function $5e8ad37a45e1c704$var$Tabs(props, ref) {
|
|
|
5282
5840
|
});
|
|
5283
5841
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
5284
5842
|
...(0, $dGqE5$filterDOMProps)(props),
|
|
5843
|
+
...focusProps,
|
|
5285
5844
|
...renderProps,
|
|
5286
5845
|
ref: ref,
|
|
5287
5846
|
slot: props.slot,
|
|
5288
|
-
"data-
|
|
5847
|
+
"data-focused": isFocused || undefined,
|
|
5848
|
+
"data-orientation": orientation,
|
|
5849
|
+
"data-focus-visible": isFocusVisible || undefined,
|
|
5850
|
+
"data-disabled": state.isDisabled || undefined
|
|
5289
5851
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement($5e8ad37a45e1c704$var$InternalTabsContext.Provider, {
|
|
5290
5852
|
value: {
|
|
5291
5853
|
state: state,
|
|
5292
|
-
document: document,
|
|
5293
5854
|
orientation: orientation,
|
|
5294
5855
|
keyboardActivation: keyboardActivation
|
|
5295
5856
|
}
|
|
@@ -5299,9 +5860,21 @@ function $5e8ad37a45e1c704$var$Tabs(props, ref) {
|
|
|
5299
5860
|
* Tabs organize content into multiple sections and allow users to navigate between them.
|
|
5300
5861
|
*/ const $5e8ad37a45e1c704$export$b2539bed5023c21c = /*#__PURE__*/ (0, $dGqE5$forwardRef)($5e8ad37a45e1c704$var$Tabs);
|
|
5301
5862
|
function $5e8ad37a45e1c704$var$TabList(props, ref) {
|
|
5302
|
-
let
|
|
5863
|
+
let document = (0, $dGqE5$useContext)($5e8ad37a45e1c704$var$DocumentContext);
|
|
5864
|
+
return document ? /*#__PURE__*/ (0, $dGqE5$react).createElement($5e8ad37a45e1c704$var$TabListPortal, {
|
|
5865
|
+
props: props,
|
|
5866
|
+
document: document
|
|
5867
|
+
}) : /*#__PURE__*/ (0, $dGqE5$react).createElement($5e8ad37a45e1c704$var$TabListInner, {
|
|
5868
|
+
props: props,
|
|
5869
|
+
forwardedRef: ref
|
|
5870
|
+
});
|
|
5871
|
+
}
|
|
5872
|
+
function $5e8ad37a45e1c704$var$TabListPortal({ props: props , document: document }) {
|
|
5873
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null, (0, $7135fc7d473fd974$export$ad42d5efb4461b31)(props, document));
|
|
5874
|
+
}
|
|
5875
|
+
function $5e8ad37a45e1c704$var$TabListInner({ props: props , forwardedRef: ref }) {
|
|
5876
|
+
let { state: state , orientation: orientation , keyboardActivation: keyboardActivation } = (0, $dGqE5$useContext)($5e8ad37a45e1c704$var$InternalTabsContext);
|
|
5303
5877
|
let objectRef = (0, $dGqE5$useObjectRef)(ref);
|
|
5304
|
-
let portal = (0, $7135fc7d473fd974$export$ad42d5efb4461b31)(props, document);
|
|
5305
5878
|
let { tabListProps: tabListProps } = (0, $dGqE5$useTabList)({
|
|
5306
5879
|
...props,
|
|
5307
5880
|
orientation: orientation,
|
|
@@ -5312,34 +5885,32 @@ function $5e8ad37a45e1c704$var$TabList(props, ref) {
|
|
|
5312
5885
|
children: null,
|
|
5313
5886
|
defaultClassName: "react-aria-TabList",
|
|
5314
5887
|
values: {
|
|
5315
|
-
orientation: orientation
|
|
5888
|
+
orientation: orientation,
|
|
5889
|
+
state: state
|
|
5316
5890
|
}
|
|
5317
5891
|
});
|
|
5318
5892
|
let DOMProps = (0, $dGqE5$filterDOMProps)(props);
|
|
5319
5893
|
delete DOMProps.id;
|
|
5320
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement(
|
|
5894
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
5321
5895
|
...DOMProps,
|
|
5322
5896
|
...tabListProps,
|
|
5323
5897
|
ref: objectRef,
|
|
5324
|
-
...renderProps
|
|
5898
|
+
...renderProps,
|
|
5899
|
+
"data-orientation": orientation || undefined
|
|
5325
5900
|
}, [
|
|
5326
5901
|
...state.collection
|
|
5327
5902
|
].map((item)=>/*#__PURE__*/ (0, $dGqE5$react).createElement($5e8ad37a45e1c704$var$TabInner, {
|
|
5328
5903
|
key: item.key,
|
|
5329
5904
|
item: item,
|
|
5330
5905
|
state: state
|
|
5331
|
-
})))
|
|
5906
|
+
})));
|
|
5332
5907
|
}
|
|
5333
5908
|
/**
|
|
5334
5909
|
* A TabList is used within Tabs to group tabs that a user can switch between.
|
|
5335
5910
|
* The ids of the items within the <TabList> must match up with a corresponding item inside the <TabPanels>.
|
|
5336
5911
|
*/ const $5e8ad37a45e1c704$export$e51a686c67fdaa2d = /*#__PURE__*/ (0, $dGqE5$forwardRef)($5e8ad37a45e1c704$var$TabList);
|
|
5337
5912
|
function $5e8ad37a45e1c704$var$Tab(props, ref) {
|
|
5338
|
-
|
|
5339
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $7135fc7d473fd974$export$6d08773d2e66f8f2), {
|
|
5340
|
-
...props,
|
|
5341
|
-
ref: ref
|
|
5342
|
-
});
|
|
5913
|
+
return (0, $7135fc7d473fd974$export$e7c29ae2353b16ea)("item", props, ref, props.children);
|
|
5343
5914
|
}
|
|
5344
5915
|
/**
|
|
5345
5916
|
* A Tab provides a title for an individual item within a TabList.
|
|
@@ -5364,7 +5935,8 @@ function $5e8ad37a45e1c704$var$TabInner({ item: item , state: state }) {
|
|
|
5364
5935
|
isFocused: isFocused,
|
|
5365
5936
|
isFocusVisible: isFocusVisible,
|
|
5366
5937
|
isPressed: isPressed,
|
|
5367
|
-
isHovered: isHovered
|
|
5938
|
+
isHovered: isHovered,
|
|
5939
|
+
state: state
|
|
5368
5940
|
}
|
|
5369
5941
|
});
|
|
5370
5942
|
let DOMProps = (0, $dGqE5$filterDOMProps)(item.props);
|
|
@@ -5372,6 +5944,8 @@ function $5e8ad37a45e1c704$var$TabInner({ item: item , state: state }) {
|
|
|
5372
5944
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
5373
5945
|
...(0, $dGqE5$mergeProps)(DOMProps, tabProps, focusProps, hoverProps, renderProps),
|
|
5374
5946
|
ref: ref,
|
|
5947
|
+
"data-selected": isSelected || undefined,
|
|
5948
|
+
"data-disabled": isDisabled || undefined,
|
|
5375
5949
|
"data-focus-visible": isFocusVisible || undefined,
|
|
5376
5950
|
"data-pressed": isPressed || undefined,
|
|
5377
5951
|
"data-hovered": isHovered || undefined
|
|
@@ -5389,7 +5963,8 @@ function $5e8ad37a45e1c704$var$TabPanel(props, forwardedRef) {
|
|
|
5389
5963
|
values: {
|
|
5390
5964
|
isFocused: isFocused,
|
|
5391
5965
|
isFocusVisible: isFocusVisible,
|
|
5392
|
-
isInert: !isSelected
|
|
5966
|
+
isInert: !isSelected,
|
|
5967
|
+
state: state
|
|
5393
5968
|
}
|
|
5394
5969
|
});
|
|
5395
5970
|
if (!isSelected && !props.shouldForceMount) return null;
|
|
@@ -5399,14 +5974,16 @@ function $5e8ad37a45e1c704$var$TabPanel(props, forwardedRef) {
|
|
|
5399
5974
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
5400
5975
|
...domProps,
|
|
5401
5976
|
ref: ref,
|
|
5977
|
+
"data-focused": isFocused || undefined,
|
|
5402
5978
|
"data-focus-visible": isFocusVisible || undefined,
|
|
5403
5979
|
// @ts-ignore
|
|
5404
|
-
inert: !isSelected ? "true" : undefined
|
|
5980
|
+
inert: !isSelected ? "true" : undefined,
|
|
5981
|
+
"data-inert": !isSelected ? "true" : undefined
|
|
5405
5982
|
});
|
|
5406
5983
|
}
|
|
5407
5984
|
/**
|
|
5408
5985
|
* A TabPanel provides the content for a tab.
|
|
5409
|
-
*/ const $5e8ad37a45e1c704$export$3d96ec278d3efce4 = /*#__PURE__*/ (0, $
|
|
5986
|
+
*/ const $5e8ad37a45e1c704$export$3d96ec278d3efce4 = /*#__PURE__*/ (0, $64fa3d84918910a7$export$86427a43e3e48ebb)($5e8ad37a45e1c704$var$TabPanel);
|
|
5410
5987
|
|
|
5411
5988
|
|
|
5412
5989
|
/*
|
|
@@ -5493,8 +6070,16 @@ function $eaf9e70818b436db$var$TagGroup(props, ref) {
|
|
|
5493
6070
|
* A tag group is a focusable list of labels, categories, keywords, filters, or other items, with support for keyboard navigation, selection, and removal.
|
|
5494
6071
|
*/ const $eaf9e70818b436db$export$67ea30858aaf75e3 = /*#__PURE__*/ (0, $dGqE5$forwardRef)($eaf9e70818b436db$var$TagGroup);
|
|
5495
6072
|
function $eaf9e70818b436db$var$TagList(props, forwardedRef) {
|
|
5496
|
-
|
|
6073
|
+
// Render the portal first so that we have the collection by the time we render the DOM in SSR.
|
|
6074
|
+
let { document: document } = (0, $dGqE5$useContext)($eaf9e70818b436db$var$InternalTagGroupContext);
|
|
5497
6075
|
let portal = (0, $7135fc7d473fd974$export$ad42d5efb4461b31)(props, document);
|
|
6076
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $dGqE5$react).Fragment, null, portal, /*#__PURE__*/ (0, $dGqE5$react).createElement($eaf9e70818b436db$var$TagListInner, {
|
|
6077
|
+
props: props,
|
|
6078
|
+
forwardedRef: forwardedRef
|
|
6079
|
+
}));
|
|
6080
|
+
}
|
|
6081
|
+
function $eaf9e70818b436db$var$TagListInner({ props: props , forwardedRef: forwardedRef }) {
|
|
6082
|
+
let { state: state , gridProps: gridProps , tagListRef: tagListRef } = (0, $dGqE5$useContext)($eaf9e70818b436db$var$InternalTagGroupContext);
|
|
5498
6083
|
let ref = (0, $dGqE5$mergeRefs)(tagListRef, forwardedRef);
|
|
5499
6084
|
let children = (0, $7135fc7d473fd974$export$727c8fc270210f13)({
|
|
5500
6085
|
items: state.collection,
|
|
@@ -5520,7 +6105,7 @@ function $eaf9e70818b436db$var$TagList(props, forwardedRef) {
|
|
|
5520
6105
|
isFocusVisible: isFocusVisible
|
|
5521
6106
|
}
|
|
5522
6107
|
});
|
|
5523
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement(
|
|
6108
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
5524
6109
|
...(0, $dGqE5$mergeProps1)(gridProps, focusProps),
|
|
5525
6110
|
...renderProps,
|
|
5526
6111
|
...(0, $dGqE5$filterDOMProps)(props),
|
|
@@ -5528,17 +6113,13 @@ function $eaf9e70818b436db$var$TagList(props, forwardedRef) {
|
|
|
5528
6113
|
"data-empty": state.collection.size === 0 || undefined,
|
|
5529
6114
|
"data-focused": isFocused || undefined,
|
|
5530
6115
|
"data-focus-visible": isFocusVisible || undefined
|
|
5531
|
-
}, state.collection.size === 0 && props.renderEmptyState ? props.renderEmptyState() : children)
|
|
6116
|
+
}, state.collection.size === 0 && props.renderEmptyState ? props.renderEmptyState() : children);
|
|
5532
6117
|
}
|
|
5533
6118
|
/**
|
|
5534
6119
|
* A tag list is a container for tags within a TagGroup.
|
|
5535
6120
|
*/ const $eaf9e70818b436db$export$f9fef0f55402315b = /*#__PURE__*/ (0, $dGqE5$forwardRef)($eaf9e70818b436db$var$TagList);
|
|
5536
6121
|
function $eaf9e70818b436db$var$Tag(props, ref) {
|
|
5537
|
-
|
|
5538
|
-
return /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $7135fc7d473fd974$export$6d08773d2e66f8f2), {
|
|
5539
|
-
...props,
|
|
5540
|
-
ref: ref
|
|
5541
|
-
});
|
|
6122
|
+
return (0, $7135fc7d473fd974$export$e7c29ae2353b16ea)("item", props, ref, props.children);
|
|
5542
6123
|
}
|
|
5543
6124
|
/**
|
|
5544
6125
|
* A Tag is an individual item within a TagList.
|
|
@@ -5578,11 +6159,14 @@ function $eaf9e70818b436db$var$TagItem({ item: item }) {
|
|
|
5578
6159
|
ref: ref,
|
|
5579
6160
|
...renderProps,
|
|
5580
6161
|
...(0, $dGqE5$mergeProps1)((0, $dGqE5$filterDOMProps)(props), rowProps, focusProps, hoverProps),
|
|
6162
|
+
"data-selected": states.isSelected || undefined,
|
|
6163
|
+
"data-disabled": states.isDisabled || undefined,
|
|
5581
6164
|
"data-hovered": isHovered || undefined,
|
|
5582
6165
|
"data-focused": states.isFocused || undefined,
|
|
5583
6166
|
"data-focus-visible": isFocusVisible || undefined,
|
|
5584
6167
|
"data-pressed": states.isPressed || undefined,
|
|
5585
|
-
"data-allows-removing": states.allowsRemoving || undefined
|
|
6168
|
+
"data-allows-removing": states.allowsRemoving || undefined,
|
|
6169
|
+
"data-selection-mode": state.selectionManager.selectionMode === "none" ? undefined : state.selectionManager.selectionMode
|
|
5586
6170
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement("div", gridCellProps, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
5587
6171
|
values: [
|
|
5588
6172
|
[
|
|
@@ -5599,6 +6183,45 @@ function $eaf9e70818b436db$var$TagItem({ item: item }) {
|
|
|
5599
6183
|
|
|
5600
6184
|
|
|
5601
6185
|
|
|
6186
|
+
|
|
6187
|
+
|
|
6188
|
+
|
|
6189
|
+
const $216918bed6669f72$export$2dc6166a7e65358c = /*#__PURE__*/ (0, $dGqE5$createContext)({});
|
|
6190
|
+
function $216918bed6669f72$var$TextArea(props, ref) {
|
|
6191
|
+
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $216918bed6669f72$export$2dc6166a7e65358c);
|
|
6192
|
+
let { hoverProps: hoverProps , isHovered: isHovered } = (0, $dGqE5$useHover)({});
|
|
6193
|
+
let { isFocused: isFocused , isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $dGqE5$useFocusRing)({
|
|
6194
|
+
isTextInput: true,
|
|
6195
|
+
autoFocus: props.autoFocus
|
|
6196
|
+
});
|
|
6197
|
+
let isInvalid = !!props["aria-invalid"] && props["aria-invalid"] !== "false";
|
|
6198
|
+
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
6199
|
+
...props,
|
|
6200
|
+
values: {
|
|
6201
|
+
isHovered: isHovered,
|
|
6202
|
+
isFocused: isFocused,
|
|
6203
|
+
isFocusVisible: isFocusVisible,
|
|
6204
|
+
isDisabled: props.disabled || false,
|
|
6205
|
+
isInvalid: isInvalid
|
|
6206
|
+
},
|
|
6207
|
+
defaultClassName: "react-aria-TextArea"
|
|
6208
|
+
});
|
|
6209
|
+
return /*#__PURE__*/ (0, $dGqE5$react).createElement("textarea", {
|
|
6210
|
+
...(0, $dGqE5$mergeProps)(props, focusProps, hoverProps),
|
|
6211
|
+
...renderProps,
|
|
6212
|
+
ref: ref,
|
|
6213
|
+
"data-focused": isFocused || undefined,
|
|
6214
|
+
"data-disabled": props.disabled || undefined,
|
|
6215
|
+
"data-hovered": isHovered || undefined,
|
|
6216
|
+
"data-focus-visible": isFocusVisible || undefined,
|
|
6217
|
+
"data-invalid": isInvalid || undefined
|
|
6218
|
+
});
|
|
6219
|
+
}
|
|
6220
|
+
/**
|
|
6221
|
+
* A textarea allows a user to input mult-line text.
|
|
6222
|
+
*/ const $216918bed6669f72$export$f5c9f3c2c4054eec = /*#__PURE__*/ (0, $dGqE5$forwardRef)($216918bed6669f72$var$TextArea);
|
|
6223
|
+
|
|
6224
|
+
|
|
5602
6225
|
/*
|
|
5603
6226
|
* Copyright 2022 Adobe. All rights reserved.
|
|
5604
6227
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -5616,22 +6239,39 @@ function $eaf9e70818b436db$var$TagItem({ item: item }) {
|
|
|
5616
6239
|
|
|
5617
6240
|
|
|
5618
6241
|
|
|
6242
|
+
|
|
5619
6243
|
const $bcdf0525bf22703d$export$2129e27b3ef0d483 = /*#__PURE__*/ (0, $dGqE5$createContext)(null);
|
|
5620
6244
|
function $bcdf0525bf22703d$var$TextField(props, ref) {
|
|
5621
6245
|
[props, ref] = (0, $64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $bcdf0525bf22703d$export$2129e27b3ef0d483);
|
|
5622
6246
|
let inputRef = (0, $dGqE5$useRef)(null);
|
|
5623
6247
|
let [labelRef, label] = (0, $64fa3d84918910a7$export$9d4c57ee4c6ffdd8)();
|
|
6248
|
+
let [inputElementType, setInputElementType] = (0, $dGqE5$useState)("input");
|
|
5624
6249
|
let { labelProps: labelProps , inputProps: inputProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = (0, $dGqE5$useTextField)({
|
|
5625
6250
|
...props,
|
|
6251
|
+
inputElementType: inputElementType,
|
|
5626
6252
|
label: label
|
|
5627
6253
|
}, inputRef);
|
|
5628
|
-
|
|
6254
|
+
// Intercept setting the input ref so we can determine what kind of element we have.
|
|
6255
|
+
// useTextField uses this to determine what props to include.
|
|
6256
|
+
let inputOrTextAreaRef = (0, $dGqE5$useCallback)((el)=>{
|
|
6257
|
+
inputRef.current = el;
|
|
6258
|
+
if (el) setInputElementType(el instanceof HTMLTextAreaElement ? "textarea" : "input");
|
|
6259
|
+
}, []);
|
|
6260
|
+
let renderProps = (0, $64fa3d84918910a7$export$4d86445c2cf5e3)({
|
|
6261
|
+
...props,
|
|
6262
|
+
values: {
|
|
6263
|
+
isDisabled: props.isDisabled || false,
|
|
6264
|
+
isInvalid: props.isInvalid || false
|
|
6265
|
+
},
|
|
6266
|
+
defaultClassName: "react-aria-TextField"
|
|
6267
|
+
});
|
|
5629
6268
|
return /*#__PURE__*/ (0, $dGqE5$react).createElement("div", {
|
|
5630
6269
|
...(0, $dGqE5$filterDOMProps)(props),
|
|
6270
|
+
...renderProps,
|
|
5631
6271
|
ref: ref,
|
|
5632
6272
|
slot: props.slot,
|
|
5633
|
-
|
|
5634
|
-
|
|
6273
|
+
"data-disabled": props.isDisabled || undefined,
|
|
6274
|
+
"data-invalid": props.isInvalid || undefined
|
|
5635
6275
|
}, /*#__PURE__*/ (0, $dGqE5$react).createElement((0, $64fa3d84918910a7$export$2881499e37b75b9a), {
|
|
5636
6276
|
values: [
|
|
5637
6277
|
[
|
|
@@ -5645,7 +6285,14 @@ function $bcdf0525bf22703d$var$TextField(props, ref) {
|
|
|
5645
6285
|
(0, $3985021b0ad6602f$export$37fb8590cf2c088c),
|
|
5646
6286
|
{
|
|
5647
6287
|
...inputProps,
|
|
5648
|
-
ref:
|
|
6288
|
+
ref: inputOrTextAreaRef
|
|
6289
|
+
}
|
|
6290
|
+
],
|
|
6291
|
+
[
|
|
6292
|
+
(0, $216918bed6669f72$export$2dc6166a7e65358c),
|
|
6293
|
+
{
|
|
6294
|
+
...inputProps,
|
|
6295
|
+
ref: inputOrTextAreaRef
|
|
5649
6296
|
}
|
|
5650
6297
|
],
|
|
5651
6298
|
[
|
|
@@ -5658,11 +6305,11 @@ function $bcdf0525bf22703d$var$TextField(props, ref) {
|
|
|
5658
6305
|
}
|
|
5659
6306
|
]
|
|
5660
6307
|
]
|
|
5661
|
-
},
|
|
6308
|
+
}, renderProps.children));
|
|
5662
6309
|
}
|
|
5663
6310
|
/**
|
|
5664
6311
|
* A text field allows a user to enter a plain text value with a keyboard.
|
|
5665
|
-
*/ const $bcdf0525bf22703d$export$2c73285ae9390cec =
|
|
6312
|
+
*/ const $bcdf0525bf22703d$export$2c73285ae9390cec = (0, $dGqE5$forwardRef)($bcdf0525bf22703d$var$TextField);
|
|
5666
6313
|
|
|
5667
6314
|
|
|
5668
6315
|
/*
|
|
@@ -5694,7 +6341,8 @@ function $efde0372d7a700fe$var$ToggleButton(props, ref) {
|
|
|
5694
6341
|
isFocused: isFocused,
|
|
5695
6342
|
isSelected: state.isSelected,
|
|
5696
6343
|
isFocusVisible: isFocusVisible,
|
|
5697
|
-
isDisabled: props.isDisabled || false
|
|
6344
|
+
isDisabled: props.isDisabled || false,
|
|
6345
|
+
state: state
|
|
5698
6346
|
},
|
|
5699
6347
|
defaultClassName: "react-aria-ToggleButton"
|
|
5700
6348
|
});
|
|
@@ -5703,7 +6351,10 @@ function $efde0372d7a700fe$var$ToggleButton(props, ref) {
|
|
|
5703
6351
|
...renderProps,
|
|
5704
6352
|
ref: ref,
|
|
5705
6353
|
slot: props.slot,
|
|
6354
|
+
"data-focused": isFocused || undefined,
|
|
6355
|
+
"data-disabled": props.isDisabled || undefined,
|
|
5706
6356
|
"data-pressed": isPressed || undefined,
|
|
6357
|
+
"data-selected": state.isSelected || undefined,
|
|
5707
6358
|
"data-hovered": isHovered || undefined,
|
|
5708
6359
|
"data-focus-visible": isFocusVisible || undefined
|
|
5709
6360
|
});
|
|
@@ -5778,7 +6429,8 @@ function $4e3b923658d69c60$var$TooltipInner(props) {
|
|
|
5778
6429
|
values: {
|
|
5779
6430
|
placement: placement,
|
|
5780
6431
|
isEntering: isEntering,
|
|
5781
|
-
isExiting: props.isExiting
|
|
6432
|
+
isExiting: props.isExiting,
|
|
6433
|
+
state: state
|
|
5782
6434
|
}
|
|
5783
6435
|
});
|
|
5784
6436
|
props = (0, $dGqE5$mergeProps)(props, overlayProps);
|
|
@@ -5807,5 +6459,5 @@ function $4e3b923658d69c60$var$TooltipInner(props) {
|
|
|
5807
6459
|
|
|
5808
6460
|
|
|
5809
6461
|
|
|
5810
|
-
export {$778035c5624f61e7$export$2dc68d50d56fbbd as Breadcrumbs, $778035c5624f61e7$export$65596d3621b0a4a0 as BreadcrumbsContext, $d2b4bc8c273e7be6$export$353f5b6fc5456de1 as Button, $d2b4bc8c273e7be6$export$24d547caef80ccd1 as ButtonContext, $dfd62f934fc76fed$export$e1aef45b828286de as Calendar, $dfd62f934fc76fed$export$5bd780d491cfc46c as CalendarGrid, $dfd62f934fc76fed$export$22e2d15eaa4d2377 as CalendarGridHeader, $dfd62f934fc76fed$export$e11f8ba65d857bff as CalendarGridBody, $dfd62f934fc76fed$export$ad2135cac3a11b3d as CalendarHeaderCell, $dfd62f934fc76fed$export$5d847498420df57b as CalendarCell, $dfd62f934fc76fed$export$a4f5c8b89d277a8d as RangeCalendar, $dfd62f934fc76fed$export$3b805cea1f178355 as CalendarContext, $dfd62f934fc76fed$export$233dd9682e1ad64b as RangeCalendarContext, $bc237834342dbd75$export$48513f6b9f8ce62d as Checkbox, $bc237834342dbd75$export$4aa08d5625cb8ead as CheckboxGroup, $bc237834342dbd75$export$baf37c4be89255b8 as CheckboxGroupContext, $bc237834342dbd75$export$b085522c77523c51 as CheckboxContext, $d01f2c01039c0eec$export$72b9695b8216309a as ComboBox, $d01f2c01039c0eec$export$d414ccceff7063c3 as ComboBoxContext, $40825cdb76e74f70$export$d9781c7894a82487 as DateField, $40825cdb76e74f70$export$7edc06cf1783b30f as DateInput, $40825cdb76e74f70$export$336ab7fa954c4b5f as DateSegment, $40825cdb76e74f70$export$5eaee2322dd727eb as TimeField, $40825cdb76e74f70$export$7b3e670c86da5fe8 as DateFieldContext, $40825cdb76e74f70$export$8e17ddc448e87c1e as TimeFieldContext, $06d5b8ec9ee5d538$export$5109c6dd95d8fb00 as DatePicker, $06d5b8ec9ee5d538$export$17334619f3ac2224 as DateRangePicker, $06d5b8ec9ee5d538$export$cf316c7f3b44c11e as DatePickerContext, $06d5b8ec9ee5d538$export$8282edba42ee28a as DateRangePickerContext, $de32f1b87079253c$export$2e1e1122cf0cba88 as DialogTrigger, $de32f1b87079253c$export$3ddf2d174ce01153 as Dialog, $de32f1b87079253c$export$8b93a07348a7730c as DialogContext, $cb088e721efb9218$export$3c6489d84dc98b6 as DropZone, $cb088e721efb9218$export$14a72053295ff9a6 as DropZoneContext, $1e2864c73f66a4da$export$6fb4a10d2c950550 as FileTrigger, $
|
|
6462
|
+
export {$778035c5624f61e7$export$2dc68d50d56fbbd as Breadcrumbs, $778035c5624f61e7$export$65596d3621b0a4a0 as BreadcrumbsContext, $778035c5624f61e7$export$dabcc1ec9dd9d1cc as Breadcrumb, $d2b4bc8c273e7be6$export$353f5b6fc5456de1 as Button, $d2b4bc8c273e7be6$export$24d547caef80ccd1 as ButtonContext, $dfd62f934fc76fed$export$e1aef45b828286de as Calendar, $dfd62f934fc76fed$export$5bd780d491cfc46c as CalendarGrid, $dfd62f934fc76fed$export$22e2d15eaa4d2377 as CalendarGridHeader, $dfd62f934fc76fed$export$e11f8ba65d857bff as CalendarGridBody, $dfd62f934fc76fed$export$ad2135cac3a11b3d as CalendarHeaderCell, $dfd62f934fc76fed$export$5d847498420df57b as CalendarCell, $dfd62f934fc76fed$export$a4f5c8b89d277a8d as RangeCalendar, $dfd62f934fc76fed$export$3b805cea1f178355 as CalendarContext, $dfd62f934fc76fed$export$233dd9682e1ad64b as RangeCalendarContext, $bc237834342dbd75$export$48513f6b9f8ce62d as Checkbox, $bc237834342dbd75$export$4aa08d5625cb8ead as CheckboxGroup, $bc237834342dbd75$export$baf37c4be89255b8 as CheckboxGroupContext, $bc237834342dbd75$export$b085522c77523c51 as CheckboxContext, $d01f2c01039c0eec$export$72b9695b8216309a as ComboBox, $d01f2c01039c0eec$export$d414ccceff7063c3 as ComboBoxContext, $40825cdb76e74f70$export$d9781c7894a82487 as DateField, $40825cdb76e74f70$export$7edc06cf1783b30f as DateInput, $40825cdb76e74f70$export$336ab7fa954c4b5f as DateSegment, $40825cdb76e74f70$export$5eaee2322dd727eb as TimeField, $40825cdb76e74f70$export$7b3e670c86da5fe8 as DateFieldContext, $40825cdb76e74f70$export$8e17ddc448e87c1e as TimeFieldContext, $06d5b8ec9ee5d538$export$5109c6dd95d8fb00 as DatePicker, $06d5b8ec9ee5d538$export$17334619f3ac2224 as DateRangePicker, $06d5b8ec9ee5d538$export$cf316c7f3b44c11e as DatePickerContext, $06d5b8ec9ee5d538$export$8282edba42ee28a as DateRangePickerContext, $de32f1b87079253c$export$2e1e1122cf0cba88 as DialogTrigger, $de32f1b87079253c$export$3ddf2d174ce01153 as Dialog, $de32f1b87079253c$export$8b93a07348a7730c as DialogContext, $cb088e721efb9218$export$3c6489d84dc98b6 as DropZone, $cb088e721efb9218$export$14a72053295ff9a6 as DropZoneContext, $1e2864c73f66a4da$export$6fb4a10d2c950550 as FileTrigger, $72e60046c03fbe42$export$a7bfbda1311ca015 as GridList, $72e60046c03fbe42$export$54fe942636b6416d as GridListContext, $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 as Group, $a049562f99e7db0e$export$f9c6924e160136d1 as GroupContext, $72a5793c14baf454$export$8b251419efc915eb as Header, $5cb03073d3f54797$export$a8a3e93435678ff9 as Heading, $5cb03073d3f54797$export$d688439359537581 as HeadingContext, $3985021b0ad6602f$export$f5b8910cec6cf069 as Input, $3985021b0ad6602f$export$37fb8590cf2c088c as InputContext, $7135fc7d473fd974$export$6d08773d2e66f8f2 as Item, $7135fc7d473fd974$export$6e2c8f0811a474ce as Section, $7135fc7d473fd974$export$fb8073518f34e6ec as Collection, $63df2425e2108aa8$export$16e4d70cc375e707 as Keyboard, $63df2425e2108aa8$export$744d98a3b8a94e1c as KeyboardContext, $01b77f81d0f07f68$export$b04be29aa201d4f5 as Label, $01b77f81d0f07f68$export$75b6ee27786ba447 as LabelContext, $4f118338184dc1d9$export$a6c7ac8248d6e38a as Link, $4f118338184dc1d9$export$e2509388b49734e7 as LinkContext, $eed445e0843c11d0$export$41f133550aa26f48 as ListBox, $eed445e0843c11d0$export$7ff8f37d2d81a48d as ListBoxContext, $3674c52c6b3c5bce$export$d9b273488cd8ce6f as Menu, $3674c52c6b3c5bce$export$27d2ad3c5815583e as MenuTrigger, $3674c52c6b3c5bce$export$c7e742effb1c51e2 as MenuContext, $c0c9ced265f3594c$export$62e3ae2a4090b879 as Meter, $c0c9ced265f3594c$export$8b645da15a96b44f as MeterContext, $f3f84453ead64de5$export$2b77a92f1a5ad772 as Modal, $f3f84453ead64de5$export$8948f78d83984c69 as ModalOverlay, $f3f84453ead64de5$export$ab57792b9b6974a6 as ModalContext, $b91743d66a0ed188$export$63c5fa0b2fdccd2e as NumberField, $b91743d66a0ed188$export$b414a48cf5dcbc11 as NumberFieldContext, $44f671af83e7d9e0$export$746d02f47f4d381 as OverlayArrow, $07b14b47974efb58$export$5b6b19405a83ff9d as Popover, $07b14b47974efb58$export$9b9a0cd73afb7ca4 as PopoverContext, $0393f8ab869a0f1a$export$c17561cb55d4db30 as ProgressBar, $0393f8ab869a0f1a$export$e9f3bf65a26ce129 as ProgressBarContext, $64fa3d84918910a7$export$2881499e37b75b9a as Provider, $64fa3d84918910a7$export$29f1550f4b0d4415 as useContextProps, $64fa3d84918910a7$export$fabf2dc03a41866e as useSlottedContext, $b6c3ddc6086f204d$export$a98f0dcb43a68a25 as RadioGroup, $b6c3ddc6086f204d$export$d7b12c4107be0d61 as Radio, $b6c3ddc6086f204d$export$a79eda4ff50e30b6 as RadioGroupContext, $b6c3ddc6086f204d$export$b118023277d4a5c3 as RadioContext, $440f4836bcb56932$export$b94867ecbd698f21 as SearchField, $440f4836bcb56932$export$d1c4e4c63cb03a11 as SearchFieldContext, $82d7e5349645de74$export$ef9b1a59e592288f as Select, $82d7e5349645de74$export$e288731fd71264f0 as SelectValue, $82d7e5349645de74$export$7540cee5be7dc19b as SelectContext, $431f98aba6844401$export$1ff3c3f08ae963c0 as Separator, $431f98aba6844401$export$6615d83f6de245ce as SeparatorContext, $6f909507e6374d18$export$472062a354075cee as Slider, $6f909507e6374d18$export$a590f758a961cb5b as SliderOutput, $6f909507e6374d18$export$105594979f116971 as SliderTrack, $6f909507e6374d18$export$2c1b491743890dec as SliderThumb, $6f909507e6374d18$export$e99164f0030f3bff as SliderContext, $8e59e948500a8fe1$export$b5d5cf8927ab7262 as Switch, $8e59e948500a8fe1$export$8699e3b644d5a28a as SwitchContext, $1910c06f0ca9905e$export$54ec01a60f47d33d as Table, $1910c06f0ca9905e$export$b59bdbef9ce70de2 as Row, $1910c06f0ca9905e$export$f6f0c3fe4ec306ea as Cell, $1910c06f0ca9905e$export$816b5d811295e6bc as Column, $1910c06f0ca9905e$export$ee689e97a7664bfd as ColumnResizer, $1910c06f0ca9905e$export$f850895b287ef28e as TableHeader, $1910c06f0ca9905e$export$76ccd210b9029917 as TableBody, $1910c06f0ca9905e$export$93e4b0b2cc49b648 as TableContext, $1910c06f0ca9905e$export$7063e69b8a954175 as ResizableTableContainer, $1910c06f0ca9905e$export$fddc468cd8cb4db9 as useTableOptions, $5e8ad37a45e1c704$export$b2539bed5023c21c as Tabs, $5e8ad37a45e1c704$export$e51a686c67fdaa2d as TabList, $5e8ad37a45e1c704$export$3d96ec278d3efce4 as TabPanel, $5e8ad37a45e1c704$export$3e41faf802a29e71 as Tab, $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f as TabsContext, $eaf9e70818b436db$export$67ea30858aaf75e3 as TagGroup, $eaf9e70818b436db$export$5b07b5dd2cbd96e3 as TagGroupContext, $eaf9e70818b436db$export$f9fef0f55402315b as TagList, $eaf9e70818b436db$export$3288d34c523a1192 as Tag, $514c0188e459b4c0$export$5f1af8db9871e1d6 as Text, $514c0188e459b4c0$export$9afb8bc826b033ea as TextContext, $216918bed6669f72$export$f5c9f3c2c4054eec as TextArea, $216918bed6669f72$export$2dc6166a7e65358c as TextAreaContext, $bcdf0525bf22703d$export$2c73285ae9390cec as TextField, $bcdf0525bf22703d$export$2129e27b3ef0d483 as TextFieldContext, $efde0372d7a700fe$export$d2b052e7b4be1756 as ToggleButton, $efde0372d7a700fe$export$43506d75ebd2e218 as ToggleButtonContext, $4e3b923658d69c60$export$8c610744efcf8a1d as TooltipTrigger, $4e3b923658d69c60$export$28c660c63b792dea as Tooltip, $d8f176866e6dc039$export$2cfc5be7a55829f6 as useDragAndDrop, $d8f176866e6dc039$export$62ed72bc21f6b8a6 as DropIndicator, $d8f176866e6dc039$export$f55761759794cf55 as DropIndicatorContext, $67da31f5140672c4$re_export$DIRECTORY_DRAG_TYPE as DIRECTORY_DRAG_TYPE, $67da31f5140672c4$re_export$isDirectoryDropItem as isDirectoryDropItem, $67da31f5140672c4$re_export$isFileDropItem as isFileDropItem, $67da31f5140672c4$re_export$isTextDropItem as isTextDropItem, $67da31f5140672c4$re_export$SSRProvider as SSRProvider};
|
|
5811
6463
|
//# sourceMappingURL=module.js.map
|