@gitlab/ui 72.2.0 → 72.3.1

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": "72.2.0",
3
+ "version": "72.3.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -78,7 +78,7 @@
78
78
  "dompurify": "^2.4.7 || ^3.0.5",
79
79
  "emoji-regex": ">=10.0.0",
80
80
  "pikaday": "^1.8.0",
81
- "vue": "^2.6.10"
81
+ "vue": "^2.7.16"
82
82
  },
83
83
  "resolutions": {
84
84
  "chokidar": "^3.5.2",
@@ -87,29 +87,29 @@
87
87
  },
88
88
  "devDependencies": {
89
89
  "@arkweid/lefthook": "0.7.7",
90
- "@babel/core": "^7.23.6",
91
- "@babel/preset-env": "^7.23.6",
90
+ "@babel/core": "^7.23.7",
91
+ "@babel/preset-env": "^7.23.7",
92
92
  "@babel/preset-react": "^7.23.3",
93
93
  "@cypress/grep": "^4.0.1",
94
94
  "@gitlab/eslint-plugin": "19.2.0",
95
95
  "@gitlab/fonts": "^1.3.0",
96
96
  "@gitlab/stylelint-config": "5.0.1",
97
- "@gitlab/svgs": "3.73.0",
97
+ "@gitlab/svgs": "3.74.0",
98
98
  "@rollup/plugin-commonjs": "^11.1.0",
99
99
  "@rollup/plugin-node-resolve": "^7.1.3",
100
100
  "@rollup/plugin-replace": "^2.3.2",
101
- "@storybook/addon-a11y": "7.6.5",
102
- "@storybook/addon-docs": "7.6.5",
103
- "@storybook/addon-essentials": "7.6.5",
104
- "@storybook/addon-storyshots": "7.6.5",
105
- "@storybook/addon-storyshots-puppeteer": "7.6.5",
106
- "@storybook/addon-viewport": "7.6.5",
107
- "@storybook/builder-webpack5": "7.6.5",
108
- "@storybook/theming": "7.6.5",
109
- "@storybook/vue": "7.6.5",
110
- "@storybook/vue-webpack5": "7.6.5",
111
- "@storybook/vue3": "7.6.5",
112
- "@storybook/vue3-webpack5": "7.6.5",
101
+ "@storybook/addon-a11y": "7.6.6",
102
+ "@storybook/addon-docs": "7.6.6",
103
+ "@storybook/addon-essentials": "7.6.6",
104
+ "@storybook/addon-storyshots": "7.6.6",
105
+ "@storybook/addon-storyshots-puppeteer": "7.6.6",
106
+ "@storybook/addon-viewport": "7.6.6",
107
+ "@storybook/builder-webpack5": "7.6.6",
108
+ "@storybook/theming": "7.6.6",
109
+ "@storybook/vue": "7.6.6",
110
+ "@storybook/vue-webpack5": "7.6.6",
111
+ "@storybook/vue3": "7.6.6",
112
+ "@storybook/vue3-webpack5": "7.6.6",
113
113
  "@vue/compat": "^3.2.40",
114
114
  "@vue/compiler-sfc": "^3.2.40",
115
115
  "@vue/test-utils": "1.3.0",
@@ -122,7 +122,7 @@
122
122
  "babel-loader": "^8.0.5",
123
123
  "babel-plugin-require-context-hook": "^1.0.0",
124
124
  "bootstrap": "4.6.2",
125
- "cypress": "13.6.1",
125
+ "cypress": "13.6.2",
126
126
  "cypress-axe": "^1.4.0",
127
127
  "cypress-real-events": "^1.11.0",
128
128
  "dompurify": "^3.0.0",
@@ -161,14 +161,14 @@
161
161
  "sass-loader": "^10.2.0",
162
162
  "sass-true": "^6.1.0",
163
163
  "start-server-and-test": "^1.10.6",
164
- "storybook": "7.6.5",
164
+ "storybook": "7.6.6",
165
165
  "storybook-dark-mode": "3.0.3",
166
166
  "style-dictionary": "^3.8.0",
167
167
  "stylelint": "15.10.2",
168
- "vue": "2.7.15",
168
+ "vue": "2.7.16",
169
169
  "vue-loader": "^15.8.3",
170
170
  "vue-loader-vue3": "npm:vue-loader@17",
171
- "vue-template-compiler": "2.7.15",
171
+ "vue-template-compiler": "2.7.16",
172
172
  "vue-test-utils-compat": "^0.0.10",
173
173
  "webpack": "^5.9.0"
174
174
  },
@@ -9,6 +9,7 @@ $gl-avatar-identicon-bgs: $red-50, $purple-50, $theme-indigo-50, $blue-50, $gree
9
9
  @include gl-overflow-hidden;
10
10
  @include gl-flex-shrink-0;
11
11
  @include gl-line-height-ratio-1000;
12
+ @include gl-object-fit-contain;
12
13
  }
13
14
 
14
15
  @mixin gl-avatar-s16 {
@@ -59,6 +59,19 @@ export const Image = (args, { argTypes }) => ({
59
59
  });
60
60
  Image.args = generateImageProps();
61
61
 
62
+ export const NonSquareImage = (args, { argTypes }) => ({
63
+ components,
64
+ props: Object.keys(argTypes),
65
+ template: `
66
+ <gl-avatar
67
+ :size="size"
68
+ shape="rect"
69
+ src="./img/avatar_non_square.jpg"
70
+ />
71
+ `,
72
+ });
73
+ NonSquareImage.args = generateImageProps();
74
+
62
75
  export const ResponsiveImage = (args, { argTypes }) => ({
63
76
  components,
64
77
  props: Object.keys(argTypes),
@@ -3275,6 +3275,30 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
3275
3275
  display: grid !important;
3276
3276
  }
3277
3277
 
3278
+ .gl-sm-display-grid {
3279
+ @include gl-media-breakpoint-up(sm) {
3280
+ display: grid;
3281
+ }
3282
+ }
3283
+
3284
+ .gl-sm-display-grid\! {
3285
+ @include gl-media-breakpoint-up(sm) {
3286
+ display: grid !important;
3287
+ }
3288
+ }
3289
+
3290
+ .gl-md-display-grid {
3291
+ @include gl-media-breakpoint-up(md) {
3292
+ display: grid;
3293
+ }
3294
+ }
3295
+
3296
+ .gl-md-display-grid\! {
3297
+ @include gl-media-breakpoint-up(md) {
3298
+ display: grid !important;
3299
+ }
3300
+ }
3301
+
3278
3302
  .gl-sm-display-table-cell {
3279
3303
  @include gl-media-breakpoint-up(sm) {
3280
3304
  display: table-cell;
@@ -4060,6 +4084,12 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
4060
4084
  grid-template-columns: repeat(4, 1fr) !important;
4061
4085
  }
4062
4086
  }
4087
+ .gl-object-fit-contain {
4088
+ object-fit: contain
4089
+ }
4090
+ .gl-object-fit-contain\! {
4091
+ object-fit: contain !important
4092
+ }
4063
4093
 
4064
4094
  .gl-isolation-isolate {
4065
4095
  isolation: isolate
@@ -151,6 +151,18 @@
151
151
  display: grid;
152
152
  }
153
153
 
154
+ @mixin gl-sm-display-grid {
155
+ @include gl-media-breakpoint-up(sm) {
156
+ display: grid;
157
+ }
158
+ }
159
+
160
+ @mixin gl-md-display-grid {
161
+ @include gl-media-breakpoint-up(md) {
162
+ display: grid;
163
+ }
164
+ }
165
+
154
166
  @mixin gl-sm-display-table-cell {
155
167
  @include gl-media-breakpoint-up(sm) {
156
168
  @include gl-display-table-cell;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Object fit utilities.
3
+ *
4
+ * naming convention: gl-object-fit-{value}
5
+ */
6
+ @mixin gl-object-fit-contain {
7
+ object-fit: contain;
8
+ }
@@ -28,6 +28,7 @@
28
28
  @import './display';
29
29
  @import './flex';
30
30
  @import './grid';
31
+ @import './image';
31
32
  @import './isolation';
32
33
  @import './list-style';
33
34
  @import './masks';