@hashicorp/design-system-components 2.11.0 → 2.12.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.
- package/CHANGELOG.md +30 -0
- package/addon/components/hds/dropdown/index.hbs +1 -1
- package/addon/components/hds/dropdown/list-item/checkbox.hbs +11 -10
- package/addon/components/hds/dropdown/list-item/radio.hbs +13 -10
- package/addon/components/hds/icon-tile/index.js +1 -0
- package/addon/components/hds/pagination/compact/index.js +2 -2
- package/addon/components/hds/pagination/numbered/index.js +2 -2
- package/addon/components/hds/text/index.js +0 -2
- package/app/styles/components/dropdown.scss +6 -3
- package/app/styles/components/icon-tile.scss +1 -1
- package/app/styles/components/link/standalone.scss +1 -1
- package/app/styles/components/stepper/step-indicator.scss +0 -7
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @hashicorp/design-system-components
|
|
2
2
|
|
|
3
|
+
## 2.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
- [#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.
|
|
10
|
+
|
|
11
|
+
## 2.12.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#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
|
|
16
|
+
|
|
17
|
+
`IconTile` - updated component to include `vault-secrets` product option
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#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
|
|
22
|
+
|
|
23
|
+
- [#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.
|
|
24
|
+
|
|
25
|
+
- [#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`.
|
|
26
|
+
|
|
27
|
+
- [#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
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [[`8001667d2`](https://github.com/hashicorp/design-system/commit/8001667d2b0b549b5c2743ebaa4b50b58344a87f)]:
|
|
30
|
+
- @hashicorp/design-system-tokens@1.8.0
|
|
31
|
+
- @hashicorp/ember-flight-icons@3.1.2
|
|
32
|
+
|
|
3
33
|
## 2.11.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}}
|
|
13
13
|
</:toggle>
|
|
14
14
|
<:content as |c|>
|
|
15
|
-
<div class={{this.classNamesContent}} {{style width=@width height=@height}}>
|
|
15
|
+
<div class={{this.classNamesContent}} {{style width=@width max-height=@height}}>
|
|
16
16
|
{{yield (hash Header=(component "hds/dropdown/header"))}}
|
|
17
17
|
<ul class="hds-dropdown__list" {{did-insert this.didInsertList}}>
|
|
18
18
|
{{yield
|
|
@@ -4,16 +4,17 @@
|
|
|
4
4
|
}}
|
|
5
5
|
|
|
6
6
|
<li class="hds-dropdown-list-item hds-dropdown-list-item--variant-checkbox">
|
|
7
|
-
<Hds::Form::Checkbox::Base class="hds-dropdown-list-item__control" id={{this.id}} @value={{@value}} ...attributes />
|
|
8
|
-
{{#if @icon}}
|
|
9
|
-
<div class="hds-dropdown-list-item__icon">
|
|
10
|
-
<FlightIcon @name={{@icon}} @isInlineBlock={{false}} />
|
|
11
|
-
</div>
|
|
12
|
-
{{/if}}
|
|
13
7
|
<label class="hds-dropdown-list-item__label hds-typography-body-200" for={{this.id}}>
|
|
14
|
-
{{
|
|
8
|
+
<Hds::Form::Checkbox::Base class="hds-dropdown-list-item__control" id={{this.id}} @value={{@value}} ...attributes />
|
|
9
|
+
{{#if @icon}}
|
|
10
|
+
<span class="hds-dropdown-list-item__icon">
|
|
11
|
+
<FlightIcon @name={{@icon}} @isInlineBlock={{false}} />
|
|
12
|
+
</span>
|
|
13
|
+
{{/if}}
|
|
14
|
+
<span class="hds-dropdown-list-item__text-content">{{yield}}</span>
|
|
15
|
+
|
|
16
|
+
{{#if @count}}
|
|
17
|
+
<span class="hds-dropdown-list-item__count hds-typography-body-100 hds-font-weight-medium">{{@count}}</span>
|
|
18
|
+
{{/if}}
|
|
15
19
|
</label>
|
|
16
|
-
{{#if @count}}
|
|
17
|
-
<span class="hds-dropdown-list-item__count hds-typography-body-100 hds-font-weight-medium">{{@count}}</span>
|
|
18
|
-
{{/if}}
|
|
19
20
|
</li>
|
|
@@ -4,14 +4,17 @@
|
|
|
4
4
|
}}
|
|
5
5
|
|
|
6
6
|
<li class="hds-dropdown-list-item hds-dropdown-list-item--variant-radio">
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
<label class="hds-dropdown-list-item__label hds-typography-body-200" for={{this.id}}>
|
|
8
|
+
<Hds::Form::Radio::Base class="hds-dropdown-list-item__control" id={{this.id}} @value={{@value}} ...attributes />
|
|
9
|
+
{{#if @icon}}
|
|
10
|
+
<div class="hds-dropdown-list-item__icon">
|
|
11
|
+
<FlightIcon @name={{@icon}} @isInlineBlock={{false}} />
|
|
12
|
+
</div>
|
|
13
|
+
{{/if}}
|
|
14
|
+
<span class="hds-dropdown-list-item__text-content">{{yield}}</span>
|
|
15
|
+
|
|
16
|
+
{{#if @count}}
|
|
17
|
+
<span class="hds-dropdown-list-item__count hds-typography-body-100 hds-font-weight-medium">{{@count}}</span>
|
|
18
|
+
{{/if}}
|
|
19
|
+
</label>
|
|
17
20
|
</li>
|
|
@@ -50,10 +50,10 @@ export default class HdsPaginationCompactIndexComponent extends Component {
|
|
|
50
50
|
/**
|
|
51
51
|
* @param ariaLabel
|
|
52
52
|
* @type {string}
|
|
53
|
-
* @default 'Pagination
|
|
53
|
+
* @default 'Pagination'
|
|
54
54
|
*/
|
|
55
55
|
get ariaLabel() {
|
|
56
|
-
return this.args.ariaLabel ?? 'Pagination
|
|
56
|
+
return this.args.ariaLabel ?? 'Pagination';
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
get routeQueryParams() {
|
|
@@ -130,10 +130,10 @@ export default class HdsPaginationNumberedIndexComponent extends Component {
|
|
|
130
130
|
/**
|
|
131
131
|
* @param ariaLabel
|
|
132
132
|
* @type {string}
|
|
133
|
-
* @default 'Pagination
|
|
133
|
+
* @default 'Pagination'
|
|
134
134
|
*/
|
|
135
135
|
get ariaLabel() {
|
|
136
|
-
return this.args.ariaLabel ?? 'Pagination
|
|
136
|
+
return this.args.ariaLabel ?? 'Pagination';
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
// This very specific `get/set` pattern is used to handle the two different use cases of the component
|
|
@@ -530,15 +530,17 @@ $hds-dropdown-toggle-border-radius: $hds-button-border-radius;
|
|
|
530
530
|
margin-top: 2px;
|
|
531
531
|
margin-right: 8px;
|
|
532
532
|
|
|
533
|
-
&[disabled] ~ .hds-dropdown-list-item__label,
|
|
534
533
|
&[disabled] ~ .hds-dropdown-list-item__icon,
|
|
535
|
-
&[disabled] ~ .hds-dropdown-list-item__count
|
|
534
|
+
&[disabled] ~ .hds-dropdown-list-item__count,
|
|
535
|
+
&[disabled] ~ .hds-dropdown-list-item__text-content {
|
|
536
536
|
color: var(--token-color-foreground-disabled);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
.hds-dropdown-list-item__label {
|
|
541
|
+
display: flex;
|
|
541
542
|
flex-grow: 1;
|
|
543
|
+
align-items: flex-start;
|
|
542
544
|
color: var(--token-color-foreground-primary);
|
|
543
545
|
}
|
|
544
546
|
|
|
@@ -551,7 +553,8 @@ $hds-dropdown-toggle-border-radius: $hds-button-border-radius;
|
|
|
551
553
|
|
|
552
554
|
// COUNT
|
|
553
555
|
.hds-dropdown-list-item__count {
|
|
554
|
-
margin-left:
|
|
556
|
+
margin-left: auto;
|
|
557
|
+
padding-left: 8px;
|
|
555
558
|
color: var(--token-color-foreground-faint);
|
|
556
559
|
line-height: 20px; // replicating the resulted height of the list item
|
|
557
560
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
$hds-icon-tile-sizes: ( "small", "medium", "large" );
|
|
11
11
|
$hds-icon-tile-types: ( "object","resource","logo" );
|
|
12
|
-
$hds-icon-tile-colors-products: ( "boundary", "consul", "hcp", "nomad", "packer", "terraform", "vagrant", "vault", "waypoint" );
|
|
12
|
+
$hds-icon-tile-colors-products: ( "boundary", "consul", "hcp", "nomad", "packer", "terraform", "vagrant", "vault", "vault-secrets", "waypoint" );
|
|
13
13
|
$hds-icon-tile-border-width: 1px;
|
|
14
14
|
$hds-icon-tile-box-shadow: 0 1px 1px rgba(#656a76, 0.05);
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ $hds-link-standalone-border-width: 1px;
|
|
|
21
21
|
align-items: center;
|
|
22
22
|
justify-content: center;
|
|
23
23
|
width: fit-content;
|
|
24
|
-
font-weight: var(--token-typography-font-weight-
|
|
24
|
+
font-weight: var(--token-typography-font-weight-regular);
|
|
25
25
|
font-family: var(--token-typography-font-stack-text);
|
|
26
26
|
background-color: transparent; // needs to exist for a11y
|
|
27
27
|
border: $hds-link-standalone-border-width solid transparent; // needs to exist AND be transparent for a11y
|
|
@@ -21,11 +21,6 @@ $hds-stepper-indicator-step-size: 24px;
|
|
|
21
21
|
width: 100%;
|
|
22
22
|
height: 100%;
|
|
23
23
|
filter: drop-shadow(0 1px 1px rgba(101, 106, 118, 5%));
|
|
24
|
-
|
|
25
|
-
path {
|
|
26
|
-
fill: --status-fill-color;
|
|
27
|
-
stroke: --status-stroke-color;
|
|
28
|
-
}
|
|
29
24
|
}
|
|
30
25
|
|
|
31
26
|
.hds-stepper-indicator-step__status {
|
|
@@ -42,13 +37,11 @@ $hds-stepper-indicator-step-size: 24px;
|
|
|
42
37
|
.hds-stepper-indicator-step__icon {
|
|
43
38
|
width: 12px;
|
|
44
39
|
height: 12px;
|
|
45
|
-
color: --status-text-color;
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
.hds-stepper-indicator-step__text {
|
|
49
43
|
width: 20px;
|
|
50
44
|
overflow: hidden;
|
|
51
|
-
color: --status-text-color;
|
|
52
45
|
font-weight: var(--token-typography-font-weight-medium);
|
|
53
46
|
font-size: 0.8125rem;
|
|
54
47
|
font-family: var(--token-typography-font-stack-text);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashicorp/design-system-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"description": "Helios Design System Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hashicorp",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@ember/render-modifiers": "^2.0.5",
|
|
43
43
|
"@ember/test-waiters": "^3.0.2",
|
|
44
|
-
"@hashicorp/design-system-tokens": "^1.
|
|
45
|
-
"@hashicorp/ember-flight-icons": "^3.1.
|
|
44
|
+
"@hashicorp/design-system-tokens": "^1.8.0",
|
|
45
|
+
"@hashicorp/ember-flight-icons": "^3.1.2",
|
|
46
46
|
"dialog-polyfill": "^0.5.6",
|
|
47
47
|
"ember-a11y-refocus": "^3.0.2",
|
|
48
48
|
"ember-auto-import": "^2.6.3",
|