@momentum-design/components 0.80.5 → 0.81.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/index.d.ts CHANGED
@@ -50,6 +50,7 @@ import ScreenreaderAnnouncer from './components/screenreaderannouncer';
50
50
  import Searchfield from './components/searchfield';
51
51
  import Select from './components/select';
52
52
  import SideNavigation from './components/sidenavigation';
53
+ import Skeleton from './components/skeleton';
53
54
  import Spinner from './components/spinner';
54
55
  import StaticCheckbox from './components/staticcheckbox';
55
56
  import StaticRadio from './components/staticradio';
@@ -66,10 +67,12 @@ import VirtualizedList from './components/virtualizedlist';
66
67
  import type { BadgeType } from './components/badge/badge.types';
67
68
  import type { ButtonColor, ButtonVariant, IconButtonSize, PillButtonSize } from './components/button/button.types';
68
69
  import type { PopoverPlacement } from './components/popover/popover.types';
70
+ import type { SkeletonVariant } from './components/skeleton/skeleton.types';
69
71
  import type { SpinnerSize, SpinnerVariant } from './components/spinner/spinner.types';
70
72
  import type { TextType } from './components/text/text.types';
71
73
  import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
72
74
  import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
73
- export { AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonLink, ButtonGroup, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, Linksimple, List, ListItem, Marker, Menu, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, NavItem, NavItemList, OptGroup, Option, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SideNavigation, Spinner, StaticCheckbox, StaticRadio, StaticToggle, Tab, TabList, Text, Textarea, ThemeProvider, Toggle, ToggleTip, Tooltip, MenuSection, VirtualizedList, };
74
- export type { TextType, SpinnerSize, SpinnerVariant, PopoverPlacement, BadgeType, IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor, };
75
- export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
75
+ import { SKELETON_VARIANTS } from './components/skeleton/skeleton.constants';
76
+ export { AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonLink, ButtonGroup, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, Linksimple, List, ListItem, Marker, Menu, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, NavItem, NavItemList, OptGroup, Option, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SideNavigation, Skeleton, Spinner, StaticCheckbox, StaticRadio, StaticToggle, Tab, TabList, Text, Textarea, ThemeProvider, Toggle, ToggleTip, Tooltip, MenuSection, VirtualizedList, };
77
+ export type { TextType, SpinnerSize, SpinnerVariant, SkeletonVariant, PopoverPlacement, BadgeType, IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor, };
78
+ export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, SKELETON_VARIANTS, };
package/dist/index.js CHANGED
@@ -51,6 +51,7 @@ import ScreenreaderAnnouncer from './components/screenreaderannouncer';
51
51
  import Searchfield from './components/searchfield';
52
52
  import Select from './components/select';
53
53
  import SideNavigation from './components/sidenavigation';
54
+ import Skeleton from './components/skeleton';
54
55
  import Spinner from './components/spinner';
55
56
  import StaticCheckbox from './components/staticcheckbox';
56
57
  import StaticRadio from './components/staticradio';
@@ -67,7 +68,8 @@ import VirtualizedList from './components/virtualizedlist';
67
68
  import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
68
69
  // Constants / Utils Imports
69
70
  import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, } from './components/button/button.constants';
71
+ import { SKELETON_VARIANTS } from './components/skeleton/skeleton.constants';
70
72
  // Components Exports
71
- export { AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonLink, ButtonGroup, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, Linksimple, List, ListItem, Marker, Menu, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, NavItem, NavItemList, OptGroup, Option, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SideNavigation, Spinner, StaticCheckbox, StaticRadio, StaticToggle, Tab, TabList, Text, Textarea, ThemeProvider, Toggle, ToggleTip, Tooltip, MenuSection, VirtualizedList, };
73
+ export { AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonLink, ButtonGroup, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, Linksimple, List, ListItem, Marker, Menu, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, NavItem, NavItemList, OptGroup, Option, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SideNavigation, Skeleton, Spinner, StaticCheckbox, StaticRadio, StaticToggle, Tab, TabList, Text, Textarea, ThemeProvider, Toggle, ToggleTip, Tooltip, MenuSection, VirtualizedList, };
72
74
  // Constants / Utils Exports
73
- export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
75
+ export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, SKELETON_VARIANTS, };
@@ -1,6 +1,6 @@
1
+ export { default as Appheader } from './appheader';
1
2
  export { default as AlertChip } from './alertchip';
2
3
  export { default as Animation } from './animation';
3
- export { default as Appheader } from './appheader';
4
4
  export { default as Avatar } from './avatar';
5
5
  export { default as AvatarButton } from './avatarbutton';
6
6
  export { default as Badge } from './badge';
@@ -12,17 +12,16 @@ export { default as ButtonLink } from './buttonlink';
12
12
  export { default as Buttonsimple } from './buttonsimple';
13
13
  export { default as Card } from './card';
14
14
  export { default as CardButton } from './cardbutton';
15
- export { default as CardCheckbox } from './cardcheckbox';
16
15
  export { default as CardRadio } from './cardradio';
17
16
  export { default as Checkbox } from './checkbox';
18
17
  export { default as Chip } from './chip';
18
+ export { default as CardCheckbox } from './cardcheckbox';
19
19
  export { default as Coachmark } from './coachmark';
20
20
  export { default as Dialog } from './dialog';
21
21
  export { default as Divider } from './divider';
22
22
  export { default as FilterChip } from './filterchip';
23
- export { default as FormfieldGroup } from './formfieldgroup';
24
- export { default as Icon } from './icon';
25
23
  export { default as FormfieldWrapper } from './formfieldwrapper';
24
+ export { default as Icon } from './icon';
26
25
  export { default as IconProvider } from './iconprovider';
27
26
  export { default as Input } from './input';
28
27
  export { default as InputChip } from './inputchip';
@@ -30,6 +29,7 @@ export { default as Link } from './link';
30
29
  export { default as Linksimple } from './linksimple';
31
30
  export { default as List } from './list';
32
31
  export { default as ListItem } from './listitem';
32
+ export { default as FormfieldGroup } from './formfieldgroup';
33
33
  export { default as Marker } from './marker';
34
34
  export { default as Menu } from './menu';
35
35
  export { default as MenuBar } from './menubar';
@@ -52,6 +52,7 @@ export { default as ScreenreaderAnnouncer } from './screenreaderannouncer';
52
52
  export { default as Searchfield } from './searchfield';
53
53
  export { default as Select } from './select';
54
54
  export { default as SideNavigation } from './sidenavigation';
55
+ export { default as Skeleton } from './skeleton';
55
56
  export { default as Spinner } from './spinner';
56
57
  export { default as StaticCheckbox } from './staticcheckbox';
57
58
  export { default as StaticRadio } from './staticradio';
@@ -1,6 +1,6 @@
1
+ export { default as Appheader } from './appheader';
1
2
  export { default as AlertChip } from './alertchip';
2
3
  export { default as Animation } from './animation';
3
- export { default as Appheader } from './appheader';
4
4
  export { default as Avatar } from './avatar';
5
5
  export { default as AvatarButton } from './avatarbutton';
6
6
  export { default as Badge } from './badge';
@@ -12,17 +12,16 @@ export { default as ButtonLink } from './buttonlink';
12
12
  export { default as Buttonsimple } from './buttonsimple';
13
13
  export { default as Card } from './card';
14
14
  export { default as CardButton } from './cardbutton';
15
- export { default as CardCheckbox } from './cardcheckbox';
16
15
  export { default as CardRadio } from './cardradio';
17
16
  export { default as Checkbox } from './checkbox';
18
17
  export { default as Chip } from './chip';
18
+ export { default as CardCheckbox } from './cardcheckbox';
19
19
  export { default as Coachmark } from './coachmark';
20
20
  export { default as Dialog } from './dialog';
21
21
  export { default as Divider } from './divider';
22
22
  export { default as FilterChip } from './filterchip';
23
- export { default as FormfieldGroup } from './formfieldgroup';
24
- export { default as Icon } from './icon';
25
23
  export { default as FormfieldWrapper } from './formfieldwrapper';
24
+ export { default as Icon } from './icon';
26
25
  export { default as IconProvider } from './iconprovider';
27
26
  export { default as Input } from './input';
28
27
  export { default as InputChip } from './inputchip';
@@ -30,6 +29,7 @@ export { default as Link } from './link';
30
29
  export { default as Linksimple } from './linksimple';
31
30
  export { default as List } from './list';
32
31
  export { default as ListItem } from './listitem';
32
+ export { default as FormfieldGroup } from './formfieldgroup';
33
33
  export { default as Marker } from './marker';
34
34
  export { default as Menu } from './menu';
35
35
  export { default as MenuBar } from './menubar';
@@ -52,6 +52,7 @@ export { default as ScreenreaderAnnouncer } from './screenreaderannouncer';
52
52
  export { default as Searchfield } from './searchfield';
53
53
  export { default as Select } from './select';
54
54
  export { default as SideNavigation } from './sidenavigation';
55
+ export { default as Skeleton } from './skeleton';
55
56
  export { default as Spinner } from './spinner';
56
57
  export { default as StaticCheckbox } from './staticcheckbox';
57
58
  export { default as StaticRadio } from './staticradio';
@@ -0,0 +1,25 @@
1
+ import Component from '../../components/skeleton';
2
+ /**
3
+ * `mdc-skeleton` is a component that shows a grey placeholder area.
4
+ * It provides visual feedback to users that content is being loaded.
5
+ *
6
+ * **Skeleton Variants:**
7
+ * - **rectangular**: Default variant with 0.25rem border radius
8
+ * - **rounded**: Has 0.5rem border radius
9
+ * - **circular**: Has 50% border radius for circular shapes
10
+ * - **button**: Optimized for button placeholders with 1.25rem border radius
11
+ *
12
+ * **Sizing Behavior:**
13
+ * 1. If wrapping content, takes dimensions of wrapped content
14
+ * 2. Otherwise grows to fill parent container
15
+ *
16
+ * @tagname mdc-skeleton
17
+ *
18
+ * @slot - Content to wrap (optional). When provided, skeleton takes dimensions of this content.
19
+ *
20
+ * @cssproperty --mdc-skeleton-background-color - background color of the skeleton
21
+ * @cssproperty --mdc-skeleton-height - height of the skeleton
22
+ * @cssproperty --mdc-skeleton-width - width of the skeleton
23
+ */
24
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
25
+ export default reactWrapper;
@@ -0,0 +1,34 @@
1
+ import * as React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import Component from '../../components/skeleton';
4
+ import { TAG_NAME } from '../../components/skeleton/skeleton.constants';
5
+ /**
6
+ * `mdc-skeleton` is a component that shows a grey placeholder area.
7
+ * It provides visual feedback to users that content is being loaded.
8
+ *
9
+ * **Skeleton Variants:**
10
+ * - **rectangular**: Default variant with 0.25rem border radius
11
+ * - **rounded**: Has 0.5rem border radius
12
+ * - **circular**: Has 50% border radius for circular shapes
13
+ * - **button**: Optimized for button placeholders with 1.25rem border radius
14
+ *
15
+ * **Sizing Behavior:**
16
+ * 1. If wrapping content, takes dimensions of wrapped content
17
+ * 2. Otherwise grows to fill parent container
18
+ *
19
+ * @tagname mdc-skeleton
20
+ *
21
+ * @slot - Content to wrap (optional). When provided, skeleton takes dimensions of this content.
22
+ *
23
+ * @cssproperty --mdc-skeleton-background-color - background color of the skeleton
24
+ * @cssproperty --mdc-skeleton-height - height of the skeleton
25
+ * @cssproperty --mdc-skeleton-width - width of the skeleton
26
+ */
27
+ const reactWrapper = createComponent({
28
+ tagName: TAG_NAME,
29
+ elementClass: Component,
30
+ react: React,
31
+ events: {},
32
+ displayName: 'Skeleton',
33
+ });
34
+ export default reactWrapper;
package/package.json CHANGED
@@ -41,5 +41,5 @@
41
41
  "lottie-web": "^5.12.2",
42
42
  "uuid": "^11.0.5"
43
43
  },
44
- "version": "0.80.5"
44
+ "version": "0.81.0"
45
45
  }