File tree Expand file tree Collapse file tree 26 files changed +12
-600
lines changed
components/breadcrumb/partials/code
public/assets/illustrations/utilities
tests/acceptance/utilities Expand file tree Collapse file tree 26 files changed +12
-600
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @hashicorp/design-system-components " : major
3+ ---
4+
5+ Removed the deprecated ` MenuPrimitive ` component
Original file line number Diff line number Diff line change 305305 "./components/hds/layout/grid/item.js" : " ./dist/_app_/components/hds/layout/grid/item.js" ,
306306 "./components/hds/link/inline.js" : " ./dist/_app_/components/hds/link/inline.js" ,
307307 "./components/hds/link/standalone.js" : " ./dist/_app_/components/hds/link/standalone.js" ,
308- "./components/hds/menu-primitive.js" : " ./dist/_app_/components/hds/menu-primitive.js" ,
309308 "./components/hds/modal/body.js" : " ./dist/_app_/components/hds/modal/body.js" ,
310309 "./components/hds/modal/footer.js" : " ./dist/_app_/components/hds/modal/footer.js" ,
311310 "./components/hds/modal/header.js" : " ./dist/_app_/components/hds/modal/header.js" ,
Original file line number Diff line number Diff line change @@ -390,8 +390,5 @@ export { default as HdsDismissButton } from './components/hds/dismiss-button/ind
390390// Interactive
391391export { default as HdsInteractive } from './components/hds/interactive/index.ts' ;
392392
393- // MenuPrimitive
394- export { default as HdsMenuPrimitive } from './components/hds/menu-primitive/index.ts' ;
395-
396393// PopoverPrimitive
397394export { default as HdsPopoverPrimitive } from './components/hds/popover-primitive/index.ts' ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
1515} from './types.ts' ;
1616
1717import type { ComponentLike } from '@glint/template' ;
18- import type { MenuPrimitiveSignature } from '../menu -primitive' ;
18+ import type { HdsPopoverPrimitiveSignature } from '../popover -primitive/index.ts ' ;
1919import type { HdsDropdownFooterSignature } from './footer' ;
2020import type { HdsDropdownHeaderSignature } from './header' ;
2121import type { HdsDropdownListItemCheckboxSignature } from './list-item/checkbox' ;
@@ -39,15 +39,16 @@ export const POSITIONS: HdsDropdownPositions[] = Object.values(
3939) ;
4040
4141export interface HdsDropdownSignature {
42- Args : MenuPrimitiveSignature [ 'Args' ] & {
42+ Args : {
4343 height ?: string ;
4444 isInline ?: boolean ;
45- isOpen ?: boolean ;
45+ isOpen ?: HdsPopoverPrimitiveSignature [ 'Args' ] [ 'isOpen' ] ;
4646 listPosition ?: HdsDropdownPositions ;
4747 width ?: string ;
4848 enableCollisionDetection ?: HdsAnchoredPositionOptions [ 'enableCollisionDetection' ] ;
4949 preserveContentInDom ?: boolean ;
5050 matchToggleWidth ?: boolean ;
51+ onClose ?: HdsPopoverPrimitiveSignature [ 'Args' ] [ 'onClose' ] ;
5152 } ;
5253 Blocks : {
5354 default : [
@@ -69,7 +70,7 @@ export interface HdsDropdownSignature {
6970 } ,
7071 ] ;
7172 } ;
72- Element : MenuPrimitiveSignature [ 'Element' ] ;
73+ Element : HTMLDivElement ;
7374}
7475
7576export default class HdsDropdown extends Component < HdsDropdownSignature > {
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3939@use " ../components/icon-tile" ;
4040@use " ../components/layout" ; // multiple components
4141@use " ../components/link" ; // multiple components
42- @use " ../components/menu-primitive" ;
4342@use " ../components/modal" ;
4443@use " ../components/page-header" ;
4544@use " ../components/pagination" ;
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ $hds-dropdown-toggle-border-radius: $hds-button-border-radius;
207207
208208// LIST
209209// UL ELEMENT
210- // GOES INSIDE HDS::MenuPrimitive 's :content block
210+ // GOES INSIDE HDS::PopoverPrimitive 's popover element
211211
212212.hds-dropdown__content {
213213 position : relative ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -168,7 +168,6 @@ import type HdsLayoutGridComponent from './components/hds/layout/grid';
168168import type HdsLayoutGridItemComponent from './components/hds/layout/grid/item' ;
169169import type HdsLinkInlineComponent from './components/hds/link/inline' ;
170170import type HdsLinkStandaloneComponent from './components/hds/link/standalone' ;
171- import type HdsMenuPrimitiveComponent from './components/hds/menu-primitive' ;
172171import type HdsModalBodyComponent from './components/hds/modal/body' ;
173172import type HdsModalFooterComponent from './components/hds/modal/footer' ;
174173import type HdsModalHeaderComponent from './components/hds/modal/header' ;
@@ -806,10 +805,6 @@ export default interface HdsComponentsRegistry {
806805 'Hds::Link::Standalone' : typeof HdsLinkStandaloneComponent ;
807806 'hds/link/standalone' : typeof HdsLinkStandaloneComponent ;
808807
809- // MenuPrimitive
810- 'Hds::MenuPrimitive' : typeof HdsMenuPrimitiveComponent ;
811- 'hds/menu-primitive' : typeof HdsMenuPrimitiveComponent ;
812-
813808 // Modal
814809 'Hds::Modal' : typeof HdsModalComponent ;
815810 'hds/modal' : typeof HdsModalComponent ;
You can’t perform that action at this time.
0 commit comments