@hashicorp/design-system-components 2.14.2 → 3.0.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.
Files changed (78) hide show
  1. package/CHANGELOG-FIGMA-COMPONENTS.md +177 -0
  2. package/CHANGELOG-FIGMA-FOUNDATIONS.md +2 -0
  3. package/CHANGELOG.md +368 -55
  4. package/README.md +1 -1
  5. package/addon/components/hds/accordion/item/index.hbs +16 -5
  6. package/addon/components/hds/application-state/body.hbs +2 -2
  7. package/addon/components/hds/application-state/header.hbs +4 -4
  8. package/addon/components/hds/button/{index.js → index.ts} +34 -4
  9. package/addon/components/hds/copy/button/index.hbs +1 -1
  10. package/addon/components/hds/copy/button/index.js +14 -2
  11. package/addon/components/hds/copy/snippet/index.hbs +3 -3
  12. package/addon/components/hds/copy/snippet/index.js +19 -2
  13. package/addon/components/hds/dropdown/index.js +0 -3
  14. package/addon/components/hds/dropdown/list-item/checkmark.hbs +9 -3
  15. package/addon/components/hds/dropdown/list-item/copy-item.hbs +8 -4
  16. package/addon/components/hds/dropdown/list-item/copy-item.js +13 -0
  17. package/addon/components/hds/dropdown/list-item/description.hbs +9 -2
  18. package/addon/components/hds/dropdown/list-item/description.js +0 -18
  19. package/addon/components/hds/dropdown/list-item/interactive.hbs +4 -4
  20. package/addon/components/hds/dropdown/list-item/radio.hbs +6 -1
  21. package/addon/components/hds/dropdown/list-item/title.hbs +9 -2
  22. package/addon/components/hds/dropdown/list-item/title.js +0 -18
  23. package/addon/components/hds/flyout/description.hbs +2 -2
  24. package/addon/components/hds/flyout/header.hbs +4 -4
  25. package/addon/components/hds/form/error/index.hbs +2 -2
  26. package/addon/components/hds/form/error/index.js +0 -3
  27. package/addon/components/hds/form/error/message.hbs +2 -2
  28. package/addon/components/hds/form/helper-text/index.hbs +10 -2
  29. package/addon/components/hds/form/helper-text/index.js +0 -3
  30. package/addon/components/hds/form/indicator/index.hbs +1 -1
  31. package/addon/components/hds/form/indicator/index.js +0 -3
  32. package/addon/components/hds/form/masked-input/base.hbs +8 -10
  33. package/addon/components/hds/form/masked-input/base.js +14 -14
  34. package/addon/components/hds/form/masked-input/field.hbs +3 -1
  35. package/addon/components/hds/form/radio-card/description.hbs +6 -1
  36. package/addon/components/hds/form/radio-card/group.hbs +1 -2
  37. package/addon/components/hds/form/radio-card/index.js +5 -33
  38. package/addon/components/hds/form/radio-card/label.hbs +7 -1
  39. package/addon/components/hds/form/text-input/base.js +5 -0
  40. package/addon/components/hds/form/text-input/field.hbs +23 -11
  41. package/addon/components/hds/form/text-input/field.js +59 -0
  42. package/addon/components/hds/form/visibility-toggle/index.hbs +8 -0
  43. package/addon/components/hds/interactive/{index.js → index.ts} +28 -3
  44. package/addon/components/hds/modal/header.hbs +4 -4
  45. package/addon/components/hds/page-header/description.hbs +7 -1
  46. package/addon/components/hds/page-header/subtitle.hbs +7 -1
  47. package/addon/components/hds/page-header/title.hbs +7 -1
  48. package/addon/components/hds/pagination/compact/index.js +0 -16
  49. package/addon/components/hds/pagination/info/index.hbs +2 -2
  50. package/addon/components/hds/pagination/nav/arrow.hbs +16 -4
  51. package/addon/components/hds/pagination/nav/arrow.js +0 -2
  52. package/addon/components/hds/pagination/nav/number.hbs +2 -1
  53. package/addon/components/hds/pagination/nav/number.js +1 -6
  54. package/addon/components/hds/side-nav/list/index.hbs +2 -2
  55. package/addon/components/hds/stepper/step/indicator.hbs +6 -1
  56. package/addon/components/hds/tag/index.hbs +2 -2
  57. package/addon/modifiers/hds-clipboard.js +163 -0
  58. package/addon/template-registry.ts +12 -0
  59. package/app/components/hds/form/visibility-toggle/index.js +6 -0
  60. package/app/modifiers/hds-clipboard.js +6 -0
  61. package/app/styles/components/button.scss +2 -0
  62. package/app/styles/components/copy/snippet.scss +22 -14
  63. package/app/styles/components/dropdown.scss +5 -8
  64. package/app/styles/components/flyout.scss +0 -2
  65. package/app/styles/components/form/group.scss +5 -0
  66. package/app/styles/components/form/index.scss +1 -0
  67. package/app/styles/components/form/masked-input.scss +0 -9
  68. package/app/styles/components/form/radio-card.scss +2 -4
  69. package/app/styles/components/form/text-input.scss +17 -0
  70. package/app/styles/components/form/visibility-toggle.scss +23 -0
  71. package/app/styles/components/stepper/step-indicator.scss +0 -3
  72. package/app/styles/components/tag.scss +1 -5
  73. package/app/styles/mixins/_button.scss +14 -4
  74. package/index.js +3 -0
  75. package/package.json +33 -4
  76. package/tsconfig.json +46 -0
  77. package/types/dummy/index.d.ts +6 -0
  78. package/types/global.d.ts +12 -0
package/CHANGELOG.md CHANGED
@@ -1,153 +1,466 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ Drop support for Node 14
8
+
9
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
10
+
11
+ ---
12
+
13
+ `Hds::Form::VisibilityToggle` - Added component as a form base element
14
+
15
+ `Hds::Form::TextInput::Field` - Added `Hds::Form::VisibilityToggle` to password inputs (controlled via `@hasVisibilityToggle` - Notice that this is set to be visible by default now)
16
+
17
+ `Hds::Form::MaskedInput` - Refactored to use `Hds::Form::VisibilityToggle`
18
+
19
+ `Hds::Form::MaskedInput` - Renamed `@isMasked` to `@isContentMasked`
20
+
21
+ To migrate:
22
+
23
+ - in `Hds::Form::MaskedInput` instances replace `@isMasked` arguments with `@isContentMasked`
24
+
25
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
26
+
27
+ ---
28
+
29
+ `Hds::Dropdown` – Removed `@listPosition` `left` and `right` (use `bottom-left` and `bottom-right`, respectively).
30
+
31
+ To migrate:
32
+
33
+ - in `Hds::Dropdown` instances:
34
+ - replace `@listPosition="left"` with `@listPosition="bottom-left"`
35
+ - replace `@listPosition="right"` with `@listPosition="bottom-right"`
36
+
37
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
38
+
39
+ ---
40
+
41
+ `SideNav` - Renamed `extraBefore/After` generic containers to `ExtraBefore/After` (uppercase `E`).
42
+
43
+ To migrate:
44
+
45
+ - rename all the `extraBefore/After` instances yielded within the `<Hds::SideNav>` component to `ExtraBefore/After`
46
+
47
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
48
+
49
+ ---
50
+
51
+ `Form::RadioCard` - Remove the `@layout` property.
52
+
53
+ `Form::RadioCard::Group` - Repurposed the `@layout` property to either `horizontal` (default) or `vertical`
54
+
55
+ To migrate `Form::RadioCard` and `Form::RadioCard::Group` instances without encountering visual changes:
56
+
57
+ - make sure all instances with `@layout="fixed"` have a `@maxWidth` defined, then remove the `@layout="fixed"` definition
58
+ - remove all `@layout="fluid"` definitions
59
+
60
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
61
+
62
+ ---
63
+
64
+ ### Minor Changes
65
+
66
+ `Dropdown::ListItem::CopyItem` - Changed defaults for `@color` (now `secondary`) and `@isTruncated` (now `true`).
67
+
68
+ _Consumers should review the defaults values for this (sub)component in their codebases, to make sure they match the intended visual designs._
69
+
70
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
71
+
72
+ ---
73
+
74
+ `Button`, `Interactive` - Converted components to TypeScript.
75
+
76
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
77
+
78
+ ---
79
+
80
+ `Copy::Snippet` - Fixed the way in which “width/full-width” is applied to the component + Internal update to the “truncation” implementation.
81
+
82
+ - the component is not full-width anymore by default (the width now fits the content); use `@isFullWidth={{true}}` to have a full-width layout
83
+ - the internal class name `hds-copy-snippet__text--truncated` has been changed to `hds-copy-snippet--is-truncated` (and moved)
84
+
85
+ _Consumers should review the pages where this component is used to make sure its width matches the intended visual designs (in case, use the `@isFullWidth` argument to control its full-width). In case they're using the `hds-copy-snippet__text--truncated` class name, they should also update their code to adapt to the new implementation._
86
+
87
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
88
+
89
+ ---
90
+
91
+ Removed `ember-cli-clipboard` as dependency and introduced a custom `hds-clipboard` modifier (using the web [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API))
92
+
93
+ `Copy::Button` - Multiple updates:
94
+
95
+ - replaced third-party `clipboard` modifier with `hds-clipboard`
96
+ - removed `@container` argument (not needed anymore, it was used in the third party library as a hack to account for focus trapping and focus shifting)
97
+ - added `@onSuccess/onError` callbacks
98
+
99
+ `Copy::Snippet` - Multiple updates:
100
+
101
+ - replaced third-party `clipboard` modifier with `hds-clipboard`
102
+ - added `@onSuccess/onError` callbacks
103
+ - `Dropdown::ListItem::CopyItem`
104
+ - the change to the underlying `Copy::Snippet` has fixed an issue with the focus being lost on copy (causing the dropdown to close on copy)
105
+
106
+ _Consumers should remove the `@container` argument from all the instances of `Copy::Button` (not needed anymore) and double check that the `Copy::Button/Snippet` instances work exactly as before._
107
+
108
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
109
+
110
+ ---
111
+
112
+ ### Patch Changes
113
+
114
+ `Copy::Snippet` - Fixed background colors for different states according to Figma specs (main change is the default/base background is now transparent, not white).
115
+
116
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
117
+
118
+ ---
119
+
120
+ `Form::MaskedInput` - Changed copy logic for `CopyButton` used inside the component.
121
+
122
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
123
+
124
+ ---
125
+
126
+ `Accordion` - Replaced internal text styling (using `Text` component).
127
+
128
+ `ApplicationState` - Replaced internal text styling (using `Text` component).
129
+
130
+ `Copy::Snippet` - Replaced internal text styling (using `Text` component).
131
+
132
+ `Dropdown` - Replaced internal text styling (using `Text` component).
133
+
134
+ `Form:**` - Replaced internal text styling (using `Text` component).
135
+
136
+ `Flyout` - Replaced internal text styling (using `Text` component).
137
+
138
+ `Modal` - Replaced internal text styling (using `Text` component).
139
+
140
+ `PageHeader` - Replaced internal text styling (using `Text` component).
141
+
142
+ `Pagination` - Replaced internal text styling (using `Text` component).
143
+
144
+ `Stepper` - Replaced internal text styling (using `Text` component).
145
+
146
+ `Tag` - Replaced internal text styling (using `Text` component).
147
+
148
+ _No impact is expected on the consumers' applications._
149
+
150
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
151
+
152
+ ---
153
+
154
+ `Button` - Applied explicit text alignment to the text to fix alignment on "link" buttons.
155
+
156
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
157
+
158
+ ---
159
+
160
+ **🔄 Updated dependencies:**
161
+
162
+ - @hashicorp/ember-flight-icons@4.0.0
163
+
164
+ ## 2.15.0
165
+
166
+ ### Minor Changes
167
+
168
+ `Button` - updated horizontal padding of icon-only variant
169
+
170
+ `Dropdown::ToggleIcon` - updated sizing of the "small" variant to match the height of the "small" variant `Button`
171
+
172
+ <small>[#1690](https://github.com/hashicorp/design-system/pull/1690)</small>
173
+
174
+ ### Patch Changes
175
+
176
+ `Pagination` - Removed handling of query parameters from `onPageSizeChange` function.
177
+
178
+ <small>[#1736](https://github.com/hashicorp/design-system/pull/1736)</small>
179
+
180
+ _Notice: while technically this is a breaking change, we consider this a fast-follow fix for the previous release._
181
+
3
182
  ## 2.14.2
4
183
 
5
184
  ### Patch Changes
6
185
 
7
- - [#1724](https://github.com/hashicorp/design-system/pull/1724) [`65ebe6dde`](https://github.com/hashicorp/design-system/commit/65ebe6ddeb477ebc74ad6db353aaf19e1dfb06b1) Thanks [@didoo](https://github.com/didoo)! - `Pagination` - updated the logic for “Compact” variant to expose `@currentPageSize` and handle controlled/uncontrolled changes
186
+ `Pagination` - updated the logic for “Compact” variant to expose `@currentPageSize` and handle controlled/uncontrolled changes
187
+
188
+ <small>[#1724](https://github.com/hashicorp/design-system/pull/1724)</small>
189
+
190
+ ---
191
+
192
+ `Tabs` - replace `assert` with `warn` in `setIndicator` function
8
193
 
9
- - [#1716](https://github.com/hashicorp/design-system/pull/1716) [`cde67bc7f`](https://github.com/hashicorp/design-system/commit/cde67bc7fc32c1025ddd22de6d0f9baeabf43961) Thanks [@didoo](https://github.com/didoo)! - `Tabs` - replace `assert` with `warn` in `setIndicator` function
194
+ <small>[#1716](https://github.com/hashicorp/design-system/pull/1716)</small>
10
195
 
11
196
  ## 2.14.1
12
197
 
13
198
  ### Patch Changes
14
199
 
15
- - [#1709](https://github.com/hashicorp/design-system/pull/1709) [`294dddfda`](https://github.com/hashicorp/design-system/commit/294dddfda8d8e174fd5dd7de5d6af01dd8405775) Thanks [@didoo](https://github.com/didoo)! - `Tabs` - Fixed issue with `@isSelected` dynamically changed within `#each` loops
200
+ `Tabs` - Fixed issue with `@isSelected` dynamically changed within `#each` loops
201
+
202
+ <small>[#1709](https://github.com/hashicorp/design-system/pull/1709)</small>
16
203
 
17
204
  ## 2.14.0
18
205
 
19
206
  ### Minor Changes
20
207
 
21
- - [#1700](https://github.com/hashicorp/design-system/pull/1700) [`33d760fb8`](https://github.com/hashicorp/design-system/commit/33d760fb88d3945be8b50302a9bb7dce3ae221fe) Thanks [@didoo](https://github.com/didoo)! - `Pagination::Compact` - Added option to show "SizeSelector" element
208
+ `Pagination::Compact` - Added option to show "SizeSelector" element
209
+
210
+ <small>[#1700](https://github.com/hashicorp/design-system/pull/1700)</small>
211
+
212
+ ---
22
213
 
23
- - [#1688](https://github.com/hashicorp/design-system/pull/1688) [`c842b6eb7`](https://github.com/hashicorp/design-system/commit/c842b6eb731d82146b0e1ad8b9f55930b58aba18) Thanks [@didoo](https://github.com/didoo)! - `Tabs` - Refactored logic for `Tabs` component + `Tab/Panel` sub-components to support more complex use cases:
214
+ `Tabs` - Refactored logic for `Tabs` component + `Tab/Panel` sub-components to support more complex use cases:
24
215
 
25
- - introduced `@selectedTabIndex` argument to control the "selected" tab from the consuming application, e.g. via query params (effort spearheaded by @MiniHeyd)
26
- - fixed issue with nested tabs not initializing the "selected" indicator correctly
27
- - fixed issue with dynamic tab content not updating the "selected" indicator correctly
216
+ - introduced `@selectedTabIndex` argument to control the "selected" tab from the consuming application, e.g. via query params (effort spearheaded by @MiniHeyd)
217
+ - fixed issue with nested tabs not initializing the "selected" indicator correctly
218
+ - fixed issue with dynamic tab content not updating the "selected" indicator correctly
219
+
220
+ <small>[#1688](https://github.com/hashicorp/design-system/pull/1688)</small>
28
221
 
29
222
  ## 2.13.0
30
223
 
31
224
  ### Minor Changes
32
225
 
33
- - [#1623](https://github.com/hashicorp/design-system/pull/1623) [`2111a5439`](https://github.com/hashicorp/design-system/commit/2111a5439abea2951f12517354db662edd7c9cb9) Thanks [@KristinLBradley](https://github.com/KristinLBradley)! - `AppFooter` - Added new component
226
+ `AppFooter` - Added new component
227
+
228
+ <small>[#1623](https://github.com/hashicorp/design-system/pull/1623)</small>
34
229
 
35
- - [#1630](https://github.com/hashicorp/design-system/pull/1630) [`04da95443`](https://github.com/hashicorp/design-system/commit/04da95443290ee2d03d9bef23787a4ef10577247) Thanks [@alex-ju](https://github.com/alex-ju)! - `SideNav` - add `@isCollapsible` (to control if users can collapse the sidenav on 'desktop' viewports) and `@isMinimized` (to control the default state on 'desktop' viewports) arguments
230
+ ---
231
+
232
+ `SideNav` - add `@isCollapsible` (to control if users can collapse the sidenav on 'desktop' viewports) and `@isMinimized` (to control the default state on 'desktop' viewports) arguments
233
+
234
+ <small>[#1630](https://github.com/hashicorp/design-system/pull/1630)</small>
36
235
 
37
236
  ### Patch Changes
38
237
 
39
- - [#1696](https://github.com/hashicorp/design-system/pull/1696) [`f3f3fb103`](https://github.com/hashicorp/design-system/commit/f3f3fb103a5aa1c6489d011b6820560df4c2ed88) Thanks [@MelSumner](https://github.com/MelSumner)! - `Tag` - Updated padding for dismiss button for WCAG conformance
238
+ `Tag` - Updated padding for dismiss button for WCAG conformance
239
+
240
+ <small>[#1696](https://github.com/hashicorp/design-system/pull/1696)</small>
241
+
242
+ ---
243
+
244
+ `Link::Standalone` – increase target size
40
245
 
41
- - [#1678](https://github.com/hashicorp/design-system/pull/1678) [`a51976ded`](https://github.com/hashicorp/design-system/commit/a51976ded4f7939fe140a1abade0f98832ccc2d0) Thanks [@alex-ju](https://github.com/alex-ju)! - `Link::Standalone` – increase target size
246
+ <small>[#1678](https://github.com/hashicorp/design-system/pull/1678)</small>
42
247
 
43
- - Updated dependencies [[`04da95443`](https://github.com/hashicorp/design-system/commit/04da95443290ee2d03d9bef23787a4ef10577247)]:
44
- - @hashicorp/design-system-tokens@1.9.0
248
+ ---
249
+
250
+ **🔄 Updated dependencies:**
251
+
252
+ - @hashicorp/design-system-tokens@1.9.0
45
253
 
46
254
  ## 2.12.2
47
255
 
48
256
  ### Patch Changes
49
257
 
50
- - [#1655](https://github.com/hashicorp/design-system/pull/1655) [`38f7e36c2`](https://github.com/hashicorp/design-system/commit/38f7e36c25f3efdade9c8833512d55af502ee07e) Thanks [@alex-ju](https://github.com/alex-ju)! - PowerSelect - fix style overrides when the list is positioned above
258
+ `PowerSelect` - fix style overrides when the list is positioned above
51
259
 
52
- - [#1652](https://github.com/hashicorp/design-system/pull/1652) [`61af964b0`](https://github.com/hashicorp/design-system/commit/61af964b0078377dcedafa744e0fd18e89852b96) Thanks [@didoo](https://github.com/didoo)! - `Text` - Fixed issue with whitespace adding extra underline when used in links (eg. inside a `Link::Inline`)
260
+ <small>[#1655](https://github.com/hashicorp/design-system/pull/1655)</small>
53
261
 
54
- - Updated dependencies []:
55
- - @hashicorp/ember-flight-icons@3.1.3
262
+ ---
263
+
264
+ `Text` - Fixed issue with whitespace adding extra underline when used in links (eg. inside a `Link::Inline`)
265
+
266
+ <small>[#1652](https://github.com/hashicorp/design-system/pull/1652)</small>
267
+
268
+ ---
269
+
270
+ **🔄 Updated dependencies:**
271
+
272
+ - @hashicorp/ember-flight-icons@3.1.3
56
273
 
57
274
  ## 2.12.1
58
275
 
59
276
  ### Patch Changes
60
277
 
61
- - [#1627](https://github.com/hashicorp/design-system/pull/1627) [`53c9f13c0`](https://github.com/hashicorp/design-system/commit/53c9f13c0a2b120d19d74a88fd0e0799d59752c4) Thanks [@MelSumner](https://github.com/MelSumner)! - `Pagination` - Bugfix `aria-label` on the component
278
+ `Pagination` - Bugfix `aria-label` on the component
279
+
280
+ <small>[#1627](https://github.com/hashicorp/design-system/pull/1627)</small>
281
+
282
+ ---
62
283
 
63
- - [#1635](https://github.com/hashicorp/design-system/pull/1635) [`2ecab760c`](https://github.com/hashicorp/design-system/commit/2ecab760c07c89ee9d34e993b879fc19e914c2e0) Thanks [@KristinLBradley](https://github.com/KristinLBradley)! - `Dropdown` - changed `@height` property to use `max-height` instead of a fixed height.
284
+ `Dropdown` - changed `@height` property to use `max-height` instead of a fixed height.
285
+
286
+ <small>[#1635](https://github.com/hashicorp/design-system/pull/1635)</small>
64
287
 
65
288
  ## 2.12.0
66
289
 
67
290
  ### Minor Changes
68
291
 
69
- - [#1640](https://github.com/hashicorp/design-system/pull/1640) [`8001667d2`](https://github.com/hashicorp/design-system/commit/8001667d2b0b549b5c2743ebaa4b50b58344a87f) Thanks [@didoo](https://github.com/didoo)! - `Design tokens` - Added color tokens for “Vault Secrets” product
292
+ `IconTile` - updated component to include `vault-secrets` product option
70
293
 
71
- `IconTile` - updated component to include `vault-secrets` product option
294
+ <small>[#1640](https://github.com/hashicorp/design-system/pull/1640)</small>
72
295
 
73
296
  ### Patch Changes
74
297
 
75
- - [#1615](https://github.com/hashicorp/design-system/pull/1615) [`d5d4402b2`](https://github.com/hashicorp/design-system/commit/d5d4402b2b7529d60ac693babc2a9187f8fbad36) Thanks [@didoo](https://github.com/didoo)! - `Text` - Removed leftover `console.log` from code
298
+ `Text` - Removed leftover `console.log` from code
299
+
300
+ <small>[#1615](https://github.com/hashicorp/design-system/pull/1615)</small>
301
+
302
+ ---
303
+
304
+ Refactored the layout of the `Dropdown` checkbox and radio inputs to make the gap between the inputs and the associated text, as well as the icon and count, clickable.
305
+
306
+ <small>[#1618](https://github.com/hashicorp/design-system/pull/1618)</small>
307
+
308
+ ---
309
+
310
+ `Hds::Link::Standalone` - Changed font-weight from 500 to 400 to match font-weight of `Hds::Button`.
311
+
312
+ <small>[#1617](https://github.com/hashicorp/design-system/pull/1617)</small>
313
+
314
+ ---
315
+
316
+ `Stepper` - removed some CSS declarations that were not used/applied
76
317
 
77
- - [#1618](https://github.com/hashicorp/design-system/pull/1618) [`4e31014d5`](https://github.com/hashicorp/design-system/commit/4e31014d503d4b71e6b70b11ba750b75c0cb2d37) Thanks [@KristinLBradley](https://github.com/KristinLBradley)! - Refactor the layout of the `Dropdown` checkbox and radio inputs to make the gap between the inputs and the associated text, as well as the icon and count, clickable.
318
+ <small>[#1628](https://github.com/hashicorp/design-system/pull/1628)</small>
78
319
 
79
- - [#1617](https://github.com/hashicorp/design-system/pull/1617) [`214f66e9e`](https://github.com/hashicorp/design-system/commit/214f66e9e8818da87e6d514b3808b40a0b7e56f5) Thanks [@KristinLBradley](https://github.com/KristinLBradley)! - Change font-weight of `Hds::Link::Standalone` from 500 to 400 to match font-weight of `Hds::Button`.
320
+ ---
80
321
 
81
- - [#1628](https://github.com/hashicorp/design-system/pull/1628) [`cc15349d3`](https://github.com/hashicorp/design-system/commit/cc15349d31c698d89540897570f76a5f2dc670ce) Thanks [@didoo](https://github.com/didoo)! - `Stepper` - removed some CSS declarations that were not used/applied
322
+ **🔄 Updated dependencies:**
82
323
 
83
- - Updated dependencies [[`8001667d2`](https://github.com/hashicorp/design-system/commit/8001667d2b0b549b5c2743ebaa4b50b58344a87f)]:
84
- - @hashicorp/design-system-tokens@1.8.0
85
- - @hashicorp/ember-flight-icons@3.1.2
324
+ - @hashicorp/design-system-tokens@1.8.0
325
+ - @hashicorp/ember-flight-icons@3.1.2
86
326
 
87
327
  ## 2.11.0
88
328
 
89
329
  ### Minor Changes
90
330
 
91
- - [#1490](https://github.com/hashicorp/design-system/pull/1490) [`4dafcb7d7`](https://github.com/hashicorp/design-system/commit/4dafcb7d7568027c495cb92d01026359a040507a) Thanks [@didoo](https://github.com/didoo)! - `Hds::Text` - Added new `Text` component
331
+ `Hds::Text` - Added new `Text` component
92
332
 
93
- - [#1587](https://github.com/hashicorp/design-system/pull/1587) [`57e7a42cb`](https://github.com/hashicorp/design-system/commit/57e7a42cb8353af83d8be5be0a318f951b00d3e3) Thanks [@alex-ju](https://github.com/alex-ju)! - `Hds::Form::MaskedInput` - Add `hasCopyButton` argument
333
+ <small>[#1490](https://github.com/hashicorp/design-system/pull/1490)</small>
334
+
335
+ ---
336
+
337
+ `Hds::Form::MaskedInput` - Add `hasCopyButton` argument
338
+
339
+ <small>[#1587](https://github.com/hashicorp/design-system/pull/1587)</small>
94
340
 
95
341
  ### Patch Changes
96
342
 
97
- - [#1577](https://github.com/hashicorp/design-system/pull/1577) [`8aa9a5889`](https://github.com/hashicorp/design-system/commit/8aa9a5889cf14fc28100a462dfd42754a3bdb42b) Thanks [@DingoEatingFuzz](https://github.com/DingoEatingFuzz)! - Remove aria-hidden from the "optional" span in Form::Indicator
343
+ `Form::Indicator` - Remove aria-hidden from the "optional" `<span>`
98
344
 
99
- - [#1606](https://github.com/hashicorp/design-system/pull/1606) [`7ac4526db`](https://github.com/hashicorp/design-system/commit/7ac4526dbddda6bea0e6e9f542addc5c97914fa8) Thanks [@Dhaulagiri](https://github.com/Dhaulagiri)! - Remove `ember-named-blocks-polyfill` as all consumers of HDS are on Ember 3.25 or later now. This can be installed locally if it is still needed.
345
+ <small>[#1577](https://github.com/hashicorp/design-system/pull/1577) - Thanks [@DingoEatingFuzz](https://github.com/DingoEatingFuzz) for the contribution! 🙏</small>
100
346
 
101
- - [#1576](https://github.com/hashicorp/design-system/pull/1576) [`e16c88ba9`](https://github.com/hashicorp/design-system/commit/e16c88ba959dcd0b186fd823fc3fccacf39674e8) Thanks [@KristinLBradley](https://github.com/KristinLBradley)! - `Alert`, `Toast`: Fixed an issue with anchor tag color styles within Description that had been overriding `Hds::Link` color; changed the default color for HTML links within Description to "neutral" to better align with existing guidance for links in the actions and improve accessible contrast.
347
+ ---
102
348
 
103
- - Updated dependencies []:
104
- - @hashicorp/ember-flight-icons@3.1.1
349
+ Removed `ember-named-blocks-polyfill` as all consumers of HDS are on Ember 3.25 or later now. This can be installed locally if it is still needed.
350
+
351
+ <small>[#1606](https://github.com/hashicorp/design-system/pull/1606)</small>
352
+
353
+ ---
354
+
355
+ `Alert`, `Toast`: Fixed an issue with anchor tag color styles within Description that had been overriding `Hds::Link` color; changed the default color for HTML links within Description to "neutral" to better align with existing guidance for links in the actions and improve accessible contrast.
356
+
357
+ <small>[#1576](https://github.com/hashicorp/design-system/pull/1576)</small>
358
+
359
+ ---
360
+
361
+ **🔄 Updated dependencies:**
362
+
363
+ - @hashicorp/ember-flight-icons@3.1.1
105
364
 
106
365
  ## 2.10.0
107
366
 
108
367
  ### Minor Changes
109
368
 
110
- - [#1535](https://github.com/hashicorp/design-system/pull/1535) [`2daa95479`](https://github.com/hashicorp/design-system/commit/2daa95479307fea0b94b2af413126d09525462c8) Thanks [@KristinLBradley](https://github.com/KristinLBradley)! - Add new `FileInput` component
369
+ Added new `FileInput` component
370
+
371
+ <small>[#1535](https://github.com/hashicorp/design-system/pull/1535)</small>
111
372
 
112
373
  ### Patch Changes
113
374
 
114
- - [#1570](https://github.com/hashicorp/design-system/pull/1570) [`7bf297996`](https://github.com/hashicorp/design-system/commit/7bf297996e06a15cb2506bfb23f43d71ecc9b492) Thanks [@Dhaulagiri](https://github.com/Dhaulagiri)! - Remove unnecessary export of `hds/copy/index.js`
375
+ Remove unnecessary export of `hds/copy/index.js`
376
+
377
+ <small>[#1570](https://github.com/hashicorp/design-system/pull/1570)</small>
378
+
379
+ ---
380
+
381
+ `Hds::Tabs` - Fix missing tab indicator when used in Modal or Flyout
382
+
383
+ <small>[#1575](https://github.com/hashicorp/design-system/pull/1575)</small>
384
+
385
+ ---
386
+
387
+ `Copy::Snippet` - Added support for container and updated API docs
388
+
389
+ <small>[#1567](https://github.com/hashicorp/design-system/pull/1567)</small>
390
+
391
+ ---
115
392
 
116
- - [#1575](https://github.com/hashicorp/design-system/pull/1575) [`0362019ca`](https://github.com/hashicorp/design-system/commit/0362019ca043ef955364f18b23dbcd36f0bfb2bf) Thanks [@alex-ju](https://github.com/alex-ju)! - `Hds::Tabs` - Fix missing tab indicator when used in Modal or Flyout
393
+ `Hds::Tabs` - Fixed tabs and panels misbehaving on route change
117
394
 
118
- - [#1567](https://github.com/hashicorp/design-system/pull/1567) [`384faeec2`](https://github.com/hashicorp/design-system/commit/384faeec244011f8090f3bcce0def89da1563164) Thanks [@MelSumner](https://github.com/MelSumner)! - Add support for container in Copy::Snippet and update API docs
395
+ <small>[#1571](https://github.com/hashicorp/design-system/pull/1571)</small>
119
396
 
120
- - [#1571](https://github.com/hashicorp/design-system/pull/1571) [`8ad8a5908`](https://github.com/hashicorp/design-system/commit/8ad8a59080d0c0c855f2f746f0a10ddf4440e461) Thanks [@alex-ju](https://github.com/alex-ju)! - `Hds::Tabs` - Fix tabs and panels misbehaving on route change
397
+ ---
121
398
 
122
- - [#1568](https://github.com/hashicorp/design-system/pull/1568) [`dbe2e437d`](https://github.com/hashicorp/design-system/commit/dbe2e437d7d465cda3b69c7a28b01cbfb2849b79) Thanks [@MelSumner](https://github.com/MelSumner)! - Update error icon for copy components
399
+ <small>[#1568](https://github.com/hashicorp/design-system/pull/1568)</small>
123
400
 
124
- - [#1555](https://github.com/hashicorp/design-system/pull/1555) [`90a615161`](https://github.com/hashicorp/design-system/commit/90a61516156ea58898febaa5bd66b31386256151) Thanks [@alex-ju](https://github.com/alex-ju)! - `Hds::SegmentedGroup` - prevent `border-radius` from interfering with underlying elements
401
+ `Copy::Button`, `Copy::Snippet` - Updated error icon
125
402
 
126
- - [#1565](https://github.com/hashicorp/design-system/pull/1565) [`60154db1a`](https://github.com/hashicorp/design-system/commit/60154db1a00f877b2c3bc4a9c4069556e8af809b) Thanks [@MelSumner](https://github.com/MelSumner)! - Resolved issue where ThSort was not supporting right-aligned text properly
403
+ ---
127
404
 
128
- - Updated dependencies [[`8b8d6bcfa`](https://github.com/hashicorp/design-system/commit/8b8d6bcfa67efa5de1a2cc419167a962e747a8c9)]:
129
- - @hashicorp/ember-flight-icons@3.1.0
405
+ `Hds::SegmentedGroup` - Prevent `border-radius` from interfering with underlying elements
406
+
407
+ <small>[#1555](https://github.com/hashicorp/design-system/pull/1555)</small>
408
+
409
+ ---
410
+
411
+ `Table` - Resolved issue where `ThSort` was not supporting right-aligned text properly
412
+
413
+ <small>[#1565](https://github.com/hashicorp/design-system/pull/1565)</small>
414
+
415
+ ---
416
+
417
+ **🔄 Updated dependencies:**
418
+
419
+ - @hashicorp/ember-flight-icons@3.1.0
130
420
 
131
421
  ## 2.9.0
132
422
 
133
423
  ### Minor Changes
134
424
 
135
- - [#1488](https://github.com/hashicorp/design-system/pull/1488) [`372bae36d`](https://github.com/hashicorp/design-system/commit/372bae36d87377dc87aa18ed39c7834a4cc545f4) Thanks [@MelSumner](https://github.com/MelSumner)! - Adds the `Hds::CopyButton` and `Hds::CopySnippet` components.
425
+ Added the `Hds::CopyButton` and `Hds::CopySnippet` components.
426
+
427
+ <small>[#1488](https://github.com/hashicorp/design-system/pull/1488)</small>
136
428
 
137
429
  ### Patch Changes
138
430
 
139
- - [#1539](https://github.com/hashicorp/design-system/pull/1539) [`9d3f29a42`](https://github.com/hashicorp/design-system/commit/9d3f29a42e8130b2155498a7c3cb77a6da279a68) Thanks [@Dhaulagiri](https://github.com/Dhaulagiri)! - Adjusted closing brace on copywrite headers to avoid terminal noise
431
+ Adjusted closing brace on copywrite headers to avoid terminal noise
140
432
 
141
- - [#1549](https://github.com/hashicorp/design-system/pull/1549) [`a6553ea03`](https://github.com/hashicorp/design-system/commit/a6553ea032f70f0167f149589801b72154c3cf75) Thanks [@fivetanley](https://github.com/fivetanley)! - `Hds::Modal` - reduce test flakiness around closing Modal when using `@ember/test-helpers`
433
+ <small>[#1539](https://github.com/hashicorp/design-system/pull/1539)</small>
142
434
 
143
- - [#1530](https://github.com/hashicorp/design-system/pull/1530) [`b757e6efb`](https://github.com/hashicorp/design-system/commit/b757e6efb4c115abcd604bc4ef155f731f118c72) Thanks [@alex-ju](https://github.com/alex-ju)! - Fix Embroider warnings caused by incorrect export of internal utility functions
435
+ ---
144
436
 
145
- - [#1552](https://github.com/hashicorp/design-system/pull/1552) [`865ff7aad`](https://github.com/hashicorp/design-system/commit/865ff7aad593bddf6f16bfdb1210318bedfa4e22) Thanks [@alex-ju](https://github.com/alex-ju)! - `Hds::Flyout` - reduce test flakiness around closing Flyout when using `@ember/test-helpers`
437
+ `Hds::Modal` - reduce test flakiness around closing Modal when using `@ember/test-helpers`
146
438
 
147
- - [#1529](https://github.com/hashicorp/design-system/pull/1529) [`1433fe098`](https://github.com/hashicorp/design-system/commit/1433fe0988b9c4e0d280ac450e6688e5d606630d) Thanks [@alex-ju](https://github.com/alex-ju)! - `Hds::Form::Field` - Fix error message for unexpected `@layout` values
439
+ <small>[#1549](https://github.com/hashicorp/design-system/pull/1549) - Thanks [@fivetanley](https://github.com/fivetanley) for the contribution! 🙏</small>
148
440
 
149
- - Updated dependencies []:
150
- - @hashicorp/ember-flight-icons@3.0.9
441
+ ---
442
+
443
+ Fix Embroider warnings caused by incorrect export of internal utility functions
444
+
445
+ <small>[#1530](https://github.com/hashicorp/design-system/pull/1530)</small>
446
+
447
+ ---
448
+
449
+ `Hds::Flyout` - reduce test flakiness around closing Flyout when using `@ember/test-helpers`
450
+
451
+ <small>[#1552](https://github.com/hashicorp/design-system/pull/1552)</small>
452
+
453
+ ---
454
+
455
+ `Hds::Form::Field` - Fix error message for unexpected `@layout` values
456
+
457
+ <small>[#1529](https://github.com/hashicorp/design-system/pull/1529)</small>
458
+
459
+ ---
460
+
461
+ **🔄 Updated dependencies:**
462
+
463
+ - @hashicorp/ember-flight-icons@3.0.9
151
464
 
152
465
  ## 2.8.1
153
466
 
@@ -477,7 +790,7 @@
477
790
  - Adds `sortingFunction` support in `@columns` declaration
478
791
  - Adds `sortedMessageText` support for custom sorting message
479
792
  - Updates the `aria-sort` to fallback to "none" instead of "null" (per spec)
480
- - Adds support for the `{{each}}` loop's `key` to be defined with `identityKey` (optional; falls back to the Ember default if none is provided)
793
+ - Adds support for the `\{\{each\}\}` loop's `key` to be defined with `identityKey` (optional; falls back to the Ember default if none is provided)
481
794
 
482
795
  ### Patch Changes
483
796
 
package/README.md CHANGED
@@ -11,7 +11,7 @@ Compatibility
11
11
 
12
12
  * Ember.js v3.28 or above
13
13
  * Ember CLI v3.28 or above
14
- * Node.js v14 or above
14
+ * Node.js v16 or above
15
15
 
16
16
 
17
17
  Installation
@@ -14,17 +14,28 @@
14
14
  @parentContainsInteractive={{this.containsInteractive}}
15
15
  />
16
16
 
17
- <div
18
- class="hds-accordion-item__toggle-content hds-typography-display-200 hds-foreground-strong hds-font-weight-semibold"
17
+ <Hds::Text::Display
18
+ @tag="div"
19
+ @size="200"
20
+ @weight="semibold"
21
+ @color="strong"
22
+ class="hds-accordion-item__toggle-content"
19
23
  >
20
24
  {{yield to="toggle"}}
21
- </div>
25
+ </Hds::Text::Display>
22
26
  </div>
23
27
  </:toggle>
24
28
 
25
29
  <:content>
26
- <div class="hds-accordion-item__content hds-typography-body-200 hds-foreground-primary" id={{this.contentId}}>
30
+ <Hds::Text::Body
31
+ class="hds-accordion-item__content"
32
+ @tag="div"
33
+ @size="200"
34
+ @weight="regular"
35
+ @color="primary"
36
+ id={{this.contentId}}
37
+ >
27
38
  {{yield to="content"}}
28
- </div>
39
+ </Hds::Text::Body>
29
40
  </:content>
30
41
  </Hds::DisclosurePrimitive>
@@ -6,8 +6,8 @@
6
6
  {{#if (has-block)}}
7
7
  {{yield}}
8
8
  {{else}}
9
- <p class="hds-application-state__body-text hds-typography-body-300">
9
+ <Hds::Text::Body class="hds-application-state__body-text" @tag="p" @size="300">
10
10
  {{@text}}
11
- </p>
11
+ </Hds::Text::Body>
12
12
  {{/if}}
13
13
  </div>
@@ -8,13 +8,13 @@
8
8
  <FlightIcon @name={{@icon}} @size="24" />
9
9
  </div>
10
10
  {{/if}}
11
- <div class="hds-application-state__title hds-typography-display-400 hds-font-weight-semibold">
11
+ <Hds::Text::Display class="hds-application-state__title" @tag="div" @size="400" @weight="semibold">
12
12
  {{@title}}
13
- </div>
13
+ </Hds::Text::Display>
14
14
  {{#if @errorCode}}
15
- <div class="hds-application-state__error-code hds-typography-body-100 hds-font-weight-medium">
15
+ <Hds::Text::Body class="hds-application-state__error-code" @tag="div" @size="100" @weight="medium">
16
16
  Error
17
17
  {{@errorCode}}
18
- </div>
18
+ </Hds::Text::Body>
19
19
  {{/if}}
20
20
  </div>