react-aria-components 3.0.0-nightly-5a0b4fabc-240924 → 3.0.0-nightly-5ae234603-240925
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/Disclosure.main.js +1 -1
- package/dist/Disclosure.main.js.map +1 -1
- package/dist/Disclosure.mjs +1 -1
- package/dist/Disclosure.module.js +1 -1
- package/dist/Disclosure.module.js.map +1 -1
- package/dist/Tree.main.js +6 -2
- package/dist/Tree.main.js.map +1 -1
- package/dist/Tree.mjs +6 -2
- package/dist/Tree.module.js +6 -2
- package/dist/Tree.module.js.map +1 -1
- package/dist/import.mjs +1 -1
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +7 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +30 -30
- package/src/Disclosure.tsx +2 -2
- package/src/Tree.tsx +9 -3
- package/src/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-aria-components",
|
|
3
|
-
"version": "3.0.0-nightly-
|
|
3
|
+
"version": "3.0.0-nightly-5ae234603-240925",
|
|
4
4
|
"description": "A library of styleable components built using React Aria",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -37,37 +37,37 @@
|
|
|
37
37
|
"url": "https://github.com/adobe/react-spectrum"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@internationalized/date": "^3.0.0-nightly-
|
|
41
|
-
"@internationalized/string": "^3.0.0-nightly-
|
|
42
|
-
"@react-aria/accordion": "3.0.0-nightly-
|
|
43
|
-
"@react-aria/collections": "3.0.0-nightly-
|
|
44
|
-
"@react-aria/color": "3.0.0-nightly-
|
|
45
|
-
"@react-aria/disclosure": "3.0.0-nightly-
|
|
46
|
-
"@react-aria/dnd": "^3.0.0-nightly-
|
|
47
|
-
"@react-aria/focus": "^3.0.0-nightly-
|
|
48
|
-
"@react-aria/interactions": "^3.0.0-nightly-
|
|
49
|
-
"@react-aria/live-announcer": "^3.0.0-nightly-
|
|
50
|
-
"@react-aria/menu": "^3.0.0-nightly-
|
|
51
|
-
"@react-aria/toolbar": "3.0.0-nightly-
|
|
52
|
-
"@react-aria/tree": "3.0.0-nightly-
|
|
53
|
-
"@react-aria/utils": "^3.0.0-nightly-
|
|
54
|
-
"@react-aria/virtualizer": "^3.0.0-nightly-
|
|
55
|
-
"@react-stately/color": "^3.0.0-nightly-
|
|
56
|
-
"@react-stately/disclosure": "3.0.0-nightly-
|
|
57
|
-
"@react-stately/layout": "^3.0.0-nightly-
|
|
58
|
-
"@react-stately/menu": "^3.0.0-nightly-
|
|
59
|
-
"@react-stately/table": "^3.0.0-nightly-
|
|
60
|
-
"@react-stately/utils": "^3.0.0-nightly-
|
|
61
|
-
"@react-stately/virtualizer": "^3.0.0-nightly-
|
|
62
|
-
"@react-types/color": "3.0.0-nightly-
|
|
63
|
-
"@react-types/form": "^3.0.0-nightly-
|
|
64
|
-
"@react-types/grid": "^3.0.0-nightly-
|
|
65
|
-
"@react-types/shared": "^3.0.0-nightly-
|
|
66
|
-
"@react-types/table": "^3.0.0-nightly-
|
|
40
|
+
"@internationalized/date": "^3.0.0-nightly-5ae234603-240925",
|
|
41
|
+
"@internationalized/string": "^3.0.0-nightly-5ae234603-240925",
|
|
42
|
+
"@react-aria/accordion": "3.0.0-nightly-5ae234603-240925",
|
|
43
|
+
"@react-aria/collections": "3.0.0-nightly-5ae234603-240925",
|
|
44
|
+
"@react-aria/color": "3.0.0-nightly-5ae234603-240925",
|
|
45
|
+
"@react-aria/disclosure": "3.0.0-nightly-5ae234603-240925",
|
|
46
|
+
"@react-aria/dnd": "^3.0.0-nightly-5ae234603-240925",
|
|
47
|
+
"@react-aria/focus": "^3.0.0-nightly-5ae234603-240925",
|
|
48
|
+
"@react-aria/interactions": "^3.0.0-nightly-5ae234603-240925",
|
|
49
|
+
"@react-aria/live-announcer": "^3.0.0-nightly-5ae234603-240925",
|
|
50
|
+
"@react-aria/menu": "^3.0.0-nightly-5ae234603-240925",
|
|
51
|
+
"@react-aria/toolbar": "3.0.0-nightly-5ae234603-240925",
|
|
52
|
+
"@react-aria/tree": "3.0.0-nightly-5ae234603-240925",
|
|
53
|
+
"@react-aria/utils": "^3.0.0-nightly-5ae234603-240925",
|
|
54
|
+
"@react-aria/virtualizer": "^3.0.0-nightly-5ae234603-240925",
|
|
55
|
+
"@react-stately/color": "^3.0.0-nightly-5ae234603-240925",
|
|
56
|
+
"@react-stately/disclosure": "3.0.0-nightly-5ae234603-240925",
|
|
57
|
+
"@react-stately/layout": "^3.0.0-nightly-5ae234603-240925",
|
|
58
|
+
"@react-stately/menu": "^3.0.0-nightly-5ae234603-240925",
|
|
59
|
+
"@react-stately/table": "^3.0.0-nightly-5ae234603-240925",
|
|
60
|
+
"@react-stately/utils": "^3.0.0-nightly-5ae234603-240925",
|
|
61
|
+
"@react-stately/virtualizer": "^3.0.0-nightly-5ae234603-240925",
|
|
62
|
+
"@react-types/color": "3.0.0-nightly-5ae234603-240925",
|
|
63
|
+
"@react-types/form": "^3.0.0-nightly-5ae234603-240925",
|
|
64
|
+
"@react-types/grid": "^3.0.0-nightly-5ae234603-240925",
|
|
65
|
+
"@react-types/shared": "^3.0.0-nightly-5ae234603-240925",
|
|
66
|
+
"@react-types/table": "^3.0.0-nightly-5ae234603-240925",
|
|
67
67
|
"@swc/helpers": "^0.5.0",
|
|
68
68
|
"client-only": "^0.0.1",
|
|
69
|
-
"react-aria": "^3.0.0-nightly-
|
|
70
|
-
"react-stately": "^3.0.0-nightly-
|
|
69
|
+
"react-aria": "^3.0.0-nightly-5ae234603-240925",
|
|
70
|
+
"react-stately": "^3.0.0-nightly-5ae234603-240925",
|
|
71
71
|
"use-sync-external-store": "^1.2.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
package/src/Disclosure.tsx
CHANGED
|
@@ -16,8 +16,8 @@ import {ContextValue, DEFAULT_SLOT, Provider, RenderProps, SlotProps, useContext
|
|
|
16
16
|
import {DisclosureGroupState, DisclosureState, DisclosureGroupProps as StatelyDisclosureGroupProps, useDisclosureGroupState, useDisclosureState} from '@react-stately/disclosure';
|
|
17
17
|
import {DOMProps, forwardRefType, Key} from '@react-types/shared';
|
|
18
18
|
import {filterDOMProps, mergeProps, mergeRefs, useId} from '@react-aria/utils';
|
|
19
|
-
import {HoverEvents, useFocusRing} from 'react-aria';
|
|
20
19
|
import React, {createContext, DOMAttributes, ForwardedRef, forwardRef, ReactNode, useContext} from 'react';
|
|
20
|
+
import {useFocusRing} from 'react-aria';
|
|
21
21
|
|
|
22
22
|
export interface DisclosureGroupProps extends StatelyDisclosureGroupProps, RenderProps<DisclosureGroupRenderProps>, DOMProps {}
|
|
23
23
|
|
|
@@ -69,7 +69,7 @@ function DisclosureGroup(props: DisclosureGroupProps, ref: ForwardedRef<HTMLDivE
|
|
|
69
69
|
const _DisclosureGroup = forwardRef(DisclosureGroup);
|
|
70
70
|
export {_DisclosureGroup as DisclosureGroup};
|
|
71
71
|
|
|
72
|
-
export interface DisclosureProps extends Omit<AriaDisclosureProps, 'children'>,
|
|
72
|
+
export interface DisclosureProps extends Omit<AriaDisclosureProps, 'children'>, RenderProps<DisclosureRenderProps>, SlotProps {
|
|
73
73
|
/** An id for the disclosure when used within a DisclosureGroup, matching the id used in `expandedKeys`. */
|
|
74
74
|
id?: Key
|
|
75
75
|
}
|
package/src/Tree.tsx
CHANGED
|
@@ -118,11 +118,13 @@ export interface TreeRenderProps {
|
|
|
118
118
|
state: TreeState<unknown>
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
export interface TreeEmptyStateRenderProps extends Omit<TreeRenderProps, 'isEmpty'> {}
|
|
122
|
+
|
|
121
123
|
export interface TreeProps<T> extends Omit<AriaTreeGridListProps<T>, 'children'>, CollectionProps<T>, StyleRenderProps<TreeRenderProps>, SlotProps, ScrollableProps<HTMLDivElement>, Expandable {
|
|
122
124
|
/** How multiple selection should behave in the tree. */
|
|
123
125
|
selectionBehavior?: SelectionBehavior,
|
|
124
126
|
/** Provides content to display when there are no items in the list. */
|
|
125
|
-
renderEmptyState?: (props:
|
|
127
|
+
renderEmptyState?: (props: TreeEmptyStateRenderProps) => ReactNode,
|
|
126
128
|
/**
|
|
127
129
|
* Whether `disabledKeys` applies to all interactions, or only selection.
|
|
128
130
|
* @default 'selection'
|
|
@@ -359,6 +361,10 @@ export const UNSTABLE_TreeItem = /*#__PURE__*/ createBranchComponent('item', <T
|
|
|
359
361
|
id: undefined,
|
|
360
362
|
children: item.rendered,
|
|
361
363
|
defaultClassName: 'react-aria-TreeItem',
|
|
364
|
+
defaultStyle: {
|
|
365
|
+
// @ts-ignore
|
|
366
|
+
'--tree-item-level': level
|
|
367
|
+
},
|
|
362
368
|
values: renderPropValues
|
|
363
369
|
});
|
|
364
370
|
|
|
@@ -401,8 +407,8 @@ export const UNSTABLE_TreeItem = /*#__PURE__*/ createBranchComponent('item', <T
|
|
|
401
407
|
{...renderProps}
|
|
402
408
|
ref={ref}
|
|
403
409
|
// TODO: missing selectionBehavior, hasAction and allowsSelection data attribute equivalents (available in renderProps). Do we want those?
|
|
404
|
-
data-expanded={hasChildRows
|
|
405
|
-
data-has-child-rows={hasChildRows}
|
|
410
|
+
data-expanded={(hasChildRows && isExpanded) || undefined}
|
|
411
|
+
data-has-child-rows={hasChildRows || undefined}
|
|
406
412
|
data-level={level}
|
|
407
413
|
data-selected={states.isSelected || undefined}
|
|
408
414
|
data-disabled={states.isDisabled || undefined}
|
package/src/index.ts
CHANGED
|
@@ -33,7 +33,7 @@ export {composeRenderProps, DEFAULT_SLOT, Provider, useContextProps, useSlottedC
|
|
|
33
33
|
export {DateField, DateInput, DateSegment, TimeField, DateFieldContext, TimeFieldContext, DateFieldStateContext, TimeFieldStateContext} from './DateField';
|
|
34
34
|
export {DatePicker, DateRangePicker, DatePickerContext, DateRangePickerContext, DatePickerStateContext, DateRangePickerStateContext} from './DatePicker';
|
|
35
35
|
export {DialogTrigger, Dialog, DialogContext, OverlayTriggerStateContext} from './Dialog';
|
|
36
|
-
export {Disclosure, DisclosureGroup, DisclosureGroupStateContext, DisclosurePanel, DisclosureStateContext, DisclosureContext} from './Disclosure';
|
|
36
|
+
export {Disclosure as UNSTABLE_Disclosure, DisclosureGroup as UNSTABLE_DisclosureGroup, DisclosureGroupStateContext, DisclosurePanel as UNSTABLE_DisclosurePanel, DisclosureStateContext, DisclosureContext} from './Disclosure';
|
|
37
37
|
export {DropZone, DropZoneContext} from './DropZone';
|
|
38
38
|
export {FieldError, FieldErrorContext} from './FieldError';
|
|
39
39
|
export {FileTrigger} from './FileTrigger';
|