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

Compare Source

Patch Changes
  • !6537: GlButton: Support count on icon-only buttons. The count now renders outside of .gl-button-text, and buttons with a count get a btn-count class for optical alignment. (@seggenberger)

v140.0.1

Compare Source

Patch Changes
  • !6667: GlTabs: Preserve the URL hash, ignore negative tab indexes, and skip a (@anna_vovchenko) duplicate history entry for the first tab when syncActiveTabWithQueryParams writes the active tab to the query string.

v140.0.0

Compare Source

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-up and gl-container-width-down: removed the $includeMQFallback parameter. The mixins only output @container rules, and those rules no longer require the with-gl-container-queries class on <html>.
    • tailwindCQsMQsPlugin: renamed to tailwindContainerQueriesPlugin, since it no longer builds media queries. The old name still works but is deprecated. Removed the buildCQs parameter. The @ and @max variants always build container queries. The tailwind.defaults preset no longer reads USE_TAILWIND_CONTAINER_QUERIES.

    To migrate:

    1. Make sure your app has an element with container-type: inline-size around your content, for example by adding the gl-@container utility 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.
    2. Remove the with-gl-container-queries class from <html>.
    3. Replace tailwindCQsMQsPlugin with tailwindContainerQueriesPlugin.
    4. Remove any $includeMQFallback argument passed to gl-container-width-up or gl-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 @media rules for responsive email styles.

Minor Changes
  • !6665: GlDatepicker: Add a public containsElement(element) method that returns (@dpisek) true when the element is in the datepicker or its calendar, even when the calendar renders outside the component. This matches containsElement on BaseDropdown. 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

Compare Source

Major Changes
  • !6651: Removed the getDefaultTooltipContent export from src/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 getTooltipTitle and getTooltipContent from the same module instead.

  • !6651: Removed unused exports from src/utils/constants.js: (@markrian)

    • badgeSizeOptions: unused since the size prop of GlBadge was removed in 84.0.0.
    • triggerVariantOptions: only listed the values of the triggers prop of GlPopover in Storybook, and has been unused since the popover stories moved to Component Story Format.
    • truncateOptions: only listed the values of the position prop of GlTruncate in Storybook, and has been unused since the truncate stories moved to Component Story Format.
  • !6651: Stopped publishing the mock_data.js files, from both src and dist. 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)

    • pad and defaultDateFormatter from GlDatepicker: helpers for its default yyyy-mm-dd date formatting, which is unchanged.
    • DefaultPopperOptions from GlDropdown: the defaults that the popperOpts prop is merged with.
    • ITEM_SELECTOR from GlDisclosureDropdown: equivalent to `.${ITEM_CLASS}`, using the ITEM_CLASS export of GlDisclosureDropdownItem.
    • ITEM_NULL_KEY and SEARCH_INPUT_SELECTOR from GlCollapsibleListbox: an internal key for options with a null value, and an internal selector for the search input.
    • badgeTypes from src/components/experimental/experiment_badge/constants.js: the values that the type prop of GlExperimentBadge accepts. Its last other user was the Duo chat components, which moved to Duo UI.
    • annotationsYAxisCoords and getAnnotationsConfig from src/utils/charts/config.js: used by the annotation handling in that module. Configure annotations with the annotations prop of the charts instead.
Minor Changes
  • !6645: GlDatepicker: Add a public focus() method that focuses the text input, (@dpisek) matching GlFormInput, GlFormTextarea, and GlFormSelect. 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 the figma module, which only exists in Code Connect, so it could not be imported by other projects. (@markrian)

v138.11.0

Compare Source

Minor Changes
  • !6565: GlTruncate: Add the lines prop to truncate text after multiple lines when position is end (@prabhakarrai)
Patch Changes
  • !6565: GlSingleStat: Truncate the description after two lines instead of one (@prabhakarrai)

v138.10.0

Compare Source

Minor Changes
  • !6610: GlProgressBar: Make the default variant neutral, and add the info variant. (@seggenberger)

    The default variant is now default, which renders a neutral indicator instead of a blue one. Pass variant="info" to keep the blue indicator.

    The --gl-progress-bar-indicator-color-default token now holds the neutral color. Use the new --gl-progress-bar-indicator-color-info token for the blue indicator.

    The primary variant is deprecated in favor of info, 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 check icon for 2 seconds (the error icon if copying failed). The tooltip and the aria-label keep the title. The result ("Copied" or "Copy failed") is announced to screen readers with ariaNotify().

    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

Compare Source

Minor Changes
  • !6604: GlColumnChart: Render a legend whenever the chart has more than one (@siddharthshrimali) series. Previously, GlColumnChart never rendered a legend, making it hard to tell which colour corresponded to which series. See work item 3467.

v138.8.1

Compare Source

Patch Changes
  • !6561: GlLink and BLink: Render an anchor instead of a router link when there is no $router, including when $nuxt is set or the $router getter throws (@markrian)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Mend Renovate CLI.

Merge request reports

Loading
Loading