@momentum-design/components 0.71.2 → 0.73.0
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.
- package/dist/browser/index.js +350 -339
- package/dist/browser/index.js.map +4 -4
- package/dist/components/animation/animation.component.d.ts +77 -0
- package/dist/components/animation/animation.component.js +171 -0
- package/dist/components/animation/animation.constants.d.ts +7 -0
- package/dist/components/animation/animation.constants.js +8 -0
- package/dist/components/animation/animation.styles.d.ts +2 -0
- package/dist/components/animation/animation.styles.js +3 -0
- package/dist/components/animation/animation.types.d.ts +12 -0
- package/dist/components/animation/animation.types.js +1 -0
- package/dist/components/animation/index.d.ts +7 -0
- package/dist/components/animation/index.js +4 -0
- package/dist/custom-elements.json +814 -602
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/animation/index.d.ts +20 -0
- package/dist/react/animation/index.js +28 -0
- package/dist/react/index.d.ts +3 -2
- package/dist/react/index.js +3 -2
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
@@ -54,6 +54,7 @@ import Tooltip from './components/tooltip';
|
|
54
54
|
import VirtualizedList from './components/virtualizedlist';
|
55
55
|
import MenuItemRadio from './components/menuitemradio';
|
56
56
|
import MenuItemCheckbox from './components/menuitemcheckbox';
|
57
|
+
import Animation from './components/animation';
|
57
58
|
import type { BadgeType } from './components/badge/badge.types';
|
58
59
|
import type { ButtonColor, ButtonVariant, IconButtonSize, PillButtonSize } from './components/button/button.types';
|
59
60
|
import type { PopoverPlacement } from './components/popover/popover.types';
|
@@ -61,6 +62,6 @@ import type { SpinnerSize, SpinnerVariant } from './components/spinner/spinner.t
|
|
61
62
|
import type { TextType } from './components/text/text.types';
|
62
63
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
63
64
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
|
64
|
-
export { AlertChip, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, Linksimple, List, ListItem, Marker, MenuItem, OptGroup, Option, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, Spinner, Tab, TabList, Text, Textarea, ThemeProvider, Toggle, VirtualizedList, StaticCheckbox, StaticRadio, StaticToggle, ToggleTip, Tooltip, MenuItemRadio, MenuItemCheckbox, };
|
65
|
+
export { AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, Linksimple, List, ListItem, Marker, MenuItem, OptGroup, Option, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, Spinner, Tab, TabList, Text, Textarea, ThemeProvider, Toggle, VirtualizedList, StaticCheckbox, StaticRadio, StaticToggle, ToggleTip, Tooltip, MenuItemRadio, MenuItemCheckbox, };
|
65
66
|
export type { TextType, SpinnerSize, SpinnerVariant, PopoverPlacement, BadgeType, IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor, };
|
66
67
|
export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
|
package/dist/index.js
CHANGED
@@ -55,10 +55,11 @@ import Tooltip from './components/tooltip';
|
|
55
55
|
import VirtualizedList from './components/virtualizedlist';
|
56
56
|
import MenuItemRadio from './components/menuitemradio';
|
57
57
|
import MenuItemCheckbox from './components/menuitemcheckbox';
|
58
|
+
import Animation from './components/animation';
|
58
59
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
59
60
|
// Constants / Utils Imports
|
60
61
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, } from './components/button/button.constants';
|
61
62
|
// Components Exports
|
62
|
-
export { AlertChip, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, Linksimple, List, ListItem, Marker, MenuItem, OptGroup, Option, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, Spinner, Tab, TabList, Text, Textarea, ThemeProvider, Toggle, VirtualizedList, StaticCheckbox, StaticRadio, StaticToggle, ToggleTip, Tooltip, MenuItemRadio, MenuItemCheckbox, };
|
63
|
+
export { AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, Linksimple, List, ListItem, Marker, MenuItem, OptGroup, Option, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, Spinner, Tab, TabList, Text, Textarea, ThemeProvider, Toggle, VirtualizedList, StaticCheckbox, StaticRadio, StaticToggle, ToggleTip, Tooltip, MenuItemRadio, MenuItemCheckbox, };
|
63
64
|
// Constants / Utils Exports
|
64
65
|
export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { type EventName } from '@lit/react';
|
2
|
+
import Component from '../../components/animation';
|
3
|
+
/**
|
4
|
+
* The `mdc-animation` component is a wrapper around the Lottie animation library.
|
5
|
+
* It fetches the animation data dynamically based on the provided name and renders it.
|
6
|
+
* This is a display only component that does not have any interactive functionality.
|
7
|
+
* From accessibility perspective, (by default) it is a decorative image component.
|
8
|
+
*
|
9
|
+
* @tagname mdc-animation
|
10
|
+
*
|
11
|
+
* @event load - (React: onLoad) This event is dispatched when the animation is loaded
|
12
|
+
* @event complete - (React: onComplete) This event is dispatched when all animation loops completed
|
13
|
+
* @event error - (React: onError) This event is dispatched when animation loading failed
|
14
|
+
*/
|
15
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
16
|
+
onLoad: EventName<Event>;
|
17
|
+
onComplete: EventName<Event>;
|
18
|
+
onError: EventName<Event>;
|
19
|
+
}>;
|
20
|
+
export default reactWrapper;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { createComponent } from '@lit/react';
|
3
|
+
import Component from '../../components/animation';
|
4
|
+
import { TAG_NAME } from '../../components/animation/animation.constants';
|
5
|
+
/**
|
6
|
+
* The `mdc-animation` component is a wrapper around the Lottie animation library.
|
7
|
+
* It fetches the animation data dynamically based on the provided name and renders it.
|
8
|
+
* This is a display only component that does not have any interactive functionality.
|
9
|
+
* From accessibility perspective, (by default) it is a decorative image component.
|
10
|
+
*
|
11
|
+
* @tagname mdc-animation
|
12
|
+
*
|
13
|
+
* @event load - (React: onLoad) This event is dispatched when the animation is loaded
|
14
|
+
* @event complete - (React: onComplete) This event is dispatched when all animation loops completed
|
15
|
+
* @event error - (React: onError) This event is dispatched when animation loading failed
|
16
|
+
*/
|
17
|
+
const reactWrapper = createComponent({
|
18
|
+
tagName: TAG_NAME,
|
19
|
+
elementClass: Component,
|
20
|
+
react: React,
|
21
|
+
events: {
|
22
|
+
onLoad: 'load',
|
23
|
+
onComplete: 'complete',
|
24
|
+
onError: 'error',
|
25
|
+
},
|
26
|
+
displayName: 'Animation',
|
27
|
+
});
|
28
|
+
export default reactWrapper;
|
package/dist/react/index.d.ts
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
export { default as AlertChip } from './alertchip';
|
2
|
-
export { default as
|
2
|
+
export { default as Animation } from './animation';
|
3
3
|
export { default as Appheader } from './appheader';
|
4
|
+
export { default as Avatar } from './avatar';
|
4
5
|
export { default as AvatarButton } from './avatarbutton';
|
5
6
|
export { default as Badge } from './badge';
|
6
7
|
export { default as Brandvisual } from './brandvisual';
|
7
8
|
export { default as Bullet } from './bullet';
|
8
|
-
export { default as ButtonLink } from './buttonlink';
|
9
9
|
export { default as Button } from './button';
|
10
|
+
export { default as ButtonLink } from './buttonlink';
|
10
11
|
export { default as Buttonsimple } from './buttonsimple';
|
11
12
|
export { default as Card } from './card';
|
12
13
|
export { default as CardButton } from './cardbutton';
|
package/dist/react/index.js
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
export { default as AlertChip } from './alertchip';
|
2
|
-
export { default as
|
2
|
+
export { default as Animation } from './animation';
|
3
3
|
export { default as Appheader } from './appheader';
|
4
|
+
export { default as Avatar } from './avatar';
|
4
5
|
export { default as AvatarButton } from './avatarbutton';
|
5
6
|
export { default as Badge } from './badge';
|
6
7
|
export { default as Brandvisual } from './brandvisual';
|
7
8
|
export { default as Bullet } from './bullet';
|
8
|
-
export { default as ButtonLink } from './buttonlink';
|
9
9
|
export { default as Button } from './button';
|
10
|
+
export { default as ButtonLink } from './buttonlink';
|
10
11
|
export { default as Buttonsimple } from './buttonsimple';
|
11
12
|
export { default as Card } from './card';
|
12
13
|
export { default as CardButton } from './cardbutton';
|
package/package.json
CHANGED
@@ -31,13 +31,15 @@
|
|
31
31
|
"@floating-ui/dom": "^1.6.12",
|
32
32
|
"@lit/context": "^1.1.2",
|
33
33
|
"@lit/react": "^1.0.5",
|
34
|
+
"@momentum-design/animations": "*",
|
34
35
|
"@momentum-design/brand-visuals": "*",
|
35
36
|
"@momentum-design/fonts": "*",
|
36
37
|
"@momentum-design/icons": "*",
|
37
38
|
"@momentum-design/tokens": "*",
|
38
39
|
"@tanstack/lit-virtual": "^3.11.3",
|
39
40
|
"lit": "^3.2.0",
|
41
|
+
"lottie-web": "^5.12.2",
|
40
42
|
"uuid": "^11.0.5"
|
41
43
|
},
|
42
|
-
"version": "0.
|
44
|
+
"version": "0.73.0"
|
43
45
|
}
|