Skip to content

Commit aaf9366

Browse files
committed
Merge branch 'main' into adam/date-picker-lg-3152
2 parents 10e2cf9 + 4fcf2e9 commit aaf9366

File tree

120 files changed

+2930
-5525
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+2930
-5525
lines changed

.changeset/angry-rice-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@leafygreen-ui/form-footer': patch
3+
---
4+
5+
Updates `PrimaryButton` type from `React.ReactChild` to `React.ReactElement`.

.changeset/beige-books-fly.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@leafygreen-ui/testing-lib': patch
3+
---
4+
5+
Fixes `isPromiseLike` TS errors

.changeset/cold-planes-change.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@leafygreen-ui/portal': major
3+
---
4+
5+
Modified the ReactDOM peerDependency to ensure compatibility with either version 17 or 18.

.changeset/cuddly-donkeys-sit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@leafygreen-ui/icon': patch
3+
---
4+
5+
Updates internal function, `isComponentGlyph`

.changeset/curvy-cheetahs-tap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@leafygreen-ui/lib': patch
3+
---
4+
5+
Updates helper function, `isComponentType` and updates `ExtendedComponentProps` type.

.changeset/cyan-squids-kick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@lg-tools/build': patch
3+
---
4+
5+
adds `@babel/core` as a peerDependency.

.changeset/dull-meals-press.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@leafygreen-ui/segmented-control': patch
3+
---
4+
5+
Refactor internal function `childrenIdList`.

.changeset/eleven-trees-deny.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@leafygreen-ui/combobox': patch
3+
---
4+
5+
Type assert children as `Array<React.ReactNode>` inside the internal function `renderedMenuContents` and add explicit return type to internal function `renderCombobox`.

.changeset/forty-crews-promise.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@leafygreen-ui/guide-cue': major
3+
---
4+
5+
Downgrades `focus-trap-react` package to `^9.0.2` so that tests still pass without requiring the use of the `fallbackFocus` option on the `<FocusTrap>` component.
6+
7+
Refactors multi-step guideCue so that the tooltip no longer uses a portal, as React 18 displays the tooltip in the wrong position when the viewport changes.

.changeset/friendly-planets-tan.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@leafygreen-ui/tooltip': patch
3+
---
4+
5+
Adds the `setOpen()` state update inside `onMouseEnter` inside the [flushSync](https://react.dev/reference/react-dom/flushSync) callback to prevent batch updates in React 18. This addresses an issue where the tooltip would occasionally appear without a transition, particularly when hovering. This should have no impact on behavior in React 17.
6+
7+
Adds an additional check, `isValidElement(trigger)` when checking if the trigger is a LeafyGreenUI Icon or Glyph component.

0 commit comments

Comments
 (0)