@gitlab/ui 32.24.0 → 32.24.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/accordion/accordion.documentation.js +8 -0
- package/dist/components/base/accordion/accordion_item.documentation.js +7 -0
- package/dist/components/base/daterange_picker/daterange_picker.documentation.js +8 -0
- package/documentation/components_documentation.js +3 -0
- package/package.json +3 -3
- package/src/components/base/accordion/accordion.documentation.js +6 -0
- package/src/components/base/accordion/accordion_item.documentation.js +5 -0
- package/src/components/base/daterange_picker/daterange_picker.documentation.js +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [32.24.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v32.24.0...v32.24.1) (2021-10-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* revert components' `.documentations.js` files ([5fbcd1f](https://gitlab.com/gitlab-org/gitlab-ui/commit/5fbcd1f93b5e5a3b3d607cfa109425dae97631ac))
|
|
7
|
+
|
|
1
8
|
# [32.24.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v32.23.0...v32.24.0) (2021-10-22)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var description = "Accordions are used to group similar content and hide or show it depending on user needs or\npreferences. Accordions give users more granular control over the interface and help digest content\nin stages, rather than all at once.\n";
|
|
2
|
+
|
|
3
|
+
var accordion_documentation = {
|
|
4
|
+
followsDesignSystem: true,
|
|
5
|
+
description
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default accordion_documentation;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var description = "## Usage\n\nDaterange picker allows users to choose a date range by manually typing the start/end date\ninto the input fields or by using a calendar-like dropdown.\n\nA `maxDateRange` can be specified in order to limit the maximum number of days the component\nwill allow to be selected i.e. if the start date is `2020-08-01` and `maxDateRange` is set to `10`,\nthe highest selectable end date would be `2020-08-11`. This value will be offset by `1` if\n`sameDaySelection` is set to `true`. A `defaultMaxDate` will need to be\nprovided when making use of the `maxDateRange`.\n\nBy default, the component does not allow selection of the same start and end date.\nIn a scenario where this is required, the `sameDaySelection` property can be configured.\nThis is specifically useful when a single day selection is being defined as `2020-01-01 00:00:00`\nto `2020-01-01 23:59:59` instead of `2020-01-01 00:00:00` to `2020-01-02 00:00:00`.\n\nWhen `maxDateRange` is set it's a good idea to set the `tooltip` specifying the date range limit\nand to indicate the number of days currently selected using the default slot. For example:\n\n```vue\n<template #default=\"{ daysSelected }\">\n <span v-if=\"daysSelected > -1\">{{ daysSelected }} days selected</span>\n <span v-else>No days selected</span>\n</template>\n```\n\nThe `daysSelected` slot prop is the effective date range, thus the value is increased by one when\n`sameDaySelection` is set to `true`. When no date range has been selected the value is `-1`.\n\n### Note\n\nIf specifying a maxDateRange, it is good practice to include a date range indicator and toolip.\n";
|
|
2
|
+
|
|
3
|
+
var daterange_picker_documentation = {
|
|
4
|
+
followsDesignSystem: true,
|
|
5
|
+
description
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default daterange_picker_documentation;
|
|
@@ -73,6 +73,7 @@ export { default as GlLabelDocumentation } from '../src/components/base/label/la
|
|
|
73
73
|
export { default as GlDatepickerDocumentation } from '../src/components/base/datepicker/datepicker.documentation';
|
|
74
74
|
export { default as GlTokenDocumentation } from '../src/components/base/token/token.documentation';
|
|
75
75
|
export { default as GlToggleDocumentation } from '../src/components/base/toggle/toggle.documentation';
|
|
76
|
+
export { default as GlDaterangePickerDocumentation } from '../src/components/base/daterange_picker/daterange_picker.documentation';
|
|
76
77
|
export { default as GlSortingDocumentation } from '../src/components/base/sorting/sorting.documentation';
|
|
77
78
|
export { default as GlSortingItemDocumentation } from '../src/components/base/sorting/sorting_item.documentation';
|
|
78
79
|
export { default as GlInfiniteScrollDocumentation } from '../src/components/base/infinite_scroll/infinite_scroll.documentation';
|
|
@@ -92,6 +93,8 @@ export { default as GlFilteredSearchTokenSegmentDocumentation } from '../src/com
|
|
|
92
93
|
export { default as GlFilteredSearchDocumentation } from '../src/components/base/filtered_search/filtered_search.documentation';
|
|
93
94
|
export { default as GlBroadcastMessageDocumentation } from '../src/components/base/broadcast_message/broadcast_message.documentation';
|
|
94
95
|
export { default as GlCollapseDocumentation } from '../src/components/base/collapse/collapse.documentation';
|
|
96
|
+
export { default as GlAccordionDocumentation } from '../src/components/base/accordion/accordion.documentation';
|
|
97
|
+
export { default as GlAccordionItemDocumentation } from '../src/components/base/accordion/accordion_item.documentation';
|
|
95
98
|
export { default as GlCarouselDocumentation } from '../src/components/base/carousel/carousel.documentation';
|
|
96
99
|
export { default as GlSafeLinkDirectiveDocumentation } from '../src/directives/safe_link/safe_link.documentation';
|
|
97
100
|
export { default as GlSafeHtmlDirectiveDocumentation } from '../src/directives/safe_html/safe_html.documentation';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "32.24.
|
|
3
|
+
"version": "32.24.1",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -142,8 +142,8 @@
|
|
|
142
142
|
"sass-true": "^5.0.0",
|
|
143
143
|
"start-server-and-test": "^1.10.6",
|
|
144
144
|
"storybook-readme": "5.0.9",
|
|
145
|
-
"stylelint-config-prettier": "
|
|
146
|
-
"stylelint-prettier": "
|
|
145
|
+
"stylelint-config-prettier": "8.0.2",
|
|
146
|
+
"stylelint-prettier": "1.1.2",
|
|
147
147
|
"vue": "^2.6.11",
|
|
148
148
|
"vue-jest": "4.0.0-rc.0",
|
|
149
149
|
"vue-loader": "^15.8.3",
|