@gitlab/ui 72.14.0 → 73.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.
- package/CHANGELOG.md +20 -0
- package/dist/components/base/sorting/sorting.js +4 -9
- package/dist/index.js +0 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/dist/utils/play_utils.js +11 -0
- package/package.json +4 -1
- package/src/components/base/button/button.stories.js +22 -7
- package/src/components/base/filtered_search/filtered_search.stories.js +10 -3
- package/src/components/base/filtered_search/filtered_search_suggestion_list.stories.js +6 -3
- package/src/components/base/filtered_search/filtered_search_term.stories.js +2 -3
- package/src/components/base/filtered_search/filtered_search_token.stories.js +5 -20
- package/src/components/base/filtered_search/filtered_search_token_segment.stories.js +3 -6
- package/src/components/base/form/form_combobox/form_combobox.stories.js +23 -9
- package/src/components/base/sorting/sorting.md +0 -63
- package/src/components/base/sorting/sorting.spec.js +11 -87
- package/src/components/base/sorting/sorting.stories.js +13 -47
- package/src/components/base/sorting/sorting.vue +2 -20
- package/src/components/base/toast/toast.stories.js +12 -9
- package/src/components/base/token_selector/token_selector.stories.js +8 -3
- package/src/components/base/tooltip/tooltip.stories.js +13 -3
- package/src/components/utilities/animated_number/animated_number.stories.js +0 -13
- package/src/index.js +0 -1
- package/src/scss/utilities.scss +2 -2
- package/src/scss/utility-mixins/typography.scss +1 -1
- package/src/utils/play_utils.js +9 -0
- package/dist/components/base/sorting/sorting_item.js +0 -109
- package/src/components/base/sorting/sorting_item.md +0 -5
- package/src/components/base/sorting/sorting_item.spec.js +0 -65
- package/src/components/base/sorting/sorting_item.stories.js +0 -50
- package/src/components/base/sorting/sorting_item.vue +0 -69
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [73.0.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v73.0.0...v73.0.1) (2024-01-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **Typography:** Change name of display heading ([e00a243](https://gitlab.com/gitlab-org/gitlab-ui/commit/e00a2439b797fb92b6ee2d248e7c0b11afb91181)), closes [/gitlab.com/gitlab-org/gitlab-services/design.gitlab.com/-/merge_requests/3707#note_1749912712](https://gitlab.com//gitlab.com/gitlab-org/gitlab-services/design.gitlab.com/-/merge_requests/3707/issues/note_1749912712)
|
|
7
|
+
|
|
8
|
+
# [73.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v72.14.0...v73.0.0) (2024-01-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* remove deprecated GlDropdown usage from GlSorting ([9621e68](https://gitlab.com/gitlab-org/gitlab-ui/commit/9621e6872f650570a106a5534ed007c1b76c40f3))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
* Remove `GlSortingItem` component and deprecated API
|
|
19
|
+
from GlSorting
|
|
20
|
+
|
|
1
21
|
# [72.14.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v72.13.0...v72.14.0) (2024-01-30)
|
|
2
22
|
|
|
3
23
|
|
|
@@ -3,7 +3,6 @@ import GlButton from '../button/button';
|
|
|
3
3
|
import GlButtonGroup from '../button_group/button_group';
|
|
4
4
|
import GlCollapsibleListbox from '../new_dropdowns/listbox/listbox';
|
|
5
5
|
import { isOption } from '../new_dropdowns/listbox/utils';
|
|
6
|
-
import GlDropdown from '../dropdown/dropdown';
|
|
7
6
|
import { translate } from '../../../utils/i18n';
|
|
8
7
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
9
8
|
|
|
@@ -12,8 +11,7 @@ var script = {
|
|
|
12
11
|
components: {
|
|
13
12
|
GlButton,
|
|
14
13
|
GlButtonGroup,
|
|
15
|
-
GlCollapsibleListbox
|
|
16
|
-
GlDropdown
|
|
14
|
+
GlCollapsibleListbox
|
|
17
15
|
},
|
|
18
16
|
directives: {
|
|
19
17
|
GlTooltip: GlTooltipDirective
|
|
@@ -33,7 +31,7 @@ var script = {
|
|
|
33
31
|
sortOptions: {
|
|
34
32
|
type: Array,
|
|
35
33
|
required: false,
|
|
36
|
-
default:
|
|
34
|
+
default: () => [],
|
|
37
35
|
// eslint-disable-next-line unicorn/no-array-callback-reference
|
|
38
36
|
validator: sortOptions => sortOptions.every(isOption)
|
|
39
37
|
},
|
|
@@ -64,7 +62,7 @@ var script = {
|
|
|
64
62
|
default: null
|
|
65
63
|
},
|
|
66
64
|
/**
|
|
67
|
-
* Additional class(es) to apply to the root element of the
|
|
65
|
+
* Additional class(es) to apply to the root element of the GlCollapsibleListbox.
|
|
68
66
|
*/
|
|
69
67
|
dropdownClass: {
|
|
70
68
|
type: String,
|
|
@@ -96,9 +94,6 @@ var script = {
|
|
|
96
94
|
if (this.sortDirectionToolTip) return this.sortDirectionToolTip;
|
|
97
95
|
return this.isAscending ? translate('GlSorting.sortAscending', 'Sort direction: ascending') : translate('GlSorting.sortDescending', 'Sort direction: descending');
|
|
98
96
|
},
|
|
99
|
-
useListbox() {
|
|
100
|
-
return Boolean(this.sortOptions);
|
|
101
|
-
},
|
|
102
97
|
listboxToggleClass() {
|
|
103
98
|
return [this.dropdownToggleClass, 'gl-rounded-top-right-none!', 'gl-rounded-bottom-right-none!', 'gl-focus-z-index-1'];
|
|
104
99
|
}
|
|
@@ -136,7 +131,7 @@ var script = {
|
|
|
136
131
|
const __vue_script__ = script;
|
|
137
132
|
|
|
138
133
|
/* template */
|
|
139
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-button-group',{staticClass:"gl-sorting"},[
|
|
134
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-button-group',{staticClass:"gl-sorting"},[_c('gl-collapsible-listbox',{class:_vm.dropdownClass,attrs:{"toggle-text":_vm.text,"items":_vm.sortOptions,"selected":_vm.sortBy,"toggle-class":_vm.listboxToggleClass,"placement":"right"},on:{"select":_vm.onSortByChanged}}),_vm._v(" "),_c('gl-button',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],class:['sorting-direction-button', _vm.sortDirectionToggleClass],attrs:{"title":_vm.sortDirectionText,"icon":_vm.localSortDirection,"aria-label":_vm.sortDirectionText},on:{"click":_vm.toggleSortDirection}})],1)};
|
|
140
135
|
var __vue_staticRenderFns__ = [];
|
|
141
136
|
|
|
142
137
|
/* style */
|
package/dist/index.js
CHANGED
|
@@ -67,7 +67,6 @@ export { default as GlDatepicker } from './components/base/datepicker/datepicker
|
|
|
67
67
|
export { default as GlDaterangePicker } from './components/base/daterange_picker/daterange_picker';
|
|
68
68
|
export { default as GlToggle } from './components/base/toggle/toggle';
|
|
69
69
|
export { default as GlSorting } from './components/base/sorting/sorting';
|
|
70
|
-
export { default as GlSortingItem } from './components/base/sorting/sorting_item';
|
|
71
70
|
export { default as GlInfiniteScroll } from './components/base/infinite_scroll/infinite_scroll';
|
|
72
71
|
export { default as GlAlert } from './components/base/alert/alert';
|
|
73
72
|
export { default as GlSegmentedControl } from './components/base/segmented_control/segmented_control';
|
package/dist/tokens/js/tokens.js
CHANGED