@gitlab/ui 49.4.0 → 49.5.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 +15 -0
- package/dist/components/base/datepicker/datepicker.js +14 -2
- package/dist/components/charts/discrete_scatter/discrete_scatter.js +1 -1
- package/dist/components/charts/heatmap/heatmap.js +1 -1
- package/dist/components/charts/legend/legend.js +1 -1
- package/dist/components/charts/line/line.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/dist/utils/charts/theme.js +8 -8
- package/dist/utils/constants.js +5 -1
- package/package.json +3 -3
- package/scss_to_js/scss_variables.js +23 -23
- package/scss_to_js/scss_variables.json +35 -35
- package/src/components/base/datepicker/datepicker.scss +0 -7
- package/src/components/base/datepicker/datepicker.spec.js +15 -0
- package/src/components/base/datepicker/datepicker.stories.js +23 -2
- package/src/components/base/datepicker/datepicker.vue +20 -3
- package/src/components/base/filtered_search/__snapshots__/filtered_search_term.spec.js.snap +23 -4
- package/src/components/base/icon/__snapshots__/icon.spec.js.snap +9 -2
- package/src/components/base/paginated_list/__snapshots__/paginated_list.spec.js.snap +0 -70
- package/src/components/base/path/__snapshots__/path.spec.js.snap +3 -68
- package/src/scss/variables.scss +12 -12
- package/src/utils/constants.js +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [49.5.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.4.1...v49.5.0) (2022-11-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **css:** updating neutral gray colors to have a tint based on branding ([241b9d1](https://gitlab.com/gitlab-org/gitlab-ui/commit/241b9d16e41dc1b506ed3eb158272d949c8acd65))
|
|
7
|
+
* **datepicker:** add support for different datepicker sizes ([a502867](https://gitlab.com/gitlab-org/gitlab-ui/commit/a502867438144303d20c9fe0ad9c0b635f37bba2))
|
|
8
|
+
|
|
9
|
+
## [49.4.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.4.0...v49.4.1) (2022-11-04)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **deps:** upgrade bootstrap-vue to v2.23.1 ([168136a](https://gitlab.com/gitlab-org/gitlab-ui/commit/168136a9234754745ddbd7f08bdc33f95c80a115))
|
|
15
|
+
|
|
1
16
|
# [49.4.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.3.0...v49.4.0) (2022-11-04)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _isString from 'lodash/isString';
|
|
2
2
|
import Pikaday from 'pikaday';
|
|
3
|
-
import { defaultDateFormat } from '../../../utils/constants';
|
|
3
|
+
import { defaultDateFormat, datepickerSizeOptionsMap } from '../../../utils/constants';
|
|
4
4
|
import { areDatesEqual } from '../../../utils/datetime_utility';
|
|
5
5
|
import GlButton from '../button/button';
|
|
6
6
|
import GlFormInput from '../form/form_input/form_input';
|
|
@@ -170,6 +170,12 @@ var script = {
|
|
|
170
170
|
type: String,
|
|
171
171
|
required: false,
|
|
172
172
|
default: null
|
|
173
|
+
},
|
|
174
|
+
size: {
|
|
175
|
+
type: String,
|
|
176
|
+
required: false,
|
|
177
|
+
default: 'medium',
|
|
178
|
+
validator: value => Object.keys(datepickerSizeOptionsMap).includes(value)
|
|
173
179
|
}
|
|
174
180
|
},
|
|
175
181
|
data() {
|
|
@@ -201,6 +207,12 @@ var script = {
|
|
|
201
207
|
return 'off';
|
|
202
208
|
}
|
|
203
209
|
return null;
|
|
210
|
+
},
|
|
211
|
+
datepickerClasses() {
|
|
212
|
+
return ['gl-datepicker', 'd-inline-block', 'gl-w-full', `gl-form-input-${this.datepickerSize}`];
|
|
213
|
+
},
|
|
214
|
+
datepickerSize() {
|
|
215
|
+
return datepickerSizeOptionsMap[this.size];
|
|
204
216
|
}
|
|
205
217
|
},
|
|
206
218
|
watch: {
|
|
@@ -330,7 +342,7 @@ var script = {
|
|
|
330
342
|
const __vue_script__ = script;
|
|
331
343
|
|
|
332
344
|
/* template */
|
|
333
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{
|
|
345
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.datepickerClasses},[(_vm.showDefaultField)?_c('div',{staticClass:"gl-relative"},[_vm._t("default",function(){return [_c('gl-form-input',{staticClass:"gl-w-full",class:_vm.renderClearButton ? 'gl-pr-9!' : 'gl-pr-7!',attrs:{"id":_vm.inputId,"name":_vm.inputName,"data-testid":"gl-datepicker-input","value":_vm.formattedDate,"placeholder":_vm.placeholder,"autocomplete":_vm.inputAutocomplete,"disabled":_vm.disabled,"aria-label":_vm.inputLabel},on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.onKeydown.apply(null, arguments)}},model:{value:(_vm.textInput),callback:function ($$v) {_vm.textInput=$$v;},expression:"textInput"}})]},{"formattedDate":_vm.formattedDate}),_vm._v(" "),_c('div',{staticClass:"gl-datepicker-actions"},[(_vm.renderClearButton)?_c('gl-button',{staticClass:"gl-pointer-events-auto",attrs:{"data-testid":"clear-button","aria-label":"Clear date","category":"tertiary","size":"small","icon":"clear"},on:{"click":_vm.cleared}}):_vm._e(),_vm._v(" "),(_vm.triggerOnFocus || _vm.disabled)?_c('span',{staticClass:"gl-px-2",class:_vm.disabled ? 'gl-text-gray-400' : 'gl-text-gray-500',attrs:{"data-testid":"datepicker-calendar-icon"}},[_c('gl-icon',{staticClass:"gl-display-block",attrs:{"name":"calendar","size":16}})],1):_c('gl-button',{ref:"calendarTriggerBtn",staticClass:"gl-pointer-events-auto",attrs:{"aria-label":"Open datepicker","category":"tertiary","size":"small","icon":"calendar"}})],1)],2):_vm._t("default",null,{"formattedDate":_vm.formattedDate})],2)};
|
|
334
346
|
var __vue_staticRenderFns__ = [];
|
|
335
347
|
|
|
336
348
|
/* style */
|
|
@@ -8,7 +8,7 @@ import Chart from '../chart/chart';
|
|
|
8
8
|
import ChartTooltip from '../tooltip/tooltip';
|
|
9
9
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
10
10
|
|
|
11
|
-
const gray200 = '#
|
|
11
|
+
const gray200 = '#bfbfc3';
|
|
12
12
|
|
|
13
13
|
var script = {
|
|
14
14
|
components: {
|
|
@@ -6,7 +6,7 @@ import GlTruncate from '../../utilities/truncate/truncate';
|
|
|
6
6
|
import GlChartSeriesLabel from '../series_label/series_label';
|
|
7
7
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
8
8
|
|
|
9
|
-
const gray200 = '#
|
|
9
|
+
const gray200 = '#bfbfc3';
|
|
10
10
|
|
|
11
11
|
//
|
|
12
12
|
var script = {
|
|
@@ -11,7 +11,7 @@ import ChartLegend from '../legend/legend';
|
|
|
11
11
|
import ChartTooltip from '../tooltip/tooltip';
|
|
12
12
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
13
13
|
|
|
14
|
-
const gray200 = '#
|
|
14
|
+
const gray200 = '#bfbfc3';
|
|
15
15
|
|
|
16
16
|
//
|
|
17
17
|
var script = {
|