@hashicorp/design-system-components 3.1.2 → 3.2.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 CHANGED
@@ -1,5 +1,35 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ `CodeBlock` - Added language support for Ruby syntax
8
+
9
+ <small>[#1834](https://github.com/hashicorp/design-system/pull/1834)</small>
10
+
11
+ ---
12
+
13
+ `Hds::Table` - updated `@columns` object to support `isVisuallyHidden` argument
14
+
15
+ - `Hds::Table::Th` - updated to support `isVisuallyHidden` argument
16
+
17
+ <small>[#1819](https://github.com/hashicorp/design-system/pull/1819)</small>
18
+
19
+ ---
20
+
21
+ ### Patch Changes
22
+
23
+ `SideNav` - Reduced the width of `SideNav::ToggleButton`
24
+
25
+ <small>[#1807](https://github.com/hashicorp/design-system/pull/1807)</small>
26
+
27
+ ---
28
+
29
+ **🔄 Updated dependencies:**
30
+
31
+ - @hashicorp/ember-flight-icons@4.0.4
32
+
3
33
  ## 3.1.2
4
34
 
5
35
  ### Patch Changes
@@ -20,6 +20,7 @@ import 'prismjs/components/prism-go';
20
20
  import 'prismjs/components/prism-hcl';
21
21
  import 'prismjs/components/prism-json';
22
22
  import 'prismjs/components/prism-log';
23
+ import 'prismjs/components/prism-ruby';
23
24
  import 'prismjs/components/prism-shell-session';
24
25
  import 'prismjs/components/prism-yaml';
25
26
 
@@ -22,7 +22,11 @@
22
22
  {{column.label}}
23
23
  </Hds::Table::ThSort>
24
24
  {{else}}
25
- <Hds::Table::Th @align={{column.align}} @width={{column.width}}>{{column.label}}</Hds::Table::Th>
25
+ <Hds::Table::Th
26
+ @align={{column.align}}
27
+ @width={{column.width}}
28
+ @isVisuallyHidden={{column.isVisuallyHidden}}
29
+ >{{column.label}}</Hds::Table::Th>
26
30
  {{/if}}
27
31
  {{/each}}
28
32
  </Hds::Table::Tr>
@@ -3,5 +3,9 @@
3
3
  SPDX-License-Identifier: MPL-2.0
4
4
  }}
5
5
  <th class={{this.classNames}} {{style width=@width minWidth=@width}} ...attributes scope={{(or @scope "col")}}>
6
- {{yield}}
6
+ {{#if @isVisuallyHidden}}
7
+ <span class="sr-only">{{yield}}</span>
8
+ {{else}}
9
+ {{yield}}
10
+ {{/if}}
7
11
  </th>
@@ -17,7 +17,6 @@
17
17
  @use "../components/app-footer";
18
18
  @use "../components/app-frame";
19
19
  @use "../components/application-state";
20
- @use "../components/avatar";
21
20
  @use "../components/badge";
22
21
  @use "../components/badge-count";
23
22
  @use "../components/breadcrumb";
@@ -16,7 +16,7 @@
16
16
  display: flex;
17
17
  flex-direction: row-reverse;
18
18
  align-items: center;
19
- width: 26px;
19
+ width: var(--hds-app-sidenav-toggle-button-width);
20
20
  height: 36px;
21
21
  padding: 0 4px;
22
22
  color: var(--token-color-foreground-high-contrast);
@@ -23,6 +23,8 @@
23
23
  --hds-app-sidenav-animation-duration: 200ms;
24
24
  --hds-app-sidenav-animation-delay: var(--hds-app-sidenav-animation-duration);
25
25
  --hds-app-sidenav-animation-easing: cubic-bezier(0.65, 0, 0.35, 1);
26
+ // toggle-button
27
+ --hds-app-sidenav-toggle-button-width: 24px;
26
28
  }
27
29
 
28
30
  // reduced motion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashicorp/design-system-components",
3
- "version": "3.1.2",
3
+ "version": "3.2.0",
4
4
  "description": "Helios Design System Components",
5
5
  "keywords": [
6
6
  "hashicorp",
@@ -44,7 +44,7 @@
44
44
  "@ember/string": "^3.1.1",
45
45
  "@ember/test-waiters": "^3.1.0",
46
46
  "@hashicorp/design-system-tokens": "^1.9.0",
47
- "@hashicorp/ember-flight-icons": "^4.0.3",
47
+ "@hashicorp/ember-flight-icons": "^4.0.4",
48
48
  "dialog-polyfill": "^0.5.6",
49
49
  "ember-a11y-refocus": "^3.0.2",
50
50
  "ember-auto-import": "^2.6.3",
@@ -118,7 +118,7 @@
118
118
  "sinon": "^17.0.0",
119
119
  "stylelint": "^15.11.0",
120
120
  "stylelint-config-rational-order": "^0.1.2",
121
- "stylelint-config-standard-scss": "^5.0.0",
121
+ "stylelint-config-standard-scss": "^11.1.0",
122
122
  "typescript": "^5.2.2",
123
123
  "webpack": "^5.89.0"
124
124
  },
@@ -1,11 +0,0 @@
1
- {{!
2
- Copyright (c) HashiCorp, Inc.
3
- SPDX-License-Identifier: MPL-2.0
4
- }}
5
- <div class="hds-avatar" ...attributes aria-hidden="true">
6
- {{#if @src}}
7
- <img src={{@src}} alt="" role="none" />
8
- {{else}}
9
- <FlightIcon @name="user-circle" @size="24" />
10
- {{/if}}
11
- </div>
@@ -1,6 +0,0 @@
1
- /**
2
- * Copyright (c) HashiCorp, Inc.
3
- * SPDX-License-Identifier: MPL-2.0
4
- */
5
-
6
- export { default } from '@hashicorp/design-system-components/components/hds/avatar/index';
@@ -1,27 +0,0 @@
1
- /**
2
- * Copyright (c) HashiCorp, Inc.
3
- * SPDX-License-Identifier: MPL-2.0
4
- */
5
-
6
- //
7
- // AVATAR COMPONENT
8
- //
9
-
10
- .hds-avatar {
11
- display: inline-flex;
12
- align-items: center;
13
- justify-content: center;
14
- box-sizing: border-box;
15
- width: 32px;
16
- height: 32px;
17
-
18
- img {
19
- width: inherit;
20
- height: inherit;
21
- border-radius: 2px;
22
- }
23
-
24
- svg {
25
- display: inline-block;
26
- }
27
- }