Releases: hashicorp/design-system
@hashicorp/[email protected]
Major Changes
Upgraded Style Dictionary to version 5
- Updated format of the
srcJSON tokens files to use the community standard DTCG format - Updated the tokens pipeline scripts to use the new format
Note: this is only a breaking change for consumers who use the src files to generate their own design tokens. For consumers using the design tokens in their compiled format, directly or via the @hashicorp/design-system-components package, this change will have no impact at all.
@hashicorp/[email protected]
Minor Changes
PopoverPrimitive - Added support for dynamic swap/injection of the toggle element.
AdvancedTable - Added support for column reordering.
- Added
@hasReorderableColumnsargument. When set totrue, enables column reordering. - Added optional
@columnOrderargument for setting the initial order of columns by their keys. - Added optional
@onColumnReorderargument which accepts a callback function that is called when reordering is completed. - Added optional
@reorderedMessageTextwhich overrides the default message text that is rendered in the table caption when a column is reordered.
Patch Changes
Table - Update the model and returned B.data to use generic types, so the type of the data is retained.
KeyValueInputs - Update the data and returned R.rowData to use generic types, so the type of the data is retained.
#3150 - Thanks @aklkv for the contribution! 🙏
🔄 Updated dependencies:
- @hashicorp/[email protected]
@hashicorp/[email protected]
@hashicorp/[email protected]
Patch Changes
Stepper::Nav - Fixed bug with stacking context styles causing step content's z-index to not work as expected
🔄 Updated dependencies:
- @hashicorp/[email protected]
@hashicorp/[email protected]
@hashicorp/[email protected]
Minor Changes
CodeEditor - Added a cspNonce argument which passes a value of the same name to the hds-code-editor modifier. cspNonce is used to add a nonce value to the style tag
Time - removed deprecated @task decorator to avoid warnings
#3144 - Thanks @aklkv for the contribution! 🙏
Card - Updated all exported types to use template literals instead of enum values.
IconTile - Updated exported HdsIconTileColors type to use template literals instead of enum values.
AdvancedTable - Added features and fixed issues for column pinning including:
- Added support for pinning first column in context menu
- Translated template strings in context menu
- Fixed style for scroll indicator when first column is sticky and has a px width
AdvancedTable - Fixed bug with automatic column resizing and scroll-shadow placement.
AppHeader - return close callback to the :logo named block so the menu actions can be hidden programmatically when the component is in a mobile view.
Patch Changes
AdvancedTable - simplified AdvancedTable::Tr type signature so the @selectionKey argument is not incorrectly marked as required.
PopoverPrimitive - Updated the type of the hidePopover callback to allow an optional event to be passed.
RichTooltip - Updated the type of the close callback to allow an optional event to be passed.
Dropdown - Updated the type of the close callback to allow an optional event to be passed and to make it always returned.
AppHeader - Fixed classname so that non-active controls in the AppHeader will be styled as disabled when the AppSideNav is expanded and in overlay mode
Button - Removed CSS declaration for pseudo element in disabled state
Dropdown - Removed CSS declaration for pseudo element in disabled state
FileInput - Removed CSS declaration for pseudo element in disabled state that led to invalid CSS (ignored by browsers)
🔄 Updated dependencies:
- @hashicorp/[email protected]
@hashicorp/[email protected]
@hashicorp/[email protected]
Minor Changes
Added ember-intl as a dependency
- Added
hdsIntlservice for translations in HDS components with default fallback values - Added
hds-thelper which uses thehds-intlservice to provide translations in HSD templates
AdvancedTable - Translated template strings. Removed extraneous screen-reader-only text.
AppFooter - Translated template strings
AppSideNav - Translated template strings
ApplicationState - Translated template strings
CodeEditor - Translated template strings
DismissButton - Translated template strings
MaskedInput - Translated template strings
SuperSelect - Translated template strings
Pagination - Translated template strings
SideNav - Translated template strings
Table - Translated template strings
Time - Translated template strings
Reveal - Added support for the aria-describedby attribute on the toggle.
Patch Changes
AppHeader - Changed the default breakpoint from lg to md.
Stepper::List - Fixed type for status argument in List::Step to be HdsStepperStatuses instead of enum HdsStepperStatusesValues
AdvancedTable::Tr - Updated @isSelected argument type from false to boolean
Table::Tr - Updated @isSelected argument type from false to boolean
CodeEditor - Fixed the type of the CodeEditor signature to indicate that the [CE].Title and [CE].Description have bound arguments.
@hashicorp/[email protected]
Patch Changes
AdvancedTable - Removed ember-math-helpers dev dependency
Form::RadioCard - Fixed styling bug where hover styles were visible when disabled
Make @ember/string a peerDependency to allow consuming apps to choose to use 3.x or 4.x. This unblocks apps that need 4.x for vite compatibility, while retaining 3.x support as well for older apps.
#3028 - Thanks @RobbieTheWagner for the contribution! 🙏
Form::SuperSelect - fix type for the @resultCountMessage argument so it can accept a string or a function.
AppSideNav::List::Link - Applied transparent background to the element to avoid overlapping with previous item's focus ring
AdvancedTable - Make the @hasResizableColumns argument optional for the ThSort component.
PopoverPrimitive - Updated type of the anchoredPositionOptions object in the setUpPrimitivePopover modifier to include arrowSelector from the hds-anchored-position modifier.
AppSideNav::List::Link - Removed extra transparent border and background when rendered as a <button> element
SideNav::List::Link - Removed extra transparent border when rendered as a <button> element
Tag - Fixed a performance issue when many tags are present on a page caused by the ResizeObserver
Dependencies - Added tracked-built-ins
#3033 - Thanks @meirish for the contribution! 🙏
AppSideNav::Panel - Fixed issue causing the focus ring of the first and last items within the Panel to be cut off
AppHeader - return close callback to the :globalActions and :utilityActions named blocks so the menu actions can be hidden programmatically when the component is in a mobile view.
Layout::Flex - Fixed issue in which gap value was improperly inherited by nested Flex components, added "0" as a supported gap value.
Layout::Grid - Fixed issue in which gap & columnMinWidth values were improperly inherited by nested Grid components, added "0" as a supported gap value.