@gitlab/ui 32.66.0 → 33.0.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/components/base/datepicker/datepicker.js +4 -1
  3. package/dist/components/base/dropdown/dropdown.js +4 -4
  4. package/dist/components/base/filtered_search/filtered_search.js +5 -2
  5. package/dist/components/base/filtered_search/filtered_search_token.js +12 -8
  6. package/dist/components/base/filtered_search/filtered_search_token_segment.js +6 -5
  7. package/dist/components/base/form/form_checkbox_tree/models/node.js +9 -8
  8. package/dist/components/base/form/form_checkbox_tree/models/tree.js +21 -10
  9. package/dist/components/base/form/form_input/form_input.js +14 -4
  10. package/dist/components/base/form/form_textarea/form_textarea.js +14 -4
  11. package/dist/components/base/infinite_scroll/infinite_scroll.documentation.js +2 -33
  12. package/dist/components/base/infinite_scroll/infinite_scroll.js +21 -3
  13. package/dist/components/base/pagination/pagination.js +2 -1
  14. package/dist/components/base/path/path.js +6 -5
  15. package/dist/components/base/segmented_control/segmented_control.js +9 -4
  16. package/dist/components/base/skeleton_loader/skeleton_loader.js +6 -4
  17. package/dist/components/base/sorting/sorting_item.js +6 -5
  18. package/dist/components/base/table/table.js +5 -4
  19. package/dist/components/base/tabs/tabs/scrollable_tabs.js +6 -5
  20. package/dist/components/base/toast/toast.js +2 -1
  21. package/dist/components/base/token_selector/token_container.js +2 -1
  22. package/dist/components/base/token_selector/token_selector.js +2 -1
  23. package/dist/components/charts/bar/bar.js +2 -1
  24. package/dist/components/charts/column/column.documentation.js +1 -7
  25. package/dist/components/charts/column/column.js +17 -14
  26. package/dist/components/charts/gauge/gauge.js +45 -42
  27. package/dist/components/charts/sparkline/sparkline.js +6 -4
  28. package/dist/components/charts/stacked_column/stacked_column.js +17 -14
  29. package/dist/components/utilities/friendly_wrap/friendly_wrap.js +4 -3
  30. package/dist/components/utilities/sprintf/sprintf.js +4 -2
  31. package/dist/directives/hover_load/hover_load.js +5 -3
  32. package/dist/directives/outside/outside.js +12 -8
  33. package/dist/directives/resize_observer/examples/resize_observer.basic.example.js +7 -6
  34. package/dist/directives/resize_observer/resize_observer.js +12 -8
  35. package/dist/directives/safe_link/safe_link.js +12 -6
  36. package/dist/index.css +1 -1
  37. package/dist/index.css.map +1 -1
  38. package/dist/utility_classes.css +1 -1
  39. package/dist/utility_classes.css.map +1 -1
  40. package/dist/utils/charts/config.js +95 -72
  41. package/dist/utils/charts/story_config.js +4 -2
  42. package/dist/utils/charts/theme.js +106 -103
  43. package/dist/utils/charts/utils.js +14 -6
  44. package/dist/utils/number_utils.js +14 -5
  45. package/dist/utils/use_mock_intersection_observer.js +31 -11
  46. package/dist/utils/utils.js +15 -4
  47. package/dist/utils/validation_utils.js +3 -1
  48. package/documentation/documented_stories.js +2 -0
  49. package/package.json +14 -13
  50. package/scss_to_js/scss_variables.js +1 -0
  51. package/scss_to_js/scss_variables.json +5 -0
  52. package/src/components/base/infinite_scroll/infinite_scroll.documentation.js +0 -38
  53. package/src/components/base/infinite_scroll/infinite_scroll.md +0 -4
  54. package/src/components/base/infinite_scroll/infinite_scroll.stories.js +49 -24
  55. package/src/components/base/infinite_scroll/infinite_scroll.vue +18 -0
  56. package/src/components/base/search_box_by_click/search_box_by_click.scss +4 -0
  57. package/src/components/base/search_box_by_type/search_box_by_type.scss +4 -0
  58. package/src/components/charts/column/column.documentation.js +0 -5
  59. package/src/components/charts/column/column.stories.js +61 -88
  60. package/src/scss/utilities.scss +44 -26
  61. package/src/scss/utility-mixins/flex.scss +1 -8
  62. package/src/scss/utility-mixins/sizing.scss +20 -0
  63. package/src/scss/utility-mixins/spacing.scss +1 -7
  64. package/src/scss/variables.scss +1 -0
  65. package/dist/components/charts/column/examples/column.basic.example.js +0 -49
  66. package/dist/components/charts/column/examples/index.js +0 -13
  67. package/src/components/charts/column/column.md +0 -1
  68. package/src/components/charts/column/examples/column.basic.example.vue +0 -22
  69. package/src/components/charts/column/examples/index.js +0 -15
@@ -2908,18 +2908,6 @@
2908
2908
  }
2909
2909
  }
2910
2910
 
2911
- .gl-flex-sm-wrap {
2912
- @include gl-media-breakpoint-up(sm) {
2913
- flex-wrap: wrap;
2914
- }
2915
- }
2916
-
2917
- .gl-flex-sm-wrap\! {
2918
- @include gl-media-breakpoint-up(sm) {
2919
- flex-wrap: wrap !important;
2920
- }
2921
- }
2922
-
2923
2911
  .gl-flex-nowrap {
2924
2912
  flex-wrap: nowrap;
2925
2913
  }
@@ -3196,13 +3184,13 @@
3196
3184
  justify-content: flex-start !important;
3197
3185
  }
3198
3186
 
3199
- .gl-justify-content-md-start {
3187
+ .gl-md-justify-content-start {
3200
3188
  @include gl-media-breakpoint-up(md) {
3201
3189
  justify-content: flex-start;
3202
3190
  }
3203
3191
  }
3204
3192
 
3205
- .gl-justify-content-md-start\! {
3193
+ .gl-md-justify-content-start\! {
3206
3194
  @include gl-media-breakpoint-up(md) {
3207
3195
  justify-content: flex-start !important;
3208
3196
  }
@@ -3967,6 +3955,14 @@
3967
3955
  width: $gl-spacing-scale-20 !important;
3968
3956
  }
3969
3957
 
3958
+ .gl-w-28 {
3959
+ width: $gl-spacing-scale-28;
3960
+ }
3961
+
3962
+ .gl-w-28\! {
3963
+ width: $gl-spacing-scale-28 !important;
3964
+ }
3965
+
3970
3966
  .gl-w-eighth {
3971
3967
  width: 12.5%;
3972
3968
  }
@@ -4339,6 +4335,14 @@
4339
4335
  min-width: $gl-spacing-scale-8 !important;
4340
4336
  }
4341
4337
 
4338
+ .gl-min-w-9 {
4339
+ min-width: $gl-spacing-scale-9;
4340
+ }
4341
+
4342
+ .gl-min-w-9\! {
4343
+ min-width: $gl-spacing-scale-9 !important;
4344
+ }
4345
+
4342
4346
  .gl-min-w-10 {
4343
4347
  min-width: $gl-spacing-scale-10;
4344
4348
  }
@@ -4459,6 +4463,18 @@
4459
4463
  max-width: 100vw !important;
4460
4464
  }
4461
4465
 
4466
+ .gl-md-max-w-15p {
4467
+ @include gl-media-breakpoint-up(md) {
4468
+ max-width: 15%;
4469
+ }
4470
+ }
4471
+
4472
+ .gl-md-max-w-15p\! {
4473
+ @include gl-media-breakpoint-up(md) {
4474
+ max-width: 15% !important;
4475
+ }
4476
+ }
4477
+
4462
4478
  .gl-md-max-w-30p {
4463
4479
  @include gl-media-breakpoint-up(md) {
4464
4480
  max-width: 30%;
@@ -4494,6 +4510,18 @@
4494
4510
  max-width: 70% !important;
4495
4511
  }
4496
4512
  }
4513
+
4514
+ .gl-lg-max-w-80p {
4515
+ @include gl-media-breakpoint-up(lg) {
4516
+ max-width: 80%;
4517
+ }
4518
+ }
4519
+
4520
+ .gl-lg-max-w-80p\! {
4521
+ @include gl-media-breakpoint-up(lg) {
4522
+ max-width: 80% !important;
4523
+ }
4524
+ }
4497
4525
  .gl-p-0 {
4498
4526
  padding: 0;
4499
4527
  }
@@ -4796,16 +4824,6 @@
4796
4824
  .gl-pt-2\! {
4797
4825
  padding-top: $gl-spacing-scale-2 !important;
4798
4826
  }
4799
- .gl-pt-md-2 {
4800
- @include gl-media-breakpoint-up(md) {
4801
- padding-top: $gl-spacing-scale-2;
4802
- }
4803
- }
4804
- .gl-pt-md-2\! {
4805
- @include gl-media-breakpoint-up(md) {
4806
- padding-top: $gl-spacing-scale-2 !important;
4807
- }
4808
- }
4809
4827
  .gl-pt-3 {
4810
4828
  padding-top: $gl-spacing-scale-3;
4811
4829
  }
@@ -5068,12 +5086,12 @@
5068
5086
  .gl-mt-n1\! {
5069
5087
  margin-top: -$gl-spacing-scale-1 !important;
5070
5088
  }
5071
- .gl-mt-md-n2 {
5089
+ .gl-md-mt-n2 {
5072
5090
  @include gl-media-breakpoint-up(md) {
5073
5091
  margin-top: -$gl-spacing-scale-2;
5074
5092
  }
5075
5093
  }
5076
- .gl-mt-md-n2\! {
5094
+ .gl-md-mt-n2\! {
5077
5095
  @include gl-media-breakpoint-up(md) {
5078
5096
  margin-top: -$gl-spacing-scale-2 !important;
5079
5097
  }
@@ -79,13 +79,6 @@
79
79
  }
80
80
  }
81
81
 
82
- // Deprecated, prefer `gl-sm-flex-wrap`
83
- @mixin gl-flex-sm-wrap {
84
- @include gl-media-breakpoint-up(sm) {
85
- @include gl-flex-wrap;
86
- }
87
- }
88
-
89
82
  @mixin gl-flex-nowrap {
90
83
  flex-wrap: nowrap;
91
84
  }
@@ -224,7 +217,7 @@
224
217
  justify-content: flex-start;
225
218
  }
226
219
 
227
- @mixin gl-justify-content-md-start {
220
+ @mixin gl-md-justify-content-start {
228
221
  @include gl-media-breakpoint-up(md) {
229
222
  @include gl-justify-content-start;
230
223
  }
@@ -65,6 +65,10 @@
65
65
  width: $gl-spacing-scale-20;
66
66
  }
67
67
 
68
+ @mixin gl-w-28 {
69
+ width: $gl-spacing-scale-28;
70
+ }
71
+
68
72
  @mixin gl-w-eighth {
69
73
  width: 12.5%;
70
74
  }
@@ -267,6 +271,10 @@
267
271
  min-width: $gl-spacing-scale-8;
268
272
  }
269
273
 
274
+ @mixin gl-min-w-9 {
275
+ min-width: $gl-spacing-scale-9;
276
+ }
277
+
270
278
  @mixin gl-min-w-10 {
271
279
  min-width: $gl-spacing-scale-10;
272
280
  }
@@ -335,6 +343,12 @@
335
343
  * - Utilities should strictly follow $gl-spacing-scale
336
344
  */
337
345
 
346
+ @mixin gl-md-max-w-15p {
347
+ @include gl-media-breakpoint-up(md) {
348
+ max-width: 15%;
349
+ }
350
+ }
351
+
338
352
  @mixin gl-md-max-w-30p {
339
353
  @include gl-media-breakpoint-up(md) {
340
354
  max-width: 30%;
@@ -352,3 +366,9 @@
352
366
  max-width: 70%;
353
367
  }
354
368
  }
369
+
370
+ @mixin gl-lg-max-w-80p {
371
+ @include gl-media-breakpoint-up(lg) {
372
+ max-width: 80%;
373
+ }
374
+ }
@@ -202,12 +202,6 @@
202
202
  padding-top: $gl-spacing-scale-2;
203
203
  }
204
204
 
205
- @mixin gl-pt-md-2 {
206
- @include gl-media-breakpoint-up(md) {
207
- padding-top: $gl-spacing-scale-2;
208
- }
209
- }
210
-
211
205
  @mixin gl-pt-3 {
212
206
  padding-top: $gl-spacing-scale-3;
213
207
  }
@@ -386,7 +380,7 @@
386
380
  margin-top: -$gl-spacing-scale-1;
387
381
  }
388
382
 
389
- @mixin gl-mt-md-n2 {
383
+ @mixin gl-md-mt-n2 {
390
384
  @include gl-media-breakpoint-up(md) {
391
385
  margin-top: -$gl-spacing-scale-2;
392
386
  }
@@ -19,6 +19,7 @@ $gl-spacing-scale-13: 12 * $grid-size;
19
19
  $gl-spacing-scale-15: 15 * $grid-size;
20
20
  $gl-spacing-scale-20: 20 * $grid-size;
21
21
  $gl-spacing-scale-26: 26 * $grid-size;
22
+ $gl-spacing-scale-28: 28 * $grid-size;
22
23
  $gl-spacing-scale-62: 62 * $grid-size;
23
24
 
24
25
  // Responsive breakpoints
@@ -1,49 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- /* script */
4
-
5
- /* template */
6
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-column-chart',{attrs:{"bars":[
7
- {
8
- name: 'Full',
9
- data: [
10
- ['Joe', 1220],
11
- ['Sarah', 932],
12
- ['Tom', 901],
13
- ['Mary', 934],
14
- ['Mike', 1290],
15
- ['Ben', 1330],
16
- ['Jane', 1320] ],
17
- } ],"option":{},"y-axis-title":"Pushes by day","x-axis-title":"User","x-axis-type":"category"}})};
18
- var __vue_staticRenderFns__ = [];
19
-
20
- /* style */
21
- const __vue_inject_styles__ = undefined;
22
- /* scoped */
23
- const __vue_scope_id__ = undefined;
24
- /* module identifier */
25
- const __vue_module_identifier__ = undefined;
26
- /* functional template */
27
- const __vue_is_functional_template__ = false;
28
- /* style inject */
29
-
30
- /* style inject SSR */
31
-
32
- /* style inject shadow dom */
33
-
34
-
35
-
36
- const __vue_component__ = __vue_normalize__(
37
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
38
- __vue_inject_styles__,
39
- {},
40
- __vue_scope_id__,
41
- __vue_is_functional_template__,
42
- __vue_module_identifier__,
43
- false,
44
- undefined,
45
- undefined,
46
- undefined
47
- );
48
-
49
- export default __vue_component__;
@@ -1,13 +0,0 @@
1
- import ColumnChartBasicExample from './column.basic.example';
2
-
3
- var index = [{
4
- name: 'Basic',
5
- items: [{
6
- id: 'column-basic',
7
- name: 'Basic',
8
- description: 'Basic Column Chart',
9
- component: ColumnChartBasicExample
10
- }]
11
- }];
12
-
13
- export default index;
@@ -1 +0,0 @@
1
- ### Column Chart
@@ -1,22 +0,0 @@
1
- <template>
2
- <gl-column-chart
3
- :bars="[
4
- {
5
- name: 'Full',
6
- data: [
7
- ['Joe', 1220],
8
- ['Sarah', 932],
9
- ['Tom', 901],
10
- ['Mary', 934],
11
- ['Mike', 1290],
12
- ['Ben', 1330],
13
- ['Jane', 1320],
14
- ],
15
- },
16
- ]"
17
- :option="{}"
18
- y-axis-title="Pushes by day"
19
- x-axis-title="User"
20
- x-axis-type="category"
21
- />
22
- </template>
@@ -1,15 +0,0 @@
1
- import ColumnChartBasicExample from './column.basic.example.vue';
2
-
3
- export default [
4
- {
5
- name: 'Basic',
6
- items: [
7
- {
8
- id: 'column-basic',
9
- name: 'Basic',
10
- description: 'Basic Column Chart',
11
- component: ColumnChartBasicExample,
12
- },
13
- ],
14
- },
15
- ];