@gitlab/ui 136.3.1 → 137.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/components/base/alert/alert.js +4 -4
  2. package/dist/components/base/collapse/collapse.js +3 -4
  3. package/dist/components/base/datepicker/datepicker.js +1 -1
  4. package/dist/components/base/filtered_search/filtered_search.js +4 -5
  5. package/dist/components/base/filtered_search/filtered_search_token.js +8 -9
  6. package/dist/components/base/filtered_search/filtered_search_token_segment.js +13 -14
  7. package/dist/components/base/form/form_checkbox/form_checkbox.js +14 -15
  8. package/dist/components/base/form/form_input/form_input.js +9 -11
  9. package/dist/components/base/form/form_radio/form_radio.js +14 -15
  10. package/dist/components/base/form/form_textarea/form_textarea.js +13 -16
  11. package/dist/components/base/infinite_scroll/infinite_scroll.js +27 -20
  12. package/dist/components/base/new_dropdowns/constants.js +2 -2
  13. package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +1 -1
  14. package/dist/components/base/new_dropdowns/listbox/listbox.js +17 -19
  15. package/dist/components/base/sorting/sorting.js +2 -2
  16. package/dist/components/base/tabs/tabs/scrollable_tabs.js +6 -8
  17. package/dist/components/base/token_selector/token_selector.js +13 -15
  18. package/dist/components/charts/chart/chart.js +1 -1
  19. package/dist/components/charts/sparkline/sparkline.js +2 -2
  20. package/dist/components/dashboards/dashboard_panel/dashboard_panel.js +1 -1
  21. package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip-template.js +4 -2
  22. package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +3 -1
  23. package/dist/vendor/bootstrap-vue/src/directives/tooltip/tooltip.js +2 -1
  24. package/package.json +4 -4
  25. package/src/components/base/alert/alert.vue +4 -4
  26. package/src/components/base/collapse/collapse.vue +3 -4
  27. package/src/components/base/datepicker/datepicker.vue +1 -1
  28. package/src/components/base/filtered_search/filtered_search.vue +4 -5
  29. package/src/components/base/filtered_search/filtered_search_token.vue +8 -9
  30. package/src/components/base/filtered_search/filtered_search_token_segment.vue +10 -11
  31. package/src/components/base/form/form_checkbox/form_checkbox.vue +14 -15
  32. package/src/components/base/form/form_input/form_input.vue +9 -11
  33. package/src/components/base/form/form_radio/form_radio.vue +14 -15
  34. package/src/components/base/form/form_textarea/form_textarea.vue +13 -16
  35. package/src/components/base/infinite_scroll/infinite_scroll.vue +22 -20
  36. package/src/components/base/new_dropdowns/constants.js +2 -2
  37. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.vue +1 -1
  38. package/src/components/base/new_dropdowns/listbox/listbox.vue +17 -19
  39. package/src/components/base/sorting/sorting.vue +2 -2
  40. package/src/components/base/tabs/tabs/scrollable_tabs.vue +7 -9
  41. package/src/components/base/token_selector/token_selector.vue +12 -14
  42. package/src/components/charts/chart/chart.vue +1 -1
  43. package/src/components/charts/sparkline/sparkline.vue +2 -2
  44. package/src/components/dashboards/dashboard_panel/dashboard_panel.vue +2 -2
  45. package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +34 -0
  46. package/src/tokens/build/docs/tokens-tailwind-docs.json +34 -0
  47. package/src/tokens/build/tailwind/tokens.cjs +1 -0
  48. package/src/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip-template.js +4 -2
  49. package/src/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +3 -1
  50. package/src/vendor/bootstrap-vue/src/directives/tooltip/tooltip.js +2 -1
@@ -5795,6 +5795,40 @@
5795
5795
  "cssWithValue": "var(--gl-feedback-brand-background-color)"
5796
5796
  }
5797
5797
  },
5798
+ "application-chrome": {
5799
+ "key": "{application-chrome.background.color}",
5800
+ "$value": "#050506",
5801
+ "$type": "color",
5802
+ "$description": "Used for the application chrome background, the lowest layer of the interface that sits beneath panels and contains global navigation, user actions, application navigation, and AI navigation.",
5803
+ "$extensions": {
5804
+ "com.figma.scopes": [
5805
+ "FRAME_FILL",
5806
+ "SHAPE_FILL"
5807
+ ]
5808
+ },
5809
+ "filePath": "src/tokens/contextual/application-chrome.tokens.json",
5810
+ "isSource": true,
5811
+ "original": {
5812
+ "$value": "{color.neutral.1000}",
5813
+ "$type": "color",
5814
+ "$description": "Used for the application chrome background, the lowest layer of the interface that sits beneath panels and contains global navigation, user actions, application navigation, and AI navigation.",
5815
+ "$extensions": {
5816
+ "com.figma.scopes": [
5817
+ "FRAME_FILL",
5818
+ "SHAPE_FILL"
5819
+ ]
5820
+ },
5821
+ "key": "{application-chrome.background.color}"
5822
+ },
5823
+ "name": "APPLICATION_CHROME_BACKGROUND_COLOR",
5824
+ "attributes": {},
5825
+ "path": [
5826
+ "application-chrome",
5827
+ "background",
5828
+ "color"
5829
+ ],
5830
+ "cssWithValue": "var(--gl-application-chrome-background-color)"
5831
+ },
5798
5832
  "dropdown": {
5799
5833
  "key": "{dropdown.background.color}",
5800
5834
  "$value": "#28272d",
@@ -5795,6 +5795,40 @@
5795
5795
  "cssWithValue": "var(--gl-feedback-brand-background-color)"
5796
5796
  }
5797
5797
  },
5798
+ "application-chrome": {
5799
+ "key": "{application-chrome.background.color}",
5800
+ "$value": "#ececef",
5801
+ "$type": "color",
5802
+ "$description": "Used for the application chrome background, the lowest layer of the interface that sits beneath panels and contains global navigation, user actions, application navigation, and AI navigation.",
5803
+ "$extensions": {
5804
+ "com.figma.scopes": [
5805
+ "FRAME_FILL",
5806
+ "SHAPE_FILL"
5807
+ ]
5808
+ },
5809
+ "filePath": "src/tokens/contextual/application-chrome.tokens.json",
5810
+ "isSource": true,
5811
+ "original": {
5812
+ "$value": "{color.neutral.50}",
5813
+ "$type": "color",
5814
+ "$description": "Used for the application chrome background, the lowest layer of the interface that sits beneath panels and contains global navigation, user actions, application navigation, and AI navigation.",
5815
+ "$extensions": {
5816
+ "com.figma.scopes": [
5817
+ "FRAME_FILL",
5818
+ "SHAPE_FILL"
5819
+ ]
5820
+ },
5821
+ "key": "{application-chrome.background.color}"
5822
+ },
5823
+ "name": "APPLICATION_CHROME_BACKGROUND_COLOR",
5824
+ "attributes": {},
5825
+ "path": [
5826
+ "application-chrome",
5827
+ "background",
5828
+ "color"
5829
+ ],
5830
+ "cssWithValue": "var(--gl-application-chrome-background-color)"
5831
+ },
5798
5832
  "dropdown": {
5799
5833
  "key": "{dropdown.background.color}",
5800
5834
  "$value": "#fff",
@@ -430,6 +430,7 @@ const backgroundColor = {
430
430
  ...backgroundColors,
431
431
  ...statusBackgroundColors,
432
432
  ...feedbackBackgroundColors,
433
+ 'application-chrome': 'var(--gl-application-chrome-background-color)',
433
434
  dropdown: 'var(--gl-dropdown-background-color)',
434
435
  control: {
435
436
  default: 'var(--gl-control-background-color-default)',
@@ -70,8 +70,10 @@ export const BVTooltipTemplate = /*#__PURE__*/ extend({
70
70
  const { id } = this
71
71
 
72
72
  return {
73
- // Apply attributes from root tooltip component
74
- ...this.bvParent.bvParent.$attrs,
73
+ // Apply attributes from root tooltip component. A directive has no such component, so
74
+ // `bvParent.bvParent` is the component holding the target element, whose attributes
75
+ // must not leak onto the template.
76
+ ...(this.bvParent.isDirective ? {} : this.bvParent.bvParent.$attrs),
75
77
 
76
78
  id,
77
79
  role: 'tooltip',
@@ -130,7 +130,9 @@ const templateData = {
130
130
  // ID to use for tooltip/popover
131
131
  id: null,
132
132
  // Flag used by directives only, for HTML content
133
- html: false
133
+ html: false,
134
+ // Flag used by directives only, to suppress attribute forwarding
135
+ isDirective: false
134
136
  }
135
137
 
136
138
  // --- Main component ---
@@ -225,7 +225,8 @@ const applyTooltip = (el, bindings, vnode) => {
225
225
  id: config.id,
226
226
  interactive: config.interactive,
227
227
  disabled: config.disabled,
228
- html: config.html
228
+ html: config.html,
229
+ isDirective: true
229
230
  }
230
231
  const oldData = el[BV_TOOLTIP].__bv_prev_data__
231
232
  el[BV_TOOLTIP].__bv_prev_data__ = data