- e1955dd36: Fixes broken patch build
- Updated dependencies [e1955dd36]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 53c67fba6: LG-4650: migrates from
yarn
topnpm
- Updated dependencies [53c67fba6]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 274d7e1a7: Removes prop-types from LeafyGreen UI
- Updated dependencies [274d7e1a7]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
-
04bb887c0: LG-4446: Adds
PopoverPropsContext
to pass props to a deeply nested popover elementAdditionally exposes a
forceUseTopLayer
prop in theLeafyGreenProvider
which can be used to test interactions with all LG popover elements forcibly set torenderMode="top-layer"
. This can help pressure test for any regressions to more confidently and safely migrate. However, this should only be used when all LG dependencies are relying on v12+ of@leafygreen-ui/popover
.
- Updated dependencies [04bb887c0]
- @leafygreen-ui/[email protected]
- Updated dependencies [117a463f8]
- @leafygreen-ui/[email protected]
- 15185af0: Imports Storybook utilities from
@lg-tools/storybook-utils
(previously imported from@leafygreen-ui/lib
) - 356a53fd: Update TS builds to use
[email protected]
- Updated dependencies [15185af0]
- Updated dependencies [356a53fd]
- Updated dependencies [66df9ab8]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 7f38e78a: Updates test to import
renderHook
from@leafygreen-ui/testing-lib
- Updated dependencies [7f38e78a]
- Updated dependencies [ffd11f24]
- Updated dependencies [ffd11f24]
- Updated dependencies [ffd11f24]
- Updated dependencies [ffd11f24]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [dd4f3da8]
- @leafygreen-ui/[email protected]
- Updated dependencies [3a9b274d]
- @leafygreen-ui/[email protected]
- Updated dependencies [fd907503]
- @leafygreen-ui/[email protected]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- @leafygreen-ui/[email protected]
- c11bbc29: Fixes problem with ts-docs not being available in bundle.
- Updated dependencies [c11bbc29]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- c15ee2ac: Fixes missing documentation file
- Updated dependencies [c15ee2ac]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 215268ff: Updates build tooling. No functional changes
- Updated dependencies [215268ff]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- d2ce54e2f: Updates story files for Storybook 7.x
- d2ce54e2f: Exports primary component props
- Updated dependencies [d2ce54e2f]
- Updated dependencies [d2ce54e2f]
- Updated dependencies [0cd471676]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 8c0c2bdf9: Updates build script to include a transpiled copy of the story file in the bundle
- Updated dependencies [8c0c2bdf9]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- bf2fedf6d: Version bumps lib
- Updated dependencies [ffb99f417]
- @leafygreen-ui/[email protected]
- b9b09a86: Sets default
usingKeyboard
totrue
. Defaulting to true allows autofocus to display a focus state.
- Updated dependencies [f2d63a60]
- @leafygreen-ui/[email protected]
-
e399f1b9: Nested LeafyGreenProviders now inherit values from ancestor contexts. For example:
<LeafyGreenProvider darkMode={true}> Will have `darkMode == true` and `baseFontSize == 14`[*] <LeafyGreenProvider baseFontSize={16}> Will have `darkMode == true` and `baseFontSize == 16` </LeafyGreenProvider> </LeafyGreenProvider>
[*] Will be converted to 13 in redesigned components
-
e399f1b9: Exposes a
setDarkMode
function form theuseDarkMode
hook.<LeafyGreenProvider darkMode={true}> <MyComponent /> </LeafyGreenProvider> ... const MyComponent = () => { const { setDarkMode } = useDarkMode() ... }
Note: If the value of
darkMode
passed into LeafyGreenProvider changes between renders (e.g. from an externaluseState
call) then this new value will be used until the nextsetDarkMode
call.
- 24683433: - Remove an implicit dependency on
@emotion/react
fixing an issue where LG packages would not build if@leafygreen/[email protected]
or greater was installed. - Updated dependencies [24683433]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 3690df49: Updates
tsdoc.json
file - 58a5a05e: Adds additional test cases
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 8d7534e9: Adds
tsdoc.json
to published package files - Updated dependencies [8d7534e9]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- ee3586c9: Resolves a ReferenceError in PopoverContext
- Updated dependencies [95f1e63a]
- @leafygreen-ui/[email protected]
- a8be50d8: Fixes a bad build that dropped
useDarkMode
from exports
- 99e20bb9: Reusable DarkModeProps and darkMode prop for LeafygreenProvider
- Updated dependencies [85d46871]
- Updated dependencies [99e20bb9]
- @leafygreen-ui/[email protected]
- 5f28fce1: Adds popover context to store whether a popover is open or not.
- Updated dependencies [b8f03aa1]
- @leafygreen-ui/[email protected]
- Updated dependencies [047c1930]
- Updated dependencies [047c1930]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 1fe3e1a3: Updates type of useBaseFontSize from number to
14 | 16
specifically.
- 857a680a: Add support for setting default portal and scroll containers for popovers in applications.
- Updated dependencies [90321b36]
- @leafygreen-ui/[email protected]
- Updated dependencies [c18f16e6]
- Updated dependencies [9ee1d5fc]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- dac3f38b: Fixes a publishing error that prevented UMD modules from being distributed
- Updated dependencies [dac3f38b]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 0267bfd2: The underlying structure of distributed module definition files have changed and now have official support for ES modules. Module definition files are now generated using Rollup instead of Webpack. This should not affect functionality, but some thorough testing and caution should be exercised when upgrading.
- Updated dependencies [0267bfd2]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 691eb05: Better support for UMD
- Updated dependencies [691eb05]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [fa55b3d]
- @leafygreen-ui/[email protected]
- Updated dependencies [2eba736]
- Updated dependencies [1aa26ee]
- Updated dependencies [a571361]
- Updated dependencies [d739511]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 2a03117: Upgrades @testing-library/react to v10 and revises test suites to conform with new standards
- 94ed125: Adds TypographyProvider to LeafygreenProvider to allow applications to set their baseFontSize
- 5c9202d: Introduces support for LeafyGreenProvider for improved focus state management
- 464c09d: Introduces SSR compatibility though a change to our build process and files
- Updated dependencies [464c09d]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]