@momentum-design/components 0.104.1 → 0.104.2

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.
Files changed (93) hide show
  1. package/dist/browser/index.js.map +2 -2
  2. package/dist/components/accordionbutton/accordionbutton.types.d.ts +5 -2
  3. package/dist/components/animation/animation.types.d.ts +11 -3
  4. package/dist/components/brandvisual/brandvisual.types.d.ts +8 -2
  5. package/dist/components/buttonlink/buttonlink.types.d.ts +6 -4
  6. package/dist/components/buttonsimple/buttonsimple.types.d.ts +6 -5
  7. package/dist/components/cardbutton/cardbutton.types.d.ts +6 -4
  8. package/dist/components/cardcheckbox/cardcheckbox.component.d.ts +0 -1
  9. package/dist/components/cardcheckbox/cardcheckbox.component.js +0 -1
  10. package/dist/components/cardcheckbox/cardcheckbox.types.d.ts +6 -6
  11. package/dist/components/cardradio/cardradio.component.d.ts +0 -1
  12. package/dist/components/cardradio/cardradio.component.js +0 -1
  13. package/dist/components/cardradio/cardradio.types.d.ts +6 -5
  14. package/dist/components/checkbox/checkbox.types.d.ts +4 -2
  15. package/dist/components/dialog/dialog.types.d.ts +17 -6
  16. package/dist/components/input/input.types.d.ts +6 -6
  17. package/dist/components/inputchip/inputchip.types.d.ts +3 -1
  18. package/dist/components/link/link.types.d.ts +6 -5
  19. package/dist/components/linkbutton/linkbutton.types.d.ts +6 -5
  20. package/dist/components/linksimple/linksimple.types.d.ts +6 -4
  21. package/dist/components/listitem/listitem.types.d.ts +14 -13
  22. package/dist/components/menuitem/menuitem.component.d.ts +4 -0
  23. package/dist/components/menuitem/menuitem.component.js +4 -0
  24. package/dist/components/menuitem/menuitem.types.d.ts +10 -4
  25. package/dist/components/menuitemcheckbox/menuitemcheckbox.types.d.ts +5 -4
  26. package/dist/components/menuitemradio/menuitemradio.types.d.ts +5 -4
  27. package/dist/components/menupopover/menupopover.types.d.ts +4 -7
  28. package/dist/components/menusection/menusection.types.d.ts +3 -4
  29. package/dist/components/navmenuitem/navmenuitem.types.d.ts +10 -6
  30. package/dist/components/option/option.types.d.ts +6 -4
  31. package/dist/components/password/password.types.d.ts +6 -4
  32. package/dist/components/popover/popover.types.d.ts +5 -5
  33. package/dist/components/radio/radio.types.d.ts +4 -2
  34. package/dist/components/select/select.types.d.ts +6 -6
  35. package/dist/components/sidenavigation/sidenavigation.types.d.ts +6 -2
  36. package/dist/components/stepperitem/stepperitem.types.d.ts +5 -4
  37. package/dist/components/tab/tab.types.d.ts +6 -2
  38. package/dist/components/tablist/tablist.types.d.ts +5 -2
  39. package/dist/components/textarea/textarea.types.d.ts +7 -6
  40. package/dist/components/toast/toast.types.d.ts +3 -2
  41. package/dist/components/toggle/toggle.types.d.ts +4 -3
  42. package/dist/components/toggletip/toggletip.types.d.ts +6 -4
  43. package/dist/components/typewriter/typewriter.types.d.ts +3 -5
  44. package/dist/components/virtualizedlist/virtualizedlist.types.d.ts +3 -1
  45. package/dist/custom-elements.json +1575 -1585
  46. package/dist/react/accordion/index.d.ts +3 -1
  47. package/dist/react/accordionbutton/index.d.ts +3 -1
  48. package/dist/react/alertchip/index.d.ts +4 -4
  49. package/dist/react/animation/index.d.ts +9 -3
  50. package/dist/react/avatarbutton/index.d.ts +4 -4
  51. package/dist/react/brandvisual/index.d.ts +6 -2
  52. package/dist/react/button/index.d.ts +4 -4
  53. package/dist/react/buttonlink/index.d.ts +4 -4
  54. package/dist/react/buttonsimple/index.d.ts +4 -4
  55. package/dist/react/cardbutton/index.d.ts +4 -4
  56. package/dist/react/cardcheckbox/index.d.ts +4 -6
  57. package/dist/react/cardcheckbox/index.js +0 -2
  58. package/dist/react/cardradio/index.d.ts +4 -6
  59. package/dist/react/cardradio/index.js +0 -2
  60. package/dist/react/checkbox/index.d.ts +2 -2
  61. package/dist/react/chip/index.d.ts +4 -4
  62. package/dist/react/dialog/index.d.ts +15 -5
  63. package/dist/react/filterchip/index.d.ts +4 -4
  64. package/dist/react/index.d.ts +4 -4
  65. package/dist/react/index.js +4 -4
  66. package/dist/react/input/index.d.ts +3 -3
  67. package/dist/react/inputchip/index.d.ts +1 -1
  68. package/dist/react/link/index.d.ts +4 -4
  69. package/dist/react/linkbutton/index.d.ts +4 -4
  70. package/dist/react/linksimple/index.d.ts +4 -4
  71. package/dist/react/listitem/index.d.ts +8 -8
  72. package/dist/react/menuitem/index.d.ts +12 -8
  73. package/dist/react/menuitem/index.js +4 -0
  74. package/dist/react/menuitemcheckbox/index.d.ts +9 -9
  75. package/dist/react/menuitemradio/index.d.ts +9 -9
  76. package/dist/react/navmenuitem/index.d.ts +12 -9
  77. package/dist/react/option/index.d.ts +8 -8
  78. package/dist/react/password/index.d.ts +3 -3
  79. package/dist/react/radio/index.d.ts +2 -2
  80. package/dist/react/searchfield/index.d.ts +3 -3
  81. package/dist/react/select/index.d.ts +3 -3
  82. package/dist/react/sidenavigation/index.d.ts +4 -1
  83. package/dist/react/stepperitem/index.d.ts +3 -3
  84. package/dist/react/tab/index.d.ts +8 -5
  85. package/dist/react/tablist/index.d.ts +3 -1
  86. package/dist/react/textarea/index.d.ts +5 -5
  87. package/dist/react/toast/index.d.ts +1 -1
  88. package/dist/react/toggle/index.d.ts +2 -2
  89. package/dist/react/virtualizedlist/index.d.ts +1 -1
  90. package/dist/utils/types.d.ts +9 -1
  91. package/package.json +1 -1
  92. package/dist/components/selectlistbox/selectlistbox.types.d.ts +0 -3
  93. package/dist/components/selectlistbox/selectlistbox.types.js +0 -1
@@ -1,12 +1,13 @@
1
- import type { ValueOf } from '../../utils/types';
1
+ import type { OverrideEventTarget, TypedCustomEvent, ValueOf } from '../../utils/types';
2
+ import type Textarea from './textarea.component';
2
3
  import { AUTO_COMPLETE, WRAP } from './textarea.constants';
3
4
  type WrapType = ValueOf<typeof WRAP>;
4
5
  type AutoCompleteType = ValueOf<typeof AUTO_COMPLETE>;
5
6
  interface Events {
6
- onInputEvent: InputEvent;
7
- onChangeEvent: Event;
8
- onFocusEvent: FocusEvent;
9
- onBlurEvent: FocusEvent;
10
- onLimitExceededEvent: Event;
7
+ onInputEvent: OverrideEventTarget<InputEvent, Textarea>;
8
+ onChangeEvent: TypedCustomEvent<Textarea>;
9
+ onFocusEvent: OverrideEventTarget<FocusEvent, Textarea>;
10
+ onBlurEvent: OverrideEventTarget<FocusEvent, Textarea>;
11
+ onLimitExceededEvent: TypedCustomEvent<Textarea>;
11
12
  }
12
13
  export type { WrapType, AutoCompleteType, Events };
@@ -1,7 +1,8 @@
1
- import type { ValueOf } from '../../utils/types';
1
+ import type { TypedCustomEvent, ValueOf } from '../../utils/types';
2
+ import type Toast from './toast.component';
2
3
  import { TOAST_VARIANT } from './toast.constants';
3
4
  interface Events {
4
- onCloseEvent: Event;
5
+ onCloseEvent: TypedCustomEvent<Toast>;
5
6
  }
6
7
  type ToastVariant = ValueOf<typeof TOAST_VARIANT>;
7
8
  export type { ToastVariant, Events };
@@ -1,8 +1,9 @@
1
- import type { ValueOf } from '../../utils/types';
1
+ import type { OverrideEventTarget, TypedCustomEvent, ValueOf } from '../../utils/types';
2
+ import type Toggle from './toggle.component';
2
3
  import { TOGGLE_SIZE } from './toggle.constants';
3
4
  type ToggleSize = ValueOf<typeof TOGGLE_SIZE>;
4
5
  interface Events {
5
- onChangeEvent: Event;
6
- onFocusEvent: FocusEvent;
6
+ onChangeEvent: TypedCustomEvent<Toggle>;
7
+ onFocusEvent: OverrideEventTarget<FocusEvent, Toggle>;
7
8
  }
8
9
  export type { ToggleSize, Events };
@@ -1,7 +1,9 @@
1
+ import type { TypedCustomEvent } from "../../utils/types";
2
+ import type ToggleTip from "./toggletip.component";
1
3
  interface Events {
2
- onShownEvent: Event;
3
- onHiddenEvent: Event;
4
- onCreatedEvent: Event;
5
- onDestroyedEvent: Event;
4
+ onShownEvent: TypedCustomEvent<ToggleTip>;
5
+ onHiddenEvent: TypedCustomEvent<ToggleTip>;
6
+ onCreatedEvent: TypedCustomEvent<ToggleTip>;
7
+ onDestroyedEvent: TypedCustomEvent<ToggleTip>;
6
8
  }
7
9
  export type { Events };
@@ -1,4 +1,4 @@
1
- import type { TypedEvent } from '../../utils/types';
1
+ import type { TypedCustomEvent } from '../../utils/types';
2
2
  import type { TextType, TagName } from '../text/text.types';
3
3
  import type Typewriter from './typewriter.component';
4
4
  type TypewriterSpeed = 'slow' | 'normal' | 'fast' | 'very-slow' | 'very-fast' | string;
@@ -7,13 +7,11 @@ interface TextChunk {
7
7
  speed?: TypewriterSpeed;
8
8
  instant?: boolean;
9
9
  }
10
- type TypewriterChangeEvent = TypedEvent<Typewriter, {
10
+ type TypewriterChangeEvent = TypedCustomEvent<Typewriter, {
11
11
  content: string;
12
12
  isTyping: boolean;
13
13
  }>;
14
- type TypewriterTypingCompleteEvent = TypedEvent<Typewriter, {
15
- finalContent: string;
16
- }>;
14
+ type TypewriterTypingCompleteEvent = TypedCustomEvent<Typewriter>;
17
15
  interface Events {
18
16
  onChangeEvent: TypewriterChangeEvent;
19
17
  onTypingCompleteEvent: TypewriterTypingCompleteEvent;
@@ -1,12 +1,14 @@
1
1
  import { VirtualItem, VirtualizerOptions } from '@tanstack/virtual-core';
2
2
  import { StyleInfo } from 'lit/directives/style-map.js';
3
+ import type { TypedCustomEvent } from '../../utils/types';
4
+ import type VirtualizedList from './virtualizedlist.component';
3
5
  interface SetListDataProps {
4
6
  virtualItems: Array<VirtualItem>;
5
7
  measureElement: (node: Element | null | undefined) => void;
6
8
  listStyle: Readonly<StyleInfo>;
7
9
  }
8
10
  interface Events {
9
- onScrollEvent: Event;
11
+ onScrollEvent: TypedCustomEvent<VirtualizedList>;
10
12
  }
11
13
  type VirtualizerProps = Partial<VirtualizerOptions<Element, Element>>;
12
14
  export type { Events, VirtualizerProps, SetListDataProps };