@momentum-design/components 0.127.8 → 0.127.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,9 @@ export { default as Accordion } from './accordion';
2
2
  export { default as AccordionButton } from './accordionbutton';
3
3
  export { default as AccordionGroup } from './accordiongroup';
4
4
  export { default as AlertChip } from './alertchip';
5
+ export { default as Animation } from './animation';
5
6
  export { default as AnnouncementDialog } from './announcementdialog';
6
7
  export { default as Appheader } from './appheader';
7
- export { default as Animation } from './animation';
8
8
  export { default as Avatar } from './avatar';
9
9
  export { default as AvatarButton } from './avatarbutton';
10
10
  export { default as Badge } from './badge';
@@ -15,8 +15,8 @@ export { default as Button } from './button';
15
15
  export { default as ButtonGroup } from './buttongroup';
16
16
  export { default as ButtonLink } from './buttonlink';
17
17
  export { default as Buttonsimple } from './buttonsimple';
18
- export { default as CardButton } from './cardbutton';
19
18
  export { default as Card } from './card';
19
+ export { default as CardButton } from './cardbutton';
20
20
  export { default as CardCheckbox } from './cardcheckbox';
21
21
  export { default as CardRadio } from './cardradio';
22
22
  export { default as Checkbox } from './checkbox';
@@ -2,9 +2,9 @@ export { default as Accordion } from './accordion';
2
2
  export { default as AccordionButton } from './accordionbutton';
3
3
  export { default as AccordionGroup } from './accordiongroup';
4
4
  export { default as AlertChip } from './alertchip';
5
+ export { default as Animation } from './animation';
5
6
  export { default as AnnouncementDialog } from './announcementdialog';
6
7
  export { default as Appheader } from './appheader';
7
- export { default as Animation } from './animation';
8
8
  export { default as Avatar } from './avatar';
9
9
  export { default as AvatarButton } from './avatarbutton';
10
10
  export { default as Badge } from './badge';
@@ -15,8 +15,8 @@ export { default as Button } from './button';
15
15
  export { default as ButtonGroup } from './buttongroup';
16
16
  export { default as ButtonLink } from './buttonlink';
17
17
  export { default as Buttonsimple } from './buttonsimple';
18
- export { default as CardButton } from './cardbutton';
19
18
  export { default as Card } from './card';
19
+ export { default as CardButton } from './cardbutton';
20
20
  export { default as CardCheckbox } from './cardcheckbox';
21
21
  export { default as CardRadio } from './cardradio';
22
22
  export { default as Checkbox } from './checkbox';
@@ -2,7 +2,7 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/popover';
3
3
  import type { Events } from '../../components/popover/popover.types';
4
4
  /**
5
- * Popover is genric overlay which can be trigered by any actinable element.
5
+ * Popover is generic overlay which can be triggered by any actionable element.
6
6
  *
7
7
  * It can be used for tooltips, dropdowns, menus or any showing any other contextual content.
8
8
  *
@@ -18,7 +18,7 @@ import type { Events } from '../../components/popover/popover.types';
18
18
  * aria-expanded and aria-haspopup attributes on the trigger.
19
19
  *
20
20
  * To prevent unexpected attribute changes on the trigger `disable-aria-expanded` attribute must be set on all linked
21
- * Popoers except one.
21
+ * Popovers except one.
22
22
  *
23
23
  * ### React Popover with append-to attribute
24
24
  *
@@ -3,7 +3,7 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/popover';
4
4
  import { TAG_NAME } from '../../components/popover/popover.constants';
5
5
  /**
6
- * Popover is genric overlay which can be trigered by any actinable element.
6
+ * Popover is generic overlay which can be triggered by any actionable element.
7
7
  *
8
8
  * It can be used for tooltips, dropdowns, menus or any showing any other contextual content.
9
9
  *
@@ -19,7 +19,7 @@ import { TAG_NAME } from '../../components/popover/popover.constants';
19
19
  * aria-expanded and aria-haspopup attributes on the trigger.
20
20
  *
21
21
  * To prevent unexpected attribute changes on the trigger `disable-aria-expanded` attribute must be set on all linked
22
- * Popoers except one.
22
+ * Popovers except one.
23
23
  *
24
24
  * ### React Popover with append-to attribute
25
25
  *
@@ -30,7 +30,7 @@ export const BackdropMixin = (superClass) => {
30
30
  width: 100%;
31
31
  height: 100%;
32
32
  background: ${this.isBackdropInvisible ? `transparent` : `var(--mds-color-theme-common-overlays-secondary-normal)`};
33
- z-index: ${this.zIndex - 1};
33
+ z-index: ${this.zIndex - 2};
34
34
  }
35
35
  `;
36
36
  backdrop.appendChild(styleElement);
@@ -69,7 +69,7 @@ export const BackdropMixin = (superClass) => {
69
69
  position: element.style.position,
70
70
  };
71
71
  // Set the z-index and position to ensure the element is above the backdrop
72
- element.style.zIndex = `${this.zIndex}`;
72
+ element.style.zIndex = `${this.zIndex - 1}`;
73
73
  // Only set the position to relative if it is not already set to fixed or absolute
74
74
  if (!['fixed', 'absolute'].includes(window.getComputedStyle(element).position)) {
75
75
  element.style.position = 'relative';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@momentum-design/components",
3
3
  "packageManager": "yarn@3.2.4",
4
- "version": "0.127.8",
4
+ "version": "0.127.10",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"