@gitlab/ui 105.1.0 → 105.2.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/components/base/datepicker/datepicker.js +2 -2
  3. package/dist/components/base/filtered_search/filtered_search_token_segment.js +12 -0
  4. package/dist/components/base/paginated_list/paginated_list.js +1 -1
  5. package/dist/components/regions/dashboard_skeleton/dashboard_skeleton.js +2 -2
  6. package/dist/components/utilities/friendly_wrap/friendly_wrap.js +1 -1
  7. package/dist/index.css +1 -1
  8. package/dist/index.css.map +1 -1
  9. package/dist/tailwind.css +1 -1
  10. package/dist/tailwind.css.map +1 -1
  11. package/dist/tokens/build/js/tokens.dark.js +33 -1
  12. package/dist/tokens/build/js/tokens.js +33 -1
  13. package/dist/tokens/css/tokens.css +32 -0
  14. package/dist/tokens/css/tokens.dark.css +32 -0
  15. package/dist/tokens/js/tokens.dark.js +32 -0
  16. package/dist/tokens/js/tokens.js +32 -0
  17. package/dist/tokens/json/tokens.dark.json +887 -0
  18. package/dist/tokens/json/tokens.json +887 -0
  19. package/dist/tokens/scss/_tokens.dark.scss +32 -0
  20. package/dist/tokens/scss/_tokens.scss +32 -0
  21. package/dist/tokens/scss/_tokens_custom_properties.scss +32 -0
  22. package/dist/tokens/tokens_table.js +1 -1
  23. package/dist/vendor/bootstrap-vue/src/components/dropdown/dropdown.js +1 -1
  24. package/dist/vendor/bootstrap-vue/src/components/form/form-invalid-feedback.js +1 -1
  25. package/dist/vendor/bootstrap-vue/src/components/form/form-valid-feedback.js +1 -1
  26. package/dist/vendor/bootstrap-vue/src/components/form-group/form-group.js +4 -4
  27. package/dist/vendor/bootstrap-vue/src/components/modal/helpers/modal-manager.js +1 -1
  28. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-sorting.js +2 -2
  29. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-table-renderer.js +1 -1
  30. package/dist/vendor/bootstrap-vue/src/components/table/helpers/mixin-thead.js +1 -1
  31. package/package.json +2 -1
  32. package/src/components/base/datepicker/datepicker.vue +2 -2
  33. package/src/components/base/filtered_search/filtered_search_token_segment.vue +12 -0
  34. package/src/components/base/paginated_list/paginated_list.vue +1 -1
  35. package/src/components/regions/dashboard_skeleton/dashboard_skeleton.vue +12 -10
  36. package/src/components/utilities/friendly_wrap/friendly_wrap.vue +1 -1
  37. package/src/tokens/build/css/tokens.css +32 -0
  38. package/src/tokens/build/css/tokens.dark.css +32 -0
  39. package/src/tokens/build/js/tokens.dark.js +32 -0
  40. package/src/tokens/build/js/tokens.js +32 -0
  41. package/src/tokens/build/json/tokens.dark.json +887 -0
  42. package/src/tokens/build/json/tokens.json +887 -0
  43. package/src/tokens/build/scss/_tokens.dark.scss +32 -0
  44. package/src/tokens/build/scss/_tokens.scss +32 -0
  45. package/src/tokens/build/scss/_tokens_custom_properties.scss +32 -0
  46. package/src/tokens/contextual/illustration.tokens.json +366 -0
  47. package/src/tokens/tokens_table.vue +1 -1
  48. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown.js +1 -1
  49. package/src/vendor/bootstrap-vue/src/components/form/form-invalid-feedback.js +1 -1
  50. package/src/vendor/bootstrap-vue/src/components/form/form-invalid-feedback.spec.js +10 -10
  51. package/src/vendor/bootstrap-vue/src/components/form/form-valid-feedback.js +1 -1
  52. package/src/vendor/bootstrap-vue/src/components/form/form-valid-feedback.spec.js +10 -10
  53. package/src/vendor/bootstrap-vue/src/components/form-group/form-group.js +4 -4
  54. package/src/vendor/bootstrap-vue/src/components/form-group/form-group.spec.js +3 -3
  55. package/src/vendor/bootstrap-vue/src/components/modal/helpers/modal-manager.js +1 -1
  56. package/src/vendor/bootstrap-vue/src/components/table/helpers/mixin-sorting.js +2 -2
  57. package/src/vendor/bootstrap-vue/src/components/table/helpers/mixin-table-renderer.js +1 -1
  58. package/src/vendor/bootstrap-vue/src/components/table/helpers/mixin-thead.js +1 -1
  59. package/src/vendor/bootstrap-vue/src/components/table/table-lite.spec.js +2 -2
  60. package/src/vendor/bootstrap-vue/src/components/table/table-simple.spec.js +2 -2
  61. package/src/vendor/bootstrap-vue/src/components/table/table.spec.js +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # [105.2.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v105.1.1...v105.2.0) (2024-12-12)
2
+
3
+
4
+ ### Features
5
+
6
+ * **DesignTokens:** Add design tokens for illustrations ([1682bb4](https://gitlab.com/gitlab-org/gitlab-ui/commit/1682bb4ef172ad67f4115c891fa9bcabb70a67d7))
7
+ * **DesignTokens:** Add illustration stroke width ([75cbe2d](https://gitlab.com/gitlab-org/gitlab-ui/commit/75cbe2d3bd77d89dc10da93652e35b3f48132d65))
8
+
9
+ ## [105.1.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v105.1.0...v105.1.1) (2024-12-10)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **GlFilteredSearch:** allow passing null values to non multi select inputs ([01446a9](https://gitlab.com/gitlab-org/gitlab-ui/commit/01446a98d1afc579574e1bacad742788a0bf4837))
15
+
1
16
  # [105.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v105.0.1...v105.1.0) (2024-12-06)
2
17
 
3
18
 
@@ -274,8 +274,8 @@ var script = {
274
274
  const drawEvent = this.draw.bind(this);
275
275
  const pikadayConfig = {
276
276
  field: this.$el.querySelector('input[type="text"]'),
277
- // `position-absolute` is needed because of this bug: https://github.com/Pikaday/Pikaday/issues/840
278
- theme: `gl-datepicker-theme position-absolute ${this.theme}`,
277
+ // `!gl-absolute` is needed because of this bug: https://github.com/Pikaday/Pikaday/issues/840
278
+ theme: `gl-datepicker-theme !gl-absolute ${this.theme}`,
279
279
  defaultDate: this.defaultDate || this.value,
280
280
  setDefaultDate: Boolean(this.value) || Boolean(this.defaultDate),
281
281
  minDate: this.minDate,
@@ -214,6 +214,18 @@ var script = {
214
214
  inputValue(newValue) {
215
215
  if (this.termsAsTokens()) return;
216
216
  if (this.multiSelect) return;
217
+
218
+ /**
219
+ * This is a temporary workaround to implement the same behaviour
220
+ * implemented in https://gitlab.com/gitlab-org/gitlab-ui/-/issues/2381
221
+ * for tokens with `terms-as-tokens=false` and `multi-select=false`.
222
+ *
223
+ * We're aiming to remove this temporary fix when
224
+ * https://gitlab.com/groups/gitlab-org/-/epics/15948 gets completed, as
225
+ * that refactoring will use the `@input` handler on the GlFilteredSearch
226
+ * component to handle tokens instead of doing workarounds.
227
+ */
228
+ if (typeof newValue !== 'string') return;
217
229
  const hasUnclosedQuote = newValue.split('"').length % 2 === 0;
218
230
  if (newValue.indexOf(' ') === -1 || hasUnclosedQuote) {
219
231
  return;
@@ -145,7 +145,7 @@ var script = {
145
145
  const __vue_script__ = script;
146
146
 
147
147
  /* template */
148
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"gl-flex-row-reverse gl-justify-between sm:gl-flex"},[_vm._t("header"),_vm._v(" "),(_vm.filterable)?_c('gl-search-box-by-type',{on:{"input":_vm.query}}):_vm._e()],2),_vm._v(" "),_vm._t("subheader"),_vm._v(" "),_c('ul',{staticClass:"gl-m-0 gl-grid gl-list-none gl-grid-cols-1 gl-divide-x-0 gl-divide-y gl-divide-solid gl-divide-default gl-p-0"},_vm._l((_vm.paginatedList),function(listItem){return _c('li',{key:listItem[_vm.itemKey],staticClass:"gl-px-5 gl-py-4"},[_vm._t("default",function(){return [_vm._v(_vm._s(listItem.id))]},{"listItem":listItem,"query":_vm.queryStr})],2)}),0),_vm._v(" "),(!_vm.emptyList)?_c('gl-pagination',_vm._b({attrs:{"align":"center","per-page":_vm.pageInfo.perPage,"value":_vm.pageInfo.page,"total-items":_vm.pageInfo.total},on:{"input":_vm.change}},'gl-pagination',_vm.$attrs,false)):_vm._e(),_vm._v(" "),(_vm.emptyList)?_c('div',{staticClass:"bs-callout bs-callout-warning mt-3 empty-message",class:{ 'empty-message': _vm.zeroTotal, 'empty-search': _vm.zeroSearchResults }},[_vm._v(_vm._s(_vm.zeroTotal ? _vm.emptyMessage : _vm.emptySearchMessage))]):_vm._e()],2)};
148
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"gl-flex-row-reverse gl-justify-between sm:gl-flex"},[_vm._t("header"),_vm._v(" "),(_vm.filterable)?_c('gl-search-box-by-type',{on:{"input":_vm.query}}):_vm._e()],2),_vm._v(" "),_vm._t("subheader"),_vm._v(" "),_c('ul',{staticClass:"gl-m-0 gl-grid gl-list-none gl-grid-cols-1 gl-divide-x-0 gl-divide-y gl-divide-solid gl-divide-default gl-p-0"},_vm._l((_vm.paginatedList),function(listItem){return _c('li',{key:listItem[_vm.itemKey],staticClass:"gl-px-5 gl-py-4"},[_vm._t("default",function(){return [_vm._v(_vm._s(listItem.id))]},{"listItem":listItem,"query":_vm.queryStr})],2)}),0),_vm._v(" "),(!_vm.emptyList)?_c('gl-pagination',_vm._b({attrs:{"align":"center","per-page":_vm.pageInfo.perPage,"value":_vm.pageInfo.page,"total-items":_vm.pageInfo.total},on:{"input":_vm.change}},'gl-pagination',_vm.$attrs,false)):_vm._e(),_vm._v(" "),(_vm.emptyList)?_c('div',{staticClass:"bs-callout bs-callout-warning empty-message gl-mt-5",class:{ 'empty-message': _vm.zeroTotal, 'empty-search': _vm.zeroSearchResults }},[_vm._v(_vm._s(_vm.zeroTotal ? _vm.emptyMessage : _vm.emptySearchMessage))]):_vm._e()],2)};
149
149
  var __vue_staticRenderFns__ = [];
150
150
 
151
151
  /* style */
@@ -18,8 +18,8 @@ var script = {
18
18
  const __vue_script__ = script;
19
19
 
20
20
  /* template */
21
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"row dashboard-cards"},_vm._l((_vm.cards),function(index){return _c('div',{key:index,staticClass:"col-12 col-md-6 col-xl-4 px-2"},[_c('div',{staticClass:"rounded-top py-4 bg-light"}),_vm._v(" "),_vm._m(0,true)])}),0)};
22
- var __vue_staticRenderFns__ = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"dashboard-card-body card-body bg-secondary"},[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-1 align-self-center"},[_c('div',{staticClass:"bg-light p-3 rounded-circle"})]),_vm._v(" "),_c('div',{staticClass:"col-10 col-sm-6 align-self-center pl-4"},[_c('div',{staticClass:"dashboard-card-skeleton-info bg-light py-2 w-100 mb-2"}),_vm._v(" "),_c('div',{staticClass:"dashboard-card-skeleton-info bg-light py-2 w-100"})]),_vm._v(" "),_c('div',{staticClass:"col-sm-5 align-self-center d-none d-sm-block"},[_c('div',{staticClass:"dashboard-card-skeleton-info bg-light py-2 w-100"})])]),_vm._v(" "),_c('div',{staticClass:"dashboard-card-footer bg-light py-3 mt-3"})])}];
21
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"row dashboard-cards"},_vm._l((_vm.cards),function(index){return _c('div',{key:index,staticClass:"col-12 col-md-6 col-xl-4 gl-px-3"},[_c('div',{staticClass:"gl-rounded-t-base gl-bg-status-neutral gl-py-6"}),_vm._v(" "),_vm._m(0,true)])}),0)};
22
+ var __vue_staticRenderFns__ = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"dashboard-card-body card-body bg-secondary"},[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-1 gl-self-center"},[_c('div',{staticClass:"gl-rounded-full gl-bg-status-neutral gl-p-5"})]),_vm._v(" "),_c('div',{staticClass:"col-10 col-sm-6 pl-4 gl-self-center"},[_c('div',{staticClass:"dashboard-card-skeleton-info gl-mb-3 gl-w-full gl-bg-status-neutral gl-py-3"}),_vm._v(" "),_c('div',{staticClass:"dashboard-card-skeleton-info gl-w-full gl-bg-status-neutral gl-py-3"})]),_vm._v(" "),_c('div',{staticClass:"col-sm-5 gl-hidden gl-self-center sm:gl-block"},[_c('div',{staticClass:"dashboard-card-skeleton-info gl-w-full gl-bg-status-neutral gl-py-3"})])]),_vm._v(" "),_c('div',{staticClass:"dashboard-card-footer gl-mt-5 gl-bg-status-neutral gl-py-5"})])}];
23
23
 
24
24
  /* style */
25
25
  const __vue_inject_styles__ = undefined;
@@ -33,7 +33,7 @@ var script = {
33
33
  const textParts = splitAfterSymbols(symbols, text !== null && text !== void 0 ? text : '');
34
34
  const content = intersperse(() => createElement('wbr'), textParts);
35
35
  return createElement('span', {
36
- class: 'text-break'
36
+ class: 'gl-break-words'
37
37
  }, content);
38
38
  }
39
39
  };