@hashicorp/design-system-components 1.5.1 → 1.5.2
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 +19 -0
- package/README.md +1 -1
- package/addon/components/hds/breadcrumb/truncation.hbs +1 -0
- package/addon/components/hds/form/indicator/index.hbs +2 -2
- package/addon/components/hds/modal/index.hbs +0 -1
- package/addon/components/hds/table/index.js +6 -0
- package/addon/components/hds/table/td.js +1 -1
- package/addon/components/hds/table/th-sort.js +1 -1
- package/addon/components/hds/table/th.js +1 -1
- package/addon/components/hds/tabs/tab.hbs +8 -8
- package/app/styles/components/tabs.scss +2 -1
- package/package.json +5 -4
- package/vercel.json +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @hashicorp/design-system-components
|
|
2
2
|
|
|
3
|
+
## 1.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1036](https://github.com/hashicorp/design-system/pull/1036) [`b1756288e`](https://github.com/hashicorp/design-system/commit/b1756288e907dd36784fd33921e016d99a1b3417) Thanks [@Dhaulagiri](https://github.com/Dhaulagiri)! - Update design system name to Helios
|
|
8
|
+
|
|
9
|
+
* [#971](https://github.com/hashicorp/design-system/pull/971) [`fa819fedf`](https://github.com/hashicorp/design-system/commit/fa819fedf22b2dee45e8ee1119b98099f5402524) Thanks [@alex-ju](https://github.com/alex-ju)! - Fix repetitive required field indicator for screen readers
|
|
10
|
+
|
|
11
|
+
- [#1130](https://github.com/hashicorp/design-system/pull/1130) [`34fb0fe18`](https://github.com/hashicorp/design-system/commit/34fb0fe18895e59676fb208dc6025d2d15353336) Thanks [@MelSumner](https://github.com/MelSumner)! - Moves icon and count inside of tab (button element) for WCAG conformance
|
|
12
|
+
|
|
13
|
+
* [#1157](https://github.com/hashicorp/design-system/pull/1157) [`39b645296`](https://github.com/hashicorp/design-system/commit/39b64529645110c0980c253c2e01099e2b585bc0) Thanks [@MelSumner](https://github.com/MelSumner)! - Fixes malformed CSS classes in table component
|
|
14
|
+
|
|
15
|
+
- [#1080](https://github.com/hashicorp/design-system/pull/1080) [`1dde47948`](https://github.com/hashicorp/design-system/commit/1dde47948ef2aa2400e8f39e49e060d7507db037) Thanks [@didoo](https://github.com/didoo)! - Added `onSort` callback to `Hds::Table` component
|
|
16
|
+
|
|
17
|
+
* [#1127](https://github.com/hashicorp/design-system/pull/1127) [`4eaf727e7`](https://github.com/hashicorp/design-system/commit/4eaf727e7b9ac732c1cc5a053d9e5a4b636ffc78) Thanks [@MelSumner](https://github.com/MelSumner)! - Adds missing aria-label to breadcrumb truncation toggle for WCAG conformance.
|
|
18
|
+
|
|
19
|
+
* Updated dependencies [[`b1756288e`](https://github.com/hashicorp/design-system/commit/b1756288e907dd36784fd33921e016d99a1b3417)]:
|
|
20
|
+
- @hashicorp/design-system-tokens@1.3.1
|
|
21
|
+
|
|
3
22
|
## 1.5.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
design-system-components
|
|
2
2
|
==============================================================================
|
|
3
3
|
|
|
4
|
-
A package containing the components for the
|
|
4
|
+
A package containing the components for the Helios Design System.
|
|
5
5
|
|
|
6
6
|
[](https://badge.fury.io/js/%40hashicorp%2Fdesign-system-components)
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{{#if @isOptional}}
|
|
2
|
-
<span class={{this.classNames}}>(Optional)</span>
|
|
2
|
+
<span aria-hidden="true" class={{this.classNames}}>(Optional)</span>
|
|
3
3
|
{{/if}}
|
|
4
4
|
{{#if @isRequired}}
|
|
5
|
-
<Hds::Badge class={{this.classNames}} @size="small" @color="neutral" @text="Required" />
|
|
5
|
+
<Hds::Badge aria-hidden="true" class={{this.classNames}} @size="small" @color="neutral" @text="Required" />
|
|
6
6
|
{{/if}}
|
|
@@ -117,5 +117,11 @@ export default class HdsTableIndexComponent extends Component {
|
|
|
117
117
|
}
|
|
118
118
|
// we should allow the user to define a custom value here (e.g., for i18n) - tracked with HDS-965
|
|
119
119
|
this.sortedMessageText = `Sorted by ${this.sortBy} ${this.sortOrder}ending`;
|
|
120
|
+
|
|
121
|
+
let { onSort } = this.args;
|
|
122
|
+
|
|
123
|
+
if (typeof onSort === 'function') {
|
|
124
|
+
onSort(this.sortBy, this.sortOrder);
|
|
125
|
+
}
|
|
120
126
|
}
|
|
121
127
|
}
|
|
@@ -37,7 +37,7 @@ export default class HdsTableTdComponent extends Component {
|
|
|
37
37
|
|
|
38
38
|
// add a class based on the @align argument
|
|
39
39
|
if (this.align) {
|
|
40
|
-
classes.push(
|
|
40
|
+
classes.push(`hds-table__td--text-${this.align}`);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
return classes.join(' ');
|
|
@@ -73,7 +73,7 @@ export default class HdsTableThSortComponent extends Component {
|
|
|
73
73
|
|
|
74
74
|
// add a class based on the @align argument
|
|
75
75
|
if (this.align) {
|
|
76
|
-
classes.push(
|
|
76
|
+
classes.push(`hds-table__th-sort--text-${this.align}`);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
return classes.join(' ');
|
|
@@ -37,7 +37,7 @@ export default class HdsTableThComponent extends Component {
|
|
|
37
37
|
|
|
38
38
|
// add a class based on the @align argument
|
|
39
39
|
if (this.align) {
|
|
40
|
-
classes.push(
|
|
40
|
+
classes.push(`hds-table__th--text-${this.align}`);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
return classes.join(' ');
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
{{! template-lint-disable require-context-role no-invalid-role }}
|
|
2
2
|
<li class={{this.classNames}} ...attributes role="presentation">
|
|
3
|
-
{{#if @icon}}
|
|
4
|
-
<FlightIcon @name={{@icon}} class="hds-tabs__tab-icon" />
|
|
5
|
-
{{/if}}
|
|
6
|
-
|
|
7
3
|
<button
|
|
8
4
|
class="hds-tabs__tab-button hds-typography-body-200 hds-font-weight-medium"
|
|
9
5
|
role="tab"
|
|
@@ -16,10 +12,14 @@
|
|
|
16
12
|
{{on "click" this.onClick}}
|
|
17
13
|
{{on "keyup" this.onKeyUp}}
|
|
18
14
|
>
|
|
15
|
+
{{#if @icon}}
|
|
16
|
+
<FlightIcon @name={{@icon}} class="hds-tabs__tab-icon" role="presentation" />
|
|
17
|
+
{{/if}}
|
|
18
|
+
|
|
19
19
|
{{yield}}
|
|
20
|
-
</button>
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
{{#if @count}}
|
|
22
|
+
<Hds::BadgeCount @text={{@count}} @size="small" class="hds-tabs__tab-count" role="presentation" />
|
|
23
|
+
{{/if}}
|
|
24
|
+
</button>
|
|
25
25
|
</li>
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashicorp/design-system-components",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.5.2",
|
|
4
|
+
"description": "Helios Design System Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hashicorp",
|
|
7
|
+
"helios",
|
|
7
8
|
"design system",
|
|
8
9
|
"components",
|
|
9
10
|
"ember-addon"
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"test:ember:percy": "percy exec ember test"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@hashicorp/design-system-tokens": "^1.3.
|
|
40
|
+
"@hashicorp/design-system-tokens": "^1.3.1",
|
|
40
41
|
"@hashicorp/ember-flight-icons": "^3.0.2",
|
|
41
42
|
"dialog-polyfill": "^0.5.6",
|
|
42
43
|
"ember-auto-import": "^2.4.2",
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"@embroider/test-setup": "^1.8.3",
|
|
59
60
|
"@glimmer/component": "^1.1.2",
|
|
60
61
|
"@glimmer/tracking": "^1.1.2",
|
|
61
|
-
"@percy/cli": "^1.
|
|
62
|
+
"@percy/cli": "^1.17.0",
|
|
62
63
|
"@percy/ember": "^4.0.0",
|
|
63
64
|
"babel-eslint": "^10.1.0",
|
|
64
65
|
"broccoli-asset-rev": "^3.0.0",
|