@gitlab/ui 68.1.0 → 68.2.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/CHANGELOG.md +20 -0
- package/dist/config.js +9 -1
- 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 +19 -17
- package/src/components/base/broadcast_message/broadcast_message.scss +1 -1
- package/src/config.js +8 -0
- package/src/scss/utilities.scss +10 -2
- package/src/scss/utility-mixins/text.scss +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "68.1
|
|
3
|
+
"version": "68.2.1",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,8 +29,9 @@
|
|
|
29
29
|
"build-scss-variables": "make scss_to_js/scss_variables.js",
|
|
30
30
|
"build-tokens": "node ./bin/build_tokens.js",
|
|
31
31
|
"clean": "rm -r dist storybook scss_to_js/scss_variables.* src/scss/utilities.scss",
|
|
32
|
-
"cy:
|
|
33
|
-
"cy:
|
|
32
|
+
"cy:a11y": "cypress run --browser chrome --env grepTags=@a11y",
|
|
33
|
+
"cy:edge": "cypress run --browser edge --env grepTags=-@a11y",
|
|
34
|
+
"cy:run": "cypress run --browser firefox --env grepTags=-@a11y",
|
|
34
35
|
"start": "yarn storybook",
|
|
35
36
|
"storybook": "yarn storybook-prep && storybook dev --ci --host ${STORYBOOK_HOST:-localhost} --port 9001 -c .storybook",
|
|
36
37
|
"storybook-vue3": "yarn storybook-prep && VUE_VERSION=3 storybook dev --ci --host ${STORYBOOK_HOST:-localhost} --port 9001 -c .storybook",
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"storybook-static": "yarn storybook-prep && storybook build -c .storybook -o storybook",
|
|
39
40
|
"pretest:unit": "yarn build-tokens build-scss-variables",
|
|
40
41
|
"test": "run-s test:unit test:visual",
|
|
41
|
-
"test:integration": "NODE_ENV=test start-server-and-test start http://${STORYBOOK_HOST:-localhost}:9001/iframe.html cy:run",
|
|
42
|
+
"test:integration": "NODE_ENV=test start-server-and-test start http://${STORYBOOK_HOST:-localhost}:9001/iframe.html 'yarn cy:run && yarn cy:a11y'",
|
|
42
43
|
"test:unit": "NODE_ENV=test jest --testPathIgnorePatterns storyshots.spec.js",
|
|
43
44
|
"test:unit:watch": "yarn test:unit --watch",
|
|
44
45
|
"test:unit:debug": "NODE_ENV=test node --inspect node_modules/.bin/jest --testPathIgnorePatterns storyshot.spec.js --watch --runInBand",
|
|
@@ -91,6 +92,7 @@
|
|
|
91
92
|
"@babel/core": "^7.23.2",
|
|
92
93
|
"@babel/preset-env": "^7.23.2",
|
|
93
94
|
"@babel/preset-react": "^7.22.15",
|
|
95
|
+
"@cypress/grep": "^4.0.1",
|
|
94
96
|
"@gitlab/eslint-plugin": "19.2.0",
|
|
95
97
|
"@gitlab/fonts": "^1.3.0",
|
|
96
98
|
"@gitlab/stylelint-config": "5.0.1",
|
|
@@ -98,18 +100,18 @@
|
|
|
98
100
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
99
101
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
100
102
|
"@rollup/plugin-replace": "^2.3.2",
|
|
101
|
-
"@storybook/addon-a11y": "7.5.
|
|
102
|
-
"@storybook/addon-docs": "7.5.
|
|
103
|
-
"@storybook/addon-essentials": "7.5.
|
|
104
|
-
"@storybook/addon-storyshots": "7.5.
|
|
105
|
-
"@storybook/addon-storyshots-puppeteer": "7.5.
|
|
106
|
-
"@storybook/addon-viewport": "7.5.
|
|
107
|
-
"@storybook/builder-webpack5": "7.5.
|
|
108
|
-
"@storybook/theming": "7.5.
|
|
109
|
-
"@storybook/vue": "7.5.
|
|
110
|
-
"@storybook/vue-webpack5": "7.5.
|
|
111
|
-
"@storybook/vue3": "7.5.
|
|
112
|
-
"@storybook/vue3-webpack5": "7.5.
|
|
103
|
+
"@storybook/addon-a11y": "7.5.3",
|
|
104
|
+
"@storybook/addon-docs": "7.5.3",
|
|
105
|
+
"@storybook/addon-essentials": "7.5.3",
|
|
106
|
+
"@storybook/addon-storyshots": "7.5.3",
|
|
107
|
+
"@storybook/addon-storyshots-puppeteer": "7.5.3",
|
|
108
|
+
"@storybook/addon-viewport": "7.5.3",
|
|
109
|
+
"@storybook/builder-webpack5": "7.5.3",
|
|
110
|
+
"@storybook/theming": "7.5.3",
|
|
111
|
+
"@storybook/vue": "7.5.3",
|
|
112
|
+
"@storybook/vue-webpack5": "7.5.3",
|
|
113
|
+
"@storybook/vue3": "7.5.3",
|
|
114
|
+
"@storybook/vue3-webpack5": "7.5.3",
|
|
113
115
|
"@vue/compat": "^3.2.40",
|
|
114
116
|
"@vue/compiler-sfc": "^3.2.40",
|
|
115
117
|
"@vue/test-utils": "1.3.0",
|
|
@@ -161,7 +163,7 @@
|
|
|
161
163
|
"sass-loader": "^10.2.0",
|
|
162
164
|
"sass-true": "^6.1.0",
|
|
163
165
|
"start-server-and-test": "^1.10.6",
|
|
164
|
-
"storybook": "7.5.
|
|
166
|
+
"storybook": "7.5.3",
|
|
165
167
|
"storybook-dark-mode": "3.0.1",
|
|
166
168
|
"style-dictionary": "^3.8.0",
|
|
167
169
|
"stylelint": "15.10.2",
|
package/src/config.js
CHANGED
|
@@ -14,6 +14,11 @@ const tooltipGlobalConfig = {
|
|
|
14
14
|
delay: tooltipDelay,
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
const popoverDelayConfig = {
|
|
18
|
+
show: 50, // BootstrapVue's default delay on show.
|
|
19
|
+
hide: 150, // Increased hide delay so that it doesn't disappear to quickly when user attempts to interact with the content.
|
|
20
|
+
};
|
|
21
|
+
|
|
17
22
|
/**
|
|
18
23
|
* Guard against nonexistent localStorage,
|
|
19
24
|
* or corrupted localStorage
|
|
@@ -57,6 +62,9 @@ const setConfigs = ({ translations } = {}) => {
|
|
|
57
62
|
Vue.use(BVConfigPlugin, {
|
|
58
63
|
BFormText: bFormTextGlobalConfig,
|
|
59
64
|
BTooltip: tooltipGlobalConfig,
|
|
65
|
+
BPopover: {
|
|
66
|
+
delay: popoverDelayConfig,
|
|
67
|
+
},
|
|
60
68
|
});
|
|
61
69
|
|
|
62
70
|
if (typeof translations === 'object') {
|
package/src/scss/utilities.scss
CHANGED
|
@@ -8378,12 +8378,20 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
|
|
|
8378
8378
|
.gl-overflow-break-word {
|
|
8379
8379
|
overflow-wrap: break-word;
|
|
8380
8380
|
hyphens: auto;
|
|
8381
|
-
-webkit-hyphens: auto;
|
|
8382
8381
|
}
|
|
8383
8382
|
.gl-overflow-break-word\! {
|
|
8384
8383
|
overflow-wrap: break-word !important;
|
|
8385
8384
|
hyphens: auto !important;
|
|
8386
|
-
|
|
8385
|
+
}
|
|
8386
|
+
.gl-overflow-anywhere {
|
|
8387
|
+
hyphens: auto;
|
|
8388
|
+
overflow-wrap: anywhere;
|
|
8389
|
+
word-break: normal;
|
|
8390
|
+
}
|
|
8391
|
+
.gl-overflow-anywhere\! {
|
|
8392
|
+
hyphens: auto !important;
|
|
8393
|
+
overflow-wrap: anywhere !important;
|
|
8394
|
+
word-break: normal !important;
|
|
8387
8395
|
}
|
|
8388
8396
|
.gl-str-truncated {
|
|
8389
8397
|
@include str-truncated;
|
|
@@ -130,7 +130,12 @@
|
|
|
130
130
|
@mixin gl-overflow-break-word {
|
|
131
131
|
overflow-wrap: break-word;
|
|
132
132
|
hyphens: auto;
|
|
133
|
-
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@mixin gl-overflow-anywhere {
|
|
136
|
+
hyphens: auto;
|
|
137
|
+
overflow-wrap: anywhere;
|
|
138
|
+
word-break: normal;
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
// Deprecated, prefer `gl-text-truncate`
|