@gitlab/ui 130.0.0 → 130.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "130.0.0",
3
+ "version": "130.1.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -105,19 +105,19 @@
105
105
  "@rollup/plugin-commonjs": "^28.0.9",
106
106
  "@rollup/plugin-node-resolve": "^16.0.3",
107
107
  "@rollup/plugin-replace": "^6.0.3",
108
- "@storybook/addon-a11y": "^7.6.20",
109
- "@storybook/addon-docs": "^7.6.20",
110
- "@storybook/addon-essentials": "^7.6.20",
111
- "@storybook/addon-interactions": "^7.6.20",
112
- "@storybook/addon-viewport": "^7.6.20",
113
- "@storybook/builder-webpack5": "^7.6.20",
114
- "@storybook/test": "^7.6.20",
108
+ "@storybook/addon-a11y": "^7.6.24",
109
+ "@storybook/addon-docs": "^7.6.24",
110
+ "@storybook/addon-essentials": "^7.6.24",
111
+ "@storybook/addon-interactions": "^7.6.24",
112
+ "@storybook/addon-viewport": "^7.6.24",
113
+ "@storybook/builder-webpack5": "^7.6.24",
114
+ "@storybook/test": "^7.6.24",
115
115
  "@storybook/test-runner": "0.19.1",
116
- "@storybook/theming": "^7.6.20",
117
- "@storybook/vue": "^7.6.17",
118
- "@storybook/vue-webpack5": "^7.6.17",
119
- "@storybook/vue3": "^7.6.20",
120
- "@storybook/vue3-webpack5": "^7.6.20",
116
+ "@storybook/theming": "^7.6.24",
117
+ "@storybook/vue": "^7.6.24",
118
+ "@storybook/vue-webpack5": "^7.6.24",
119
+ "@storybook/vue3": "^7.6.24",
120
+ "@storybook/vue3-webpack5": "^7.6.24",
121
121
  "@types/jest-image-snapshot": "^6.4.1",
122
122
  "@vue/compat": "3.5.30",
123
123
  "@vue/compiler-sfc": "3.5.30",
@@ -164,9 +164,9 @@
164
164
  "sass-loader": "^10.5.2",
165
165
  "sass-true": "^9",
166
166
  "start-server-and-test": "^2.1.5",
167
- "storybook": "^7.6.20",
167
+ "storybook": "^7.6.24",
168
168
  "storybook-dark-mode": "4.0.2",
169
- "style-dictionary": "^5.3.3",
169
+ "style-dictionary": "^5.4.0",
170
170
  "style-loader": "^4",
171
171
  "tailwindcss": "3.4.19",
172
172
  "vue": "2.7.16",
@@ -8,7 +8,7 @@ $breadcrumb-max-width: $grid-size * 16;
8
8
  .gl-breadcrumb-list {
9
9
  @apply gl-bg-transparent;
10
10
  @apply gl-p-0;
11
- @apply gl-items-center;
11
+ @apply gl-items-start;
12
12
  @apply gl-leading-normal;
13
13
  @apply gl-m-0;
14
14
  @apply gl-flex-nowrap;
@@ -17,6 +17,8 @@ $breadcrumb-max-width: $grid-size * 16;
17
17
 
18
18
  // bootstrap overrides
19
19
  .gl-breadcrumb-item {
20
+ @apply gl-inline-flex;
21
+ @apply gl-items-center;
20
22
  @apply gl-leading-normal;
21
23
  @apply gl-shrink-0;
22
24
 
@@ -56,10 +58,12 @@ $breadcrumb-max-width: $grid-size * 16;
56
58
 
57
59
  .gl-breadcrumb-item-sm {
58
60
  @apply gl-text-sm;
61
+ @apply gl-h-6;
59
62
  }
60
63
 
61
64
  .gl-breadcrumb-item-md {
62
65
  @apply gl-text-base;
66
+ @apply gl-h-7;
63
67
  }
64
68
 
65
69
  .gl-breadcrumb-item {
@@ -157,6 +157,14 @@ export default {
157
157
  required: false,
158
158
  default: null,
159
159
  },
160
+ /**
161
+ * Controls whether the tooltip should be pinned when clicked.
162
+ */
163
+ clickToPinTooltip: {
164
+ type: Boolean,
165
+ required: false,
166
+ default: false,
167
+ },
160
168
  },
161
169
  data() {
162
170
  return {
@@ -344,7 +352,12 @@ export default {
344
352
  @created="onCreated"
345
353
  @updated="onUpdated"
346
354
  />
347
- <chart-tooltip v-if="chart" :chart="chart" :use-default-tooltip-formatter="!formatTooltipText">
355
+ <chart-tooltip
356
+ v-if="chart"
357
+ :chart="chart"
358
+ :use-default-tooltip-formatter="!formatTooltipText"
359
+ :click-to-pin="clickToPinTooltip"
360
+ >
348
361
  <template #title="scope">
349
362
  <slot name="tooltip-title" v-bind="scope">{{ getTooltipTitle(scope) }}</slot>
350
363
  </template>
@@ -1055,9 +1055,9 @@
1055
1055
  --gl-border-color-section: var(--gl-border-color-default); /** Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page. */
1056
1056
  --gl-border-radius-default: var(--gl-border-radius-md);
1057
1057
  --gl-font-size-base: var(--gl-font-size-md);
1058
- --gl-shadow-sm: 0 0 2px var(--gl-shadow-color-default), 0 1px 4px var(--gl-shadow-color-default); /** Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board. */
1059
- --gl-shadow-md: 0 0 1px var(--gl-shadow-color-default), 0 0 2px var(--gl-shadow-color-default), 0 2px 8px var(--gl-shadow-color-default); /** Used for surfaces that need boundary definition and appear on hover. For example, popovers. */
1060
- --gl-shadow-lg: 0 0 2px var(--gl-shadow-color-default), 0 0 2px var(--gl-shadow-color-default), 0 4px 12px var(--gl-shadow-color-default); /** Used for large surfaces that present additional context to the user. */
1058
+ --gl-shadow-sm: 0 0 2px 0 var(--gl-shadow-color-default), 0 1px 4px 0 var(--gl-shadow-color-default); /** Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board. */
1059
+ --gl-shadow-md: 0 0 1px 0 var(--gl-shadow-color-default), 0 0 2px 0 var(--gl-shadow-color-default), 0 2px 8px 0 var(--gl-shadow-color-default); /** Used for surfaces that need boundary definition and appear on hover. For example, popovers. */
1060
+ --gl-shadow-lg: 0 0 2px 0 var(--gl-shadow-color-default), 0 0 2px 0 var(--gl-shadow-color-default), 0 4px 12px 0 var(--gl-shadow-color-default); /** Used for large surfaces that present additional context to the user. */
1061
1061
  --gl-alert-border-radius: var(--gl-border-radius-lg); /** Used for alert border radius. */
1062
1062
  --gl-alert-neutral-title-color: var(--gl-text-color-heading); /** Used for the title color of a neutral alert. */
1063
1063
  --gl-alert-neutral-background-color: var(--gl-feedback-neutral-background-color); /** Used for the background color of a neutral alert. */
@@ -1072,9 +1072,9 @@
1072
1072
  --gl-border-color-section: var(--gl-background-color-default); /** Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page. */
1073
1073
  --gl-border-radius-default: var(--gl-border-radius-md);
1074
1074
  --gl-font-size-base: var(--gl-font-size-md);
1075
- --gl-shadow-sm: 0 0 2px var(--gl-shadow-color-default), 0 1px 4px var(--gl-shadow-color-default); /** Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board. */
1076
- --gl-shadow-md: 0 0 1px var(--gl-shadow-color-default), 0 0 2px var(--gl-shadow-color-default), 0 2px 8px var(--gl-shadow-color-default); /** Used for surfaces that need boundary definition and appear on hover. For example, popovers. */
1077
- --gl-shadow-lg: 0 0 2px var(--gl-shadow-color-default), 0 0 2px var(--gl-shadow-color-default), 0 4px 12px var(--gl-shadow-color-default); /** Used for large surfaces that present additional context to the user. */
1075
+ --gl-shadow-sm: 0 0 2px 0 var(--gl-shadow-color-default), 0 1px 4px 0 var(--gl-shadow-color-default); /** Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board. */
1076
+ --gl-shadow-md: 0 0 1px 0 var(--gl-shadow-color-default), 0 0 2px 0 var(--gl-shadow-color-default), 0 2px 8px 0 var(--gl-shadow-color-default); /** Used for surfaces that need boundary definition and appear on hover. For example, popovers. */
1077
+ --gl-shadow-lg: 0 0 2px 0 var(--gl-shadow-color-default), 0 0 2px 0 var(--gl-shadow-color-default), 0 4px 12px 0 var(--gl-shadow-color-default); /** Used for large surfaces that present additional context to the user. */
1078
1078
  --gl-alert-border-radius: var(--gl-border-radius-lg); /** Used for alert border radius. */
1079
1079
  --gl-alert-neutral-title-color: var(--gl-text-color-heading); /** Used for the title color of a neutral alert. */
1080
1080
  --gl-alert-neutral-background-color: var(--gl-background-color-subtle); /** Used for the background color of a neutral alert. */
@@ -1070,9 +1070,9 @@ $gl-heading-6-fixed-line-height: $gl-line-height-heading;
1070
1070
  $gl-border-color-section: $gl-background-color-default; // Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.
1071
1071
  $gl-border-radius-default: $gl-border-radius-md;
1072
1072
  $gl-font-size-base: $gl-font-size-md;
1073
- $gl-shadow-sm: 0 0 2px $gl-shadow-color-default, 0 1px 4px $gl-shadow-color-default; // Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.
1074
- $gl-shadow-md: 0 0 1px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-default, 0 2px 8px $gl-shadow-color-default; // Used for surfaces that need boundary definition and appear on hover. For example, popovers.
1075
- $gl-shadow-lg: 0 0 2px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-default, 0 4px 12px $gl-shadow-color-default; // Used for large surfaces that present additional context to the user.
1073
+ $gl-shadow-sm: 0 0 2px 0 $gl-shadow-color-default, 0 1px 4px 0 $gl-shadow-color-default; // Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.
1074
+ $gl-shadow-md: 0 0 1px 0 $gl-shadow-color-default, 0 0 2px 0 $gl-shadow-color-default, 0 2px 8px 0 $gl-shadow-color-default; // Used for surfaces that need boundary definition and appear on hover. For example, popovers.
1075
+ $gl-shadow-lg: 0 0 2px 0 $gl-shadow-color-default, 0 0 2px 0 $gl-shadow-color-default, 0 4px 12px 0 $gl-shadow-color-default; // Used for large surfaces that present additional context to the user.
1076
1076
  $gl-alert-border-radius: $gl-border-radius-lg; // Used for alert border radius.
1077
1077
  $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
1078
1078
  $gl-alert-neutral-background-color: $gl-background-color-subtle; // Used for the background color of a neutral alert.
@@ -1053,9 +1053,9 @@ $gl-heading-6-fixed-line-height: $gl-line-height-heading;
1053
1053
  $gl-border-color-section: $gl-border-color-default; // Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.
1054
1054
  $gl-border-radius-default: $gl-border-radius-md;
1055
1055
  $gl-font-size-base: $gl-font-size-md;
1056
- $gl-shadow-sm: 0 0 2px $gl-shadow-color-default, 0 1px 4px $gl-shadow-color-default; // Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.
1057
- $gl-shadow-md: 0 0 1px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-default, 0 2px 8px $gl-shadow-color-default; // Used for surfaces that need boundary definition and appear on hover. For example, popovers.
1058
- $gl-shadow-lg: 0 0 2px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-default, 0 4px 12px $gl-shadow-color-default; // Used for large surfaces that present additional context to the user.
1056
+ $gl-shadow-sm: 0 0 2px 0 $gl-shadow-color-default, 0 1px 4px 0 $gl-shadow-color-default; // Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.
1057
+ $gl-shadow-md: 0 0 1px 0 $gl-shadow-color-default, 0 0 2px 0 $gl-shadow-color-default, 0 2px 8px 0 $gl-shadow-color-default; // Used for surfaces that need boundary definition and appear on hover. For example, popovers.
1058
+ $gl-shadow-lg: 0 0 2px 0 $gl-shadow-color-default, 0 0 2px 0 $gl-shadow-color-default, 0 4px 12px 0 $gl-shadow-color-default; // Used for large surfaces that present additional context to the user.
1059
1059
  $gl-alert-border-radius: $gl-border-radius-lg; // Used for alert border radius.
1060
1060
  $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
1061
1061
  $gl-alert-neutral-background-color: $gl-feedback-neutral-background-color; // Used for the background color of a neutral alert.