@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.
- package/CHANGELOG-FIGMA-COMPONENTS.md +177 -0
- package/CHANGELOG-FIGMA-FOUNDATIONS.md +2 -0
- package/CHANGELOG.md +368 -55
- package/README.md +1 -1
- package/addon/components/hds/accordion/item/index.hbs +16 -5
- package/addon/components/hds/application-state/body.hbs +2 -2
- package/addon/components/hds/application-state/header.hbs +4 -4
- package/addon/components/hds/button/{index.js → index.ts} +34 -4
- package/addon/components/hds/copy/button/index.hbs +1 -1
- package/addon/components/hds/copy/button/index.js +14 -2
- package/addon/components/hds/copy/snippet/index.hbs +3 -3
- package/addon/components/hds/copy/snippet/index.js +19 -2
- package/addon/components/hds/dropdown/index.js +0 -3
- package/addon/components/hds/dropdown/list-item/checkmark.hbs +9 -3
- package/addon/components/hds/dropdown/list-item/copy-item.hbs +8 -4
- package/addon/components/hds/dropdown/list-item/copy-item.js +13 -0
- package/addon/components/hds/dropdown/list-item/description.hbs +9 -2
- package/addon/components/hds/dropdown/list-item/description.js +0 -18
- package/addon/components/hds/dropdown/list-item/interactive.hbs +4 -4
- package/addon/components/hds/dropdown/list-item/radio.hbs +6 -1
- package/addon/components/hds/dropdown/list-item/title.hbs +9 -2
- package/addon/components/hds/dropdown/list-item/title.js +0 -18
- package/addon/components/hds/flyout/description.hbs +2 -2
- package/addon/components/hds/flyout/header.hbs +4 -4
- package/addon/components/hds/form/error/index.hbs +2 -2
- package/addon/components/hds/form/error/index.js +0 -3
- package/addon/components/hds/form/error/message.hbs +2 -2
- package/addon/components/hds/form/helper-text/index.hbs +10 -2
- package/addon/components/hds/form/helper-text/index.js +0 -3
- package/addon/components/hds/form/indicator/index.hbs +1 -1
- package/addon/components/hds/form/indicator/index.js +0 -3
- package/addon/components/hds/form/masked-input/base.hbs +8 -10
- package/addon/components/hds/form/masked-input/base.js +14 -14
- package/addon/components/hds/form/masked-input/field.hbs +3 -1
- package/addon/components/hds/form/radio-card/description.hbs +6 -1
- package/addon/components/hds/form/radio-card/group.hbs +1 -2
- package/addon/components/hds/form/radio-card/index.js +5 -33
- package/addon/components/hds/form/radio-card/label.hbs +7 -1
- package/addon/components/hds/form/text-input/base.js +5 -0
- package/addon/components/hds/form/text-input/field.hbs +23 -11
- package/addon/components/hds/form/text-input/field.js +59 -0
- package/addon/components/hds/form/visibility-toggle/index.hbs +8 -0
- package/addon/components/hds/interactive/{index.js → index.ts} +28 -3
- package/addon/components/hds/modal/header.hbs +4 -4
- package/addon/components/hds/page-header/description.hbs +7 -1
- package/addon/components/hds/page-header/subtitle.hbs +7 -1
- package/addon/components/hds/page-header/title.hbs +7 -1
- package/addon/components/hds/pagination/compact/index.js +0 -16
- package/addon/components/hds/pagination/info/index.hbs +2 -2
- package/addon/components/hds/pagination/nav/arrow.hbs +16 -4
- package/addon/components/hds/pagination/nav/arrow.js +0 -2
- package/addon/components/hds/pagination/nav/number.hbs +2 -1
- package/addon/components/hds/pagination/nav/number.js +1 -6
- package/addon/components/hds/side-nav/list/index.hbs +2 -2
- package/addon/components/hds/stepper/step/indicator.hbs +6 -1
- package/addon/components/hds/tag/index.hbs +2 -2
- package/addon/modifiers/hds-clipboard.js +163 -0
- package/addon/template-registry.ts +12 -0
- package/app/components/hds/form/visibility-toggle/index.js +6 -0
- package/app/modifiers/hds-clipboard.js +6 -0
- package/app/styles/components/button.scss +2 -0
- package/app/styles/components/copy/snippet.scss +22 -14
- package/app/styles/components/dropdown.scss +5 -8
- package/app/styles/components/flyout.scss +0 -2
- package/app/styles/components/form/group.scss +5 -0
- package/app/styles/components/form/index.scss +1 -0
- package/app/styles/components/form/masked-input.scss +0 -9
- package/app/styles/components/form/radio-card.scss +2 -4
- package/app/styles/components/form/text-input.scss +17 -0
- package/app/styles/components/form/visibility-toggle.scss +23 -0
- package/app/styles/components/stepper/step-indicator.scss +0 -3
- package/app/styles/components/tag.scss +1 -5
- package/app/styles/mixins/_button.scss +14 -4
- package/index.js +3 -0
- package/package.json +33 -4
- package/tsconfig.json +46 -0
- package/types/dummy/index.d.ts +6 -0
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
214
|
+
`Tabs` - Refactored logic for `Tabs` component + `Tab/Panel` sub-components to support more complex use cases:
|
|
24
215
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
226
|
+
`AppFooter` - Added new component
|
|
227
|
+
|
|
228
|
+
<small>[#1623](https://github.com/hashicorp/design-system/pull/1623)</small>
|
|
34
229
|
|
|
35
|
-
|
|
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
|
-
|
|
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
|
-
|
|
246
|
+
<small>[#1678](https://github.com/hashicorp/design-system/pull/1678)</small>
|
|
42
247
|
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
258
|
+
`PowerSelect` - fix style overrides when the list is positioned above
|
|
51
259
|
|
|
52
|
-
|
|
260
|
+
<small>[#1655](https://github.com/hashicorp/design-system/pull/1655)</small>
|
|
53
261
|
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
292
|
+
`IconTile` - updated component to include `vault-secrets` product option
|
|
70
293
|
|
|
71
|
-
|
|
294
|
+
<small>[#1640](https://github.com/hashicorp/design-system/pull/1640)</small>
|
|
72
295
|
|
|
73
296
|
### Patch Changes
|
|
74
297
|
|
|
75
|
-
|
|
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
|
-
|
|
318
|
+
<small>[#1628](https://github.com/hashicorp/design-system/pull/1628)</small>
|
|
78
319
|
|
|
79
|
-
|
|
320
|
+
---
|
|
80
321
|
|
|
81
|
-
|
|
322
|
+
**🔄 Updated dependencies:**
|
|
82
323
|
|
|
83
|
-
-
|
|
84
|
-
|
|
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
|
-
|
|
331
|
+
`Hds::Text` - Added new `Text` component
|
|
92
332
|
|
|
93
|
-
|
|
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
|
-
|
|
343
|
+
`Form::Indicator` - Remove aria-hidden from the "optional" `<span>`
|
|
98
344
|
|
|
99
|
-
|
|
345
|
+
<small>[#1577](https://github.com/hashicorp/design-system/pull/1577) - Thanks [@DingoEatingFuzz](https://github.com/DingoEatingFuzz) for the contribution! 🙏</small>
|
|
100
346
|
|
|
101
|
-
|
|
347
|
+
---
|
|
102
348
|
|
|
103
|
-
-
|
|
104
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
393
|
+
`Hds::Tabs` - Fixed tabs and panels misbehaving on route change
|
|
117
394
|
|
|
118
|
-
|
|
395
|
+
<small>[#1571](https://github.com/hashicorp/design-system/pull/1571)</small>
|
|
119
396
|
|
|
120
|
-
|
|
397
|
+
---
|
|
121
398
|
|
|
122
|
-
|
|
399
|
+
<small>[#1568](https://github.com/hashicorp/design-system/pull/1568)</small>
|
|
123
400
|
|
|
124
|
-
|
|
401
|
+
`Copy::Button`, `Copy::Snippet` - Updated error icon
|
|
125
402
|
|
|
126
|
-
|
|
403
|
+
---
|
|
127
404
|
|
|
128
|
-
-
|
|
129
|
-
|
|
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
|
-
|
|
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
|
-
|
|
431
|
+
Adjusted closing brace on copywrite headers to avoid terminal noise
|
|
140
432
|
|
|
141
|
-
|
|
433
|
+
<small>[#1539](https://github.com/hashicorp/design-system/pull/1539)</small>
|
|
142
434
|
|
|
143
|
-
|
|
435
|
+
---
|
|
144
436
|
|
|
145
|
-
|
|
437
|
+
`Hds::Modal` - reduce test flakiness around closing Modal when using `@ember/test-helpers`
|
|
146
438
|
|
|
147
|
-
|
|
439
|
+
<small>[#1549](https://github.com/hashicorp/design-system/pull/1549) - Thanks [@fivetanley](https://github.com/fivetanley) for the contribution! 🙏</small>
|
|
148
440
|
|
|
149
|
-
|
|
150
|
-
|
|
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
|
|
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
|
@@ -14,17 +14,28 @@
|
|
|
14
14
|
@parentContainsInteractive={{this.containsInteractive}}
|
|
15
15
|
/>
|
|
16
16
|
|
|
17
|
-
<
|
|
18
|
-
|
|
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
|
-
</
|
|
25
|
+
</Hds::Text::Display>
|
|
22
26
|
</div>
|
|
23
27
|
</:toggle>
|
|
24
28
|
|
|
25
29
|
<:content>
|
|
26
|
-
<
|
|
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
|
-
</
|
|
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
|
-
<
|
|
9
|
+
<Hds::Text::Body class="hds-application-state__body-text" @tag="p" @size="300">
|
|
10
10
|
{{@text}}
|
|
11
|
-
</
|
|
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
|
-
<
|
|
11
|
+
<Hds::Text::Display class="hds-application-state__title" @tag="div" @size="400" @weight="semibold">
|
|
12
12
|
{{@title}}
|
|
13
|
-
</
|
|
13
|
+
</Hds::Text::Display>
|
|
14
14
|
{{#if @errorCode}}
|
|
15
|
-
<
|
|
15
|
+
<Hds::Text::Body class="hds-application-state__error-code" @tag="div" @size="100" @weight="medium">
|
|
16
16
|
Error
|
|
17
17
|
{{@errorCode}}
|
|
18
|
-
</
|
|
18
|
+
</Hds::Text::Body>
|
|
19
19
|
{{/if}}
|
|
20
20
|
</div>
|