@gitlab/ui 74.6.0 → 74.7.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": "74.6.0",
3
+ "version": "74.7.1",
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.14",
110
- "@storybook/addon-docs": "7.6.14",
111
- "@storybook/addon-essentials": "7.6.14",
112
- "@storybook/addon-interactions": "7.6.14",
113
- "@storybook/addon-viewport": "7.6.14",
114
- "@storybook/builder-webpack5": "7.6.14",
115
- "@storybook/test": "7.6.14",
109
+ "@storybook/addon-a11y": "^7.6.14",
110
+ "@storybook/addon-docs": "^7.6.14",
111
+ "@storybook/addon-essentials": "^7.6.14",
112
+ "@storybook/addon-interactions": "^7.6.14",
113
+ "@storybook/addon-viewport": "^7.6.14",
114
+ "@storybook/builder-webpack5": "^7.6.14",
115
+ "@storybook/test": "^7.6.14",
116
116
  "@storybook/test-runner": "0.16.0",
117
- "@storybook/theming": "7.6.14",
118
- "@storybook/vue": "7.6.14",
119
- "@storybook/vue-webpack5": "7.6.14",
120
- "@storybook/vue3": "7.6.14",
121
- "@storybook/vue3-webpack5": "7.6.14",
117
+ "@storybook/theming": "^7.6.14",
118
+ "@storybook/vue": "^7.6.14",
119
+ "@storybook/vue-webpack5": "^7.6.14",
120
+ "@storybook/vue3": "^7.6.14",
121
+ "@storybook/vue3-webpack5": "^7.6.14",
122
122
  "@types/jest-image-snapshot": "^6.4.0",
123
123
  "@vue/compat": "^3.2.40",
124
124
  "@vue/compiler-sfc": "^3.2.40",
@@ -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.14",
173
+ "storybook": "^7.6.14",
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: {
@@ -481,6 +481,14 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
481
481
  background-color: $purple-50 !important
482
482
  }
483
483
 
484
+ .gl-bg-purple-500 {
485
+ background-color: $purple-500
486
+ }
487
+
488
+ .gl-bg-purple-500\! {
489
+ background-color: $purple-500 !important
490
+ }
491
+
484
492
  .gl-bg-purple-800 {
485
493
  background-color: $purple-800
486
494
  }
@@ -1388,6 +1396,14 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
1388
1396
  border-color: $purple-300 !important;
1389
1397
  }
1390
1398
 
1399
+ .gl-border-purple-500 {
1400
+ border-color: $purple-500;
1401
+ }
1402
+
1403
+ .gl-border-purple-500\! {
1404
+ border-color: $purple-500 !important;
1405
+ }
1406
+
1391
1407
  .gl-border-purple-700 {
1392
1408
  border-color: $purple-700;
1393
1409
  }
@@ -2816,6 +2832,14 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
2816
2832
  color: $red-900 !important;
2817
2833
  }
2818
2834
 
2835
+ .gl-text-purple-500 {
2836
+ color: $purple-500;
2837
+ }
2838
+
2839
+ .gl-text-purple-500\! {
2840
+ color: $purple-500 !important;
2841
+ }
2842
+
2819
2843
  .gl-text-purple-600 {
2820
2844
  color: $purple-600;
2821
2845
  }
@@ -150,6 +150,10 @@
150
150
  background-color: $purple-50;
151
151
  }
152
152
 
153
+ @mixin gl-bg-purple-500 {
154
+ background-color: $purple-500;
155
+ }
156
+
153
157
  @mixin gl-bg-purple-800 {
154
158
  background-color: $purple-800;
155
159
  }
@@ -183,6 +183,10 @@
183
183
  border-color: $purple-300;
184
184
  }
185
185
 
186
+ @mixin gl-border-purple-500 {
187
+ border-color: $purple-500;
188
+ }
189
+
186
190
  @mixin gl-border-purple-700 {
187
191
  border-color: $purple-700;
188
192
  }
@@ -193,6 +193,10 @@
193
193
  color: $red-900;
194
194
  }
195
195
 
196
+ @mixin gl-text-purple-500 {
197
+ color: $purple-500;
198
+ }
199
+
196
200
  @mixin gl-text-purple-600 {
197
201
  color: $purple-600;
198
202
  }
@@ -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 = Object.fromEntries(
23
- Object.entries({
24
- 0: 0,
25
- 1: 0.25,
26
- 2: 0.5,
27
- 3: 1,
28
- 4: 1.5,
29
- 5: 2,
30
- 6: 3,
31
- 7: 4,
32
- 8: 5,
33
- 9: 6,
34
- 10: 7,
35
- 11: 8,
36
- '11-5': 9,
37
- 12: 10,
38
- 13: 12,
39
- 15: 15,
40
- 20: 20,
41
- 26: 26,
42
- 28: 28,
43
- 30: 30,
44
- 31: 31,
45
- 34: 34,
46
- 48: 48,
47
- 62: 62,
48
- 75: 75,
49
- 80: 80,
50
- 88: 88,
51
- }).map(([scale, factor]) => {
52
- return [scale, `${factor * gridSize}rem`];
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 = {