File tree 2 files changed +15
-1
lines changed
packages/react/radix-ui/src
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change
1
+ releases :
2
+ radix-ui : patch
3
+
4
+ declined :
5
+ - primitives
Original file line number Diff line number Diff line change
1
+ import { Primitive as BasePrimitive , dispatchDiscreteCustomEvent } from '@radix-ui/react-primitive' ;
1
2
export * as ArrowPrimitive from '@radix-ui/react-arrow' ;
2
3
export * as Collection from '@radix-ui/react-collection' ;
3
4
export { composeRefs , useComposedRefs } from '@radix-ui/react-compose-refs' ;
@@ -8,10 +9,18 @@ export * as FocusScope from '@radix-ui/react-focus-scope';
8
9
export * as Menu from '@radix-ui/react-menu' ;
9
10
export * as Popper from '@radix-ui/react-popper' ;
10
11
export * as Presence from '@radix-ui/react-presence' ;
11
- export * as Primitive from '@radix-ui/react-primitive' ;
12
+ export type { PrimitivePropsWithRef } from '@radix-ui/react-primitive' ;
12
13
export * as RovingFocus from '@radix-ui/react-roving-focus' ;
13
14
export { useCallbackRef } from '@radix-ui/react-use-callback-ref' ;
14
15
export { useControllableState } from '@radix-ui/react-use-controllable-state' ;
15
16
export { useEscapeKeydown } from '@radix-ui/react-use-escape-keydown' ;
16
17
export { useLayoutEffect } from '@radix-ui/react-use-layout-effect' ;
17
18
export { useSize } from '@radix-ui/react-use-size' ;
19
+
20
+ const Primitive = BasePrimitive as typeof BasePrimitive & {
21
+ Root : typeof BasePrimitive ;
22
+ dispatchDiscreteCustomEvent : typeof dispatchDiscreteCustomEvent ;
23
+ } ;
24
+ Primitive . dispatchDiscreteCustomEvent = dispatchDiscreteCustomEvent ;
25
+ Primitive . Root = BasePrimitive ;
26
+ export { Primitive } ;
You can’t perform that action at this time.
0 commit comments