- e1955dd36: Fixes broken patch build
- Updated dependencies [e1955dd36]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
-
04bb887c0: LG-4121:
Code
renders the copy button tooltip and language selector in the top layer using popover API. As a result, the following props are removed:popoverZIndex
portalClassName
portalContainer
scrollContainer
usePortal
Use popover-v12 codemod for migration assistance.
<Code popoverZIndex={9999} usePortal={false} /> <Code portalClassName="portal-class" usePortal />
<Code /> <Code />
-
Updated dependencies [04bb887c0]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
-
Updated dependencies [117a463f8]
- @leafygreen-ui/[email protected]
- f827eb412: LG-4319 Adds
expandable
prop toCode
component. This makes it so that a codeblock with more than 5 lines of code can be expanded and collapsed via the click of a button.
- Updated dependencies [e7bc12814]
- Updated dependencies [c1b8b633b]
- Updated dependencies [fe2483937]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [c406ab85]
- Updated dependencies [c406ab85]
- @leafygreen-ui/[email protected]
- @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 [7a0ff1be]
- Updated dependencies [15185af0]
- Updated dependencies [356a53fd]
- Updated dependencies [66df9ab8]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
-
a384a3d4: Fix test mocks for
CopyButton
component -
Updated dependencies [74057388]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 9afcc3bd: Adds tooltip hover interaction for
Code
component copy button LG-3915
- 12296e6c: Exports
Panel
component LG-4076 - e487fb24: Renames story files from
.story.tsx
to.stories.tsx
- Updated dependencies [5ee54143]
- Updated dependencies [e487fb24]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- fa135957: Code LiveExample now correctly works with 'language="none"'
- Updated dependencies [99848a0f]
- Updated dependencies [6c89b45b]
- Updated dependencies [ed0437ce]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [dd4f3da8]
- Updated dependencies [9a471879]
- Updated dependencies [784e9d8a]
- Updated dependencies [dd4f3da8]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [c5d95794]
- Updated dependencies [a4b3b704]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [3a9b274d]
- Updated dependencies [3a9b274d]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [3fe03b50]
- Updated dependencies [fd907503]
- Updated dependencies [c9f0055a]
- Updated dependencies [56459cde]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 4fcf2e94: Move custom select menu button into separate components and passes custom select menu button props to new internal select prop,
__INTERNAL__menuButtonSlotProps__
. - 4fcf2e94: Updates LanguageSwitcher hover styles specificity to
&:hover[aria-disabled='false']
. - Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- Updated dependencies [4fcf2e94]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- c15ee2ac: Fixes missing documentation file
- Updated dependencies [f73807cf]
- Updated dependencies [31c09354]
- Updated dependencies [c15ee2ac]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [cfba537d]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 4f03c6c5: Line highlight colors updated to use new palette, and consistent with design spec.
- Updated dependencies [547d828e]
- @leafygreen-ui/[email protected]
- 76161cf0: Updates stories for Chromatic testing
- Updated dependencies [76161cf0]
- Updated dependencies [76161cf0]
- Updated dependencies [735342e9]
- Updated dependencies [95f5107a]
- Updated dependencies [76161cf0]
- Updated dependencies [76161cf0]
- Updated dependencies [76161cf0]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 63b2deb0b: Upgrade button to v20.1.1
- Updated dependencies [63b2deb0b]
- @leafygreen-ui/[email protected]
- d2ce54e2f: Updates story files for Storybook 7.x
- Updated dependencies [d2ce54e2f]
- Updated dependencies [d2ce54e2f]
- Updated dependencies [0cd471676]
- Updated dependencies [0cd471676]
- Updated dependencies [2dfc4d0ea]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- d3dd7aad5: Updates to TSDocs
- Updated dependencies [d3dd7aad5]
- @leafygreen-ui/[email protected]
- 73cbbd02c: Uses fontWeight token from
@leafygreen-ui/tokens
- Updated dependencies [73cbbd02c]
- Updated dependencies [32b3d3146]
- Updated dependencies [83fc5b31b]
- Updated dependencies [8ece56980]
- Updated dependencies [32b3d3146]
- Updated dependencies [73cbbd02c]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [5b036515e]
- Updated dependencies [26e341a0b]
- Updated dependencies [997121cc3]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 1f8ebbba6: Exports
LanguageOption
type - 7edcd1b0f: Adds support for C and C++. Adds HTML alias for XML
- bf2fedf6d: Version bumps lib
- Updated dependencies [1cff328a3]
- Updated dependencies [51c544e2e]
- Updated dependencies [ffb99f417]
- Updated dependencies [bf2fedf6d]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- b24b21462: Storybook: Updates story files to be on par with existing mongodb.design examples
- Updated dependencies [050f1f8a9]
- Updated dependencies [741cdd408]
- Updated dependencies [c82ed35d5]
- Updated dependencies [b24b21462]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 48ffa944d: Adds TSDoc annotations for
language
,languageOptions
&onChange
- Updated dependencies [405636249]
- @leafygreen-ui/[email protected]
- 10dd1dc50: Remove
useUsingKeyboardContext
hook and usefocus-visible
to show focus states.
- Updated dependencies [703db871f]
- Updated dependencies [c7f7fff56]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 48013291e: Fixing bug where numbered cells would stretch excessively in wide viewports
- Updated dependencies [75f26afbc]
- Updated dependencies [95bd93ef9]
- Updated dependencies [3bb4b7506]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- ed0e425e5: Adds
polished
as an explicit dependency - ae5421cf6: Updates components to use internal transition tokens
- Updated dependencies [696adb1b6]
- Updated dependencies [ae5421cf6]
- Updated dependencies [ed0e425e5]
- Updated dependencies [4b4c2d27d]
- Updated dependencies [1a335d0b2]
- Updated dependencies [ae5421cf6]
- Updated dependencies [7ca2da507]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 30207122: Updates
Code
for dark mode brand refresh.
- Updated dependencies [b9b09a86]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [2195359a]
- Updated dependencies [209f77ed]
- Updated dependencies [f2d63a60]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [0b6435fa]
- Updated dependencies [f21e42a0]
- Updated dependencies [e399f1b9]
- Updated dependencies [e399f1b9]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 3690df49: Updates TypeScript annotations, type structures and export format of some components
- 3690df49: Extends
code
element props - 8c34ea32: Changing language picker button text color in dark mode
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [3690df49]
- Updated dependencies [58a5a05e]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 8d7534e9: Adds
tsdoc.json
to published package files - 6924b0be: Locking highlight.js dependency to 11.5 given bugs in 11.6
- ff69bdb6: Removes a misplaced shadow when
copyable
wasfalse
- Updated dependencies [7caa1c3e]
- Updated dependencies [8d7534e9]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- cfb82f90: Swap default icon from 'Copy' to 'File'
- Updated dependencies [b22cc41f]
- Updated dependencies [828c895d]
- @leafygreen-ui/[email protected]
- Updated dependencies [85d46871]
- Updated dependencies [99e20bb9]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- fd2f6de0: Updates to TSDocs, PropTypes, and Storybook files
- 96d1ff9c: Updates to propTypes, TSDocs, and Storybook controls
- Updated dependencies [6a89bc29]
- Updated dependencies [fd2f6de0]
- Updated dependencies [6792bc44]
- Updated dependencies [96d1ff9c]
- Updated dependencies [422dbfcd]
- Updated dependencies [9ff90d4b]
- Updated dependencies [6792bc44]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- e13d2487: Moving leafygreen-provider to peerDependencies.
- Updated dependencies [500d6c60]
- @leafygreen-ui/[email protected]
- 91e24dfe: Add
container
to copyable.js instance to help keep focus inside of a modal - Updated dependencies [e13d2487]
- Updated dependencies [5f28fce1]
- Updated dependencies [c48e943e]
- Updated dependencies [500d6c60]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- ab1fd9e: Updates Code to allign with visual brand update
- Removes fixed width when Language picker is shown (
width
was formerly set to a static700px
)
- Removes fixed width when Language picker is shown (
- Updated dependencies [ab1fd9e]
- @leafygreen-ui/[email protected]
- 1067fe9: Add support to specify starting value for line numbering.
- 548ca2c: Adds support for controlling the language switcher popover characteristics with
usePortal
,portalClassName
,portalContainer
,scrollContainer
, andpopoverZIndex
props. - 548ca2c: Add support for Dart language
- 70f3c2c: Add support for custom action buttons in the code component
- Updated dependencies [70f3c2c]
- Updated dependencies [70f3c2c]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 2a945c7a: Adds support for Java
.properties
files
- Updated dependencies [d4a46e27]
- Updated dependencies [cec710ad]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- a30caf8f: Removes
clike
language support in Code component (previously removed byhighlight.js
)
- 3c2fdcde: Upgrades
highlight.js
dependency from v10 to v11. This update will cause some syntax highlighting styles to change from previous versions of the Code component.
- Updated dependencies [cd4f9a27]
- @leafygreen-ui/[email protected]
- Updated dependencies [f6e5655a]
- Updated dependencies [03388ff2]
- Updated dependencies [b8f03aa1]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [e1af3278]
- Updated dependencies [047c1930]
- Updated dependencies [047c1930]
- Updated dependencies [e1af3278]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 74ffc369: Announces "copied" to screenreaders when text is copied
- Updated dependencies [1ffbb84c]
- @leafygreen-ui/[email protected]
- Updated dependencies [faeb0ce0]
- Updated dependencies [650f6334]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [857a680a]
- Updated dependencies [857a680a]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 909ede70: Removes empty panel rendered when copyable is false
- 55ccd908: Adds ability for Code component to be rendered with a language switcher
- Updated dependencies [559ceb15]
- @leafygreen-ui/[email protected]
- Updated dependencies [90321b36]
- Updated dependencies [90321b36]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [99ea9436]
- Updated dependencies [ec27f36e]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 16b902b5: Provides callback to sort() function in renderingPlugin to ensure that line numbers are being properly sorted before determining whether or not to highlight a line.
- b905c17d: Fixes issue where sublanguages like JSX would not render.
- 63a6c2f6: - Fixes issue where many applications had global styles for pre tags that added a second border and border radius to the pre element.
- Fixes issue where code examples would be detected as multi-line when a single line example has preceding or subsequent new line characters.
- 717c7023: Fix issue where border wouldn't stretch the full height of the component with a wrapping, single line code example.
- Updated dependencies [f805b772]
- @leafygreen-ui/[email protected]
- a85c6d8d: Prevent default behavior when copy button is clicked to prevent accidental form submissions.
- Updated dependencies [bf8b83e1]
- @leafygreen-ui/[email protected]
- Updated dependencies [ba56b1cc]
- @leafygreen-ui/[email protected]
-
4f3f7b9f: Fixes various bugs, makes accessibility improvements, tweaks the design, and improves maintainability of the
Code
component.Design changes:
- Updates the syntax highlighting theme to improve contrast between comments and regular code, as well as making several optimizations for red-green colorblindness.
- Tightens the top and bottom padding for the code component, especially for single line code examples.
- Significantly tightens the left padding when line numbers are shown.
- Right-aligns line numbers in their column to improve readability.
Bug fixes:
- Fixes an issue where iOS browsers would render code examples at a
20px
size, rather than the13px
font size they're supposed to render as. - Sometimes code that's written as multi-line statements wouldn't have line numbers applied to each line of the statement. That should now be fixed.
- Fixes an issue where line highlight gradients in dark mode in Safari would render multiple gradients when line numbers were shown.
Under the hood updates:
- Removes the Syntax component. This component was extremely tightly coupled with the code component to a point where it wasn't a feasible component when used independently. All functionality is now self-contained within the Code component code.
- Line highlighting definitions written with tuples expressing ranges are no longer expanded, making for a more efficient implementation, and allowing us to remove an arbitrary restriction on the number of lines possible to highlight.
- Tokens can now have multiple classNames expressing their "kind", allowing for more precise code highlighting.
- Updated dependencies [7df69248]
- @leafygreen-ui/[email protected]
- aae1e47e: Adds component to browser's Tab order when scrollable so those navigating via keyboard are able to scroll and view content appropriately
- c18f16e6: Improves compatibility with React v17
- Updated dependencies [c18f16e6]
- Updated dependencies [9ee1d5fc]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 611012de: Adds support for
http
language
- Updated dependencies [611012de]
- @leafygreen-ui/[email protected]
- 2643d4e7: Adds support for
xml
language
- Updated dependencies [5cf0c95c]
- Updated dependencies [2643d4e7]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- f56f5ab1: Fixes an issue where line highlighting might not span the entire component.
- dac3f38b: Fixes a publishing error that prevented UMD modules from being distributed
- Updated dependencies [f56f5ab1]
- Updated dependencies [dac3f38b]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @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]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 50ea11ad: Deprecates the
multiline
prop in the Code component. Single line code examples are now detected automatically via the presence of line breaks in the string, and single line spacing is applied automatically. - 50ea11ad: - Adds the line highlighting feature! This feature is supported through the
highlightLines
prop.- All code examples are now rendered as a table, making unhighlighted code render consistently with highlighted code.
- Fixes an issue where users might be unable to manually copy code.
- 50ea11ad: Fixes issue where the Code and Syntax components would break when passed code with invalid syntax"
- Updated dependencies [65d5ed4d]
- Updated dependencies [50ea11ad]
- Updated dependencies [50ea11ad]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 729c79f8: Deprecates
variant
prop in favor ofdarkMode
prop to control whether or not the component will appear in dark mode
- Updated dependencies [729c79f8]
- @leafygreen-ui/[email protected]
- Updated dependencies [fe371e37]
- Updated dependencies [a84219f1]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- e599707: Require lodash dependencies instead of inlining them.
- 8c867bb: Reduces server side effect warnings
- Updated dependencies [e49d66b]
- Updated dependencies [e599707]
- Updated dependencies [8c867bb]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [ab4c074]
- @leafygreen-ui/[email protected]
- 691eb05: Better support for UMD
- Updated dependencies [691eb05]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
-
7373e7b: Updates Syntax component to use the Highlight.js plugin API to render syntax.
This helps in a couple ways:
- Lets us remove the only instance of
dangerouslySetInnerHTML
within LeafyGreen UI by rendering syntax highlighting through React directly. - Allows us to render the component's content as a Table. This allows us to fix an alignment issue between line numbers and wrapped text, as well as opens the door for future features.
- Lets us remove the only instance of
- Updated dependencies [2eba736]
- Updated dependencies [1aa26ee]
- Updated dependencies [d2136a0]
- Updated dependencies [a571361]
- Updated dependencies [7373e7b]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 6233a34: Adds
onCopy
callback, invoked when copy button is clicked
- Updated dependencies [1d86d56]
- Updated dependencies [1d86d56]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [6fc022e]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- cf6167e: Build and consume individual glyph components
- Updated dependencies [2fc4ef9]
- Updated dependencies [e857861]
- Updated dependencies [cf6167e]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- 75c0693: Upgrades workspace dependencies
- Updated dependencies [75c0693]
- Updated dependencies [9c34e9f]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [5aafd72]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- Updated dependencies [4c268a5]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- beccf70: Adds Objective-C language highlight support
- Updated dependencies [e1568c6]
- Updated dependencies [beccf70]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]
- f2fed7c: Adds copy functionality to Code component
- Updated dependencies [f2fed7c]
- @leafygreen-ui/[email protected]
- c117a62: Enables Kotlin language support
- Updated dependencies [c117a62]
- @leafygreen-ui/[email protected]
- a0d0d7b: Enables Swift language support
- 464c09d: Introduces SSR compatibility though a change to our build process and files
- Updated dependencies [464c09d]
- @leafygreen-ui/[email protected]
- @leafygreen-ui/[email protected]