@momentum-design/components 0.142.7 → 0.143.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
@@ -95,6 +95,7 @@ import Verticaltablist from './components/verticaltablist';
95
95
  import StatusMessage from './components/statusmessage';
96
96
  import FocusTrap from './components/focustrap';
97
97
  import CheckboxTree from './components/checkboxtree';
98
+ import EmptyState from './components/emptystate';
98
99
  import type { AvatarSize } from './components/avatar/avatar.types';
99
100
  import type { BadgeType } from './components/badge/badge.types';
100
101
  import type { ColorType as ChipColorType } from './components/staticchip/staticchip.types';
@@ -125,6 +126,6 @@ import type { TimePickerChangeEvent, TimePickerInputEvent } from './components/t
125
126
  import type { DatePickerChangeEvent, DatePickerInputEvent } from './components/datepicker/datepicker.types';
126
127
  import type { CalendarDateSelectedEvent, CalendarMonthChangedEvent } from './components/calendar/calendar.types';
127
128
  import type { ListBoxChangeEvent } from './components/listbox/listbox.types';
128
- export { Accordion, AccordionButton, AccordionGroup, AlertChip, Animation, AnnouncementDialog, Appheader, Avatar, AvatarButton, Badge, Brandvisual, BrandVisualProvider, Bullet, Button, ButtonGroup, ButtonLink, Calendar, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, ControlTypeProvider, DatePicker, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Illustration, IllustrationProvider, Input, InputChip, Link, LinkButton, Linksimple, List, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, NumberInput, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ResponsiveSettingsProvider, ScreenreaderAnnouncer, Searchfield, Searchpopover, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticChip, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, TimePicker, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, Banner, Buttonsimple, Verticaltablist, StatusMessage, FocusTrap, CheckboxTree, };
129
+ export { Accordion, AccordionButton, AccordionGroup, AlertChip, Animation, AnnouncementDialog, Appheader, Avatar, AvatarButton, Badge, Brandvisual, BrandVisualProvider, Bullet, Button, ButtonGroup, ButtonLink, Calendar, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, ControlTypeProvider, DatePicker, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Illustration, IllustrationProvider, Input, InputChip, Link, LinkButton, Linksimple, List, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, NumberInput, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ResponsiveSettingsProvider, ScreenreaderAnnouncer, Searchfield, Searchpopover, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticChip, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, TimePicker, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, Banner, Buttonsimple, Verticaltablist, StatusMessage, FocusTrap, CheckboxTree, EmptyState, };
129
130
  export type { AvatarSize, BadgeType, ChipColorType, ButtonColor, ButtonVariant, IconButtonSize, MenuPopoverActionEvent, MenuPopoverChangeEvent, MenuSectionChangeEvent, PillButtonSize, PopoverPlacement, PresenceType, SkeletonVariant, SelectChangeEvent, SelectInputEvent, SpinnerSize, SpinnerVariant, SliderChangeEvent, StatusMessageSeverity, TextType, TypewriterType, InputInputEvent, InputChangeEvent, InputFocusEvent, InputBlurEvent, InputClearEvent, VirtualizedListScrollEvent, TablistChangeEvent, TextareaInputEvent, TextareaChangeEvent, TextareaFocusEvent, TextareaBlurEvent, TextareaLimitExceededEvent, ToggleOnChangeEvent, CheckboxOnChangeEvent, LinkButtonSize, TimePickerChangeEvent, TimePickerInputEvent, DatePickerChangeEvent, DatePickerInputEvent, CalendarDateSelectedEvent, CalendarMonthChangedEvent, VerticaltablistChangeEvent, ListBoxChangeEvent, };
130
131
  export { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, inMemoryCache, PILL_BUTTON_SIZES, SKELETON_VARIANTS, webAPIAssetsCache, };
package/dist/index.js CHANGED
@@ -97,11 +97,12 @@ import Verticaltablist from './components/verticaltablist';
97
97
  import StatusMessage from './components/statusmessage';
98
98
  import FocusTrap from './components/focustrap';
99
99
  import CheckboxTree from './components/checkboxtree';
100
+ import EmptyState from './components/emptystate';
100
101
  // Constants / Utils Imports
101
102
  import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, } from './components/button/button.constants';
102
103
  import { SKELETON_VARIANTS } from './components/skeleton/skeleton.constants';
103
104
  import { inMemoryCache, webAPIAssetsCache } from './utils/assets-cache';
104
105
  // Components Exports
105
- export { Accordion, AccordionButton, AccordionGroup, AlertChip, Animation, AnnouncementDialog, Appheader, Avatar, AvatarButton, Badge, Brandvisual, BrandVisualProvider, Bullet, Button, ButtonGroup, ButtonLink, Calendar, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, ControlTypeProvider, DatePicker, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Illustration, IllustrationProvider, Input, InputChip, Link, LinkButton, Linksimple, List, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, NumberInput, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ResponsiveSettingsProvider, ScreenreaderAnnouncer, Searchfield, Searchpopover, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticChip, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, TimePicker, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, Banner, Buttonsimple, Verticaltablist, StatusMessage, FocusTrap, CheckboxTree, };
106
+ export { Accordion, AccordionButton, AccordionGroup, AlertChip, Animation, AnnouncementDialog, Appheader, Avatar, AvatarButton, Badge, Brandvisual, BrandVisualProvider, Bullet, Button, ButtonGroup, ButtonLink, Calendar, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, ControlTypeProvider, DatePicker, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Illustration, IllustrationProvider, Input, InputChip, Link, LinkButton, Linksimple, List, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, NumberInput, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ResponsiveSettingsProvider, ScreenreaderAnnouncer, Searchfield, Searchpopover, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticChip, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, TimePicker, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, Banner, Buttonsimple, Verticaltablist, StatusMessage, FocusTrap, CheckboxTree, EmptyState, };
106
107
  // Constants / Utils Exports
107
108
  export { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, inMemoryCache, PILL_BUTTON_SIZES, SKELETON_VARIANTS, webAPIAssetsCache, };
@@ -0,0 +1,34 @@
1
+ import Component from '../../components/emptystate';
2
+ /**
3
+ * The `mdc-emptystate` gives people context when a view has no content and helps them decide what to do next. It supports views with no content yet, empty collections, and searches or filters that return no results.
4
+ *
5
+ * **When to use**
6
+ *
7
+ * - Use `mdc-emptystate` when a collection is empty and people need context or a next step.
8
+ * - Use `mdc-emptystate` when filters or a search query leave a view without results; explain how to adjust the query or filters when that helps.
9
+ * - Use `mdc-emptystate` for views with no content yet that can guide people toward creating or adding content.
10
+ *
11
+ * **When not to use**
12
+ *
13
+ * - Do not use `mdc-emptystate` to represent content that is still loading. Use `mdc-skeleton` when the content layout is known or `mdc-spinner` when it is not.
14
+ * - Do not use `mdc-emptystate` for a short status beside a control. Use `mdc-statusmessage` instead.
15
+ *
16
+ * @tagname mdc-emptystate
17
+ *
18
+ * @dependency mdc-text
19
+ *
20
+ * @slot illustration - optional illustration / icon
21
+ * @slot heading - optional rich heading content; takes precedence over the heading property
22
+ * @slot actions - optional action buttons
23
+ *
24
+ * @cssproperty --mdc-emptystate-max-width - The maximum width of the empty state content
25
+ * @cssproperty --mdc-emptystate-align-items - Alignment of the empty state content and actions
26
+ * @cssproperty --mdc-emptystate-illustration-size - Size of a slotted illustration
27
+ * @cssproperty --mdc-emptystate-text-align - Text alignment of the heading and description
28
+ *
29
+ * @csspart content - The container for the illustration, text, and actions
30
+ * @csspart text-and-actions - The container for the heading, description, and action controls
31
+ * @csspart text - The container for the heading and description
32
+ */
33
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
34
+ export default reactWrapper;
@@ -0,0 +1,30 @@
1
+ import * as React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import Component from '../../components/emptystate';
4
+ import { TAG_NAME } from '../../components/emptystate/emptystate.constants';
5
+ /**
6
+ * @tagname mdc-emptystate
7
+ *
8
+ * @dependency mdc-text
9
+ *
10
+ * @slot illustration - optional illustration / icon
11
+ * @slot heading - optional rich heading content; takes precedence over the heading property
12
+ * @slot actions - optional action buttons
13
+ *
14
+ * @cssproperty --mdc-emptystate-max-width - The maximum width of the empty state content
15
+ * @cssproperty --mdc-emptystate-align-items - Alignment of the empty state content and actions
16
+ * @cssproperty --mdc-emptystate-illustration-size - Size of a slotted illustration
17
+ * @cssproperty --mdc-emptystate-text-align - Text alignment of the heading and description
18
+ *
19
+ * @csspart content - The container for the illustration, text, and actions
20
+ * @csspart text-and-actions - The container for the heading, description, and action controls
21
+ * @csspart text - The container for the heading and description
22
+ */
23
+ const reactWrapper = createComponent({
24
+ tagName: TAG_NAME,
25
+ elementClass: Component,
26
+ react: React,
27
+ events: {},
28
+ displayName: 'EmptyState',
29
+ });
30
+ export default reactWrapper;
@@ -30,6 +30,7 @@ export { default as ControlTypeProvider } from './controltypeprovider';
30
30
  export { default as DatePicker } from './datepicker';
31
31
  export { default as Dialog } from './dialog';
32
32
  export { default as Divider } from './divider';
33
+ export { default as EmptyState } from './emptystate';
33
34
  export { default as FilterChip } from './filterchip';
34
35
  export { default as FocusTrap } from './focustrap';
35
36
  export { default as FormfieldGroup } from './formfieldgroup';
@@ -30,6 +30,7 @@ export { default as ControlTypeProvider } from './controltypeprovider';
30
30
  export { default as DatePicker } from './datepicker';
31
31
  export { default as Dialog } from './dialog';
32
32
  export { default as Divider } from './divider';
33
+ export { default as EmptyState } from './emptystate';
33
34
  export { default as FilterChip } from './filterchip';
34
35
  export { default as FocusTrap } from './focustrap';
35
36
  export { default as FormfieldGroup } from './formfieldgroup';
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.142.7",
4
+ "version": "0.143.0",
5
5
  "engines": {
6
6
  "node": ">=24.0.0",
7
7
  "npm": ">=8.0.0"