Releases: hashicorp/design-system
@hashicorp/[email protected]
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]
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)
@hashicorp/[email protected]
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
inForm::[MaskedInput|TextInput|Textarea]::Field
make sure the form control is updating the associated@value
on input (usually usingon "input" (fn this.updateValue)
function)
#1896 - Thanks @meirish for the contribution! 🙏
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 classeshds-table__th
+hds-table__th--sort
- Replaced class
hds-table__th-sort--text--[left|center|right]
withhds-table__th--align-[left|center|right]
- Renamed
onClick
callback toonClickSort
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]
withhds-table__th--align-[left|center|right]
Table::Td
:
- Replaced class
hds-table__td--text-[left|center|right]
withhds-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
toAlert::LinkStandalone
ApplicationState::Footer::Link::Standalone
toApplicationState::Footer::LinkStandalone
Form::Checkbox::Group::Checkbox::Field
toCheckbox::Group::CheckboxField
Form::Radio::Group::Radio::Field
toForm::Radio::Group::RadioField
Form::Toggle::Group::Toggle::Field
toForm::Toggle::Group::ToggleField
Toast::Link::Standalone
toToast::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]
- @hashicorp/[email protected]
@hashicorp/[email protected]
@hashicorp/[email protected]
Major Changes
vagrant
, vault-radar
, and vault-secrets
icons have been updated. Also added boxed versions of all product logos.
@hashicorp/[email protected]
Minor Changes
Since this is an update brand colors and product icons, we consider this a minor
version release
Improved resilience of SVG sprite loading script
🔄 Updated dependencies:
- @hashicorp/[email protected]
@hashicorp/[email protected]
@hashicorp/[email protected]
Minor Changes
Since this is an update brand colors and product icons, we consider this a minor
version release
🔄 Updated dependencies:
- @hashicorp/[email protected]
- @hashicorp/[email protected]
@hashicorp/[email protected]
@hashicorp/[email protected]
Patch Changes
remove unused contextRootURL
function
🔄 Updated dependencies:
- @hashicorp/[email protected]