@hashicorp/design-system-components 3.3.0 → 3.4.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,57 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 3.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ `Button` - Added `@isInline` argument
8
+
9
+ <small class="doc-whats-new-changelog-metadata">[#1854](https://github.com/hashicorp/design-system/pull/1854)</small>
10
+
11
+ <div class="doc-whats-new-changelog-separator"></div>
12
+
13
+ `Table` - Added support for `baseline` vertical alignment
14
+
15
+ <small class="doc-whats-new-changelog-metadata">[#1861](https://github.com/hashicorp/design-system/pull/1861)</small>
16
+
17
+ <div class="doc-whats-new-changelog-separator"></div>
18
+
19
+ ### Patch Changes
20
+
21
+ `Hds::AppFooter` - Changed visual alignment from right-aligned to centered.
22
+
23
+ <small class="doc-whats-new-changelog-metadata">[#1867](https://github.com/hashicorp/design-system/pull/1867)</small>
24
+
25
+ <div class="doc-whats-new-changelog-separator"></div>
26
+
27
+ `Tooltip` - Fixed issue with text alignment, which was inherited from the parent container (now it's always left aligned).
28
+
29
+ <small class="doc-whats-new-changelog-metadata">[#1869](https://github.com/hashicorp/design-system/pull/1869)</small>
30
+
31
+ <div class="doc-whats-new-changelog-separator"></div>
32
+
33
+ `Tabs` - Fixed subcomponents' backing-class names
34
+
35
+ <small class="doc-whats-new-changelog-metadata">[#1883](https://github.com/hashicorp/design-system/pull/1883)</small>
36
+
37
+ <div class="doc-whats-new-changelog-separator"></div>
38
+
39
+ `AppFooter` - Updated default accessibility URL to https://hashicorp.com/accessibility
40
+
41
+ <small class="doc-whats-new-changelog-metadata">[#1811](https://github.com/hashicorp/design-system/pull/1811)</small>
42
+
43
+ <div class="doc-whats-new-changelog-separator"></div>
44
+
45
+ `Form::Fieldset` as consumed by `Form::Checkbox::Group`, `Form::Radio::Group`, `Form::RadioCard::Group`, and `Form::Toggle::Group` - Changed spacing between `legend` and content from 4px to 8px
46
+
47
+ <small class="doc-whats-new-changelog-metadata">[#1856](https://github.com/hashicorp/design-system/pull/1856)</small>
48
+
49
+ <div class="doc-whats-new-changelog-separator"></div>
50
+
51
+ **🔄 Updated dependencies:**
52
+
53
+ - @hashicorp/ember-flight-icons@4.0.5
54
+
3
55
  ## 3.3.0
4
56
 
5
57
  ### Minor Changes
@@ -60,7 +60,8 @@ export default class HdsAppFooterLegalLinksComponent extends Component {
60
60
  */
61
61
  get hrefForAccessibility() {
62
62
  return (
63
- this.args.hrefForAccessibility ?? 'mailto:accessibility@hashicorp.com'
63
+ this.args.hrefForAccessibility ??
64
+ 'https://www.hashicorp.com/accessibility'
64
65
  );
65
66
  }
66
67
  }
@@ -26,6 +26,7 @@ export interface HdsButtonSignature {
26
26
  icon?: string;
27
27
  iconPosition?: HdsButtonIconPosition;
28
28
  isIconOnly?: boolean;
29
+ isInline?: boolean;
29
30
  isFullWidth?: boolean;
30
31
  };
31
32
  Element: HdsInteractiveSignature['Element'];
@@ -165,9 +166,6 @@ export default class HdsButtonIndexComponent extends Component<HdsButtonSignatur
165
166
  get classNames() {
166
167
  let classes = ['hds-button'];
167
168
 
168
- // add a class based on the @size argument
169
- classes.push(`hds-button--size-${this.size}`);
170
-
171
169
  // add a class based on the @color argument
172
170
  classes.push(`hds-button--color-${this.color}`);
173
171
 
@@ -176,11 +174,19 @@ export default class HdsButtonIndexComponent extends Component<HdsButtonSignatur
176
174
  classes.push('hds-button--width-full');
177
175
  }
178
176
 
179
- // add a class if it's icon-only
177
+ // add a class based on isIconOnly argument
180
178
  if (this.isIconOnly) {
181
179
  classes.push('hds-button--is-icon-only');
182
180
  }
183
181
 
182
+ // add a class based on the @isInline argument
183
+ if (this.args.isInline) {
184
+ classes.push('hds-button--is-inline');
185
+ }
186
+
187
+ // add a class based on the @size argument
188
+ classes.push(`hds-button--size-${this.size}`);
189
+
184
190
  return classes.join(' ');
185
191
  }
186
192
  }
@@ -10,7 +10,7 @@ import { assert } from '@ember/debug';
10
10
 
11
11
  const DENSITIES = ['short', 'medium', 'tall'];
12
12
  const DEFAULT_DENSITY = 'medium';
13
- const VALIGNMENTS = ['top', 'middle'];
13
+ const VALIGNMENTS = ['top', 'middle', 'baseline'];
14
14
  const DEFAULT_VALIGN = 'top';
15
15
 
16
16
  export default class HdsTableIndexComponent extends Component {
@@ -116,7 +116,7 @@ export default class HdsTableIndexComponent extends Component {
116
116
  * @param valign
117
117
  * @type {string}
118
118
  * @default 'top'
119
- * @description Determines the vertical alignment of the table cells; options are: "top", "middle". If no valign is defined, "top" is used.
119
+ * @description Determines the vertical alignment of the table cells; options are: "top", "middle", "baseline". If no valign is defined, "top" is used.
120
120
  */
121
121
  get valign() {
122
122
  let { valign = DEFAULT_VALIGN } = this.args;
@@ -8,7 +8,7 @@ import { cached } from '@glimmer/tracking';
8
8
  import { guidFor } from '@ember/object/internals';
9
9
  import { action } from '@ember/object';
10
10
 
11
- export default class HdsTabsIndexComponent extends Component {
11
+ export default class HdsTabsPanelComponent extends Component {
12
12
  /**
13
13
  * Generate a unique ID for the Panel
14
14
  * @return {string}
@@ -8,7 +8,7 @@ import { cached } from '@glimmer/tracking';
8
8
  import { guidFor } from '@ember/object/internals';
9
9
  import { action } from '@ember/object';
10
10
 
11
- export default class HdsTabsIndexComponent extends Component {
11
+ export default class HdsTabsTabComponent extends Component {
12
12
  /**
13
13
  * Generate a unique ID for the Tab
14
14
  * @return {string}
@@ -14,7 +14,7 @@ $app-footer-icon-text-gap: 6px;
14
14
  display: flex;
15
15
  flex-wrap: wrap;
16
16
  gap: $app-footer-gap;
17
- justify-content: flex-end;
17
+ justify-content: center;
18
18
  padding: 24px;
19
19
  color: var(--app-footer-foreground-color);
20
20
  border-top: 1px solid var(--app-footer-border-top-color);
@@ -31,7 +31,7 @@ $app-footer-icon-text-gap: 6px;
31
31
  flex-wrap: wrap;
32
32
  gap: $app-footer-gap;
33
33
  align-items: center;
34
- justify-content: flex-end;
34
+ justify-content: center;
35
35
  width: fit-content;
36
36
  min-width: 0;
37
37
  margin: 0;
@@ -73,10 +73,6 @@
73
73
  text-align: center;
74
74
  }
75
75
 
76
-
77
- // SIZE
78
- @include hds-button-size-classes("hds-button");
79
-
80
76
  // COLORS & STATES
81
77
  // Note: the order of the pseuo-selectors need to stay the way they are; it doesn't match the Figma file but it's the correct order for browsers to render the styles correctly.
82
78
 
@@ -96,6 +92,14 @@
96
92
  @include hds-button-color-critical();
97
93
  }
98
94
 
95
+ // SIZE
96
+ @include hds-button-size-classes("hds-button");
97
+
98
+ // ISINLINE
99
+ .hds-button--is-inline {
100
+ display: inline-flex;
101
+ }
102
+
99
103
 
100
104
  // SPECIAL
101
105
 
@@ -15,7 +15,7 @@
15
15
  }
16
16
 
17
17
  .hds-form-group__legend { // notice: this is a <legend> element
18
- margin: 0 0 4px 0;
18
+ margin: 0 0 8px 0;
19
19
  padding: 0;
20
20
  }
21
21
 
@@ -150,6 +150,10 @@ $hds-table-cell-padding-tall: 22px 16px 21px 16px; // the 1px difference is to a
150
150
  .hds-table--valign-middle & {
151
151
  vertical-align: middle;
152
152
  }
153
+
154
+ .hds-table--valign-baseline & {
155
+ vertical-align: baseline;
156
+ }
153
157
  }
154
158
 
155
159
  // TABLE CELL TEXT ALIGNMENT (LEFT IS DEFAULT)
@@ -79,6 +79,8 @@
79
79
  // prevent this container from potentially inheriting other values
80
80
  // such as `white-space: nowrap` that would cause content overflow
81
81
  white-space: normal;
82
+ // we want to have the text always aligned to the left (by design
83
+ text-align: left;
82
84
  }
83
85
 
84
86
  // works with Tippy's custom SVG arrow variation:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashicorp/design-system-components",
3
- "version": "3.3.0",
3
+ "version": "3.4.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.4",
47
+ "@hashicorp/ember-flight-icons": "^4.0.5",
48
48
  "dialog-polyfill": "^0.5.6",
49
49
  "ember-a11y-refocus": "^3.0.2",
50
50
  "ember-auto-import": "^2.6.3",