@gitlab/ui 128.13.1 → 128.13.3

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 (71) hide show
  1. package/dist/components/base/toast/toast.js +26 -24
  2. package/dist/components/base/toggle/toggle.js +9 -8
  3. package/dist/index.css +1 -1
  4. package/dist/index.css.map +1 -1
  5. package/dist/tokens/build/js/tokens.dark.js +2 -2
  6. package/dist/tokens/build/js/tokens.js +2 -2
  7. package/dist/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.js +17 -3
  8. package/dist/vendor/bootstrap-vue/src/components/toast/toast.js +6 -1
  9. package/package.json +4 -4
  10. package/src/components/base/alert/alert.scss +11 -6
  11. package/src/components/base/animated_icon/animated_icon.scss +31 -20
  12. package/src/components/base/avatar/avatar.scss +8 -9
  13. package/src/components/base/avatars_inline/avatars_inline.scss +12 -4
  14. package/src/components/base/breadcrumb/breadcrumb.scss +2 -2
  15. package/src/components/base/button/button.scss +16 -14
  16. package/src/components/base/button_group/button_group.scss +9 -9
  17. package/src/components/base/datepicker/datepicker.scss +6 -6
  18. package/src/components/base/drawer/drawer.scss +2 -2
  19. package/src/components/base/dropdown/dropdown.scss +4 -4
  20. package/src/components/base/dropdown/dropdown_divider.scss +1 -1
  21. package/src/components/base/form/form_checkbox/form_checkbox.scss +12 -12
  22. package/src/components/base/form/form_combobox/form_combobox.scss +3 -2
  23. package/src/components/base/form/form_input/form_input.scss +3 -1
  24. package/src/components/base/form/form_select/form_select.scss +2 -2
  25. package/src/components/base/label/label.scss +5 -2
  26. package/src/components/base/link/link.scss +1 -1
  27. package/src/components/base/loading_icon/loading_icon.scss +1 -1
  28. package/src/components/base/markdown/markdown.scss +1 -1
  29. package/src/components/base/new_dropdowns/dropdown.scss +15 -3
  30. package/src/components/base/new_dropdowns/dropdown_item.scss +3 -2
  31. package/src/components/base/pagination/pagination.scss +5 -4
  32. package/src/components/base/path/path.scss +8 -3
  33. package/src/components/base/progress_bar/progress_bar.scss +2 -2
  34. package/src/components/base/table/table.scss +4 -4
  35. package/src/components/base/tabs/tabs/tabs.scss +7 -6
  36. package/src/components/base/toast/toast.js +31 -29
  37. package/src/components/base/toast/toast.scss +2 -2
  38. package/src/components/base/toggle/toggle.vue +45 -46
  39. package/src/components/charts/legend/legend.scss +12 -8
  40. package/src/components/charts/single_stat/single_stat.scss +2 -2
  41. package/src/components/dashboards/dashboard_layout/grid_layout/grid_layout.scss +1 -1
  42. package/src/components/regions/empty_state/empty_state.scss +1 -1
  43. package/src/components/utilities/truncate/truncate.scss +1 -1
  44. package/src/scss/bootstrap.scss +34 -34
  45. package/src/scss/bootstrap_vue.scss +10 -10
  46. package/src/scss/components.scss +77 -77
  47. package/src/scss/fonts.scss +10 -10
  48. package/src/scss/functions.scss +6 -6
  49. package/src/scss/gitlab_ui.scss +10 -10
  50. package/src/scss/mixins.scss +23 -23
  51. package/src/scss/storybook.scss +14 -15
  52. package/src/scss/tokens.scss +2 -2
  53. package/src/scss/typescale/_index.scss +1 -1
  54. package/src/scss/typescale/typescale_demo.scss +4 -4
  55. package/src/scss/typography.scss +16 -6
  56. package/src/scss/variables.scss +29 -14
  57. package/src/tokens/build/css/tokens.css +2 -2
  58. package/src/tokens/build/css/tokens.dark.css +2 -2
  59. package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +4 -0
  60. package/src/tokens/build/docs/tokens-tailwind-docs.json +4 -0
  61. package/src/tokens/build/figma/constants.dark.json +2 -2
  62. package/src/tokens/build/figma/constants.json +2 -2
  63. package/src/tokens/build/js/tokens.dark.js +2 -0
  64. package/src/tokens/build/js/tokens.js +2 -0
  65. package/src/tokens/build/json/tokens.dark.json +4 -0
  66. package/src/tokens/build/json/tokens.json +4 -0
  67. package/src/tokens/build/scss/_tokens.dark.scss +2 -2
  68. package/src/tokens/build/scss/_tokens.scss +2 -2
  69. package/src/tokens/constant/font.tokens.json +2 -0
  70. package/src/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.js +19 -3
  71. package/src/vendor/bootstrap-vue/src/components/toast/toast.js +6 -1
@@ -1,5 +1,15 @@
1
- h1, h2, h3, h4, h5, h6,
2
- .h1, .h2, .h3, .h4, .h5, .h6 {
1
+ h1,
2
+ h2,
3
+ h3,
4
+ h4,
5
+ h5,
6
+ h6,
7
+ .h1,
8
+ .h2,
9
+ .h3,
10
+ .h4,
11
+ .h5,
12
+ .h6 {
3
13
  @apply gl-text-heading;
4
14
  }
5
15
 
@@ -25,7 +35,7 @@ pre {
25
35
  }
26
36
 
27
37
  kbd {
28
- @apply gl-inline-block gl-text-default gl-bg-subtle gl-border gl-border-b-strong gl-leading-1;
38
+ @apply gl-border gl-inline-block gl-border-b-strong gl-bg-subtle gl-leading-1 gl-text-default;
29
39
  font-size: 87.5%;
30
40
  padding: 3px 5px;
31
41
  vertical-align: unset;
@@ -35,15 +45,15 @@ kbd {
35
45
  }
36
46
 
37
47
  .table {
38
- @apply gl-w-full gl-mb-3 gl-text-default gl-bg-transparent;
48
+ @apply gl-mb-3 gl-w-full gl-bg-transparent gl-text-default;
39
49
 
40
50
  th,
41
51
  td {
42
- @apply gl-p-4 gl-align-top gl-border-t;
52
+ @apply gl-border-t gl-p-4 gl-align-top;
43
53
  }
44
54
 
45
55
  thead th {
46
- @apply gl-align-bottom gl-border-b gl-border-b-2;
56
+ @apply gl-border-b gl-border-b-2 gl-align-bottom;
47
57
  }
48
58
 
49
59
  tbody + tbody {
@@ -1,6 +1,6 @@
1
- @use 'sass:map';
2
- @import 'functions';
3
- @import '../tokens/build/scss/tokens';
1
+ @use "sass:map";
2
+ @import "functions";
3
+ @import "../tokens/build/scss/tokens";
4
4
 
5
5
  // Layout
6
6
  $grid-size: px-to-rem(8px);
@@ -45,20 +45,33 @@ $gl-font-weight-semibold: 500;
45
45
  $gl-font-weight-bold: 600;
46
46
 
47
47
  $gl-font-weights: (
48
- 'normal': $gl-font-weight-normal,
49
- 'bold': $gl-font-weight-bold,
48
+ "normal": $gl-font-weight-normal,
49
+ "bold": $gl-font-weight-bold,
50
50
  );
51
51
 
52
52
  // Fonts
53
- $gl-monospace-font: 'GitLab Mono', 'JetBrains Mono', 'Menlo', 'DejaVu Sans Mono', 'Liberation Mono',
54
- 'Consolas', 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace !default;
55
- $gl-regular-font: 'GitLab Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans',
56
- Ubuntu, Cantarell, 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
57
- 'Segoe UI Symbol', 'Noto Color Emoji' !default;
53
+ $gl-monospace-font:
54
+ "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas",
55
+ "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace !default;
56
+ $gl-regular-font:
57
+ "GitLab Sans",
58
+ -apple-system,
59
+ BlinkMacSystemFont,
60
+ "Segoe UI",
61
+ Roboto,
62
+ "Noto Sans",
63
+ Ubuntu,
64
+ Cantarell,
65
+ "Helvetica Neue",
66
+ sans-serif,
67
+ "Apple Color Emoji",
68
+ "Segoe UI Emoji",
69
+ "Segoe UI Symbol",
70
+ "Noto Color Emoji" !default;
58
71
 
59
72
  $gl-fonts: (
60
- 'monospace': $gl-monospace-font,
61
- 'regular': $gl-regular-font,
73
+ "monospace": $gl-monospace-font,
74
+ "regular": $gl-regular-font,
62
75
  );
63
76
 
64
77
  // New UI type scale
@@ -195,9 +208,11 @@ $gl-easing-out-cubic: cubic-bezier(0.22, 0.61, 0.36, 1);
195
208
  $outline-offset: 1px;
196
209
  $outline-width: 2px;
197
210
  $outline: #{$outline-offset + $outline-width};
198
- $focus-ring: 0 0 0 $outline-offset var(--gl-focus-ring-inner-color),
211
+ $focus-ring:
212
+ 0 0 0 $outline-offset var(--gl-focus-ring-inner-color),
199
213
  0 0 0 #{$outline-offset + $outline-width} var(--gl-focus-ring-outer-color);
200
- $focus-ring-inset: inset 0 0 0 #{$outline-width + $outline-offset} var(--gl-focus-ring-inner-color),
214
+ $focus-ring-inset:
215
+ inset 0 0 0 #{$outline-width + $outline-offset} var(--gl-focus-ring-inner-color),
201
216
  inset 0 0 0 $outline-offset var(--gl-focus-ring-inner-color);
202
217
  $focus-ring-outline: $outline-width solid var(--gl-focus-ring-outer-color);
203
218
 
@@ -230,8 +230,8 @@
230
230
  --gl-color-brand-gray-04: #45424d;
231
231
  --gl-color-brand-gray-05: #2b2838;
232
232
  --gl-color-brand-pink-01g: #ffb9c9;
233
- --gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
234
- --gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
233
+ --gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),'GitLab Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
234
+ --gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'GitLab Mono','JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
235
235
  --gl-font-size-100: 0.75rem; /** Used for meta text and small labels. */
236
236
  --gl-font-size-200: 0.8125rem; /** Used for level 6 headings. */
237
237
  --gl-font-size-300: 0.875rem; /** Used for level 5 headings, body text, input labels, and help text. */
@@ -230,8 +230,8 @@
230
230
  --gl-color-brand-gray-04: #45424d;
231
231
  --gl-color-brand-gray-05: #2b2838;
232
232
  --gl-color-brand-pink-01g: #ffb9c9;
233
- --gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
234
- --gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
233
+ --gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),'GitLab Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
234
+ --gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'GitLab Mono','JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
235
235
  --gl-font-size-100: 0.75rem; /** Used for meta text and small labels. */
236
236
  --gl-font-size-200: 0.8125rem; /** Used for level 6 headings. */
237
237
  --gl-font-size-300: 0.875rem; /** Used for level 5 headings, body text, input labels, and help text. */
@@ -42281,6 +42281,7 @@
42281
42281
  "key": "{font.family.regular}",
42282
42282
  "$value": [
42283
42283
  "var(--default-regular-font, 'GitLab Sans')",
42284
+ "'GitLab Sans'",
42284
42285
  "-apple-system",
42285
42286
  "BlinkMacSystemFont",
42286
42287
  "'Segoe UI'",
@@ -42306,6 +42307,7 @@
42306
42307
  "original": {
42307
42308
  "$value": [
42308
42309
  "var(--default-regular-font, 'GitLab Sans')",
42310
+ "'GitLab Sans'",
42309
42311
  "-apple-system",
42310
42312
  "BlinkMacSystemFont",
42311
42313
  "'Segoe UI'",
@@ -42341,6 +42343,7 @@
42341
42343
  "key": "{font.family.monospace}",
42342
42344
  "$value": [
42343
42345
  "var(--default-mono-font, 'GitLab Mono')",
42346
+ "'GitLab Mono'",
42344
42347
  "'JetBrains Mono'",
42345
42348
  "Menlo",
42346
42349
  "'DejaVu Sans Mono'",
@@ -42363,6 +42366,7 @@
42363
42366
  "original": {
42364
42367
  "$value": [
42365
42368
  "var(--default-mono-font, 'GitLab Mono')",
42369
+ "'GitLab Mono'",
42366
42370
  "'JetBrains Mono'",
42367
42371
  "Menlo",
42368
42372
  "'DejaVu Sans Mono'",
@@ -42281,6 +42281,7 @@
42281
42281
  "key": "{font.family.regular}",
42282
42282
  "$value": [
42283
42283
  "var(--default-regular-font, 'GitLab Sans')",
42284
+ "'GitLab Sans'",
42284
42285
  "-apple-system",
42285
42286
  "BlinkMacSystemFont",
42286
42287
  "'Segoe UI'",
@@ -42306,6 +42307,7 @@
42306
42307
  "original": {
42307
42308
  "$value": [
42308
42309
  "var(--default-regular-font, 'GitLab Sans')",
42310
+ "'GitLab Sans'",
42309
42311
  "-apple-system",
42310
42312
  "BlinkMacSystemFont",
42311
42313
  "'Segoe UI'",
@@ -42341,6 +42343,7 @@
42341
42343
  "key": "{font.family.monospace}",
42342
42344
  "$value": [
42343
42345
  "var(--default-mono-font, 'GitLab Mono')",
42346
+ "'GitLab Mono'",
42344
42347
  "'JetBrains Mono'",
42345
42348
  "Menlo",
42346
42349
  "'DejaVu Sans Mono'",
@@ -42363,6 +42366,7 @@
42363
42366
  "original": {
42364
42367
  "$value": [
42365
42368
  "var(--default-mono-font, 'GitLab Mono')",
42369
+ "'GitLab Mono'",
42366
42370
  "'JetBrains Mono'",
42367
42371
  "Menlo",
42368
42372
  "'DejaVu Sans Mono'",
@@ -3692,7 +3692,7 @@
3692
3692
  }
3693
3693
  },
3694
3694
  "font-family-regular": {
3695
- "$value": "var(--default-regular-font, 'GitLab Sans'), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, Cantarell, 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
3695
+ "$value": "var(--default-regular-font, 'GitLab Sans'), 'GitLab Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, Cantarell, 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
3696
3696
  "$type": "fontFamily",
3697
3697
  "$extensions": {
3698
3698
  "com.figma.scopes": [
@@ -3701,7 +3701,7 @@
3701
3701
  }
3702
3702
  },
3703
3703
  "font-family-monospace": {
3704
- "$value": "var(--default-mono-font, 'GitLab Mono'), 'JetBrains Mono', Menlo, 'DejaVu Sans Mono', 'Liberation Mono', Consolas, 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace",
3704
+ "$value": "var(--default-mono-font, 'GitLab Mono'), 'GitLab Mono', 'JetBrains Mono', Menlo, 'DejaVu Sans Mono', 'Liberation Mono', Consolas, 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace",
3705
3705
  "$type": "fontFamily",
3706
3706
  "$extensions": {
3707
3707
  "com.figma.scopes": [
@@ -3695,7 +3695,7 @@
3695
3695
  }
3696
3696
  },
3697
3697
  "font-family-regular": {
3698
- "$value": "var(--default-regular-font, 'GitLab Sans'), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, Cantarell, 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
3698
+ "$value": "var(--default-regular-font, 'GitLab Sans'), 'GitLab Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, Cantarell, 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
3699
3699
  "$type": "fontFamily",
3700
3700
  "$extensions": {
3701
3701
  "com.figma.scopes": [
@@ -3704,7 +3704,7 @@
3704
3704
  }
3705
3705
  },
3706
3706
  "font-family-monospace": {
3707
- "$value": "var(--default-mono-font, 'GitLab Mono'), 'JetBrains Mono', Menlo, 'DejaVu Sans Mono', 'Liberation Mono', Consolas, 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace",
3707
+ "$value": "var(--default-mono-font, 'GitLab Mono'), 'GitLab Mono', 'JetBrains Mono', Menlo, 'DejaVu Sans Mono', 'Liberation Mono', Consolas, 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace",
3708
3708
  "$type": "fontFamily",
3709
3709
  "$extensions": {
3710
3710
  "com.figma.scopes": [
@@ -245,6 +245,7 @@ export const GL_COLOR_BRAND_GRAY_05 = '#2b2838';
245
245
  export const GL_COLOR_BRAND_PINK_01G = '#ffb9c9';
246
246
  export const GL_FONT_FAMILY_REGULAR = [
247
247
  "var(--default-regular-font, 'GitLab Sans')",
248
+ "'GitLab Sans'",
248
249
  '-apple-system',
249
250
  'BlinkMacSystemFont',
250
251
  "'Segoe UI'",
@@ -261,6 +262,7 @@ export const GL_FONT_FAMILY_REGULAR = [
261
262
  ];
262
263
  export const GL_FONT_FAMILY_MONOSPACE = [
263
264
  "var(--default-mono-font, 'GitLab Mono')",
265
+ "'GitLab Mono'",
264
266
  "'JetBrains Mono'",
265
267
  'Menlo',
266
268
  "'DejaVu Sans Mono'",
@@ -245,6 +245,7 @@ export const GL_COLOR_BRAND_GRAY_05 = '#2b2838';
245
245
  export const GL_COLOR_BRAND_PINK_01G = '#ffb9c9';
246
246
  export const GL_FONT_FAMILY_REGULAR = [
247
247
  "var(--default-regular-font, 'GitLab Sans')",
248
+ "'GitLab Sans'",
248
249
  '-apple-system',
249
250
  'BlinkMacSystemFont',
250
251
  "'Segoe UI'",
@@ -261,6 +262,7 @@ export const GL_FONT_FAMILY_REGULAR = [
261
262
  ];
262
263
  export const GL_FONT_FAMILY_MONOSPACE = [
263
264
  "var(--default-mono-font, 'GitLab Mono')",
265
+ "'GitLab Mono'",
264
266
  "'JetBrains Mono'",
265
267
  'Menlo',
266
268
  "'DejaVu Sans Mono'",
@@ -6170,6 +6170,7 @@
6170
6170
  "key": "{font.family.regular}",
6171
6171
  "$value": [
6172
6172
  "var(--default-regular-font, 'GitLab Sans')",
6173
+ "'GitLab Sans'",
6173
6174
  "-apple-system",
6174
6175
  "BlinkMacSystemFont",
6175
6176
  "'Segoe UI'",
@@ -6195,6 +6196,7 @@
6195
6196
  "original": {
6196
6197
  "$value": [
6197
6198
  "var(--default-regular-font, 'GitLab Sans')",
6199
+ "'GitLab Sans'",
6198
6200
  "-apple-system",
6199
6201
  "BlinkMacSystemFont",
6200
6202
  "'Segoe UI'",
@@ -6229,6 +6231,7 @@
6229
6231
  "key": "{font.family.monospace}",
6230
6232
  "$value": [
6231
6233
  "var(--default-mono-font, 'GitLab Mono')",
6234
+ "'GitLab Mono'",
6232
6235
  "'JetBrains Mono'",
6233
6236
  "Menlo",
6234
6237
  "'DejaVu Sans Mono'",
@@ -6251,6 +6254,7 @@
6251
6254
  "original": {
6252
6255
  "$value": [
6253
6256
  "var(--default-mono-font, 'GitLab Mono')",
6257
+ "'GitLab Mono'",
6254
6258
  "'JetBrains Mono'",
6255
6259
  "Menlo",
6256
6260
  "'DejaVu Sans Mono'",
@@ -6170,6 +6170,7 @@
6170
6170
  "key": "{font.family.regular}",
6171
6171
  "$value": [
6172
6172
  "var(--default-regular-font, 'GitLab Sans')",
6173
+ "'GitLab Sans'",
6173
6174
  "-apple-system",
6174
6175
  "BlinkMacSystemFont",
6175
6176
  "'Segoe UI'",
@@ -6195,6 +6196,7 @@
6195
6196
  "original": {
6196
6197
  "$value": [
6197
6198
  "var(--default-regular-font, 'GitLab Sans')",
6199
+ "'GitLab Sans'",
6198
6200
  "-apple-system",
6199
6201
  "BlinkMacSystemFont",
6200
6202
  "'Segoe UI'",
@@ -6229,6 +6231,7 @@
6229
6231
  "key": "{font.family.monospace}",
6230
6232
  "$value": [
6231
6233
  "var(--default-mono-font, 'GitLab Mono')",
6234
+ "'GitLab Mono'",
6232
6235
  "'JetBrains Mono'",
6233
6236
  "Menlo",
6234
6237
  "'DejaVu Sans Mono'",
@@ -6251,6 +6254,7 @@
6251
6254
  "original": {
6252
6255
  "$value": [
6253
6256
  "var(--default-mono-font, 'GitLab Mono')",
6257
+ "'GitLab Mono'",
6254
6258
  "'JetBrains Mono'",
6255
6259
  "Menlo",
6256
6260
  "'DejaVu Sans Mono'",
@@ -228,8 +228,8 @@ $gl-color-brand-gray-03: #74717a;
228
228
  $gl-color-brand-gray-04: #45424d;
229
229
  $gl-color-brand-gray-05: #2b2838;
230
230
  $gl-color-brand-pink-01g: #ffb9c9;
231
- $gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
232
- $gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
231
+ $gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),'GitLab Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
232
+ $gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'GitLab Mono','JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
233
233
  $gl-font-size-100: 0.75rem; // Used for meta text and small labels.
234
234
  $gl-font-size-200: 0.8125rem; // Used for level 6 headings.
235
235
  $gl-font-size-300: 0.875rem; // Used for level 5 headings, body text, input labels, and help text.
@@ -228,8 +228,8 @@ $gl-color-brand-gray-03: #74717a;
228
228
  $gl-color-brand-gray-04: #45424d;
229
229
  $gl-color-brand-gray-05: #2b2838;
230
230
  $gl-color-brand-pink-01g: #ffb9c9;
231
- $gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
232
- $gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
231
+ $gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),'GitLab Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
232
+ $gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'GitLab Mono','JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
233
233
  $gl-font-size-100: 0.75rem; // Used for meta text and small labels.
234
234
  $gl-font-size-200: 0.8125rem; // Used for level 6 headings.
235
235
  $gl-font-size-300: 0.875rem; // Used for level 5 headings, body text, input labels, and help text.
@@ -4,6 +4,7 @@
4
4
  "regular": {
5
5
  "$value": [
6
6
  "var(--default-regular-font, 'GitLab Sans')",
7
+ "'GitLab Sans'",
7
8
  "-apple-system",
8
9
  "BlinkMacSystemFont",
9
10
  "'Segoe UI'",
@@ -28,6 +29,7 @@
28
29
  "monospace": {
29
30
  "$value": [
30
31
  "var(--default-mono-font, 'GitLab Mono')",
32
+ "'GitLab Mono'",
31
33
  "'JetBrains Mono'",
32
34
  "Menlo",
33
35
  "'DejaVu Sans Mono'",
@@ -10,7 +10,7 @@ import { concat } from '../../../utils/array'
10
10
  import { getComponentConfig } from '../../../utils/config'
11
11
  import { requestAF } from '../../../utils/dom'
12
12
  import { getRootEventName, getRootActionEventName } from '../../../utils/events'
13
- import { isUndefined } from '../../../utils/inspect'
13
+ import { isUndefined, isFunction } from '../../../utils/inspect'
14
14
  import {
15
15
  assign,
16
16
  defineProperties,
@@ -24,6 +24,7 @@ import { pluginFactory } from '../../../utils/plugins'
24
24
  import { warn, warnNotClient } from '../../../utils/warn'
25
25
  import { createNewChildComponent } from '../../../utils/create-new-child-component'
26
26
  import { getEventRoot } from '../../../utils/get-event-root'
27
+ import { isVue3 } from '../../../vue'
27
28
  import { BToast, props as toastProps } from '../toast'
28
29
 
29
30
  // --- Constants ---
@@ -129,9 +130,24 @@ const plugin = Vue => {
129
130
  })
130
131
  // Convert certain props to slots
131
132
  keys(propsToSlots).forEach(prop => {
132
- const value = props[prop]
133
+ let value = props[prop]
133
134
  if (!isUndefined(value)) {
134
- toast.$slots[propsToSlots[prop]] = concat(value)
135
+ if (isVue3(toast)) {
136
+ // In Vue 3 compat, $slots is readonly. Set slots on the internal
137
+ // instance as functions so VNodes are available during the
138
+ // component's render cycle. When the value is a render function,
139
+ // defer calling it until the slot is evaluated during render so
140
+ // that $createElement runs within an active component context.
141
+ const slotFn = isFunction(value)
142
+ ? () => concat(value(toast.$createElement))
143
+ : () => concat(value)
144
+ toast.$.slots[propsToSlots[prop]] = slotFn
145
+ } else {
146
+ if (isFunction(value)) {
147
+ value = value(toast.$createElement)
148
+ }
149
+ toast.$slots[propsToSlots[prop]] = concat(value)
150
+ }
135
151
  }
136
152
  })
137
153
  // Create a mount point (a DIV) and mount it (which triggers the show)
@@ -259,7 +259,12 @@ export const BToast = /*#__PURE__*/ extend({
259
259
  }
260
260
 
261
261
  const { computedToaster } = this
262
- if (!Wormhole.hasTarget(computedToaster)) {
262
+ const hasTarget = Wormhole.hasTarget(computedToaster)
263
+ const hasDOM = document.getElementById(computedToaster)
264
+ if (!hasTarget || !hasDOM) {
265
+ if (hasTarget && !hasDOM) {
266
+ Wormhole.unregisterTarget(computedToaster)
267
+ }
263
268
  const div = document.createElement('div')
264
269
  document.body.appendChild(div)
265
270