@gitlab/ui 72.3.0 → 72.4.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/CHANGELOG.md +14 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +21 -21
- package/src/components/base/avatar/avatar.scss +1 -0
- package/src/components/base/avatar/avatar.stories.js +13 -0
- package/src/scss/utilities.scss +18 -0
- package/src/scss/utility-mixins/flex.scss +6 -0
- package/src/scss/utility-mixins/image.scss +8 -0
- package/src/scss/utility-mixins/index.scss +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "72.
|
|
3
|
+
"version": "72.4.0",
|
|
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.
|
|
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.
|
|
91
|
-
"@babel/preset-env": "^7.23.
|
|
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.
|
|
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.
|
|
102
|
-
"@storybook/addon-docs": "7.6.
|
|
103
|
-
"@storybook/addon-essentials": "7.6.
|
|
104
|
-
"@storybook/addon-storyshots": "7.6.
|
|
105
|
-
"@storybook/addon-storyshots-puppeteer": "7.6.
|
|
106
|
-
"@storybook/addon-viewport": "7.6.
|
|
107
|
-
"@storybook/builder-webpack5": "7.6.
|
|
108
|
-
"@storybook/theming": "7.6.
|
|
109
|
-
"@storybook/vue": "7.6.
|
|
110
|
-
"@storybook/vue-webpack5": "7.6.
|
|
111
|
-
"@storybook/vue3": "7.6.
|
|
112
|
-
"@storybook/vue3-webpack5": "7.6.
|
|
101
|
+
"@storybook/addon-a11y": "7.6.7",
|
|
102
|
+
"@storybook/addon-docs": "7.6.7",
|
|
103
|
+
"@storybook/addon-essentials": "7.6.7",
|
|
104
|
+
"@storybook/addon-storyshots": "7.6.7",
|
|
105
|
+
"@storybook/addon-storyshots-puppeteer": "7.6.7",
|
|
106
|
+
"@storybook/addon-viewport": "7.6.7",
|
|
107
|
+
"@storybook/builder-webpack5": "7.6.7",
|
|
108
|
+
"@storybook/theming": "7.6.7",
|
|
109
|
+
"@storybook/vue": "7.6.7",
|
|
110
|
+
"@storybook/vue-webpack5": "7.6.7",
|
|
111
|
+
"@storybook/vue3": "7.6.7",
|
|
112
|
+
"@storybook/vue3-webpack5": "7.6.7",
|
|
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.
|
|
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.
|
|
164
|
+
"storybook": "7.6.7",
|
|
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.
|
|
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.
|
|
171
|
+
"vue-template-compiler": "2.7.16",
|
|
172
172
|
"vue-test-utils-compat": "^0.0.10",
|
|
173
173
|
"webpack": "^5.9.0"
|
|
174
174
|
},
|
|
@@ -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),
|
package/src/scss/utilities.scss
CHANGED
|
@@ -3678,6 +3678,18 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
|
|
|
3678
3678
|
}
|
|
3679
3679
|
}
|
|
3680
3680
|
|
|
3681
|
+
.gl-md-flex-direction-row-reverse {
|
|
3682
|
+
@include gl-media-breakpoint-up(md) {
|
|
3683
|
+
flex-direction: row-reverse;
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3687
|
+
.gl-md-flex-direction-row-reverse\! {
|
|
3688
|
+
@include gl-media-breakpoint-up(md) {
|
|
3689
|
+
flex-direction: row-reverse !important;
|
|
3690
|
+
}
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3681
3693
|
.gl-flex-shrink-0 {
|
|
3682
3694
|
flex-shrink: 0;
|
|
3683
3695
|
}
|
|
@@ -4084,6 +4096,12 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
|
|
|
4084
4096
|
grid-template-columns: repeat(4, 1fr) !important;
|
|
4085
4097
|
}
|
|
4086
4098
|
}
|
|
4099
|
+
.gl-object-fit-contain {
|
|
4100
|
+
object-fit: contain
|
|
4101
|
+
}
|
|
4102
|
+
.gl-object-fit-contain\! {
|
|
4103
|
+
object-fit: contain !important
|
|
4104
|
+
}
|
|
4087
4105
|
|
|
4088
4106
|
.gl-isolation-isolate {
|
|
4089
4107
|
isolation: isolate
|