Hashicorp Design System Versions Save

Helios Design System

@hashicorp/[email protected]

1 month ago

Minor Changes

Link::Inline - Converted component to TypeScript

Card - Converted component to TypeScript

Link::Standalone - Converted component to TypeScript

Text - Converted component to TypeScript

Alert - Converted component to TypeScript

Patch Changes

Modal, Flyout - Fixed flaky tests by running @ember/test-waiters in all environments

@hashicorp/[email protected]

1 month ago

This version is a re-release of @hashicorp/[email protected] containing the missing pre-compiled CSS

@hashicorp/[email protected]

1 month ago

[!CAUTION] This version is missing the pre-compiled CSS

You can still use this version if you import styles as Sass and don't require design-system-components.css

Patch Changes

Flyout - Fixed issue with Sass operators failing in old versions of Sass

@hashicorp/[email protected]

1 month ago

Minor Changes

Added new pipeline to Style Dictionary for cloud-email - email/sass-variables to be used in email templating

@hashicorp/[email protected]

1 month ago

Minor Changes

Reorganized the icons within the "Core" icon set into 16 more descriptive categories.

Patch Changes

Added "category" to the icons' metadata in the catalog.json file.

@hashicorp/[email protected]

1 month ago

Patch Changes

🔄 Updated dependencies:

@hashicorp/[email protected]

1 month ago

Minor Changes

DismissButton - Converted component to TypeScript

Added image error handling to Dropdown::Toggle::Icon

Patch Changes

Enable glint

Upgraded ember-truth-helpers from 3.1.1 to 4.0.3

Added missing aria-label support to copy-snippet component.

Removed dialog-polyfill dependency

🔄 Updated dependencies:

@hashicorp/[email protected]

2 months ago

Major Changes

Converted Ember packages to v2 addon format.

To migrate update Sass configuration in ember-cli-build.js to include the paths for ember-flight-icons and design-system-components:

sassOptions: {
  precision: 4,
  includePaths: [
    './node_modules/@hashicorp/design-system-tokens/dist/products/css',
    './node_modules/@hashicorp/ember-flight-icons/dist/styles',
    './node_modules/@hashicorp/design-system-components/dist/styles',
  ],
},

Alternatively, you can import the CSS by adding this configuration in ember-cli-build.js.

app.import(
  "node_modules/@hashicorp/design-system-components/dist/styles/@hashicorp/design-system-components.css"
);

@hashicorp/[email protected]

2 months ago

Major Changes

Converted Ember packages to v2 addon format.

To migrate, update Sass configuration in ember-cli-build.js to include the paths for ember-flight-icons and design-system-components:

sassOptions: {
  precision: 4,
  includePaths: [
    './node_modules/@hashicorp/design-system-tokens/dist/products/css',
    './node_modules/@hashicorp/ember-flight-icons/dist/styles',
    './node_modules/@hashicorp/design-system-components/dist/styles',
  ],
},

Alternatively, you can import the CSS by adding this configuration in ember-cli-build.js.

app.import(
  "node_modules/@hashicorp/design-system-components/dist/styles/@hashicorp/design-system-components.css"
);

Form::CharacterCount - refactored the component, removing onInsert callback and adding @value argument

To migrate:

  • for standalone Form::CharacterCount instances, you must pass in a @value argument representing the value of the referenced input
  • when used as a contextual component F.CharacterCount in Form::[MaskedInput|TextInput|Textarea]::Field make sure the form control is updating the associated @value on input (usually using on "input" (fn this.updateValue) function)

Table - Multiple updates to the main component and its subcomponents:

  • Updated table headers to support tooltips
  • Updated visual treatment and location of the "sort" button in the table headers
  • Refactored CSS code to simplify usage of hds-table-related class names

Table::ThSort:

  • Added support for tooltip via the @tooltip argument
  • Updated visual treatment and location of the "sort" button
  • Updated DOM structure of the <th> content
  • Remove class hds-table__th-sort--button-content
  • Replaced class hds-table__th-sort with classes hds-table__th + hds-table__th--sort
  • Replaced class hds-table__th-sort--text--[left|center|right] with hds-table__th--align-[left|center|right]
  • Renamed onClick callback to onClickSort

Table::Th:

  • Added support for tooltip via the @tooltip argument
  • Updated DOM structure of the <th> content
  • Replaced class hds-table__th--text-[left|center|right] with hds-table__th--align-[left|center|right]

Table::Td:

  • Replaced class hds-table__td--text-[left|center|right] with hds-table__td--align-[left|center|right]

To migrate run the codemod v4/table (see readme file)

Pagination - Removed handling of query parameters from onPageSizeChange function for Pagination::Numbered

Unfortunately, it's not possible to cover this breaking change with a codemod. Consumers should review their usage of the onPageSizeChange callback and, if necessary, implement the persistence of the "page number" and "page size" values via query parameters themselves.

Renamed namespaced contextual components as follows:

  • Alert::Link::Standalone to Alert::LinkStandalone
  • ApplicationState::Footer::Link::Standalone to ApplicationState::Footer::LinkStandalone
  • Form::Checkbox::Group::Checkbox::Field to Checkbox::Group::CheckboxField
  • Form::Radio::Group::Radio::Field to Form::Radio::Group::RadioField
  • Form::Toggle::Group::Toggle::Field to Form::Toggle::Group::ToggleField
  • Toast::Link::Standalone to Toast::LinkStandalone

Minor Changes

Table - Added multi-select functionality

Tabs - Added @size argument with new "large" size variant

Patch Changes

Dropdown - Fixed dropdown list missing an accessible name when Checkmark items were passed in

Flyout - Reduced gap between Flyout and edge of screen from 40px to half of the minimized SideNav width in medium view

Removed ember-deep-tracked dependency that was not used

SideNav - Fixed issue with navigation elements remaining interactive when minimized

🔄 Updated dependencies:

@hashicorp/[email protected]

2 months ago

Major Changes

New tokens added for large and medium size Tab variants. The "medium" tokens replace the former equivalent tokens which were not differentiated by size.

  • --token-tabs-tab-height-medium (Replaces --token-tabs-tab-height)
  • --token-tabs-tab-height-large (New)
  • --token-tabs-tab-padding-horizontal-medium (Replaces --token-tabs-tab-padding-horizontal)
  • --token-tabs-tab-padding-horizontal-large (New)