@gitlab/ui 49.3.0 → 49.4.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": "49.3.0",
3
+ "version": "49.4.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -22,12 +22,13 @@
22
22
  "scripts": {
23
23
  "build": "NODE_ENV=production rollup -c",
24
24
  "prebuild": "run-s build-scss-variables generate-utilities",
25
+ "prepare": "run-s build-scss-variables generate-utilities",
25
26
  "generate-utilities": "make src/scss/utilities.scss",
26
27
  "build-scss-variables": "make scss_to_js/scss_variables.js",
27
28
  "clean": "rm -r dist storybook scss_to_js/scss_variables.* src/scss/utilities.scss",
28
29
  "cy:run": "cypress run --browser firefox",
29
30
  "start": "yarn storybook",
30
- "storybook": "yarn storybook-prep && start-storybook --ci -p 9001 -c .storybook -s ./static",
31
+ "storybook": "yarn storybook-prep && start-storybook --ci --host localhost --port 9001 -c .storybook -s ./static",
31
32
  "storybook-prep": "run-s generate-utilities build-scss-variables",
32
33
  "storybook-static": "yarn storybook-prep && build-storybook -c .storybook -o storybook -s ./static",
33
34
  "pretest:unit": "yarn build-scss-variables",
@@ -56,7 +57,7 @@
56
57
  },
57
58
  "dependencies": {
58
59
  "@popperjs/core": "^2.11.2",
59
- "bootstrap-vue": "2.20.1",
60
+ "bootstrap-vue": "2.23.1",
60
61
  "dompurify": "^2.4.0",
61
62
  "echarts": "^5.3.2",
62
63
  "iframe-resizer": "^4.3.2",
@@ -101,13 +102,13 @@
101
102
  "babel-plugin-lodash": "^3.3.4",
102
103
  "babel-plugin-require-context-hook": "^1.0.0",
103
104
  "babel-preset-vue": "^2.0.2",
104
- "bootstrap": "4.5.3",
105
+ "bootstrap": "4.6.2",
105
106
  "cypress": "^10.11.0",
106
107
  "emoji-regex": "^10.0.0",
107
108
  "eslint": "8.26.0",
108
109
  "eslint-import-resolver-jest": "3.0.2",
109
110
  "eslint-plugin-cypress": "2.12.1",
110
- "eslint-plugin-storybook": "0.6.6",
111
+ "eslint-plugin-storybook": "0.6.7",
111
112
  "file-loader": "^4.2.0",
112
113
  "glob": "^7.2.0",
113
114
  "identity-obj-proxy": "^3.0.0",
@@ -115,7 +116,6 @@
115
116
  "jest": "^29.2.2",
116
117
  "jest-circus": "29.2.2",
117
118
  "jest-environment-jsdom": "29.2.2",
118
- "jest-serializer-vue": "^2.0.2",
119
119
  "markdownlint-cli": "^0.29.0",
120
120
  "mockdate": "^2.0.5",
121
121
  "npm-run-all": "^4.1.5",
@@ -97,14 +97,14 @@
97
97
 
98
98
  @include gl-badge-variant(
99
99
  $variant: muted,
100
- $color: $gray-500,
101
- $icon-color: $gray-400,
100
+ $color: $gray-600,
101
+ $icon-color: $gray-500,
102
102
  $bg: $gray-50,
103
- $hover-color: $gray-600,
104
- $hover-icon-color: $gray-500,
103
+ $hover-color: $gray-700,
104
+ $hover-icon-color: $gray-600,
105
105
  $border-color: $gray-200,
106
- $active-color: $gray-700,
107
- $active-icon-color: $gray-600,
106
+ $active-color: $gray-800,
107
+ $active-icon-color: $gray-700,
108
108
  $active-bg: $gray-100
109
109
  );
110
110
 
@@ -1,13 +1,32 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Filtered search term renders input with value in active mode 1`] = `
4
- <div data-testid="filtered-search-term" class="gl-h-auto gl-filtered-search-term">
5
- <div active="true" cursor-position="end" value="test-value" class="gl-filtered-search-term-token">test-value</div>
4
+ <div
5
+ class="gl-h-auto gl-filtered-search-term"
6
+ data-testid="filtered-search-term"
7
+ >
8
+ <div
9
+ active="true"
10
+ class="gl-filtered-search-term-token"
11
+ cursor-position="end"
12
+ value="test-value"
13
+ >
14
+ test-value
15
+ </div>
6
16
  </div>
7
17
  `;
8
18
 
9
19
  exports[`Filtered search term renders value in inactive mode 1`] = `
10
- <div data-testid="filtered-search-term" class="gl-h-auto gl-filtered-search-term">
11
- <div cursor-position="end" value="test-value" class="gl-filtered-search-term-token">test-value</div>
20
+ <div
21
+ class="gl-h-auto gl-filtered-search-term"
22
+ data-testid="filtered-search-term"
23
+ >
24
+ <div
25
+ class="gl-filtered-search-term-token"
26
+ cursor-position="end"
27
+ value="test-value"
28
+ >
29
+ test-value
30
+ </div>
12
31
  </div>
13
32
  `;
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { BFormCheckboxGroup } from 'bootstrap-vue';
3
- import formOptionsMixin from 'bootstrap-vue/src/mixins/form-options';
3
+ import { formOptionsMixin } from 'bootstrap-vue/src/mixins/form-options';
4
4
  import { SafeHtmlDirective as SafeHtml } from '../../../../directives/safe_html/safe_html';
5
5
  import GlFormCheckbox from './form_checkbox.vue';
6
6
 
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { BFormRadioGroup } from 'bootstrap-vue';
3
- import formOptionsMixin from 'bootstrap-vue/src/mixins/form-options';
3
+ import { formOptionsMixin } from 'bootstrap-vue/src/mixins/form-options';
4
4
  import { SafeHtmlDirective as SafeHtml } from '../../../../directives/safe_html/safe_html';
5
5
  import GlFormRadio from '../form_radio/form_radio.vue';
6
6
 
@@ -1,7 +1,14 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Icon component when created shows svg class "s8" and path "/path/to/icons.svg#check-circle" 1`] = `
4
- <svg data-testid="check-circle-icon" role="img" aria-hidden="true" class="gl-icon s8">
5
- <use href="/path/to/icons.svg#check-circle"></use>
4
+ <svg
5
+ aria-hidden="true"
6
+ class="gl-icon s8"
7
+ data-testid="check-circle-icon"
8
+ role="img"
9
+ >
10
+ <use
11
+ href="/path/to/icons.svg#check-circle"
12
+ />
6
13
  </svg>
7
14
  `;
@@ -5,13 +5,11 @@ exports[`Paginated List Pagination renders 1 item on page 7 with page size of 2
5
5
  <div
6
6
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
7
7
  >
8
-
9
8
  <gl-search-box-by-type-stub
10
9
  clearbuttontitle="Clear"
11
10
  value=""
12
11
  />
13
12
  </div>
14
-
15
13
  <ul
16
14
  class="list-group list-group-flush list-unstyled"
17
15
  >
@@ -29,7 +27,6 @@ exports[`Paginated List Pagination renders 1 item on page 7 with page size of 2
29
27
  </div>
30
28
  </li>
31
29
  </ul>
32
-
33
30
  <gl-pagination-stub
34
31
  align="left"
35
32
  class="d-flex justify-content-center prepend-top-default"
@@ -46,8 +43,6 @@ exports[`Paginated List Pagination renders 1 item on page 7 with page size of 2
46
43
  totalitems="13"
47
44
  value="7"
48
45
  />
49
-
50
- <!---->
51
46
  </div>
52
47
  `;
53
48
 
@@ -56,13 +51,11 @@ exports[`Paginated List Pagination renders 3 items on page 2 with default page s
56
51
  <div
57
52
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
58
53
  >
59
-
60
54
  <gl-search-box-by-type-stub
61
55
  clearbuttontitle="Clear"
62
56
  value=""
63
57
  />
64
58
  </div>
65
-
66
59
  <ul
67
60
  class="list-group list-group-flush list-unstyled"
68
61
  >
@@ -106,7 +99,6 @@ exports[`Paginated List Pagination renders 3 items on page 2 with default page s
106
99
  </div>
107
100
  </li>
108
101
  </ul>
109
-
110
102
  <gl-pagination-stub
111
103
  align="left"
112
104
  class="d-flex justify-content-center prepend-top-default"
@@ -123,8 +115,6 @@ exports[`Paginated List Pagination renders 3 items on page 2 with default page s
123
115
  totalitems="13"
124
116
  value="2"
125
117
  />
126
-
127
- <!---->
128
118
  </div>
129
119
  `;
130
120
 
@@ -133,13 +123,11 @@ exports[`Paginated List Pagination renders 5 items on page 1 for a page size of
133
123
  <div
134
124
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
135
125
  >
136
-
137
126
  <gl-search-box-by-type-stub
138
127
  clearbuttontitle="Clear"
139
128
  value=""
140
129
  />
141
130
  </div>
142
-
143
131
  <ul
144
132
  class="list-group list-group-flush list-unstyled"
145
133
  >
@@ -209,7 +197,6 @@ exports[`Paginated List Pagination renders 5 items on page 1 for a page size of
209
197
  </div>
210
198
  </li>
211
199
  </ul>
212
-
213
200
  <gl-pagination-stub
214
201
  align="left"
215
202
  class="d-flex justify-content-center prepend-top-default"
@@ -226,8 +213,6 @@ exports[`Paginated List Pagination renders 5 items on page 1 for a page size of
226
213
  totalitems="13"
227
214
  value="1"
228
215
  />
229
-
230
- <!---->
231
216
  </div>
232
217
  `;
233
218
 
@@ -236,13 +221,11 @@ exports[`Paginated List Pagination renders 10 items for a default page size of 1
236
221
  <div
237
222
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
238
223
  >
239
-
240
224
  <gl-search-box-by-type-stub
241
225
  clearbuttontitle="Clear"
242
226
  value=""
243
227
  />
244
228
  </div>
245
-
246
229
  <ul
247
230
  class="list-group list-group-flush list-unstyled"
248
231
  >
@@ -377,7 +360,6 @@ exports[`Paginated List Pagination renders 10 items for a default page size of 1
377
360
  </div>
378
361
  </li>
379
362
  </ul>
380
-
381
363
  <gl-pagination-stub
382
364
  align="left"
383
365
  class="d-flex justify-content-center prepend-top-default"
@@ -394,8 +376,6 @@ exports[`Paginated List Pagination renders 10 items for a default page size of 1
394
376
  totalitems="13"
395
377
  value="1"
396
378
  />
397
-
398
- <!---->
399
379
  </div>
400
380
  `;
401
381
 
@@ -404,13 +384,11 @@ exports[`Paginated List Pagination renders 13 items for a default page size of 2
404
384
  <div
405
385
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
406
386
  >
407
-
408
387
  <gl-search-box-by-type-stub
409
388
  clearbuttontitle="Clear"
410
389
  value=""
411
390
  />
412
391
  </div>
413
-
414
392
  <ul
415
393
  class="list-group list-group-flush list-unstyled"
416
394
  >
@@ -584,7 +562,6 @@ exports[`Paginated List Pagination renders 13 items for a default page size of 2
584
562
  </div>
585
563
  </li>
586
564
  </ul>
587
-
588
565
  <gl-pagination-stub
589
566
  align="left"
590
567
  class="d-flex justify-content-center prepend-top-default"
@@ -601,8 +578,6 @@ exports[`Paginated List Pagination renders 13 items for a default page size of 2
601
578
  totalitems="13"
602
579
  value="1"
603
580
  />
604
-
605
- <!---->
606
581
  </div>
607
582
  `;
608
583
 
@@ -611,19 +586,14 @@ exports[`Paginated List Search states renders the custom empty search message wh
611
586
  <div
612
587
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
613
588
  >
614
-
615
589
  <gl-search-box-by-type-stub
616
590
  clearbuttontitle="Clear"
617
591
  value=""
618
592
  />
619
593
  </div>
620
-
621
594
  <ul
622
595
  class="list-group list-group-flush list-unstyled"
623
596
  />
624
-
625
- <!---->
626
-
627
597
  <div
628
598
  class="bs-callout bs-callout-warning mt-3 empty-message empty-search"
629
599
  >
@@ -639,19 +609,14 @@ exports[`Paginated List Search states renders the default empty search message w
639
609
  <div
640
610
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
641
611
  >
642
-
643
612
  <gl-search-box-by-type-stub
644
613
  clearbuttontitle="Clear"
645
614
  value=""
646
615
  />
647
616
  </div>
648
-
649
617
  <ul
650
618
  class="list-group list-group-flush list-unstyled"
651
619
  />
652
-
653
- <!---->
654
-
655
620
  <div
656
621
  class="bs-callout bs-callout-warning mt-3 empty-message empty-search"
657
622
  >
@@ -667,13 +632,11 @@ exports[`Paginated List Search states renders the list filtered by search result
667
632
  <div
668
633
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
669
634
  >
670
-
671
635
  <gl-search-box-by-type-stub
672
636
  clearbuttontitle="Clear"
673
637
  value=""
674
638
  />
675
639
  </div>
676
-
677
640
  <ul
678
641
  class="list-group list-group-flush list-unstyled"
679
642
  >
@@ -704,7 +667,6 @@ exports[`Paginated List Search states renders the list filtered by search result
704
667
  </div>
705
668
  </li>
706
669
  </ul>
707
-
708
670
  <gl-pagination-stub
709
671
  align="left"
710
672
  class="d-flex justify-content-center prepend-top-default"
@@ -721,8 +683,6 @@ exports[`Paginated List Search states renders the list filtered by search result
721
683
  totalitems="2"
722
684
  value="1"
723
685
  />
724
-
725
- <!---->
726
686
  </div>
727
687
  `;
728
688
 
@@ -731,19 +691,14 @@ exports[`Paginated List Searchless states renders the list in an empty state wit
731
691
  <div
732
692
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
733
693
  >
734
-
735
694
  <gl-search-box-by-type-stub
736
695
  clearbuttontitle="Clear"
737
696
  value=""
738
697
  />
739
698
  </div>
740
-
741
699
  <ul
742
700
  class="list-group list-group-flush list-unstyled"
743
701
  />
744
-
745
- <!---->
746
-
747
702
  <div
748
703
  class="bs-callout bs-callout-warning mt-3 empty-message empty-message"
749
704
  >
@@ -759,19 +714,14 @@ exports[`Paginated List Searchless states renders the list in an empty state, wh
759
714
  <div
760
715
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
761
716
  >
762
-
763
717
  <gl-search-box-by-type-stub
764
718
  clearbuttontitle="Clear"
765
719
  value=""
766
720
  />
767
721
  </div>
768
-
769
722
  <ul
770
723
  class="list-group list-group-flush list-unstyled"
771
724
  />
772
-
773
- <!---->
774
-
775
725
  <div
776
726
  class="bs-callout bs-callout-warning mt-3 empty-message empty-message"
777
727
  >
@@ -787,13 +737,11 @@ exports[`Paginated List Searchless states renders the list with nested items, wh
787
737
  <div
788
738
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
789
739
  >
790
-
791
740
  <gl-search-box-by-type-stub
792
741
  clearbuttontitle="Clear"
793
742
  value=""
794
743
  />
795
744
  </div>
796
-
797
745
  <ul
798
746
  class="list-group list-group-flush list-unstyled"
799
747
  >
@@ -824,7 +772,6 @@ exports[`Paginated List Searchless states renders the list with nested items, wh
824
772
  </div>
825
773
  </li>
826
774
  </ul>
827
-
828
775
  <gl-pagination-stub
829
776
  align="left"
830
777
  class="d-flex justify-content-center prepend-top-default"
@@ -841,8 +788,6 @@ exports[`Paginated List Searchless states renders the list with nested items, wh
841
788
  totalitems="2"
842
789
  value="1"
843
790
  />
844
-
845
- <!---->
846
791
  </div>
847
792
  `;
848
793
 
@@ -851,13 +796,11 @@ exports[`Paginated List props filter filters on default "id" key 1`] = `
851
796
  <div
852
797
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
853
798
  >
854
-
855
799
  <gl-search-box-by-type-stub
856
800
  clearbuttontitle="Clear"
857
801
  value=""
858
802
  />
859
803
  </div>
860
-
861
804
  <ul
862
805
  class="list-group list-group-flush list-unstyled"
863
806
  >
@@ -875,7 +818,6 @@ exports[`Paginated List props filter filters on default "id" key 1`] = `
875
818
  </div>
876
819
  </li>
877
820
  </ul>
878
-
879
821
  <gl-pagination-stub
880
822
  align="left"
881
823
  class="d-flex justify-content-center prepend-top-default"
@@ -892,8 +834,6 @@ exports[`Paginated List props filter filters on default "id" key 1`] = `
892
834
  totalitems="1"
893
835
  value="1"
894
836
  />
895
-
896
- <!---->
897
837
  </div>
898
838
  `;
899
839
 
@@ -902,13 +842,11 @@ exports[`Paginated List props filter filters on provided "myKey" key 1`] = `
902
842
  <div
903
843
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
904
844
  >
905
-
906
845
  <gl-search-box-by-type-stub
907
846
  clearbuttontitle="Clear"
908
847
  value=""
909
848
  />
910
849
  </div>
911
-
912
850
  <ul
913
851
  class="list-group list-group-flush list-unstyled"
914
852
  >
@@ -926,7 +864,6 @@ exports[`Paginated List props filter filters on provided "myKey" key 1`] = `
926
864
  </div>
927
865
  </li>
928
866
  </ul>
929
-
930
867
  <gl-pagination-stub
931
868
  align="left"
932
869
  class="d-flex justify-content-center prepend-top-default"
@@ -943,8 +880,6 @@ exports[`Paginated List props filter filters on provided "myKey" key 1`] = `
943
880
  totalitems="1"
944
881
  value="1"
945
882
  />
946
-
947
- <!---->
948
883
  </div>
949
884
  `;
950
885
 
@@ -953,13 +888,11 @@ exports[`Paginated List props filter filters with provided filter function 1`] =
953
888
  <div
954
889
  class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"
955
890
  >
956
-
957
891
  <gl-search-box-by-type-stub
958
892
  clearbuttontitle="Clear"
959
893
  value=""
960
894
  />
961
895
  </div>
962
-
963
896
  <ul
964
897
  class="list-group list-group-flush list-unstyled"
965
898
  >
@@ -977,7 +910,6 @@ exports[`Paginated List props filter filters with provided filter function 1`] =
977
910
  </div>
978
911
  </li>
979
912
  </ul>
980
-
981
913
  <gl-pagination-stub
982
914
  align="left"
983
915
  class="d-flex justify-content-center prepend-top-default"
@@ -994,7 +926,5 @@ exports[`Paginated List props filter filters with provided filter function 1`] =
994
926
  totalitems="1"
995
927
  value="1"
996
928
  />
997
-
998
- <!---->
999
929
  </div>
1000
930
  `;