@hashicorp/design-system-components 2.15.0 → 3.0.1

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 (76) hide show
  1. package/CHANGELOG-FIGMA-COMPONENTS.md +177 -0
  2. package/CHANGELOG-FIGMA-FOUNDATIONS.md +2 -0
  3. package/CHANGELOG.md +367 -59
  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} +29 -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/info/index.hbs +2 -2
  49. package/addon/components/hds/pagination/nav/arrow.hbs +16 -4
  50. package/addon/components/hds/pagination/nav/arrow.js +0 -2
  51. package/addon/components/hds/pagination/nav/number.hbs +2 -1
  52. package/addon/components/hds/pagination/nav/number.js +1 -6
  53. package/addon/components/hds/side-nav/list/index.hbs +2 -2
  54. package/addon/components/hds/stepper/step/indicator.hbs +6 -1
  55. package/addon/components/hds/tag/index.hbs +2 -2
  56. package/addon/modifiers/hds-clipboard.js +163 -0
  57. package/addon/template-registry.ts +12 -0
  58. package/app/components/hds/form/visibility-toggle/index.js +6 -0
  59. package/app/modifiers/hds-clipboard.js +6 -0
  60. package/app/styles/components/button.scss +2 -0
  61. package/app/styles/components/copy/snippet.scss +22 -14
  62. package/app/styles/components/dropdown.scss +2 -5
  63. package/app/styles/components/flyout.scss +0 -2
  64. package/app/styles/components/form/group.scss +5 -0
  65. package/app/styles/components/form/index.scss +1 -0
  66. package/app/styles/components/form/masked-input.scss +0 -9
  67. package/app/styles/components/form/radio-card.scss +2 -4
  68. package/app/styles/components/form/text-input.scss +17 -0
  69. package/app/styles/components/form/visibility-toggle.scss +23 -0
  70. package/app/styles/components/stepper/step-indicator.scss +0 -3
  71. package/app/styles/components/tag.scss +1 -5
  72. package/index.js +3 -0
  73. package/package.json +33 -4
  74. package/tsconfig.json +46 -0
  75. package/types/dummy/index.d.ts +6 -0
  76. package/types/global.d.ts +12 -0
package/CHANGELOG.md CHANGED
@@ -1,166 +1,474 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 3.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ **🔄 Updated dependencies:**
8
+
9
+ - @hashicorp/ember-flight-icons@4.0.1
10
+
11
+ ## 3.0.0
12
+
13
+ ### Major Changes
14
+
15
+ Drop support for Node 14
16
+
17
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
18
+
19
+ ---
20
+
21
+ `Hds::Form::VisibilityToggle` - Added component as a form base element
22
+
23
+ `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)
24
+
25
+ `Hds::Form::MaskedInput` - Refactored to use `Hds::Form::VisibilityToggle`
26
+
27
+ `Hds::Form::MaskedInput` - Renamed `@isMasked` to `@isContentMasked`
28
+
29
+ To migrate:
30
+
31
+ - in `Hds::Form::MaskedInput` instances replace `@isMasked` arguments with `@isContentMasked`
32
+
33
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
34
+
35
+ ---
36
+
37
+ `Hds::Dropdown` – Removed `@listPosition` `left` and `right` (use `bottom-left` and `bottom-right`, respectively).
38
+
39
+ To migrate:
40
+
41
+ - in `Hds::Dropdown` instances:
42
+ - replace `@listPosition="left"` with `@listPosition="bottom-left"`
43
+ - replace `@listPosition="right"` with `@listPosition="bottom-right"`
44
+
45
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
46
+
47
+ ---
48
+
49
+ `SideNav` - Renamed `extraBefore/After` generic containers to `ExtraBefore/After` (uppercase `E`).
50
+
51
+ To migrate:
52
+
53
+ - rename all the `extraBefore/After` instances yielded within the `<Hds::SideNav>` component to `ExtraBefore/After`
54
+
55
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
56
+
57
+ ---
58
+
59
+ `Form::RadioCard` - Remove the `@layout` property.
60
+
61
+ `Form::RadioCard::Group` - Repurposed the `@layout` property to either `horizontal` (default) or `vertical`
62
+
63
+ To migrate `Form::RadioCard` and `Form::RadioCard::Group` instances without encountering visual changes:
64
+
65
+ - make sure all instances with `@layout="fixed"` have a `@maxWidth` defined, then remove the `@layout="fixed"` definition
66
+ - remove all `@layout="fluid"` definitions
67
+
68
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
69
+
70
+ ---
71
+
72
+ ### Minor Changes
73
+
74
+ `Dropdown::ListItem::CopyItem` - Changed defaults for `@color` (now `secondary`) and `@isTruncated` (now `true`).
75
+
76
+ _Consumers should review the defaults values for this (sub)component in their codebases, to make sure they match the intended visual designs._
77
+
78
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
79
+
80
+ ---
81
+
82
+ `Button`, `Interactive` - Converted components to TypeScript.
83
+
84
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
85
+
86
+ ---
87
+
88
+ `Copy::Snippet` - Fixed the way in which “width/full-width” is applied to the component + Internal update to the “truncation” implementation.
89
+
90
+ - the component is not full-width anymore by default (the width now fits the content); use `@isFullWidth={{true}}` to have a full-width layout
91
+ - the internal class name `hds-copy-snippet__text--truncated` has been changed to `hds-copy-snippet--is-truncated` (and moved)
92
+
93
+ _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._
94
+
95
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
96
+
97
+ ---
98
+
99
+ 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))
100
+
101
+ `Copy::Button` - Multiple updates:
102
+
103
+ - replaced third-party `clipboard` modifier with `hds-clipboard`
104
+ - 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)
105
+ - added `@onSuccess/onError` callbacks
106
+
107
+ `Copy::Snippet` - Multiple updates:
108
+
109
+ - replaced third-party `clipboard` modifier with `hds-clipboard`
110
+ - added `@onSuccess/onError` callbacks
111
+ - `Dropdown::ListItem::CopyItem`
112
+ - 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)
113
+
114
+ _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._
115
+
116
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
117
+
118
+ ---
119
+
120
+ ### Patch Changes
121
+
122
+ `Copy::Snippet` - Fixed background colors for different states according to Figma specs (main change is the default/base background is now transparent, not white).
123
+
124
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
125
+
126
+ ---
127
+
128
+ `Form::MaskedInput` - Changed copy logic for `CopyButton` used inside the component.
129
+
130
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
131
+
132
+ ---
133
+
134
+ `Accordion` - Replaced internal text styling (using `Text` component).
135
+
136
+ `ApplicationState` - Replaced internal text styling (using `Text` component).
137
+
138
+ `Copy::Snippet` - Replaced internal text styling (using `Text` component).
139
+
140
+ `Dropdown` - Replaced internal text styling (using `Text` component).
141
+
142
+ `Form:**` - Replaced internal text styling (using `Text` component).
143
+
144
+ `Flyout` - Replaced internal text styling (using `Text` component).
145
+
146
+ `Modal` - Replaced internal text styling (using `Text` component).
147
+
148
+ `PageHeader` - Replaced internal text styling (using `Text` component).
149
+
150
+ `Pagination` - Replaced internal text styling (using `Text` component).
151
+
152
+ `Stepper` - Replaced internal text styling (using `Text` component).
153
+
154
+ `Tag` - Replaced internal text styling (using `Text` component).
155
+
156
+ _No impact is expected on the consumers' applications._
157
+
158
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
159
+
160
+ ---
161
+
162
+ `Button` - Applied explicit text alignment to the text to fix alignment on "link" buttons.
163
+
164
+ <small>[#1634](https://github.com/hashicorp/design-system/pull/1634)</small>
165
+
166
+ ---
167
+
168
+ **🔄 Updated dependencies:**
169
+
170
+ - @hashicorp/ember-flight-icons@4.0.0
171
+
3
172
  ## 2.15.0
4
173
 
5
174
  ### Minor Changes
6
175
 
7
- - [#1690](https://github.com/hashicorp/design-system/pull/1690) [`33df4e25e`](https://github.com/hashicorp/design-system/commit/33df4e25e7bff4dabbba3744128449e2b99d4911) Thanks [@didoo](https://github.com/didoo)! - `Button` - updated horizontal padding of icon-only variant
8
- `Dropdown::ToggleIcon` - updated sizing of the "small" variant to match the height of the "small" variant `Button`
176
+ `Button` - updated horizontal padding of icon-only variant
177
+
178
+ `Dropdown::ToggleIcon` - updated sizing of the "small" variant to match the height of the "small" variant `Button`
179
+
180
+ <small>[#1690](https://github.com/hashicorp/design-system/pull/1690)</small>
9
181
 
10
182
  ### Patch Changes
11
183
 
12
- - [#1736](https://github.com/hashicorp/design-system/pull/1736) [`541d22442`](https://github.com/hashicorp/design-system/commit/541d22442396d33850a68a61e2781094df1b121a) Thanks [@didoo](https://github.com/didoo)! - `Pagination` - Removed handling of query parameters from `onPageSizeChange` function.
184
+ `Pagination` - Removed handling of query parameters from `onPageSizeChange` function.
185
+
186
+ <small>[#1736](https://github.com/hashicorp/design-system/pull/1736)</small>
13
187
 
14
- _Notice: while technically this is a breaking change, we consider this a fast-follow fix for the previous release._
188
+ _Notice: while technically this is a breaking change, we consider this a fast-follow fix for the previous release._
15
189
 
16
190
  ## 2.14.2
17
191
 
18
192
  ### Patch Changes
19
193
 
20
- - [#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
194
+ `Pagination` - updated the logic for “Compact” variant to expose `@currentPageSize` and handle controlled/uncontrolled changes
195
+
196
+ <small>[#1724](https://github.com/hashicorp/design-system/pull/1724)</small>
197
+
198
+ ---
199
+
200
+ `Tabs` - replace `assert` with `warn` in `setIndicator` function
21
201
 
22
- - [#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
202
+ <small>[#1716](https://github.com/hashicorp/design-system/pull/1716)</small>
23
203
 
24
204
  ## 2.14.1
25
205
 
26
206
  ### Patch Changes
27
207
 
28
- - [#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
208
+ `Tabs` - Fixed issue with `@isSelected` dynamically changed within `#each` loops
209
+
210
+ <small>[#1709](https://github.com/hashicorp/design-system/pull/1709)</small>
29
211
 
30
212
  ## 2.14.0
31
213
 
32
214
  ### Minor Changes
33
215
 
34
- - [#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
216
+ `Pagination::Compact` - Added option to show "SizeSelector" element
217
+
218
+ <small>[#1700](https://github.com/hashicorp/design-system/pull/1700)</small>
219
+
220
+ ---
35
221
 
36
- - [#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:
222
+ `Tabs` - Refactored logic for `Tabs` component + `Tab/Panel` sub-components to support more complex use cases:
37
223
 
38
- - introduced `@selectedTabIndex` argument to control the "selected" tab from the consuming application, e.g. via query params (effort spearheaded by @MiniHeyd)
39
- - fixed issue with nested tabs not initializing the "selected" indicator correctly
40
- - fixed issue with dynamic tab content not updating the "selected" indicator correctly
224
+ - introduced `@selectedTabIndex` argument to control the "selected" tab from the consuming application, e.g. via query params (effort spearheaded by @MiniHeyd)
225
+ - fixed issue with nested tabs not initializing the "selected" indicator correctly
226
+ - fixed issue with dynamic tab content not updating the "selected" indicator correctly
227
+
228
+ <small>[#1688](https://github.com/hashicorp/design-system/pull/1688)</small>
41
229
 
42
230
  ## 2.13.0
43
231
 
44
232
  ### Minor Changes
45
233
 
46
- - [#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
234
+ `AppFooter` - Added new component
235
+
236
+ <small>[#1623](https://github.com/hashicorp/design-system/pull/1623)</small>
47
237
 
48
- - [#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
238
+ ---
239
+
240
+ `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
241
+
242
+ <small>[#1630](https://github.com/hashicorp/design-system/pull/1630)</small>
49
243
 
50
244
  ### Patch Changes
51
245
 
52
- - [#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
246
+ `Tag` - Updated padding for dismiss button for WCAG conformance
247
+
248
+ <small>[#1696](https://github.com/hashicorp/design-system/pull/1696)</small>
249
+
250
+ ---
251
+
252
+ `Link::Standalone` – increase target size
53
253
 
54
- - [#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
254
+ <small>[#1678](https://github.com/hashicorp/design-system/pull/1678)</small>
55
255
 
56
- - Updated dependencies [[`04da95443`](https://github.com/hashicorp/design-system/commit/04da95443290ee2d03d9bef23787a4ef10577247)]:
57
- - @hashicorp/design-system-tokens@1.9.0
256
+ ---
257
+
258
+ **🔄 Updated dependencies:**
259
+
260
+ - @hashicorp/design-system-tokens@1.9.0
58
261
 
59
262
  ## 2.12.2
60
263
 
61
264
  ### Patch Changes
62
265
 
63
- - [#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
266
+ `PowerSelect` - fix style overrides when the list is positioned above
64
267
 
65
- - [#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`)
268
+ <small>[#1655](https://github.com/hashicorp/design-system/pull/1655)</small>
66
269
 
67
- - Updated dependencies []:
68
- - @hashicorp/ember-flight-icons@3.1.3
270
+ ---
271
+
272
+ `Text` - Fixed issue with whitespace adding extra underline when used in links (eg. inside a `Link::Inline`)
273
+
274
+ <small>[#1652](https://github.com/hashicorp/design-system/pull/1652)</small>
275
+
276
+ ---
277
+
278
+ **🔄 Updated dependencies:**
279
+
280
+ - @hashicorp/ember-flight-icons@3.1.3
69
281
 
70
282
  ## 2.12.1
71
283
 
72
284
  ### Patch Changes
73
285
 
74
- - [#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
286
+ `Pagination` - Bugfix `aria-label` on the component
287
+
288
+ <small>[#1627](https://github.com/hashicorp/design-system/pull/1627)</small>
289
+
290
+ ---
75
291
 
76
- - [#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.
292
+ `Dropdown` - changed `@height` property to use `max-height` instead of a fixed height.
293
+
294
+ <small>[#1635](https://github.com/hashicorp/design-system/pull/1635)</small>
77
295
 
78
296
  ## 2.12.0
79
297
 
80
298
  ### Minor Changes
81
299
 
82
- - [#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
300
+ `IconTile` - updated component to include `vault-secrets` product option
83
301
 
84
- `IconTile` - updated component to include `vault-secrets` product option
302
+ <small>[#1640](https://github.com/hashicorp/design-system/pull/1640)</small>
85
303
 
86
304
  ### Patch Changes
87
305
 
88
- - [#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
306
+ `Text` - Removed leftover `console.log` from code
307
+
308
+ <small>[#1615](https://github.com/hashicorp/design-system/pull/1615)</small>
309
+
310
+ ---
311
+
312
+ 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.
313
+
314
+ <small>[#1618](https://github.com/hashicorp/design-system/pull/1618)</small>
315
+
316
+ ---
317
+
318
+ `Hds::Link::Standalone` - Changed font-weight from 500 to 400 to match font-weight of `Hds::Button`.
319
+
320
+ <small>[#1617](https://github.com/hashicorp/design-system/pull/1617)</small>
321
+
322
+ ---
323
+
324
+ `Stepper` - removed some CSS declarations that were not used/applied
89
325
 
90
- - [#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.
326
+ <small>[#1628](https://github.com/hashicorp/design-system/pull/1628)</small>
91
327
 
92
- - [#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`.
328
+ ---
93
329
 
94
- - [#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
330
+ **🔄 Updated dependencies:**
95
331
 
96
- - Updated dependencies [[`8001667d2`](https://github.com/hashicorp/design-system/commit/8001667d2b0b549b5c2743ebaa4b50b58344a87f)]:
97
- - @hashicorp/design-system-tokens@1.8.0
98
- - @hashicorp/ember-flight-icons@3.1.2
332
+ - @hashicorp/design-system-tokens@1.8.0
333
+ - @hashicorp/ember-flight-icons@3.1.2
99
334
 
100
335
  ## 2.11.0
101
336
 
102
337
  ### Minor Changes
103
338
 
104
- - [#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
339
+ `Hds::Text` - Added new `Text` component
105
340
 
106
- - [#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
341
+ <small>[#1490](https://github.com/hashicorp/design-system/pull/1490)</small>
342
+
343
+ ---
344
+
345
+ `Hds::Form::MaskedInput` - Add `hasCopyButton` argument
346
+
347
+ <small>[#1587](https://github.com/hashicorp/design-system/pull/1587)</small>
107
348
 
108
349
  ### Patch Changes
109
350
 
110
- - [#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
351
+ `Form::Indicator` - Remove aria-hidden from the "optional" `<span>`
111
352
 
112
- - [#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.
353
+ <small>[#1577](https://github.com/hashicorp/design-system/pull/1577) - Thanks [@DingoEatingFuzz](https://github.com/DingoEatingFuzz) for the contribution! 🙏</small>
113
354
 
114
- - [#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.
355
+ ---
115
356
 
116
- - Updated dependencies []:
117
- - @hashicorp/ember-flight-icons@3.1.1
357
+ 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.
358
+
359
+ <small>[#1606](https://github.com/hashicorp/design-system/pull/1606)</small>
360
+
361
+ ---
362
+
363
+ `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.
364
+
365
+ <small>[#1576](https://github.com/hashicorp/design-system/pull/1576)</small>
366
+
367
+ ---
368
+
369
+ **🔄 Updated dependencies:**
370
+
371
+ - @hashicorp/ember-flight-icons@3.1.1
118
372
 
119
373
  ## 2.10.0
120
374
 
121
375
  ### Minor Changes
122
376
 
123
- - [#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
377
+ Added new `FileInput` component
378
+
379
+ <small>[#1535](https://github.com/hashicorp/design-system/pull/1535)</small>
124
380
 
125
381
  ### Patch Changes
126
382
 
127
- - [#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`
383
+ Remove unnecessary export of `hds/copy/index.js`
384
+
385
+ <small>[#1570](https://github.com/hashicorp/design-system/pull/1570)</small>
386
+
387
+ ---
388
+
389
+ `Hds::Tabs` - Fix missing tab indicator when used in Modal or Flyout
390
+
391
+ <small>[#1575](https://github.com/hashicorp/design-system/pull/1575)</small>
392
+
393
+ ---
394
+
395
+ `Copy::Snippet` - Added support for container and updated API docs
396
+
397
+ <small>[#1567](https://github.com/hashicorp/design-system/pull/1567)</small>
398
+
399
+ ---
128
400
 
129
- - [#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
401
+ `Hds::Tabs` - Fixed tabs and panels misbehaving on route change
130
402
 
131
- - [#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
403
+ <small>[#1571](https://github.com/hashicorp/design-system/pull/1571)</small>
132
404
 
133
- - [#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
405
+ ---
134
406
 
135
- - [#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
407
+ <small>[#1568](https://github.com/hashicorp/design-system/pull/1568)</small>
136
408
 
137
- - [#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
409
+ `Copy::Button`, `Copy::Snippet` - Updated error icon
138
410
 
139
- - [#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
411
+ ---
140
412
 
141
- - Updated dependencies [[`8b8d6bcfa`](https://github.com/hashicorp/design-system/commit/8b8d6bcfa67efa5de1a2cc419167a962e747a8c9)]:
142
- - @hashicorp/ember-flight-icons@3.1.0
413
+ `Hds::SegmentedGroup` - Prevent `border-radius` from interfering with underlying elements
414
+
415
+ <small>[#1555](https://github.com/hashicorp/design-system/pull/1555)</small>
416
+
417
+ ---
418
+
419
+ `Table` - Resolved issue where `ThSort` was not supporting right-aligned text properly
420
+
421
+ <small>[#1565](https://github.com/hashicorp/design-system/pull/1565)</small>
422
+
423
+ ---
424
+
425
+ **🔄 Updated dependencies:**
426
+
427
+ - @hashicorp/ember-flight-icons@3.1.0
143
428
 
144
429
  ## 2.9.0
145
430
 
146
431
  ### Minor Changes
147
432
 
148
- - [#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.
433
+ Added the `Hds::CopyButton` and `Hds::CopySnippet` components.
434
+
435
+ <small>[#1488](https://github.com/hashicorp/design-system/pull/1488)</small>
149
436
 
150
437
  ### Patch Changes
151
438
 
152
- - [#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
439
+ Adjusted closing brace on copywrite headers to avoid terminal noise
153
440
 
154
- - [#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`
441
+ <small>[#1539](https://github.com/hashicorp/design-system/pull/1539)</small>
155
442
 
156
- - [#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
443
+ ---
157
444
 
158
- - [#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`
445
+ `Hds::Modal` - reduce test flakiness around closing Modal when using `@ember/test-helpers`
159
446
 
160
- - [#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
447
+ <small>[#1549](https://github.com/hashicorp/design-system/pull/1549) - Thanks [@fivetanley](https://github.com/fivetanley) for the contribution! 🙏</small>
161
448
 
162
- - Updated dependencies []:
163
- - @hashicorp/ember-flight-icons@3.0.9
449
+ ---
450
+
451
+ Fix Embroider warnings caused by incorrect export of internal utility functions
452
+
453
+ <small>[#1530](https://github.com/hashicorp/design-system/pull/1530)</small>
454
+
455
+ ---
456
+
457
+ `Hds::Flyout` - reduce test flakiness around closing Flyout when using `@ember/test-helpers`
458
+
459
+ <small>[#1552](https://github.com/hashicorp/design-system/pull/1552)</small>
460
+
461
+ ---
462
+
463
+ `Hds::Form::Field` - Fix error message for unexpected `@layout` values
464
+
465
+ <small>[#1529](https://github.com/hashicorp/design-system/pull/1529)</small>
466
+
467
+ ---
468
+
469
+ **🔄 Updated dependencies:**
470
+
471
+ - @hashicorp/ember-flight-icons@3.0.9
164
472
 
165
473
  ## 2.8.1
166
474
 
@@ -490,7 +798,7 @@
490
798
  - Adds `sortingFunction` support in `@columns` declaration
491
799
  - Adds `sortedMessageText` support for custom sorting message
492
800
  - Updates the `aria-sort` to fallback to "none" instead of "null" (per spec)
493
- - Adds support for the `{{each}}` loop's `key` to be defined with `identityKey` (optional; falls back to the Ember default if none is provided)
801
+ - Adds support for the `\{\{each\}\}` loop's `key` to be defined with `identityKey` (optional; falls back to the Ember default if none is provided)
494
802
 
495
803
  ### Patch Changes
496
804
 
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>