@hashicorp/design-system-components 1.0.3 → 1.0.4

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,14 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 1.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#534](https://github.com/hashicorp/design-system/pull/534) [`65cde6ad`](https://github.com/hashicorp/design-system/commit/65cde6ad63c370fd9f0f6984cb7e974e4d3a9030) Thanks [@alex-ju](https://github.com/alex-ju)! - Fix label indicator for assistive technologies
8
+
9
+ - Updated dependencies []:
10
+ - @hashicorp/ember-flight-icons@2.0.12
11
+
3
12
  ## 1.0.3
4
13
 
5
14
  ### Patch Changes
@@ -0,0 +1,7 @@
1
+ <div class="hds-avatar" ...attributes aria-hidden="true">
2
+ {{#if @src}}
3
+ <img src={{@src}} alt="" role="none" />
4
+ {{else}}
5
+ <FlightIcon @name="user-circle" @size="24" />
6
+ {{/if}}
7
+ </div>
@@ -0,0 +1,3 @@
1
+ <div class="hds-empty-state__body" ...attributes>
2
+ {{yield}}
3
+ </div>
@@ -0,0 +1,3 @@
1
+ <div class="hds-empty-state__footer" ...attributes>
2
+ {{yield}}
3
+ </div>
@@ -0,0 +1,3 @@
1
+ <div class="hds-empty-state__header" ...attributes>
2
+ {{yield}}
3
+ </div>
@@ -0,0 +1,9 @@
1
+ <div class="hds-empty-state" ...attributes>
2
+ {{yield
3
+ (hash
4
+ Header=(component "hds/empty-state/header")
5
+ Body=(component "hds/empty-state/body")
6
+ Footer=(component "hds/empty-state/footer")
7
+ )
8
+ }}
9
+ </div>
@@ -1,4 +1,4 @@
1
1
  <label class={{this.classNames}} for={{@controlId}} ...attributes>
2
- {{yield}}
2
+ {{yield}}{{#if (or @isRequired @isOptional)}}&nbsp;{{/if}}
3
3
  <Hds::Form::Indicator @isRequired={{@isRequired}} @isOptional={{@isOptional}} />
4
4
  </label>
@@ -0,0 +1 @@
1
+ export { default } from '@hashicorp/design-system-components/components/hds/avatar/index';
@@ -0,0 +1 @@
1
+ export { default } from '@hashicorp/design-system-components/components/hds/empty-state/body';
@@ -0,0 +1 @@
1
+ export { default } from '@hashicorp/design-system-components/components/hds/empty-state/footer';
@@ -0,0 +1 @@
1
+ export { default } from '@hashicorp/design-system-components/components/hds/empty-state/header';
@@ -0,0 +1 @@
1
+ export { default } from '@hashicorp/design-system-components/components/hds/empty-state/index';
@@ -8,6 +8,7 @@
8
8
  // Notice: this list can be automatically edited by the Ember blueprint, please don't remove the start/end comments
9
9
  // START COMPONENTS CSS FILES IMPORTS
10
10
  @use "../components/alert";
11
+ @use "../components/avatar";
11
12
  @use "../components/badge";
12
13
  @use "../components/badge-count";
13
14
  @use "../components/breadcrumb";
@@ -16,6 +17,7 @@
16
17
  @use "../components/card";
17
18
  @use "../components/disclosure";
18
19
  @use "../components/dropdown";
20
+ @use "../components/empty-state";
19
21
  @use "../components/form"; // multiple components
20
22
  @use "../components/icon-tile";
21
23
  @use "../components/link/inline";
@@ -0,0 +1,24 @@
1
+ //
2
+ // AVATAR
3
+ //
4
+ // properties within each class are sorted alphabetically
5
+ //
6
+
7
+ .hds-avatar {
8
+ align-items: center;
9
+ box-sizing: border-box;
10
+ display: inline-flex;
11
+ height: 32px;
12
+ justify-content: center;
13
+ width: 32px;
14
+
15
+ img {
16
+ border-radius: 2px;
17
+ height: inherit;
18
+ width: inherit;
19
+ }
20
+
21
+ svg {
22
+ display: inline-block;
23
+ }
24
+ }
@@ -0,0 +1,25 @@
1
+ .hds-empty-state {
2
+ color: var(--token-color-foreground-faint);
3
+ display: block;
4
+ margin: 0 auto;
5
+ max-width: 40ch;
6
+ padding: 0;
7
+
8
+ > * {
9
+ margin: 0;
10
+ padding: 0;
11
+ }
12
+ }
13
+ .hds-empty-state__body {
14
+ font-size: 1rem;
15
+ font-weight: 400;
16
+ line-height: 1.5;
17
+ + * {
18
+ margin-block-start: 1rem;
19
+ }
20
+ }
21
+ .hds-empty-state__header {
22
+ font-size: 1.25rem;
23
+ font-weight: 700;
24
+ line-height: 1.2;
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashicorp/design-system-components",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "HashiCorp Design System Components",
5
5
  "keywords": [
6
6
  "hashicorp",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@hashicorp/design-system-tokens": "^1.0.0",
38
- "@hashicorp/ember-flight-icons": "^2.0.11",
38
+ "@hashicorp/ember-flight-icons": "^2.0.12",
39
39
  "ember-auto-import": "^2.4.1",
40
40
  "ember-cli-babel": "^7.26.11",
41
41
  "ember-cli-htmlbars": "^6.0.1",
@@ -50,7 +50,7 @@
50
50
  "@embroider/test-setup": "^1.5.0",
51
51
  "@glimmer/component": "^1.0.4",
52
52
  "@glimmer/tracking": "^1.0.4",
53
- "@percy/cli": "^1.9.0",
53
+ "@percy/cli": "^1.10.0",
54
54
  "@percy/ember": "^3.0.1",
55
55
  "babel-eslint": "^10.1.0",
56
56
  "broccoli-asset-rev": "^3.0.0",