@gitlab/ui 94.10.0 → 95.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.
- package/CHANGELOG.md +35 -0
- package/dist/components/base/progress_bar/progress_bar.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +6 -1
- package/dist/tokens/build/js/tokens.js +6 -1
- package/dist/tokens/css/tokens.css +5 -0
- package/dist/tokens/css/tokens.dark.css +5 -0
- package/dist/tokens/js/tokens.dark.js +5 -0
- package/dist/tokens/js/tokens.js +5 -0
- package/dist/tokens/json/tokens.dark.json +110 -0
- package/dist/tokens/json/tokens.json +110 -0
- package/dist/tokens/scss/_tokens.dark.scss +5 -0
- package/dist/tokens/scss/_tokens.scss +5 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +5 -0
- package/dist/utils/constants.js +3 -14
- package/dist/vendor/bootstrap-vue/src/components/modal/modal.js +4 -34
- package/package.json +1 -1
- package/src/components/base/progress_bar/progress_bar.scss +19 -0
- package/src/components/base/progress_bar/progress_bar.vue +1 -1
- package/src/scss/components.scss +1 -0
- package/src/tokens/build/css/tokens.css +5 -0
- package/src/tokens/build/css/tokens.dark.css +5 -0
- package/src/tokens/build/js/tokens.dark.js +5 -0
- package/src/tokens/build/js/tokens.js +5 -0
- package/src/tokens/build/json/tokens.dark.json +110 -0
- package/src/tokens/build/json/tokens.json +110 -0
- package/src/tokens/build/scss/_tokens.dark.scss +5 -0
- package/src/tokens/build/scss/_tokens.scss +5 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +5 -0
- package/src/tokens/contextual/progress-bar.tokens.json +38 -0
- package/src/utils/constants.js +1 -11
- package/src/vendor/bootstrap-vue/src/components/modal/MODIFICATIONS.md +27 -0
- package/src/vendor/bootstrap-vue/src/components/modal/README.md +2 -118
- package/src/vendor/bootstrap-vue/src/components/modal/index.d.ts +0 -10
- package/src/vendor/bootstrap-vue/src/components/modal/modal.js +4 -43
- package/src/vendor/bootstrap-vue/src/components/modal/package.json +0 -36
- package/src/vendor/bootstrap-vue/src/components/progress/MODIFICATIONS.md +23 -0
- package/src/vendor/bootstrap-vue/src/components/progress/README.md +4 -17
package/src/utils/constants.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { POSITION } from '../components/utilities/truncate/constants';
|
|
2
2
|
|
|
3
|
-
function appendDefaultOption(options) {
|
|
4
|
-
return { ...options, default: '' };
|
|
5
|
-
}
|
|
6
|
-
|
|
7
3
|
export const COMMA = ',';
|
|
8
4
|
|
|
9
5
|
export const CONTRAST_LEVELS = [
|
|
@@ -33,15 +29,11 @@ export const HEX_REGEX = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
|
33
29
|
|
|
34
30
|
export const LEFT_MOUSE_BUTTON = 0;
|
|
35
31
|
|
|
36
|
-
export const
|
|
32
|
+
export const progressBarVariantOptions = {
|
|
37
33
|
primary: 'primary',
|
|
38
|
-
secondary: 'secondary',
|
|
39
34
|
success: 'success',
|
|
40
35
|
warning: 'warning',
|
|
41
36
|
danger: 'danger',
|
|
42
|
-
info: 'info',
|
|
43
|
-
light: 'light',
|
|
44
|
-
dark: 'dark',
|
|
45
37
|
};
|
|
46
38
|
|
|
47
39
|
export const badgeSizeOptions = {
|
|
@@ -290,8 +282,6 @@ export const tokenVariants = ['default', 'search-type', 'search-value'];
|
|
|
290
282
|
|
|
291
283
|
export const resizeDebounceTime = 200;
|
|
292
284
|
|
|
293
|
-
export const variantOptionsWithNoDefault = appendDefaultOption(variantOptions);
|
|
294
|
-
|
|
295
285
|
// Datetime constants
|
|
296
286
|
export const defaultDateFormat = 'YYYY-MM-DD';
|
|
297
287
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Modifications to Vendored Code
|
|
2
|
+
|
|
3
|
+
**Library**: BootstrapVue
|
|
4
|
+
**Version**: 2.23.1
|
|
5
|
+
|
|
6
|
+
This file documents modifications made to the original BootstrapVue component files.
|
|
7
|
+
|
|
8
|
+
## Removed unnecessary properties
|
|
9
|
+
|
|
10
|
+
The following properties have been removed as they are no longer supported in our implementation:
|
|
11
|
+
|
|
12
|
+
- `headerBgVariant`
|
|
13
|
+
- `headerBorderVariant`
|
|
14
|
+
- `headerTextVariant`
|
|
15
|
+
- `headerCloseVariant`
|
|
16
|
+
- `bodyBgVariant`
|
|
17
|
+
- `bodyTextVariant`
|
|
18
|
+
- `footerBgVariant`
|
|
19
|
+
- `footerBorderVariant`
|
|
20
|
+
- `footerTextVariant`
|
|
21
|
+
|
|
22
|
+
These properties were removed to streamline the component for our use case, as they are no longer necessary in our project.
|
|
23
|
+
The following files have been modified from the original:
|
|
24
|
+
|
|
25
|
+
- `modal.js`: Removed unnecessary properties.
|
|
26
|
+
- `package.json`: Removed unnecessary properties.
|
|
27
|
+
- `README.md`: Removed unnecessary properties.
|
|
@@ -469,125 +469,9 @@ Vertically center your modal in the viewport by setting the `centered` prop.
|
|
|
469
469
|
|
|
470
470
|
Feel free to mix vertically `centered` with `scrollable`.
|
|
471
471
|
|
|
472
|
-
###
|
|
472
|
+
### Pass CSS classes
|
|
473
473
|
|
|
474
|
-
|
|
475
|
-
`header-bg-variant`, `header-text-variant`, `body-bg-variant`, `body-text-variant`,
|
|
476
|
-
`footer-bg-variant`, and `footer-text-variant` props. Use any of the standard Bootstrap variants
|
|
477
|
-
such as `danger`, `warning`, `info`, `success`, `dark`, `light`, etc.
|
|
478
|
-
|
|
479
|
-
The variants for the bottom border of the header and top border of the footer can be controlled by
|
|
480
|
-
the `header-border-variant` and `footer-border-variant` props respectively.
|
|
481
|
-
|
|
482
|
-
```html
|
|
483
|
-
<template>
|
|
484
|
-
<div>
|
|
485
|
-
<b-button @click="show=true" variant="primary">Show Modal</b-button>
|
|
486
|
-
|
|
487
|
-
<b-modal
|
|
488
|
-
v-model="show"
|
|
489
|
-
title="Modal Variants"
|
|
490
|
-
:header-bg-variant="headerBgVariant"
|
|
491
|
-
:header-text-variant="headerTextVariant"
|
|
492
|
-
:body-bg-variant="bodyBgVariant"
|
|
493
|
-
:body-text-variant="bodyTextVariant"
|
|
494
|
-
:footer-bg-variant="footerBgVariant"
|
|
495
|
-
:footer-text-variant="footerTextVariant"
|
|
496
|
-
>
|
|
497
|
-
<b-container fluid>
|
|
498
|
-
<b-row class="mb-1 text-center">
|
|
499
|
-
<b-col cols="3"></b-col>
|
|
500
|
-
<b-col>Background</b-col>
|
|
501
|
-
<b-col>Text</b-col>
|
|
502
|
-
</b-row>
|
|
503
|
-
|
|
504
|
-
<b-row class="mb-1">
|
|
505
|
-
<b-col cols="3">Header</b-col>
|
|
506
|
-
<b-col>
|
|
507
|
-
<b-form-select
|
|
508
|
-
v-model="headerBgVariant"
|
|
509
|
-
:options="variants"
|
|
510
|
-
></b-form-select>
|
|
511
|
-
</b-col>
|
|
512
|
-
<b-col>
|
|
513
|
-
<b-form-select
|
|
514
|
-
v-model="headerTextVariant"
|
|
515
|
-
:options="variants"
|
|
516
|
-
></b-form-select>
|
|
517
|
-
</b-col>
|
|
518
|
-
</b-row>
|
|
519
|
-
|
|
520
|
-
<b-row class="mb-1">
|
|
521
|
-
<b-col cols="3">Body</b-col>
|
|
522
|
-
<b-col>
|
|
523
|
-
<b-form-select
|
|
524
|
-
v-model="bodyBgVariant"
|
|
525
|
-
:options="variants"
|
|
526
|
-
></b-form-select>
|
|
527
|
-
</b-col>
|
|
528
|
-
<b-col>
|
|
529
|
-
<b-form-select
|
|
530
|
-
v-model="bodyTextVariant"
|
|
531
|
-
:options="variants"
|
|
532
|
-
></b-form-select>
|
|
533
|
-
</b-col>
|
|
534
|
-
</b-row>
|
|
535
|
-
|
|
536
|
-
<b-row>
|
|
537
|
-
<b-col cols="3">Footer</b-col>
|
|
538
|
-
<b-col>
|
|
539
|
-
<b-form-select
|
|
540
|
-
v-model="footerBgVariant"
|
|
541
|
-
:options="variants"
|
|
542
|
-
></b-form-select>
|
|
543
|
-
</b-col>
|
|
544
|
-
<b-col>
|
|
545
|
-
<b-form-select
|
|
546
|
-
v-model="footerTextVariant"
|
|
547
|
-
:options="variants"
|
|
548
|
-
></b-form-select>
|
|
549
|
-
</b-col>
|
|
550
|
-
</b-row>
|
|
551
|
-
</b-container>
|
|
552
|
-
|
|
553
|
-
<template #modal-footer>
|
|
554
|
-
<div class="w-100">
|
|
555
|
-
<p class="float-left">Modal Footer Content</p>
|
|
556
|
-
<b-button
|
|
557
|
-
variant="primary"
|
|
558
|
-
size="sm"
|
|
559
|
-
class="float-right"
|
|
560
|
-
@click="show=false"
|
|
561
|
-
>
|
|
562
|
-
Close
|
|
563
|
-
</b-button>
|
|
564
|
-
</div>
|
|
565
|
-
</template>
|
|
566
|
-
</b-modal>
|
|
567
|
-
</div>
|
|
568
|
-
</template>
|
|
569
|
-
|
|
570
|
-
<script>
|
|
571
|
-
export default {
|
|
572
|
-
data() {
|
|
573
|
-
return {
|
|
574
|
-
show: false,
|
|
575
|
-
variants: ['primary', 'secondary', 'success', 'warning', 'danger', 'info', 'light', 'dark'],
|
|
576
|
-
headerBgVariant: 'dark',
|
|
577
|
-
headerTextVariant: 'light',
|
|
578
|
-
bodyBgVariant: 'light',
|
|
579
|
-
bodyTextVariant: 'dark',
|
|
580
|
-
footerBgVariant: 'warning',
|
|
581
|
-
footerTextVariant: 'dark'
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
</script>
|
|
586
|
-
|
|
587
|
-
<!-- b-modal-variants.vue -->
|
|
588
|
-
```
|
|
589
|
-
|
|
590
|
-
You can also apply arbitrary classes to the modal dialog container, content (modal window itself),
|
|
474
|
+
You can apply arbitrary classes to the modal dialog container, content (modal window itself),
|
|
591
475
|
header, body and footer via the `modal-class`, `content-class`, `header-class`, `body-class` and
|
|
592
476
|
`footer-class` props, respectively. The props accept either a string or array of strings.
|
|
593
477
|
|
|
@@ -28,18 +28,8 @@ export interface BvMsgBoxOptions {
|
|
|
28
28
|
noFade?: boolean
|
|
29
29
|
noCloseOnBackdrop?: boolean
|
|
30
30
|
noCloseOnEsc?: boolean
|
|
31
|
-
headerBgVariant?: string
|
|
32
|
-
headerBorderVariant?: string
|
|
33
|
-
headerTextVariant?: string
|
|
34
|
-
headerCloseVariant?: string
|
|
35
31
|
headerClass?: string | string[] | Array<any>
|
|
36
|
-
bodyBgVariant?: string
|
|
37
|
-
bodyBorderVariant?: string
|
|
38
|
-
bodyTextVariant?: string
|
|
39
32
|
bodyClass?: string | string[] | Array<any>
|
|
40
|
-
footerBgVariant?: string
|
|
41
|
-
footerBorderVariant?: string
|
|
42
|
-
footerTextVariant?: string
|
|
43
33
|
footerClass?: string | string[] | Array<any>
|
|
44
34
|
headerCloseLabel?: string
|
|
45
35
|
buttonSize?: string
|
|
@@ -113,9 +113,7 @@ export const props = makePropsConfigurable(
|
|
|
113
113
|
return isUndefinedOrNull(value) || arrayIncludes(BUTTONS, value)
|
|
114
114
|
}
|
|
115
115
|
),
|
|
116
|
-
bodyBgVariant: makeProp(PROP_TYPE_STRING),
|
|
117
116
|
bodyClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
|
|
118
|
-
bodyTextVariant: makeProp(PROP_TYPE_STRING),
|
|
119
117
|
busy: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
120
118
|
buttonSize: makeProp(PROP_TYPE_STRING),
|
|
121
119
|
cancelDisabled: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
@@ -125,19 +123,12 @@ export const props = makePropsConfigurable(
|
|
|
125
123
|
centered: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
126
124
|
contentClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
|
|
127
125
|
dialogClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
|
|
128
|
-
footerBgVariant: makeProp(PROP_TYPE_STRING),
|
|
129
|
-
footerBorderVariant: makeProp(PROP_TYPE_STRING),
|
|
130
126
|
footerClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
|
|
131
127
|
footerTag: makeProp(PROP_TYPE_STRING, 'footer'),
|
|
132
|
-
footerTextVariant: makeProp(PROP_TYPE_STRING),
|
|
133
|
-
headerBgVariant: makeProp(PROP_TYPE_STRING),
|
|
134
|
-
headerBorderVariant: makeProp(PROP_TYPE_STRING),
|
|
135
128
|
headerClass: makeProp(PROP_TYPE_ARRAY_OBJECT_STRING),
|
|
136
129
|
headerCloseContent: makeProp(PROP_TYPE_STRING, '×'),
|
|
137
130
|
headerCloseLabel: makeProp(PROP_TYPE_STRING, 'Close'),
|
|
138
|
-
headerCloseVariant: makeProp(PROP_TYPE_STRING),
|
|
139
131
|
headerTag: makeProp(PROP_TYPE_STRING, 'header'),
|
|
140
|
-
headerTextVariant: makeProp(PROP_TYPE_STRING),
|
|
141
132
|
// TODO: Rename to `noBackdrop` and deprecate `hideBackdrop`
|
|
142
133
|
hideBackdrop: makeProp(PROP_TYPE_BOOLEAN, false),
|
|
143
134
|
// TODO: Rename to `noFooter` and deprecate `hideFooter`
|
|
@@ -260,38 +251,9 @@ export const BModal = /*#__PURE__*/ extend({
|
|
|
260
251
|
this.dialogClass
|
|
261
252
|
]
|
|
262
253
|
},
|
|
263
|
-
headerClasses() {
|
|
264
|
-
return [
|
|
265
|
-
{
|
|
266
|
-
[`bg-${this.headerBgVariant}`]: this.headerBgVariant,
|
|
267
|
-
[`text-${this.headerTextVariant}`]: this.headerTextVariant,
|
|
268
|
-
[`border-${this.headerBorderVariant}`]: this.headerBorderVariant
|
|
269
|
-
},
|
|
270
|
-
this.headerClass
|
|
271
|
-
]
|
|
272
|
-
},
|
|
273
254
|
titleClasses() {
|
|
274
255
|
return [{ 'sr-only': this.titleSrOnly }, this.titleClass]
|
|
275
256
|
},
|
|
276
|
-
bodyClasses() {
|
|
277
|
-
return [
|
|
278
|
-
{
|
|
279
|
-
[`bg-${this.bodyBgVariant}`]: this.bodyBgVariant,
|
|
280
|
-
[`text-${this.bodyTextVariant}`]: this.bodyTextVariant
|
|
281
|
-
},
|
|
282
|
-
this.bodyClass
|
|
283
|
-
]
|
|
284
|
-
},
|
|
285
|
-
footerClasses() {
|
|
286
|
-
return [
|
|
287
|
-
{
|
|
288
|
-
[`bg-${this.footerBgVariant}`]: this.footerBgVariant,
|
|
289
|
-
[`text-${this.footerTextVariant}`]: this.footerTextVariant,
|
|
290
|
-
[`border-${this.footerBorderVariant}`]: this.footerBorderVariant
|
|
291
|
-
},
|
|
292
|
-
this.footerClass
|
|
293
|
-
]
|
|
294
|
-
},
|
|
295
257
|
modalOuterStyle() {
|
|
296
258
|
// Styles needed for proper stacking of modals
|
|
297
259
|
return {
|
|
@@ -783,8 +745,7 @@ export const BModal = /*#__PURE__*/ extend({
|
|
|
783
745
|
props: {
|
|
784
746
|
content: this.headerCloseContent,
|
|
785
747
|
disabled: this.isTransitioning,
|
|
786
|
-
ariaLabel: this.headerCloseLabel
|
|
787
|
-
textVariant: this.headerCloseVariant || this.headerTextVariant
|
|
748
|
+
ariaLabel: this.headerCloseLabel
|
|
788
749
|
},
|
|
789
750
|
on: { click: this.onClose },
|
|
790
751
|
ref: 'close-button'
|
|
@@ -817,7 +778,7 @@ export const BModal = /*#__PURE__*/ extend({
|
|
|
817
778
|
this.headerTag,
|
|
818
779
|
{
|
|
819
780
|
staticClass: 'modal-header',
|
|
820
|
-
class: this.
|
|
781
|
+
class: this.headerClass,
|
|
821
782
|
attrs: { id: this.modalHeaderId },
|
|
822
783
|
ref: 'header'
|
|
823
784
|
},
|
|
@@ -830,7 +791,7 @@ export const BModal = /*#__PURE__*/ extend({
|
|
|
830
791
|
'div',
|
|
831
792
|
{
|
|
832
793
|
staticClass: 'modal-body',
|
|
833
|
-
class: this.
|
|
794
|
+
class: this.bodyClass,
|
|
834
795
|
attrs: { id: this.modalBodyId },
|
|
835
796
|
ref: 'body'
|
|
836
797
|
},
|
|
@@ -891,7 +852,7 @@ export const BModal = /*#__PURE__*/ extend({
|
|
|
891
852
|
this.footerTag,
|
|
892
853
|
{
|
|
893
854
|
staticClass: 'modal-footer',
|
|
894
|
-
class: this.
|
|
855
|
+
class: this.footerClass,
|
|
895
856
|
attrs: { id: this.modalFooterId },
|
|
896
857
|
ref: 'footer'
|
|
897
858
|
},
|
|
@@ -36,18 +36,10 @@
|
|
|
36
36
|
"version": "2.0.0",
|
|
37
37
|
"description": "Specify which built-in button to focus once the modal opens: 'ok', 'cancel', or 'close'"
|
|
38
38
|
},
|
|
39
|
-
{
|
|
40
|
-
"prop": "bodyBgVariant",
|
|
41
|
-
"description": "Applies one of the Bootstrap theme color variants to the body background"
|
|
42
|
-
},
|
|
43
39
|
{
|
|
44
40
|
"prop": "bodyClass",
|
|
45
41
|
"description": "CSS class (or classes) to apply to the '.modal-body' wrapper element"
|
|
46
42
|
},
|
|
47
|
-
{
|
|
48
|
-
"prop": "bodyTextVariant",
|
|
49
|
-
"description": "Applies one of the Bootstrap theme color variants to the body text"
|
|
50
|
-
},
|
|
51
43
|
{
|
|
52
44
|
"prop": "busy",
|
|
53
45
|
"description": "Places the built in default footer OK and Cancel buttons in the disabled state"
|
|
@@ -85,35 +77,15 @@
|
|
|
85
77
|
"prop": "dialogClass",
|
|
86
78
|
"description": "CSS class (or classes) to apply to the '.modal-dialog' wrapper element"
|
|
87
79
|
},
|
|
88
|
-
{
|
|
89
|
-
"prop": "footerBgVariant",
|
|
90
|
-
"description": "Applies one of the Bootstrap theme color variants to the footer background"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"prop": "footerBorderVariant",
|
|
94
|
-
"description": "Applies one of the Bootstrap theme color variants to the footer border"
|
|
95
|
-
},
|
|
96
80
|
{
|
|
97
81
|
"prop": "footerClass",
|
|
98
82
|
"description": "CSS class (or classes) to apply to the '.modal-footer' wrapper element"
|
|
99
83
|
},
|
|
100
|
-
{
|
|
101
|
-
"prop": "footerTextVariant",
|
|
102
|
-
"description": "Applies one of the Bootstrap theme color variants to the footer text"
|
|
103
|
-
},
|
|
104
84
|
{
|
|
105
85
|
"prop": "footerTag",
|
|
106
86
|
"version": "2.22.0",
|
|
107
87
|
"description": "Specify the HTML tag to render instead of the default tag for the footer"
|
|
108
88
|
},
|
|
109
|
-
{
|
|
110
|
-
"prop": "headerBgVariant",
|
|
111
|
-
"description": "Applies one of the Bootstrap theme color variants to the header background"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"prop": "headerBorderVariant",
|
|
115
|
-
"description": "Applies one of the Bootstrap theme color variants to the header border"
|
|
116
|
-
},
|
|
117
89
|
{
|
|
118
90
|
"prop": "headerClass",
|
|
119
91
|
"description": "CSS class (or classes) to apply to the '.modal-header' wrapper element"
|
|
@@ -127,14 +99,6 @@
|
|
|
127
99
|
"prop": "headerCloseLabel",
|
|
128
100
|
"description": "Value of the 'aria-label' on the header close button"
|
|
129
101
|
},
|
|
130
|
-
{
|
|
131
|
-
"prop": "headerCloseVariant",
|
|
132
|
-
"description": "Text theme color variant to apply to the header close button"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"prop": "headerTextVariant",
|
|
136
|
-
"description": "Applies one of the Bootstrap theme color variants to the header text"
|
|
137
|
-
},
|
|
138
102
|
{
|
|
139
103
|
"prop": "headerTag",
|
|
140
104
|
"version": "2.22.0",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Modifications to Vendored Code
|
|
2
|
+
|
|
3
|
+
**Library**: BootstrapVue
|
|
4
|
+
**Version**: 2.23.1
|
|
5
|
+
|
|
6
|
+
This file documents modifications made to the original BootstrapVue component files.
|
|
7
|
+
|
|
8
|
+
## Removed variants
|
|
9
|
+
|
|
10
|
+
The following files have been modified from the original:
|
|
11
|
+
|
|
12
|
+
- `README.md`: Removed variants.
|
|
13
|
+
|
|
14
|
+
The following variants of the property `variant` have been removed as they are no longer supported
|
|
15
|
+
in our implementation:
|
|
16
|
+
|
|
17
|
+
- `secondary`
|
|
18
|
+
- `info`
|
|
19
|
+
- `light`
|
|
20
|
+
- `dark`
|
|
21
|
+
|
|
22
|
+
It was not necessary to adapt `.js` files for this change, as the propery `variant` accepts any
|
|
23
|
+
string. It would still be technically possible to pass down one of the removed variants.
|
|
@@ -222,12 +222,9 @@ Use background variants to change the appearance of individual progress bars. Th
|
|
|
222
222
|
return {
|
|
223
223
|
bars: [
|
|
224
224
|
{ variant: 'success', value: 75 },
|
|
225
|
-
{ variant: 'info', value: 75 },
|
|
226
225
|
{ variant: 'warning', value: 75 },
|
|
227
226
|
{ variant: 'danger', value: 75 },
|
|
228
227
|
{ variant: 'primary', value: 75 },
|
|
229
|
-
{ variant: 'secondary', value: 75 },
|
|
230
|
-
{ variant: 'dark', value: 75 }
|
|
231
228
|
],
|
|
232
229
|
timer: null
|
|
233
230
|
}
|
|
@@ -255,13 +252,8 @@ Set `striped` to apply a stripe via CSS gradient over the progress bar's backgro
|
|
|
255
252
|
<template>
|
|
256
253
|
<div>
|
|
257
254
|
<b-progress :value="25" variant="success" :striped="striped"></b-progress>
|
|
258
|
-
<b-progress :value="50" variant="info" :striped="striped" class="mt-2"></b-progress>
|
|
259
255
|
<b-progress :value="75" variant="warning" :striped="striped" class="mt-2"></b-progress>
|
|
260
256
|
<b-progress :value="100" variant="danger" :striped="striped" class="mt-2"></b-progress>
|
|
261
|
-
|
|
262
|
-
<b-button variant="secondary" @click="striped = !striped" class="mt-3">
|
|
263
|
-
{{ striped ? 'Remove' : 'Add' }} Striped
|
|
264
|
-
</b-button>
|
|
265
257
|
</div>
|
|
266
258
|
</template>
|
|
267
259
|
|
|
@@ -286,13 +278,8 @@ The striped gradient can also be animated by setting the `animated`prop.
|
|
|
286
278
|
<template>
|
|
287
279
|
<div>
|
|
288
280
|
<b-progress :value="25" variant="success" striped :animated="animate"></b-progress>
|
|
289
|
-
<b-progress :value="50" variant="info" striped :animated="animate" class="mt-2"></b-progress>
|
|
290
281
|
<b-progress :value="75" variant="warning" striped :animated="animate" class="mt-2"></b-progress>
|
|
291
282
|
<b-progress :value="100" variant="danger" :animated="animate" class="mt-3"></b-progress>
|
|
292
|
-
|
|
293
|
-
<b-button variant="secondary" @click="animate = !animate" class="mt-3">
|
|
294
|
-
{{ animate ? 'Stop' : 'Start' }} Animation
|
|
295
|
-
</b-button>
|
|
296
283
|
</div>
|
|
297
284
|
</template>
|
|
298
285
|
|
|
@@ -328,25 +315,25 @@ horizontally stacked set of progress bars.
|
|
|
328
315
|
<b-progress :max="max" class="mb-3">
|
|
329
316
|
<b-progress-bar variant="primary" :value="values[0]"></b-progress-bar>
|
|
330
317
|
<b-progress-bar variant="success" :value="values[1]"></b-progress-bar>
|
|
331
|
-
<b-progress-bar variant="
|
|
318
|
+
<b-progress-bar variant="danger" :value="values[2]"></b-progress-bar>
|
|
332
319
|
</b-progress>
|
|
333
320
|
|
|
334
321
|
<b-progress show-progress :max="max" class="mb-3">
|
|
335
322
|
<b-progress-bar variant="primary" :value="values[0]"></b-progress-bar>
|
|
336
323
|
<b-progress-bar variant="success" :value="values[1]"></b-progress-bar>
|
|
337
|
-
<b-progress-bar variant="
|
|
324
|
+
<b-progress-bar variant="danger" :value="values[2]"></b-progress-bar>
|
|
338
325
|
</b-progress>
|
|
339
326
|
|
|
340
327
|
<b-progress show-value striped :max="max" class="mb-3">
|
|
341
328
|
<b-progress-bar variant="primary" :value="values[0]"></b-progress-bar>
|
|
342
329
|
<b-progress-bar variant="success" :value="values[1]"></b-progress-bar>
|
|
343
|
-
<b-progress-bar variant="
|
|
330
|
+
<b-progress-bar variant="danger" :value="values[2]"></b-progress-bar>
|
|
344
331
|
</b-progress>
|
|
345
332
|
|
|
346
333
|
<b-progress :max="max">
|
|
347
334
|
<b-progress-bar variant="primary" :value="values[0]" show-progress></b-progress-bar>
|
|
348
335
|
<b-progress-bar variant="success" :value="values[1]" animated show-progress></b-progress-bar>
|
|
349
|
-
<b-progress-bar variant="
|
|
336
|
+
<b-progress-bar variant="danger" :value="values[2]" striped show-progress></b-progress-bar>
|
|
350
337
|
</b-progress>
|
|
351
338
|
</div>
|
|
352
339
|
</template>
|