-
Notifications
You must be signed in to change notification settings - Fork 53
chore: move FocusZone components to react-bindings #2004
Conversation
e60a8c6
to
9663b77
Compare
9663b77
to
c755b47
Compare
Codecov Report
@@ Coverage Diff @@
## master #2004 +/- ##
==========================================
- Coverage 77.09% 76.71% -0.39%
==========================================
Files 160 160
Lines 5493 5492 -1
Branches 1603 1585 -18
==========================================
- Hits 4235 4213 -22
- Misses 1245 1266 +21
Partials 13 13
Continue to review full report at Codecov.
|
Changed dependencies are detected.Changed dependencies in
Generated by 🚫 dangerJS |
"@babel/runtime": "^7.1.2" | ||
"@babel/runtime": "^7.1.2", | ||
"@stardust-ui/accessibility": "^0.39.0", | ||
"@stardust-ui/state": "^0.39.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These packages can't be in optional dependencies because TS will throw on typings...
export const getDefinedProps = <Props extends Record<string, any>>( | ||
props: Props, | ||
): Partial<Props> => { | ||
const getDefinedProps = <Props extends Record<string, any>>(props: Props): Partial<Props> => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not be exported, nit
@@ -1,4 +1,3 @@ | |||
// https://jsperf.com/startdust-callable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link is dead, 404
@@ -1,10 +1,10 @@ | |||
import { callable } from '@stardust-ui/react-bindings' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also have to move callable
as it used in FZ
↩️ Move of
FocusZone
This PR moves
FocusZone
,AutoFocusZone
,FocusTrapZone
, related types and utils to@stardust-ui/react-bindings
to make them reusable.The main motivation for this is too avoid circular dependency:
@stardust-ui/react-bindings
=>@stardust-ui/react
=>@stardust-ui/react-bindings