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 305
305
"./components/hds/layout/grid/item.js" : " ./dist/_app_/components/hds/layout/grid/item.js" ,
306
306
"./components/hds/link/inline.js" : " ./dist/_app_/components/hds/link/inline.js" ,
307
307
"./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" ,
309
308
"./components/hds/modal/body.js" : " ./dist/_app_/components/hds/modal/body.js" ,
310
309
"./components/hds/modal/footer.js" : " ./dist/_app_/components/hds/modal/footer.js" ,
311
310
"./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
390
390
// Interactive
391
391
export { default as HdsInteractive } from './components/hds/interactive/index.ts' ;
392
392
393
- // MenuPrimitive
394
- export { default as HdsMenuPrimitive } from './components/hds/menu-primitive/index.ts' ;
395
-
396
393
// PopoverPrimitive
397
394
export { 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 {
15
15
} from './types.ts' ;
16
16
17
17
import type { ComponentLike } from '@glint/template' ;
18
- import type { MenuPrimitiveSignature } from '../menu -primitive' ;
18
+ import type { HdsPopoverPrimitiveSignature } from '../popover -primitive/index.ts ' ;
19
19
import type { HdsDropdownFooterSignature } from './footer' ;
20
20
import type { HdsDropdownHeaderSignature } from './header' ;
21
21
import type { HdsDropdownListItemCheckboxSignature } from './list-item/checkbox' ;
@@ -39,15 +39,16 @@ export const POSITIONS: HdsDropdownPositions[] = Object.values(
39
39
) ;
40
40
41
41
export interface HdsDropdownSignature {
42
- Args : MenuPrimitiveSignature [ 'Args' ] & {
42
+ Args : {
43
43
height ?: string ;
44
44
isInline ?: boolean ;
45
- isOpen ?: boolean ;
45
+ isOpen ?: HdsPopoverPrimitiveSignature [ 'Args' ] [ 'isOpen' ] ;
46
46
listPosition ?: HdsDropdownPositions ;
47
47
width ?: string ;
48
48
enableCollisionDetection ?: HdsAnchoredPositionOptions [ 'enableCollisionDetection' ] ;
49
49
preserveContentInDom ?: boolean ;
50
50
matchToggleWidth ?: boolean ;
51
+ onClose ?: HdsPopoverPrimitiveSignature [ 'Args' ] [ 'onClose' ] ;
51
52
} ;
52
53
Blocks : {
53
54
default : [
@@ -69,7 +70,7 @@ export interface HdsDropdownSignature {
69
70
} ,
70
71
] ;
71
72
} ;
72
- Element : MenuPrimitiveSignature [ 'Element' ] ;
73
+ Element : HTMLDivElement ;
73
74
}
74
75
75
76
export 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 39
39
@use " ../components/icon-tile" ;
40
40
@use " ../components/layout" ; // multiple components
41
41
@use " ../components/link" ; // multiple components
42
- @use " ../components/menu-primitive" ;
43
42
@use " ../components/modal" ;
44
43
@use " ../components/page-header" ;
45
44
@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;
207
207
208
208
// LIST
209
209
// UL ELEMENT
210
- // GOES INSIDE HDS::MenuPrimitive 's :content block
210
+ // GOES INSIDE HDS::PopoverPrimitive 's popover element
211
211
212
212
.hds-dropdown__content {
213
213
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';
168
168
import type HdsLayoutGridItemComponent from './components/hds/layout/grid/item' ;
169
169
import type HdsLinkInlineComponent from './components/hds/link/inline' ;
170
170
import type HdsLinkStandaloneComponent from './components/hds/link/standalone' ;
171
- import type HdsMenuPrimitiveComponent from './components/hds/menu-primitive' ;
172
171
import type HdsModalBodyComponent from './components/hds/modal/body' ;
173
172
import type HdsModalFooterComponent from './components/hds/modal/footer' ;
174
173
import type HdsModalHeaderComponent from './components/hds/modal/header' ;
@@ -806,10 +805,6 @@ export default interface HdsComponentsRegistry {
806
805
'Hds::Link::Standalone' : typeof HdsLinkStandaloneComponent ;
807
806
'hds/link/standalone' : typeof HdsLinkStandaloneComponent ;
808
807
809
- // MenuPrimitive
810
- 'Hds::MenuPrimitive' : typeof HdsMenuPrimitiveComponent ;
811
- 'hds/menu-primitive' : typeof HdsMenuPrimitiveComponent ;
812
-
813
808
// Modal
814
809
'Hds::Modal' : typeof HdsModalComponent ;
815
810
'hds/modal' : typeof HdsModalComponent ;
You can’t perform that action at this time.
0 commit comments