@gitlab/ui 93.1.0 → 93.3.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 +14 -0
- package/bin/migrate_custom_utils_to_tw.bundled.mjs +8 -1
- package/dist/components/base/alert/alert.js +1 -0
- package/dist/components/base/avatar/avatar.js +7 -1
- package/dist/components/base/datepicker/datepicker.js +3 -1
- package/dist/components/base/drawer/drawer.js +1 -0
- package/dist/components/base/form/form_input/form_input.js +7 -1
- package/dist/components/base/form/form_select/form_select.js +7 -1
- package/dist/components/base/toast/toast.js +1 -0
- package/dist/components/base/token/token.js +1 -0
- package/dist/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_popover/duo_chat_context_item_popover.js +1 -1
- package/dist/components/experimental/duo/chat/duo_chat.js +2 -3
- package/dist/index.css +3 -3
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +2 -1
- package/dist/tokens/build/js/tokens.js +2 -1
- package/dist/tokens/css/tokens.css +1 -0
- package/dist/tokens/css/tokens.dark.css +1 -0
- package/dist/tokens/js/tokens.dark.js +1 -0
- package/dist/tokens/js/tokens.js +1 -0
- package/dist/tokens/json/tokens.dark.json +22 -0
- package/dist/tokens/json/tokens.json +22 -0
- package/dist/tokens/scss/_tokens.dark.scss +1 -0
- package/dist/tokens/scss/_tokens.scss +1 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +1 -0
- package/dist/tokens/tailwind/tokens.cjs +1 -0
- package/package.json +1 -1
- package/src/components/base/accordion/accordion_item.scss +1 -1
- package/src/components/base/alert/alert.scss +8 -8
- package/src/components/base/alert/alert.vue +1 -0
- package/src/components/base/avatar/avatar.scss +6 -6
- package/src/components/base/avatar/avatar.vue +4 -0
- package/src/components/base/avatar_labeled/avatar_labeled.scss +9 -9
- package/src/components/base/avatar_link/avatar_link.scss +6 -6
- package/src/components/base/avatars_inline/avatars_inline.scss +9 -9
- package/src/components/base/badge/badge.scss +6 -6
- package/src/components/base/banner/banner.scss +1 -1
- package/src/components/base/breadcrumb/breadcrumb.scss +8 -8
- package/src/components/base/broadcast_message/broadcast_message.scss +9 -9
- package/src/components/base/button/button.scss +18 -18
- package/src/components/base/card/card.scss +4 -4
- package/src/components/base/datepicker/datepicker.scss +14 -14
- package/src/components/base/datepicker/datepicker.vue +1 -0
- package/src/components/base/daterange_picker/daterange_picker.scss +7 -7
- package/src/components/base/drawer/drawer.scss +14 -14
- package/src/components/base/drawer/drawer.vue +1 -0
- package/src/components/base/dropdown/dropdown.scss +15 -15
- package/src/components/base/dropdown/dropdown_item.scss +15 -15
- package/src/components/base/dropdown/dropdown_section_header.scss +4 -4
- package/src/components/base/filtered_search/filtered_search.scss +9 -9
- package/src/components/base/filtered_search/filtered_search_suggestion.scss +2 -2
- package/src/components/base/filtered_search/filtered_search_suggestion_list.scss +2 -2
- package/src/components/base/filtered_search/filtered_search_token.scss +9 -9
- package/src/components/base/filtered_search/filtered_search_token_segment.scss +3 -3
- package/src/components/base/form/form_checkbox/form_checkbox.scss +10 -10
- package/src/components/base/form/form_group/form_group.scss +6 -6
- package/src/components/base/form/form_input/form_input.scss +2 -2
- package/src/components/base/form/form_input/form_input.vue +3 -0
- package/src/components/base/form/form_radio_group/form_radio_group.scss +2 -2
- package/src/components/base/form/form_select/form_select.scss +3 -3
- package/src/components/base/form/form_select/form_select.vue +3 -0
- package/src/components/base/infinite_scroll/infinite_scroll.scss +2 -2
- package/src/components/base/label/label.scss +12 -12
- package/src/components/base/link/link.scss +1 -1
- package/src/components/base/loading_icon/loading_icon.scss +4 -4
- package/src/components/base/markdown/markdown.scss +14 -14
- package/src/components/base/modal/modal.scss +12 -12
- package/src/components/base/new_dropdowns/dropdown.scss +17 -17
- package/src/components/base/new_dropdowns/dropdown_item.scss +10 -10
- package/src/components/base/new_dropdowns/listbox/listbox.scss +4 -4
- package/src/components/base/pagination/pagination.scss +5 -5
- package/src/components/base/path/path.scss +11 -11
- package/src/components/base/popover/popover.scss +1 -1
- package/src/components/base/search_box_by_click/search_box_by_click.scss +5 -5
- package/src/components/base/search_box_by_type/search_box_by_type.scss +9 -9
- package/src/components/base/segmented_control/segmented_control.scss +4 -4
- package/src/components/base/table/table.scss +6 -6
- package/src/components/base/tabs/tabs/tabs.scss +18 -18
- package/src/components/base/toast/toast.js +1 -0
- package/src/components/base/toast/toast.scss +10 -10
- package/src/components/base/toggle/toggle.scss +17 -17
- package/src/components/base/token/token.scss +13 -13
- package/src/components/base/token/token.vue +1 -0
- package/src/components/base/tooltip/tooltip.scss +3 -3
- package/src/components/charts/legend/legend.scss +17 -17
- package/src/components/charts/series_label/series_label.scss +6 -6
- package/src/components/charts/single_stat/single_stat.scss +1 -1
- package/src/components/experimental/duo/chat/components/duo_chat_context/duo_chat_context_item_popover/duo_chat_context_item_popover.vue +9 -12
- package/src/components/experimental/duo/chat/components/duo_chat_loader/duo_chat_loader.scss +1 -1
- package/src/components/experimental/duo/chat/components/duo_chat_message/duo_chat_message.scss +4 -4
- package/src/components/experimental/duo/chat/duo_chat.scss +15 -15
- package/src/components/experimental/duo/chat/duo_chat.vue +2 -3
- package/src/components/shared_components/charts/tooltip_default_format.scss +5 -5
- package/src/scss/typescale/_index.scss +15 -15
- package/src/tokens/build/css/tokens.css +1 -0
- package/src/tokens/build/css/tokens.dark.css +1 -0
- package/src/tokens/build/js/tokens.dark.js +1 -0
- package/src/tokens/build/js/tokens.js +1 -0
- package/src/tokens/build/json/tokens.dark.json +22 -0
- package/src/tokens/build/json/tokens.json +22 -0
- package/src/tokens/build/scss/_tokens.dark.scss +1 -0
- package/src/tokens/build/scss/_tokens.scss +1 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +1 -0
- package/src/tokens/build/tailwind/tokens.cjs +1 -0
- package/src/tokens/text.tokens.json +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [93.3.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v93.2.0...v93.3.0) (2024-09-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **DuoChatContextItemPopover:** fix styling for long strings ([b7b4517](https://gitlab.com/gitlab-org/gitlab-ui/commit/b7b451796eb0585b57922682a5cef42ac945a1f9))
|
|
7
|
+
|
|
8
|
+
# [93.2.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v93.1.0...v93.2.0) (2024-09-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **DesignTokens:** add text warning design tokens ([e00b998](https://gitlab.com/gitlab-org/gitlab-ui/commit/e00b998524c1b974f49994059256dd340748ab20))
|
|
14
|
+
|
|
1
15
|
# [93.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v93.0.0...v93.1.0) (2024-09-18)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -184266,7 +184266,14 @@ var tailwindEquivalents = {
|
|
|
184266
184266
|
"gl-bg-data-viz-magenta-950!": "!gl-bg-data-viz-magenta-950",
|
|
184267
184267
|
"gl-inset-border-1-red-300": "gl-shadow-inner-1-red-300",
|
|
184268
184268
|
"gl-inset-border-1-red-500": "gl-shadow-inner-1-red-500",
|
|
184269
|
-
"gl-column-gap-3": "gl-gap-x-3"
|
|
184269
|
+
"gl-column-gap-3": "gl-gap-x-3",
|
|
184270
|
+
// The following equivalents were found while migrating GitLab UI's stylesheets
|
|
184271
|
+
"gl-text-decoration-color-gray-900": "gl-decoration-gray-900",
|
|
184272
|
+
"gl-text-decoration-color-gray-500": "gl-decoration-gray-500",
|
|
184273
|
+
"gl-text-transform-none": "gl-normal-case",
|
|
184274
|
+
"gl-bg-current-color": "gl-bg-current",
|
|
184275
|
+
"gl-w-eighth": "gl-w-1/8",
|
|
184276
|
+
"gl-w-max-content": "gl-w-max"
|
|
184270
184277
|
};
|
|
184271
184278
|
|
|
184272
184279
|
// bin/lib/tailwind_migrations.mjs
|
|
@@ -67,13 +67,18 @@ var script = {
|
|
|
67
67
|
computed: {
|
|
68
68
|
sizeClasses() {
|
|
69
69
|
if (isNumber(this.size)) {
|
|
70
|
+
// eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
|
|
70
71
|
return `gl-avatar-s${this.size}`;
|
|
71
72
|
}
|
|
72
73
|
const {
|
|
73
74
|
default: defaultSize,
|
|
74
75
|
...nonDefaultSizes
|
|
75
76
|
} = this.size;
|
|
76
|
-
return [
|
|
77
|
+
return [
|
|
78
|
+
// eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
|
|
79
|
+
`gl-avatar-s${defaultSize || avatarSizeOptions[1]}`, ...Object.entries(nonDefaultSizes).map(
|
|
80
|
+
// eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
|
|
81
|
+
_ref => {
|
|
77
82
|
let [breakpoint, size] = _ref;
|
|
78
83
|
return `gl-${breakpoint}-avatar-s${size}`;
|
|
79
84
|
})];
|
|
@@ -87,6 +92,7 @@ var script = {
|
|
|
87
92
|
* Gets the remainder after dividing the 'entityId' by the number of available backgrounds.
|
|
88
93
|
*/
|
|
89
94
|
const type = this.entityId % IDENTICON_BG_COUNT + 1;
|
|
95
|
+
// eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
|
|
90
96
|
return `gl-avatar-identicon-bg${type}`;
|
|
91
97
|
},
|
|
92
98
|
identiconText() {
|
|
@@ -219,7 +219,9 @@ var script = {
|
|
|
219
219
|
return null;
|
|
220
220
|
},
|
|
221
221
|
datepickerClasses() {
|
|
222
|
-
return ['gl-datepicker', 'd-inline-block', 'gl-w-full',
|
|
222
|
+
return ['gl-datepicker', 'd-inline-block', 'gl-w-full',
|
|
223
|
+
// eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
|
|
224
|
+
`gl-form-input-${this.computedWidth}`];
|
|
223
225
|
},
|
|
224
226
|
computedWidth() {
|
|
225
227
|
if (this.width) {
|
|
@@ -39,11 +39,17 @@ var script = {
|
|
|
39
39
|
default: defaultWidth,
|
|
40
40
|
...nonDefaultWidths
|
|
41
41
|
} = this.width;
|
|
42
|
-
return [
|
|
42
|
+
return [
|
|
43
|
+
// eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
|
|
44
|
+
...(defaultWidth ? [`gl-form-input-${defaultWidth}`] : []), ...Object.entries(nonDefaultWidths).map(
|
|
45
|
+
// eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
|
|
46
|
+
_ref => {
|
|
43
47
|
let [breakpoint, width] = _ref;
|
|
44
48
|
return `gl-${breakpoint}-form-input-${width}`;
|
|
45
49
|
})];
|
|
46
50
|
}
|
|
51
|
+
|
|
52
|
+
// eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
|
|
47
53
|
return [`gl-form-input-${this.width}`];
|
|
48
54
|
},
|
|
49
55
|
listeners() {
|
|
@@ -33,11 +33,17 @@ var script = {
|
|
|
33
33
|
default: defaultWidth,
|
|
34
34
|
...nonDefaultWidths
|
|
35
35
|
} = this.width;
|
|
36
|
-
return [
|
|
36
|
+
return [
|
|
37
|
+
// eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
|
|
38
|
+
...(defaultWidth ? [`gl-form-select-${defaultWidth}`] : []), ...Object.entries(nonDefaultWidths).map(
|
|
39
|
+
// eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
|
|
40
|
+
_ref => {
|
|
37
41
|
let [breakpoint, width] = _ref;
|
|
38
42
|
return `gl-${breakpoint}-form-select-${width}`;
|
|
39
43
|
})];
|
|
40
44
|
}
|
|
45
|
+
|
|
46
|
+
// eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
|
|
41
47
|
return [`gl-form-select-${this.width}`];
|
|
42
48
|
}
|
|
43
49
|
}
|
|
@@ -31,6 +31,7 @@ function renderTitle(h, toast, options) {
|
|
|
31
31
|
}
|
|
32
32
|
function showToast(message) {
|
|
33
33
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34
|
+
// eslint-disable-next-line @gitlab/tailwind -- Not a CSS utility
|
|
34
35
|
const id = `gl-toast-${toastsCount}`;
|
|
35
36
|
toastsCount += 1;
|
|
36
37
|
const hide = () => {
|
|
@@ -98,7 +98,7 @@ var script = {
|
|
|
98
98
|
const __vue_script__ = script;
|
|
99
99
|
|
|
100
100
|
/* template */
|
|
101
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-popover',{attrs:{"target":_vm.target,"triggers":"hover focus","placement":_vm.placement,"title":_vm.title,"custom-class":"gl-duo-chat-item-popover"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('div',[_c('div',{staticClass:"gl-heading-3 gl-mb-1 gl-mt-2 gl-leading-1",attrs:{"data-testid":"chat-context-popover-title"}},[_vm._v("\n "+_vm._s(_vm.contextItem.metadata.title)+"\n ")]),_vm._v(" "),_c('div',{staticClass:"gl-font-normal gl-text-subtle"},[_vm._v(_vm._s(_vm.itemTypeLabel))])])]},proxy:true}])},[_vm._v(" "),_c('div',[(_vm.filePath !== null)?_c('div',
|
|
101
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-popover',{attrs:{"target":_vm.target,"triggers":"hover focus","placement":_vm.placement,"title":_vm.title,"custom-class":"gl-duo-chat-item-popover"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('div',[_c('div',{staticClass:"gl-heading-3 gl-mb-1 gl-mt-2 gl-leading-1",attrs:{"data-testid":"chat-context-popover-title"}},[_vm._v("\n "+_vm._s(_vm.contextItem.metadata.title)+"\n ")]),_vm._v(" "),_c('div',{staticClass:"gl-font-normal gl-text-subtle"},[_vm._v(_vm._s(_vm.itemTypeLabel))])])]},proxy:true}])},[_vm._v(" "),_c('div',[(_vm.filePath !== null)?_c('div',[_c('gl-icon',{staticClass:"gl-mr-1",attrs:{"name":"document","size":12,"variant":"subtle"}}),_c('span',{staticClass:"gl-break-all"},[_vm._v(_vm._s(_vm.contextItem.metadata.project))]),_vm._l((_vm.filePathArray),function(pathPart,index){return _c('span',{key:pathPart,staticClass:"gl-break-all"},[_vm._v(_vm._s(pathPart)+_vm._s(index + 1 < _vm.filePathArray.length ? '/' : ''))])})],2):_c('div',[_c('gl-icon',{staticClass:"gl-mr-1",attrs:{"name":_vm.iconName,"size":12,"variant":"subtle"}}),_c('span',{staticClass:"gl-break-all"},[_vm._v(_vm._s(_vm.contextItem.metadata.project))]),(_vm.id !== null)?_c('span',{staticClass:"gl-break-all"},[_vm._v(_vm._s(_vm.formattedId))]):_vm._e()],1),_vm._v(" "),(!_vm.isEnabled)?_c('gl-alert',{staticClass:"gl-mb-1 gl-mt-3 gl-p-4 gl-text-sm",attrs:{"variant":"danger","data-testid":"chat-context-popover-disabled","dismissible":false,"show-icon":false}},[_vm._v("\n "+_vm._s(_vm.disabledMessage)+"\n ")]):_vm._e()],1)])};
|
|
102
102
|
var __vue_staticRenderFns__ = [];
|
|
103
103
|
|
|
104
104
|
/* style */
|
|
@@ -16,7 +16,6 @@ import GlDuoChatLoader from './components/duo_chat_loader/duo_chat_loader';
|
|
|
16
16
|
import GlDuoChatPredefinedPrompts from './components/duo_chat_predefined_prompts/duo_chat_predefined_prompts';
|
|
17
17
|
import GlDuoChatConversation from './components/duo_chat_conversation/duo_chat_conversation';
|
|
18
18
|
import { CHAT_RESET_MESSAGE, CHAT_INCLUDE_MESSAGE, MESSAGE_MODEL_ROLES, CHAT_CLEAN_MESSAGE, CHAT_CLEAR_MESSAGE } from './constants';
|
|
19
|
-
import { INCLUDE_SLASH_COMMAND } from './mock_data';
|
|
20
19
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
21
20
|
|
|
22
21
|
const i18n = {
|
|
@@ -275,7 +274,7 @@ var script = {
|
|
|
275
274
|
// if user has removed entire command (or whole command except for '/') we should close context item menu and allow slash command menu to show again
|
|
276
275
|
return false;
|
|
277
276
|
}
|
|
278
|
-
return
|
|
277
|
+
return CHAT_INCLUDE_MESSAGE.startsWith(this.caseInsensitivePrompt);
|
|
279
278
|
},
|
|
280
279
|
inputPlaceholder() {
|
|
281
280
|
if (this.chatPromptPlaceholder) {
|
|
@@ -412,7 +411,7 @@ var script = {
|
|
|
412
411
|
(_this$contextItemMenu = this.contextItemMenuRef) === null || _this$contextItemMenu === void 0 ? void 0 : _this$contextItemMenu.handleKeyUp(e);
|
|
413
412
|
return;
|
|
414
413
|
}
|
|
415
|
-
if (this.caseInsensitivePrompt ===
|
|
414
|
+
if (this.caseInsensitivePrompt === CHAT_INCLUDE_MESSAGE) {
|
|
416
415
|
this.contextItemsMenuIsOpen = true;
|
|
417
416
|
return;
|
|
418
417
|
}
|