Update dependency @gitlab/ui to v140
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| @gitlab/ui (source) | dependencies | major | 138.8.0 → 140.0.2 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
gitlab-org/gitlab-services/design.gitlab.com (@gitlab/ui)
v140.0.2
Patch Changes
- !6537: GlButton: Support
counton icon-only buttons. The count now renders outside of.gl-button-text, and buttons with a count get abtn-countclass for optical alignment. (@seggenberger)
v140.0.1
Patch Changes
- !6667:
GlTabs: Preserve the URL hash, ignore negative tab indexes, and skip a (@anna_vovchenko) duplicate history entry for the first tab whensyncActiveTabWithQueryParamswrites the active tab to the query string.
v140.0.0
Major Changes
-
!6629: Container queries no longer fall back to media queries. Responsive styles in GitLab UI components and in
@-prefixed Tailwind variants (for example@md:gl-flex) now always use container queries. (@pgascouvaillancourt)gl-container-width-upandgl-container-width-down: removed the$includeMQFallbackparameter. The mixins only output@containerrules, and those rules no longer require thewith-gl-container-queriesclass on<html>.tailwindCQsMQsPlugin: renamed totailwindContainerQueriesPlugin, since it no longer builds media queries. The old name still works but is deprecated. Removed thebuildCQsparameter. The@and@maxvariants always build container queries. Thetailwind.defaultspreset no longer readsUSE_TAILWIND_CONTAINER_QUERIES.
To migrate:
- Make sure your app has an element with
container-type: inline-sizearound your content, for example by adding thegl-@containerutility class to your main content element. Without one, responsive styles such as stacked tables and responsive avatar sizes no longer respond to the screen width. - Remove the
with-gl-container-queriesclass from<html>. - Replace
tailwindCQsMQsPluginwithtailwindContainerQueriesPlugin. - Remove any
$includeMQFallbackargument passed togl-container-width-uporgl-container-width-down. Sass fails to compile otherwise. Arguments passed to the plugin are ignored and can be removed.
Emails can't use container queries. Use plain
@mediarules for responsive email styles.
Minor Changes
- !6665:
GlDatepicker: Add a publiccontainsElement(element)method that returns (@dpisek)truewhen the element is in the datepicker or its calendar, even when the calendar renders outside the component. This matchescontainsElementonBaseDropdown. See work item 3751.
Patch Changes
- !6639: GlPopover: Close open popovers when navigating away, so they do not reappear when back navigation restores the page from bfcache. See #604140 (closed). (
@skkzsh)
v139.0.0
Major Changes
-
!6651: Removed the
getDefaultTooltipContentexport fromsrc/utils/charts/config.js. It has been deprecated since 71.5.0, and unused by the GitLab UI charts since 71.10.0. (@markrian)Use
getTooltipTitleandgetTooltipContentfrom the same module instead. -
!6651: Removed unused exports from
src/utils/constants.js: (@markrian)badgeSizeOptions: unused since thesizeprop of GlBadge was removed in 84.0.0.triggerVariantOptions: only listed the values of thetriggersprop of GlPopover in Storybook, and has been unused since the popover stories moved to Component Story Format.truncateOptions: only listed the values of thepositionprop of GlTruncate in Storybook, and has been unused since the truncate stories moved to Component Story Format.
-
!6651: Stopped publishing the
mock_data.jsfiles, from bothsrcanddist. They hold fixtures for GitLab UI's own specs and stories, and aren't meant to be imported by other projects. (@markrian) -
!6651: Stopped exporting internal symbols that only their own modules use: (
@markrian)padanddefaultDateFormatterfrom GlDatepicker: helpers for its defaultyyyy-mm-dddate formatting, which is unchanged.DefaultPopperOptionsfrom GlDropdown: the defaults that thepopperOptsprop is merged with.ITEM_SELECTORfrom GlDisclosureDropdown: equivalent to`.${ITEM_CLASS}`, using theITEM_CLASSexport of GlDisclosureDropdownItem.ITEM_NULL_KEYandSEARCH_INPUT_SELECTORfrom GlCollapsibleListbox: an internal key for options with anullvalue, and an internal selector for the search input.badgeTypesfromsrc/components/experimental/experiment_badge/constants.js: the values that thetypeprop of GlExperimentBadge accepts. Its last other user was the Duo chat components, which moved to Duo UI.annotationsYAxisCoordsandgetAnnotationsConfigfromsrc/utils/charts/config.js: used by the annotation handling in that module. Configure annotations with theannotationsprop of the charts instead.
Minor Changes
- !6645:
GlDatepicker: Add a publicfocus()method that focuses the text input, (@dpisek) matchingGlFormInput,GlFormTextarea, andGlFormSelect. It also works when the input is passed through the default slot. See work item 3750.
Patch Changes
- !6651: Stopped publishing
src/components/base/icon/icon.figma.batch.ts, the Figma Code Connect template for icons. It imports thefigmamodule, which only exists in Code Connect, so it could not be imported by other projects. (@markrian)
v138.11.0
Minor Changes
- !6565: GlTruncate: Add the
linesprop to truncate text after multiple lines whenpositionisend(@prabhakarrai)
Patch Changes
- !6565: GlSingleStat: Truncate the
descriptionafter two lines instead of one (@prabhakarrai)
v138.10.0
Minor Changes
-
!6610:
GlProgressBar: Make the default variant neutral, and add theinfovariant. (@seggenberger)The default variant is now
default, which renders a neutral indicator instead of a blue one. Passvariant="info"to keep the blue indicator.The
--gl-progress-bar-indicator-color-defaulttoken now holds the neutral color. Use the new--gl-progress-bar-indicator-color-infotoken for the blue indicator.The
primaryvariant is deprecated in favor ofinfo, which looks the same. It still works.
Patch Changes
-
!6560: GlClipboardButton: Show a check icon instead of changing the tooltip after copying. (
@thutterer)After copying, the button shows the
checkicon for 2 seconds (theerroricon if copying failed). The tooltip and thearia-labelkeep thetitle. The result ("Copied" or "Copy failed") is announced to screen readers withariaNotify().This also changes the clipboard button of GlBreadcrumb (
show-clipboard-button).ariaNotify()is not available in all supported browsers. Without it, the icon still changes, but nothing is announced. To support older browsers, load a polyfill such as@github/arianotify-polyfill. -
!6582: GlFormTextarea: Measure auto-height on a hidden clone, so typing no longer scrolls up a container that was scrolled to its end. (
@nickleonard)
v138.9.0
Minor Changes
- !6604:
GlColumnChart: Render a legend whenever the chart has more than one (@siddharthshrimali) series. Previously,GlColumnChartnever rendered a legend, making it hard to tell which colour corresponded to which series. See work item 3467.
v138.8.1
Patch Changes
- !6561: GlLink and BLink: Render an anchor instead of a router link when there is no
$router, including when$nuxtis set or the$routergetter throws (@markrian)
Configuration
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
- If you want to rebase/retry this MR, check this box
This MR has been generated by Mend Renovate CLI.