@hashicorp/design-system-components 3.1.0 → 3.1.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.
@@ -1,5 +1,19 @@
1
1
  # [HDS Product - Components](https://www.figma.com/file/noyY6dUMDYjmySpHcMjhkN/HDS-Product---Components?type=design&node-id=6790-10926&mode=design&t=Ps0aMGZ6F3z7bAJ4-0)
2
2
 
3
+ ## November 6th, 2023
4
+
5
+ `CodeBlock` - Added new component.
6
+
7
+ ## November 3rd, 2023
8
+
9
+ `Breadcrumb` - Updated the number of `breadcrumb / _items` to the component.
10
+
11
+ ## October 23rd, 2023
12
+
13
+ `Button` - Updated icon only button variants to be square to match the ToggleIcon.
14
+
15
+ `Dropdown / ToggleIcon` - Fixed the small variant so that it’s the correct size (28px height) to match the other small Buttons and ToggleButton.
16
+
3
17
  ## September 15th, 2023
4
18
 
5
19
  `IconTile` and `IconTile-Logo` - Added a new product variant for Vault Secrets.
@@ -1,2 +1,13 @@
1
1
  # [HDS Product - Foundations](https://www.figma.com/file/oQsMzMMnynfPWpMEt91OpH/HDS-Product---Foundations?type=design&node-id=4728-1879&mode=design&t=vM0eNG3c9YY5rmmu-0)
2
2
 
3
+ ## November 2nd, 2023
4
+
5
+ `Elevation / Mid` - Fixed style not being correctly published to consuming libraries.
6
+
7
+ ## October 31st, 2023
8
+
9
+ `Components / Code Block / Code / 200` - Added component-specific text style for the CodeBlock.
10
+
11
+ ## October 20th, 2023
12
+
13
+ `Components / Code Block / Syntax` - Added syntax highlighting styles used by the CodeBlock component.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 3.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ `AppFooter` – Fixed predefined statuses by replacing `critical` with `outage` and prevented `statusIconColor` from being overridden by `status`
8
+
9
+ <small>[#1790](https://github.com/hashicorp/design-system/pull/1790)</small>
10
+
11
+ ---
12
+
13
+ `SideNav` - Fixed visible scrollbar in collapsed SideNav when scroll bar is set to be always visible
14
+
15
+ <small>[#1786](https://github.com/hashicorp/design-system/pull/1786)</small>
16
+
17
+ ---
18
+
19
+ `CodeBlock` - Fixed `@hasLineWrapping` style to make long strings wrap when they overflow the container
20
+
21
+ <small>[#1798](https://github.com/hashicorp/design-system/pull/1798)</small>
22
+
23
+ ---
24
+
25
+ ## 3.1.1
26
+
27
+ ### Patch Changes
28
+
29
+ Added `@ember/string` as a direct dependency
30
+
31
+ <small>[#1782](https://github.com/hashicorp/design-system/pull/1782)</small>
32
+
33
+ ---
34
+
35
+ **🔄 Updated dependencies:**
36
+
37
+ - @hashicorp/ember-flight-icons@4.0.3
38
+
3
39
  ## 3.1.0
4
40
 
5
41
  ### Minor Changes
@@ -20,8 +20,8 @@ export const STATUSES = {
20
20
  text: 'System maintenance',
21
21
  iconName: 'alert-triangle',
22
22
  },
23
- critical: {
24
- text: 'System critical',
23
+ outage: {
24
+ text: 'System outage',
25
25
  iconName: 'x-circle',
26
26
  },
27
27
  };
@@ -67,18 +67,6 @@ export default class HdsAppFooterStatusLinkComponent extends Component {
67
67
  return this.args.statusIcon;
68
68
  }
69
69
 
70
- /**
71
- * @param statusIconColor
72
- * @type {string}
73
- * @description The color for the StatusLink icon
74
- */
75
- get statusIconColor() {
76
- if (this.status && !this.args.statusIconColor) {
77
- return STATUSES[this.status].iconColor;
78
- }
79
- return this.args.statusIconColor;
80
- }
81
-
82
70
  /**
83
71
  * Get the inline style to apply to the item.
84
72
  * @method StatusLink#itemStyle
@@ -123,8 +111,8 @@ export default class HdsAppFooterStatusLinkComponent extends Component {
123
111
  get classNames() {
124
112
  let classes = ['hds-app-footer__status-link'];
125
113
 
126
- // add a class based on the @status argument
127
- if (this.args.status) {
114
+ // add a class based on status if no statusIconColor is explicitly specified
115
+ if (this.status && !this.args.statusIconColor) {
128
116
  classes.push(`hds-app-footer__status-link--${this.status}`);
129
117
  }
130
118
 
@@ -62,8 +62,8 @@ $app-footer-icon-text-gap: 6px;
62
62
  .flight-icon { fill: var(--app-footer-status-link-icon-maintenance-color); }
63
63
  }
64
64
 
65
- .hds-app-footer__status-link--critical {
66
- .flight-icon { fill: var(--app-footer-status-link-icon-critical-color); }
65
+ .hds-app-footer__status-link--outage {
66
+ .flight-icon { fill: var(--app-footer-status-link-icon-outage-color); }
67
67
  }
68
68
 
69
69
 
@@ -127,7 +127,7 @@ $app-footer-icon-text-gap: 6px;
127
127
  --app-footer-status-link-icon-operational-color: var(--token-color-foreground-success);
128
128
  --app-footer-status-link-icon-degraded-color: var(--token-color-foreground-warning);
129
129
  --app-footer-status-link-icon-maintenance-color: var(--token-color-foreground-warning);
130
- --app-footer-status-link-icon-critical-color: var(--token-color-foreground-critical);
130
+ --app-footer-status-link-icon-outage-color: var(--token-color-foreground-critical);
131
131
  }
132
132
 
133
133
  // Dark
@@ -150,5 +150,5 @@ $app-footer-icon-text-gap: 6px;
150
150
  --app-footer-status-link-icon-operational-color: #009241;
151
151
  --app-footer-status-link-icon-degraded-color: #e88c03;
152
152
  --app-footer-status-link-icon-maintenance-color: #e88c03;
153
- --app-footer-status-link-icon-critical-color: #ef3016;
153
+ --app-footer-status-link-icon-outage-color: #ef3016;
154
154
  }
@@ -53,6 +53,7 @@ $code-block-code-padding: 16px;
53
53
  .hds-code-block__code,
54
54
  .hds-code-block__code code {
55
55
  white-space: pre-wrap;
56
+ overflow-wrap: break-word;
56
57
  }
57
58
  }
58
59
 
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Copyright (c) HashiCorp, Inc.
3
+ * SPDX-License-Identifier: MPL-2.0
4
+ */
5
+
1
6
  // THEMING
2
7
 
3
8
  .hds-code-block--theme-dark {
@@ -16,6 +16,14 @@
16
16
  // we use this trick (increasing the container size here, and reducing it at single panel level)
17
17
  // to have the panels width match the sidebar extended width (it's used in the animated sliding of the panels)
18
18
  margin: 0 calc(var(--token-side-nav-wrapper-padding-horizontal) * -1);
19
+
20
+ // we hide the content when the SideNav is collapsed to prevent the vertical scrollbar from being visible
21
+ // when the scrollbar is set to be always visible or a mouse or trackpad force it to be always visible.
22
+ // ideally we would use `display: none` but doing so would disable the fade-in transition when expanding
23
+ .hds-side-nav--is-minimized & {
24
+ height: 0;
25
+ overflow: hidden;
26
+ }
19
27
  }
20
28
 
21
29
  .hds-side-nav__content-panels {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashicorp/design-system-components",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "Helios Design System Components",
5
5
  "keywords": [
6
6
  "hashicorp",
@@ -41,9 +41,10 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@ember/render-modifiers": "^2.0.5",
44
+ "@ember/string": "^3.1.1",
44
45
  "@ember/test-waiters": "^3.1.0",
45
46
  "@hashicorp/design-system-tokens": "^1.9.0",
46
- "@hashicorp/ember-flight-icons": "^4.0.2",
47
+ "@hashicorp/ember-flight-icons": "^4.0.3",
47
48
  "dialog-polyfill": "^0.5.6",
48
49
  "ember-a11y-refocus": "^3.0.2",
49
50
  "ember-auto-import": "^2.6.3",