@gitlab/ui 38.5.0 → 38.5.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 +7 -0
- package/dist/components/base/datepicker/datepicker.js +2 -2
- package/package.json +2 -2
- package/src/components/base/datepicker/datepicker.spec.js +14 -0
- package/src/components/base/datepicker/datepicker.stories.js +1 -1
- package/src/components/base/datepicker/datepicker.vue +2 -2
- package/src/components/base/dropdown/dropdown.stories.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [38.5.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v38.5.0...v38.5.1) (2022-04-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **GlDatepicker:** fix prop name typo ([973a560](https://gitlab.com/gitlab-org/gitlab-ui/commit/973a56045daa15b7f0809911d34b587025214b76))
|
|
7
|
+
|
|
1
8
|
# [38.5.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v38.4.0...v38.5.0) (2022-04-05)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -106,7 +106,7 @@ var script = {
|
|
|
106
106
|
required: false,
|
|
107
107
|
default: 0
|
|
108
108
|
},
|
|
109
|
-
|
|
109
|
+
ariaLabel: {
|
|
110
110
|
type: String,
|
|
111
111
|
required: false,
|
|
112
112
|
default: ''
|
|
@@ -265,7 +265,7 @@ var script = {
|
|
|
265
265
|
},
|
|
266
266
|
disableDayFn: this.disableDayFn,
|
|
267
267
|
firstDay: this.firstDay,
|
|
268
|
-
|
|
268
|
+
ariaLabel: this.ariaLabel,
|
|
269
269
|
toString: date => defaultDateFormatter(date),
|
|
270
270
|
onSelect: this.selected.bind(this),
|
|
271
271
|
onClose: this.closed.bind(this),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "38.5.
|
|
3
|
+
"version": "38.5.1",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@babel/preset-env": "^7.10.2",
|
|
89
89
|
"@gitlab/eslint-plugin": "12.0.1",
|
|
90
90
|
"@gitlab/stylelint-config": "4.0.0",
|
|
91
|
-
"@gitlab/svgs": "2.
|
|
91
|
+
"@gitlab/svgs": "2.8.0",
|
|
92
92
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
93
93
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
94
94
|
"@rollup/plugin-replace": "^2.3.2",
|
|
@@ -73,6 +73,20 @@ describe('datepicker component', () => {
|
|
|
73
73
|
expect(Pikaday.prototype.show).toHaveBeenCalled();
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
+
describe('when `ariaLabel` prop is passed', () => {
|
|
77
|
+
it('configures pikaday with the given label', () => {
|
|
78
|
+
const ariaLabel = 'Meaningful description';
|
|
79
|
+
|
|
80
|
+
mountWithOptions({
|
|
81
|
+
propsData: {
|
|
82
|
+
ariaLabel,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
expect(pikadayConfig().ariaLabel).toBe(ariaLabel);
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
|
|
76
90
|
describe('when `target` prop is not passed', () => {
|
|
77
91
|
it('sets calendar icon as `trigger` option', () => {
|
|
78
92
|
const wrapper = mountWithOptions();
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
99
99
|
required: false,
|
|
100
100
|
default: 0,
|
|
101
101
|
},
|
|
102
|
-
|
|
102
|
+
ariaLabel: {
|
|
103
103
|
type: String,
|
|
104
104
|
required: false,
|
|
105
105
|
default: '',
|
|
@@ -244,7 +244,7 @@ export default {
|
|
|
244
244
|
},
|
|
245
245
|
disableDayFn: this.disableDayFn,
|
|
246
246
|
firstDay: this.firstDay,
|
|
247
|
-
|
|
247
|
+
ariaLabel: this.ariaLabel,
|
|
248
248
|
toString: (date) => defaultDateFormatter(date),
|
|
249
249
|
onSelect: this.selected.bind(this),
|
|
250
250
|
onClose: this.closed.bind(this),
|
|
@@ -218,7 +218,7 @@ export const WithHeaderAndFooter = (args, { argTypes }) => ({
|
|
|
218
218
|
<gl-dropdown-item>Fifth item</gl-dropdown-item>
|
|
219
219
|
<gl-dropdown-item>Sixth item</gl-dropdown-item>
|
|
220
220
|
<gl-dropdown-item>Seventh item</gl-dropdown-item>
|
|
221
|
-
<gl-dropdown-item>
|
|
221
|
+
<gl-dropdown-item>Eighth item</gl-dropdown-item>
|
|
222
222
|
<template #footer>
|
|
223
223
|
<gl-dropdown-item>First footer item</gl-dropdown-item>
|
|
224
224
|
<gl-dropdown-item>Second footer item</gl-dropdown-item>
|