@gitlab/ui 41.10.0 → 42.0.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.
@@ -80,7 +80,6 @@ const buttonVariantOptions = {
80
80
  confirm: 'confirm',
81
81
  info: 'info (deprecated)',
82
82
  success: 'success (deprecated)',
83
- warning: 'warning (deprecated)',
84
83
  danger: 'danger',
85
84
  dashed: 'dashed',
86
85
  link: 'link',
@@ -103,7 +102,6 @@ const dropdownVariantOptions = {
103
102
  confirm: 'confirm',
104
103
  info: 'info (deprecated)',
105
104
  success: 'success (deprecated)',
106
- warning: 'warning (deprecated)',
107
105
  danger: 'danger',
108
106
  link: 'link'
109
107
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "41.10.0",
3
+ "version": "42.0.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -82,8 +82,8 @@
82
82
  "@babel/core": "^7.10.2",
83
83
  "@babel/preset-env": "^7.10.2",
84
84
  "@gitlab/eslint-plugin": "12.3.0",
85
- "@gitlab/stylelint-config": "4.0.0",
86
- "@gitlab/svgs": "2.19.0",
85
+ "@gitlab/stylelint-config": "4.1.0",
86
+ "@gitlab/svgs": "2.20.0",
87
87
  "@rollup/plugin-commonjs": "^11.1.0",
88
88
  "@rollup/plugin-node-resolve": "^7.1.3",
89
89
  "@rollup/plugin-replace": "^2.3.2",
@@ -122,7 +122,7 @@
122
122
  "npm-run-all": "^4.1.5",
123
123
  "pikaday": "^1.8.0",
124
124
  "plop": "^2.5.4",
125
- "postcss": "8.4.12",
125
+ "postcss": "8.4.14",
126
126
  "postcss-loader": "^3.0.0",
127
127
  "postcss-scss": "4.0.4",
128
128
  "prettier": "2.6.2",
@@ -140,7 +140,7 @@
140
140
  "sass-true": "^5.0.0",
141
141
  "start-server-and-test": "^1.10.6",
142
142
  "storybook-dark-mode": "^1.0.8",
143
- "stylelint": "14.3.0",
143
+ "stylelint": "14.9.1",
144
144
  "stylelint-config-prettier": "9.0.3",
145
145
  "stylelint-prettier": "2.0.0",
146
146
  "vue": "2.6.11",
@@ -135,8 +135,7 @@
135
135
  &.btn-confirm,
136
136
  &.btn-info,
137
137
  &.btn-success,
138
- &.btn-danger,
139
- &.btn-warning {
138
+ &.btn-danger {
140
139
  @include gl-text-contrast-light;
141
140
  }
142
141
 
@@ -251,60 +250,6 @@
251
250
  }
252
251
  }
253
252
 
254
- &.btn-warning {
255
- @include gl-bg-orange-500;
256
- @include gl-inset-border-1-orange-600;
257
-
258
- &:hover {
259
- @include gl-tmp-button-hover($orange-800, $orange-600);
260
- }
261
-
262
- &:focus {
263
- @include gl-focus($color: $orange-800);
264
- @include gl-bg-orange-600;
265
- }
266
-
267
- &:active,
268
- &.active {
269
- @include gl-focus($color: $orange-900);
270
- @include gl-bg-orange-700;
271
-
272
- &:focus {
273
- @include gl-focus($color: $orange-900);
274
- }
275
- }
276
- }
277
-
278
- &.btn-warning-secondary,
279
- &.btn-warning-tertiary {
280
- @include gl-bg-transparent;
281
- @include gl-text-orange-500;
282
- @include gl-font-weight-normal;
283
- @include gl-inset-border-1-orange-500;
284
-
285
- &:hover {
286
- @include gl-text-orange-700;
287
- @include gl-tmp-button-hover($orange-700, $orange-50);
288
- }
289
-
290
- &:focus {
291
- @include gl-text-orange-700;
292
- @include gl-focus($color: $orange-700);
293
- @include gl-bg-orange-50;
294
- }
295
-
296
- &:active,
297
- &.active {
298
- @include gl-text-orange-900;
299
- @include gl-focus($color: $orange-900);
300
- @include gl-bg-orange-100;
301
-
302
- &:focus {
303
- @include gl-focus($color: $orange-900);
304
- }
305
- }
306
- }
307
-
308
253
  &.btn-danger {
309
254
  @include gl-bg-red-500;
310
255
  @include gl-inset-border-1-red-600;
@@ -364,8 +309,7 @@
364
309
  &.btn-confirm,
365
310
  &.btn-info,
366
311
  &.btn-success,
367
- &.btn-danger,
368
- &.btn-warning {
312
+ &.btn-danger {
369
313
  &-secondary {
370
314
  @include gl-bg-white;
371
315
  }
@@ -376,8 +320,7 @@
376
320
  &.btn-confirm,
377
321
  &.btn-info,
378
322
  &.btn-success,
379
- &.btn-danger,
380
- &.btn-warning {
323
+ &.btn-danger {
381
324
  &-tertiary {
382
325
  @include gl-shadow-none;
383
326
  mix-blend-mode: multiply;
@@ -99,9 +99,6 @@ describe('button component', () => {
99
99
  ${'success'} | ${'primary'} | ${'btn-success'}
100
100
  ${'success'} | ${'secondary'} | ${'btn-success-secondary'}
101
101
  ${'success'} | ${'tertiary'} | ${'btn-success-tertiary'}
102
- ${'warning'} | ${'primary'} | ${'btn-warning'}
103
- ${'warning'} | ${'secondary'} | ${'btn-warning-secondary'}
104
- ${'warning'} | ${'tertiary'} | ${'btn-warning-tertiary'}
105
102
  ${'danger'} | ${'primary'} | ${'btn-danger'}
106
103
  ${'danger'} | ${'secondary'} | ${'btn-danger-secondary'}
107
104
  ${'danger'} | ${'tertiary'} | ${'btn-danger-tertiary'}
@@ -108,8 +108,7 @@
108
108
  &.btn-confirm,
109
109
  &.btn-info,
110
110
  &.btn-success,
111
- &.btn-danger,
112
- &.btn-warning {
111
+ &.btn-danger {
113
112
  margin-left: 1px;
114
113
  }
115
114
 
@@ -97,7 +97,6 @@ export const buttonVariantOptions = {
97
97
  confirm: 'confirm',
98
98
  info: 'info (deprecated)',
99
99
  success: 'success (deprecated)',
100
- warning: 'warning (deprecated)',
101
100
  danger: 'danger',
102
101
  dashed: 'dashed',
103
102
  link: 'link',
@@ -121,7 +120,6 @@ export const dropdownVariantOptions = {
121
120
  confirm: 'confirm',
122
121
  info: 'info (deprecated)',
123
122
  success: 'success (deprecated)',
124
- warning: 'warning (deprecated)',
125
123
  danger: 'danger',
126
124
  link: 'link',
127
125
  };