@gitlab/ui 137.3.1 → 138.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/dist/components/base/alert/alert.js +0 -1
- package/dist/components/base/drawer/drawer.js +0 -1
- package/dist/components/base/filtered_search/filtered_search_token_segment.js +0 -1
- package/dist/components/base/form/form_group/form_group.js +0 -1
- package/dist/components/base/modal/modal.js +1 -5
- package/dist/components/base/new_dropdowns/base_dropdown/dropdown_container.js +1 -1
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +1 -3
- package/dist/components/base/toast/index.js +1 -1
- package/dist/components/base/toggle/toggle.js +0 -1
- package/dist/components/mixins/tooltip_mixin.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +299 -299
- package/dist/tokens/build/js/tokens.js +302 -302
- package/dist/utils/confetti/confetti.js +189 -0
- package/dist/utils/confetti/constants.js +36 -0
- package/dist/utils/confetti/field.js +114 -0
- package/dist/utils/confetti/palette.js +6 -0
- package/dist/utils/confetti/particles.js +92 -0
- package/dist/utils/matrix/columns.js +54 -0
- package/dist/utils/matrix/constants.js +19 -0
- package/dist/utils/matrix/matrix.js +157 -0
- package/dist/utils/matrix/palette.js +9 -0
- package/dist/utils.js +2 -0
- package/dist/vendor/bootstrap-vue/src/components/popover/helpers/bv-popover-template.js +4 -2
- package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip-template.js +3 -1
- package/package.json +3 -2
- package/src/components/base/alert/alert.vue +0 -1
- package/src/components/base/drawer/drawer.vue +0 -1
- package/src/components/base/filtered_search/filtered_search_token_segment.vue +0 -1
- package/src/components/base/form/form_group/form_group.vue +0 -2
- package/src/components/base/form/form_select/form_select.vue +0 -1
- package/src/components/base/modal/modal.vue +0 -3
- package/src/components/base/new_dropdowns/base_dropdown/dropdown_container.js +1 -1
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.vue +0 -1
- package/src/components/base/tabs/tabs/scrollable_tabs.vue +0 -1
- package/src/components/base/tabs/tabs/tabs.vue +0 -1
- package/src/components/base/toast/index.js +1 -1
- package/src/components/base/toggle/toggle.vue +0 -1
- package/src/components/charts/heatmap/index.js +1 -1
- package/src/components/mixins/tooltip_mixin.js +1 -1
- package/src/tokens/build/css/tokens.css +74 -74
- package/src/tokens/build/css/tokens.dark.css +70 -70
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +303 -303
- package/src/tokens/build/docs/tokens-tailwind-docs.json +323 -323
- package/src/tokens/build/figma/constants.dark.json +207 -207
- package/src/tokens/build/figma/constants.json +207 -207
- package/src/tokens/build/figma/mode.dark.json +37 -37
- package/src/tokens/build/figma/mode.json +35 -35
- package/src/tokens/build/js/tokens.dark.js +299 -300
- package/src/tokens/build/js/tokens.js +302 -303
- package/src/tokens/build/json/tokens.dark.json +369 -369
- package/src/tokens/build/json/tokens.json +376 -376
- package/src/tokens/build/scss/_tokens.dark.scss +70 -70
- package/src/tokens/build/scss/_tokens.scss +74 -74
- package/src/tokens/constant/color.blue.tokens.json +39 -39
- package/src/tokens/constant/color.green.tokens.json +41 -41
- package/src/tokens/constant/color.orange.tokens.json +43 -43
- package/src/tokens/constant/color.purple.tokens.json +40 -40
- package/src/tokens/constant/color.red.tokens.json +44 -44
- package/src/tokens/contextual/avatar.tokens.json +13 -13
- package/src/tokens/contextual/button.tokens.json +22 -22
- package/src/tokens/contextual/chart.tokens.json +3 -3
- package/src/tokens/semantic/action.tokens.json +18 -18
- package/src/utils/confetti/confetti.js +191 -0
- package/src/utils/confetti/constants.js +42 -0
- package/src/utils/confetti/field.js +134 -0
- package/src/utils/confetti/palette.js +15 -0
- package/src/utils/confetti/particles.js +98 -0
- package/src/utils/matrix/columns.js +53 -0
- package/src/utils/matrix/constants.js +19 -0
- package/src/utils/matrix/matrix.js +185 -0
- package/src/utils/matrix/palette.js +18 -0
- package/src/utils.js +2 -0
- package/src/vendor/bootstrap-vue/src/components/popover/helpers/bv-popover-template.js +7 -2
- package/src/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip-template.js +2 -1
- package/translations.js +1 -1
|
@@ -136,7 +136,6 @@ var script = {
|
|
|
136
136
|
return alertVariantIconMap[this.variant];
|
|
137
137
|
},
|
|
138
138
|
shouldRenderActions() {
|
|
139
|
-
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
140
139
|
return Boolean(this.$slots.actions || this.actionButtons.length);
|
|
141
140
|
},
|
|
142
141
|
actionButtons() {
|
|
@@ -224,7 +224,6 @@ var script = {
|
|
|
224
224
|
},
|
|
225
225
|
hasOptionsOrSuggestions() {
|
|
226
226
|
var _this$options2;
|
|
227
|
-
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
228
227
|
return ((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.length) || isSlotNotEmpty(this.$slots.suggestions);
|
|
229
228
|
},
|
|
230
229
|
defaultSuggestedValue() {
|
|
@@ -140,17 +140,13 @@ var script = {
|
|
|
140
140
|
},
|
|
141
141
|
computed: {
|
|
142
142
|
shouldRenderModalOk() {
|
|
143
|
-
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
144
143
|
return Boolean(this.$slots['modal-ok']);
|
|
145
144
|
},
|
|
146
145
|
shouldRenderModalCancel() {
|
|
147
|
-
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
148
146
|
return Boolean(this.$slots['modal-cancel']);
|
|
149
147
|
},
|
|
150
148
|
shouldRenderModalFooter() {
|
|
151
|
-
return Boolean(this.actionCancel || this.actionSecondary || this.actionPrimary ||
|
|
152
|
-
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
153
|
-
this.$slots['modal-footer']);
|
|
149
|
+
return Boolean(this.actionCancel || this.actionSecondary || this.actionPrimary || this.$slots['modal-footer']);
|
|
154
150
|
}
|
|
155
151
|
},
|
|
156
152
|
mounted() {
|
|
@@ -226,9 +226,7 @@ var script = {
|
|
|
226
226
|
computed: {
|
|
227
227
|
disclosureTag() {
|
|
228
228
|
var _this$items;
|
|
229
|
-
if ((_this$items = this.items) !== null && _this$items !== void 0 && _this$items.length ||
|
|
230
|
-
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
231
|
-
hasOnlyListItems(this.$scopedSlots.default || this.$slots.default)) {
|
|
229
|
+
if ((_this$items = this.items) !== null && _this$items !== void 0 && _this$items.length || hasOnlyListItems(this.$scopedSlots.default || this.$slots.default)) {
|
|
232
230
|
return 'ul';
|
|
233
231
|
}
|
|
234
232
|
return 'div';
|
|
@@ -2,7 +2,7 @@ import Vue from 'vue';
|
|
|
2
2
|
import { createNewChildComponent } from '../../../vendor/bootstrap-vue/src/utils/create-new-child-component';
|
|
3
3
|
import GlToaster from './toaster';
|
|
4
4
|
|
|
5
|
-
/* eslint-disable import/no-default-export */
|
|
5
|
+
/* eslint-disable import-x/no-default-export */
|
|
6
6
|
let toastsCount = 0;
|
|
7
7
|
let toasterInstance = null;
|
|
8
8
|
function ensureToaster(vm) {
|
|
@@ -95,7 +95,6 @@ var script = {
|
|
|
95
95
|
return Boolean(this.$scopedSlots.description || this.description) && this.isVerticalLayout;
|
|
96
96
|
},
|
|
97
97
|
shouldRenderHelp() {
|
|
98
|
-
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
99
98
|
return Boolean(this.$slots.help || this.help) && this.isVerticalLayout;
|
|
100
99
|
},
|
|
101
100
|
toggleClasses() {
|