@hashicorp/design-system-components 1.5.0 → 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 CHANGED
@@ -1,5 +1,30 @@
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
+
22
+ ## 1.5.1
23
+
24
+ ### Patch Changes
25
+
26
+ - [#867](https://github.com/hashicorp/design-system/pull/867) [`a26f3da41`](https://github.com/hashicorp/design-system/commit/a26f3da4158ea75e7bb06ba284d62f5169e7759d) Thanks [@MelSumner](https://github.com/MelSumner)! - Bugfix: removed extra space in label that was causing label and legend to be inconsistent. Moved the ` ` to the `required` indicator instead for consistency.
27
+
3
28
  ## 1.5.0
4
29
 
5
30
  ### Minor 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 HashiCorp Design System.
4
+ A package containing the components for the Helios Design System.
5
5
 
6
6
  [![npm version](https://badge.fury.io/js/%40hashicorp%2Fdesign-system-components.svg)](https://badge.fury.io/js/%40hashicorp%2Fdesign-system-components)
7
7
 
@@ -4,6 +4,7 @@
4
4
  <button
5
5
  type="button"
6
6
  class="hds-breadcrumb__truncation-toggle"
7
+ aria-label="show more"
7
8
  aria-expanded={{if t.isOpen "true" "false"}}
8
9
  {{on "click" t.onClickToggle}}
9
10
  >
@@ -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
+ &nbsp;<Hds::Badge aria-hidden="true" class={{this.classNames}} @size="small" @color="neutral" @text="Required" />
6
6
  {{/if}}
@@ -1,4 +1,4 @@
1
1
  <label class={{this.classNames}} for={{@controlId}} ...attributes>
2
- {{yield}}{{#if (or @isRequired @isOptional)}}&nbsp;{{/if}}
2
+ {{yield}}
3
3
  <Hds::Form::Indicator @isRequired={{@isRequired}} @isOptional={{@isOptional}} />
4
4
  </label>
@@ -1,4 +1,3 @@
1
- {{! template-lint-disable no-invalid-interactive }}
2
1
  <dialog
3
2
  class={{this.classNames}}
4
3
  ...attributes
@@ -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(`.hds-table__td--text-${this.align}`);
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(`.hds-table__th-sort--text-${this.align}`);
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(`.hds-table__th--text-${this.align}`);
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
- {{#if @count}}
23
- <Hds::BadgeCount @text={{@count}} @size="small" class="hds-tabs__tab-count" />
24
- {{/if}}
21
+ {{#if @count}}
22
+ <Hds::BadgeCount @text={{@count}} @size="small" class="hds-tabs__tab-count" role="presentation" />
23
+ {{/if}}
24
+ </button>
25
25
  </li>
@@ -66,8 +66,9 @@
66
66
  $bottom: var(--token-tabs-tab-focus-inset),
67
67
  $left: var(--token-tabs-tab-focus-inset),
68
68
  );
69
-
70
69
  position: static;
70
+ display: flex;
71
+ align-items: center;
71
72
  padding: 0;
72
73
  color: inherit;
73
74
  background-color: transparent;
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@hashicorp/design-system-components",
3
- "version": "1.5.0",
4
- "description": "HashiCorp Design System Components",
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.0",
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.16.0",
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",
package/vercel.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "headers": [
3
+ {
4
+ "source": "/(.*)",
5
+ "headers" : [
6
+ {
7
+ "key" : "X-Robots-Tag",
8
+ "value" : "none"
9
+ }
10
+ ]
11
+ }
12
+ ]
13
+ }