@gitlab/ui 74.7.0 → 74.8.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/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 +16 -16
- package/src/components/base/tabs/tabs/tabs.stories.js +1 -41
- package/src/scss/utilities.scss +12 -0
- package/src/scss/utility-mixins/flex.scss +6 -0
- package/tailwind.defaults.js +35 -33
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "74.
|
|
3
|
+
"version": "74.8.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"prebuild": "run-s build-tokens generate-utilities",
|
|
26
26
|
"prepare": "run-s build-tokens generate-utilities",
|
|
27
27
|
"generate-utilities": "make src/scss/utilities.scss",
|
|
28
|
-
"deprecate-gl-utils": "./bin/deprecate_utils.js",
|
|
28
|
+
"deprecate-gl-utils": "node ./bin/deprecate_utils.js",
|
|
29
29
|
"copy-fonts": "make copy-fonts",
|
|
30
30
|
"build-tokens": "node ./bin/build_tokens.js",
|
|
31
31
|
"clean": "rm -r dist storybook src/scss/utilities.scss",
|
|
@@ -106,19 +106,19 @@
|
|
|
106
106
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
107
107
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
108
108
|
"@rollup/plugin-replace": "^2.3.2",
|
|
109
|
-
"@storybook/addon-a11y": "7.6.
|
|
110
|
-
"@storybook/addon-docs": "7.6.
|
|
111
|
-
"@storybook/addon-essentials": "7.6.
|
|
112
|
-
"@storybook/addon-interactions": "7.6.
|
|
113
|
-
"@storybook/addon-viewport": "7.6.
|
|
114
|
-
"@storybook/builder-webpack5": "7.6.
|
|
115
|
-
"@storybook/test": "7.6.
|
|
109
|
+
"@storybook/addon-a11y": "^7.6.16",
|
|
110
|
+
"@storybook/addon-docs": "^7.6.16",
|
|
111
|
+
"@storybook/addon-essentials": "^7.6.16",
|
|
112
|
+
"@storybook/addon-interactions": "^7.6.16",
|
|
113
|
+
"@storybook/addon-viewport": "^7.6.16",
|
|
114
|
+
"@storybook/builder-webpack5": "^7.6.16",
|
|
115
|
+
"@storybook/test": "^7.6.16",
|
|
116
116
|
"@storybook/test-runner": "0.16.0",
|
|
117
|
-
"@storybook/theming": "7.6.
|
|
118
|
-
"@storybook/vue": "7.6.
|
|
119
|
-
"@storybook/vue-webpack5": "7.6.
|
|
120
|
-
"@storybook/vue3": "7.6.
|
|
121
|
-
"@storybook/vue3-webpack5": "7.6.
|
|
117
|
+
"@storybook/theming": "^7.6.16",
|
|
118
|
+
"@storybook/vue": "^7.6.16",
|
|
119
|
+
"@storybook/vue-webpack5": "^7.6.16",
|
|
120
|
+
"@storybook/vue3": "^7.6.16",
|
|
121
|
+
"@storybook/vue3-webpack5": "^7.6.16",
|
|
122
122
|
"@types/jest-image-snapshot": "^6.4.0",
|
|
123
123
|
"@vue/compat": "^3.2.40",
|
|
124
124
|
"@vue/compiler-sfc": "^3.2.40",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"eslint": "8.56.0",
|
|
140
140
|
"eslint-import-resolver-jest": "3.0.2",
|
|
141
141
|
"eslint-plugin-cypress": "2.15.1",
|
|
142
|
-
"eslint-plugin-storybook": "0.
|
|
142
|
+
"eslint-plugin-storybook": "0.7.0",
|
|
143
143
|
"glob": "10.3.3",
|
|
144
144
|
"identity-obj-proxy": "^3.0.0",
|
|
145
145
|
"inquirer-select-directory": "^1.2.0",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"sass-loader": "^10.2.0",
|
|
171
171
|
"sass-true": "^6.1.0",
|
|
172
172
|
"start-server-and-test": "^1.10.6",
|
|
173
|
-
"storybook": "7.6.
|
|
173
|
+
"storybook": "^7.6.16",
|
|
174
174
|
"storybook-dark-mode": "3.0.3",
|
|
175
175
|
"style-dictionary": "^3.8.0",
|
|
176
176
|
"stylelint": "15.10.2",
|
|
@@ -11,24 +11,13 @@ const components = {
|
|
|
11
11
|
GlTab,
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
const generateProps = ({
|
|
14
|
+
const generateProps = ({ justified } = {}) => ({
|
|
15
15
|
justified,
|
|
16
|
-
actionPrimary = null,
|
|
17
|
-
actionSecondary = null,
|
|
18
|
-
actionTertiary = null,
|
|
19
|
-
} = {}) => ({
|
|
20
|
-
justified,
|
|
21
|
-
actionPrimary,
|
|
22
|
-
actionSecondary,
|
|
23
|
-
actionTertiary,
|
|
24
16
|
});
|
|
25
17
|
|
|
26
18
|
const wrap = (template) => `
|
|
27
19
|
<gl-tabs
|
|
28
20
|
:justified="justified"
|
|
29
|
-
:action-primary="actionPrimary"
|
|
30
|
-
:action-secondary="actionSecondary"
|
|
31
|
-
:action-tertiary="actionTertiary"
|
|
32
21
|
>
|
|
33
22
|
${template}
|
|
34
23
|
</gl-tabs>
|
|
@@ -170,35 +159,6 @@ export const WithCounterBadges = (_args, { argTypes }) => ({
|
|
|
170
159
|
badgeVariantOptions,
|
|
171
160
|
});
|
|
172
161
|
|
|
173
|
-
export const WithActions = (_args, { argTypes }) => ({
|
|
174
|
-
props: Object.keys(argTypes),
|
|
175
|
-
components,
|
|
176
|
-
template: wrap(`
|
|
177
|
-
<gl-tab title="Tab 1">
|
|
178
|
-
Tab panel 1
|
|
179
|
-
</gl-tab>`),
|
|
180
|
-
});
|
|
181
|
-
WithActions.args = generateProps({
|
|
182
|
-
actionPrimary: {
|
|
183
|
-
attributes: {
|
|
184
|
-
variant: 'danger',
|
|
185
|
-
},
|
|
186
|
-
text: 'Primary action',
|
|
187
|
-
},
|
|
188
|
-
actionSecondary: {
|
|
189
|
-
attributes: {
|
|
190
|
-
variant: 'success',
|
|
191
|
-
},
|
|
192
|
-
text: 'Secondary action',
|
|
193
|
-
},
|
|
194
|
-
actionTertiary: {
|
|
195
|
-
attributes: {
|
|
196
|
-
variant: 'default',
|
|
197
|
-
},
|
|
198
|
-
text: 'Tertiary action',
|
|
199
|
-
},
|
|
200
|
-
});
|
|
201
|
-
|
|
202
162
|
export const WithScroll = (_args, { argTypes }) => ({
|
|
203
163
|
props: Object.keys(argTypes),
|
|
204
164
|
components: {
|
package/src/scss/utilities.scss
CHANGED
|
@@ -3494,6 +3494,18 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
|
|
|
3494
3494
|
}
|
|
3495
3495
|
}
|
|
3496
3496
|
|
|
3497
|
+
.gl-md-align-items-flex-start {
|
|
3498
|
+
@include gl-media-breakpoint-up(md) {
|
|
3499
|
+
align-items: flex-start;
|
|
3500
|
+
}
|
|
3501
|
+
}
|
|
3502
|
+
|
|
3503
|
+
.gl-md-align-items-flex-start\! {
|
|
3504
|
+
@include gl-media-breakpoint-up(md) {
|
|
3505
|
+
align-items: flex-start !important;
|
|
3506
|
+
}
|
|
3507
|
+
}
|
|
3508
|
+
|
|
3497
3509
|
.gl-lg-align-items-flex-start {
|
|
3498
3510
|
@include gl-media-breakpoint-up(lg) {
|
|
3499
3511
|
align-items: flex-start;
|
|
@@ -59,6 +59,12 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
@mixin gl-md-align-items-flex-start {
|
|
63
|
+
@include gl-media-breakpoint-up(md) {
|
|
64
|
+
@include gl-align-items-flex-start;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
62
68
|
@mixin gl-lg-align-items-flex-start {
|
|
63
69
|
@include gl-media-breakpoint-up(lg) {
|
|
64
70
|
@include gl-align-items-flex-start;
|
package/tailwind.defaults.js
CHANGED
|
@@ -19,39 +19,41 @@ const themeColors = Object.entries(themeColorTokens.theme).reduce((acc, [color,
|
|
|
19
19
|
}, {});
|
|
20
20
|
|
|
21
21
|
const gridSize = 0.5; // rem
|
|
22
|
-
const spacing =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
)
|
|
22
|
+
const spacing = {
|
|
23
|
+
0: '0',
|
|
24
|
+
...Object.fromEntries(
|
|
25
|
+
Object.entries({
|
|
26
|
+
1: 0.25,
|
|
27
|
+
2: 0.5,
|
|
28
|
+
3: 1,
|
|
29
|
+
4: 1.5,
|
|
30
|
+
5: 2,
|
|
31
|
+
6: 3,
|
|
32
|
+
7: 4,
|
|
33
|
+
8: 5,
|
|
34
|
+
9: 6,
|
|
35
|
+
10: 7,
|
|
36
|
+
11: 8,
|
|
37
|
+
'11-5': 9,
|
|
38
|
+
12: 10,
|
|
39
|
+
13: 12,
|
|
40
|
+
15: 15,
|
|
41
|
+
20: 20,
|
|
42
|
+
26: 26,
|
|
43
|
+
28: 28,
|
|
44
|
+
30: 30,
|
|
45
|
+
31: 31,
|
|
46
|
+
34: 34,
|
|
47
|
+
48: 48,
|
|
48
|
+
62: 62,
|
|
49
|
+
75: 75,
|
|
50
|
+
80: 80,
|
|
51
|
+
88: 88,
|
|
52
|
+
}).map(([scale, factor]) => {
|
|
53
|
+
return [scale, `${factor * gridSize}rem`];
|
|
54
|
+
})
|
|
55
|
+
),
|
|
56
|
+
};
|
|
55
57
|
|
|
56
58
|
/** @type {import('tailwindcss').Config} */
|
|
57
59
|
module.exports = {
|