@hashicorp/design-system-components 2.11.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 2.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#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
8
+
9
+ `IconTile` - updated component to include `vault-secrets` product option
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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
14
+
15
+ - [#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.
16
+
17
+ - [#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`.
18
+
19
+ - [#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
20
+
21
+ - Updated dependencies [[`8001667d2`](https://github.com/hashicorp/design-system/commit/8001667d2b0b549b5c2743ebaa4b50b58344a87f)]:
22
+ - @hashicorp/design-system-tokens@1.8.0
23
+ - @hashicorp/ember-flight-icons@3.1.2
24
+
3
25
  ## 2.11.0
4
26
 
5
27
  ### Minor Changes
@@ -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
- {{yield}}
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
- <Hds::Form::Radio::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
- <label class="hds-dropdown-list-item__label hds-typography-body-200" for={{this.id}}>{{yield}}</label>
14
- {{#if @count}}
15
- <span class="hds-dropdown-list-item__count hds-typography-body-100 hds-font-weight-medium">{{@count}}</span>
16
- {{/if}}
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>
@@ -18,6 +18,7 @@ export const PRODUCTS = [
18
18
  'terraform',
19
19
  'vagrant',
20
20
  'vault',
21
+ 'vault-secrets',
21
22
  'waypoint',
22
23
  ];
23
24
  export const COLORS = ['neutral', ...PRODUCTS];
@@ -92,8 +92,6 @@ export default class HdsTextIndexComponent extends Component {
92
92
  get predefinedColor() {
93
93
  let { color } = this.args;
94
94
 
95
- console.log(color, AVAILABLE_COLORS.includes(color));
96
-
97
95
  if (AVAILABLE_COLORS.includes(color)) {
98
96
  return color;
99
97
  } else {
@@ -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: 8px;
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-medium);
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.11.0",
3
+ "version": "2.12.0",
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.7.0",
45
- "@hashicorp/ember-flight-icons": "^3.1.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",