@7shifts/sous-chef 3.59.0 → 3.60.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.
@@ -5958,6 +5958,9 @@ var DataTable$1 = {
5958
5958
  emptyStateTitle: "No results found",
5959
5959
  emptyStateCaption: "Try adding a new item to the list or adjust your search terms."
5960
5960
  };
5961
+ var ActionList$1 = {
5962
+ emptyStateTitle: "No action items"
5963
+ };
5961
5964
  var PhoneField$1 = {
5962
5965
  malformedPhoneNumber: "Malformed phone number. Please enter a valid phone number."
5963
5966
  };
@@ -5969,6 +5972,7 @@ var en = {
5969
5972
  Calendar: Calendar$1,
5970
5973
  Card: Card$1,
5971
5974
  DataTable: DataTable$1,
5975
+ ActionList: ActionList$1,
5972
5976
  PhoneField: PhoneField$1
5973
5977
  };
5974
5978
 
@@ -9304,7 +9308,7 @@ const EmptyStateContainerStack = ({
9304
9308
  }, caption)));
9305
9309
  };
9306
9310
 
9307
- const EmptyStateIllustration = () => {
9311
+ const MagnifyingGlassIllustration = () => {
9308
9312
  return React__default.createElement("svg", {
9309
9313
  width: "200",
9310
9314
  height: "110",
@@ -9393,7 +9397,7 @@ const DataTableEmptyState = ({
9393
9397
  className: styles$B['data-table-empty-state']
9394
9398
  }, React__default.createElement(EmptyStateContainerStack, {
9395
9399
  mediaUrl: customImage,
9396
- mediaComponent: customImage === '' ? React__default.createElement(EmptyStateIllustration, null) : undefined,
9400
+ mediaComponent: customImage === '' ? React__default.createElement(MagnifyingGlassIllustration, null) : undefined,
9397
9401
  title: customEmptyState ? customEmptyState.title : translate('emptyStateTitle'),
9398
9402
  actions: customEmptyState && customEmptyState.actions,
9399
9403
  size: "small"
@@ -9629,16 +9633,32 @@ const Accordion = props => {
9629
9633
  })));
9630
9634
  };
9631
9635
 
9632
- var styles$w = {"action-list":"_pWke5"};
9636
+ var styles$w = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
9633
9637
 
9634
9638
  const ActionList = ({
9635
9639
  children,
9636
- testId
9640
+ testId,
9641
+ title,
9642
+ emptyState,
9643
+ maxHeight
9637
9644
  }) => {
9645
+ const translate = useTranslation('ActionList');
9638
9646
  return React__default.createElement("div", {
9639
9647
  className: styles$w['action-list'],
9640
- "data-testid": testId
9641
- }, children);
9648
+ "data-testid": testId,
9649
+ style: {
9650
+ maxHeight: maxHeight
9651
+ }
9652
+ }, title && React__default.createElement("div", {
9653
+ className: styles$w['action-list__title']
9654
+ }, title), children ? children : React__default.createElement("div", {
9655
+ className: styles$w['action-list__empty-state']
9656
+ }, React__default.createElement(EmptyStateContainerStack, {
9657
+ title: (emptyState == null ? void 0 : emptyState.title) || translate('emptyStateTitle'),
9658
+ mediaUrl: emptyState == null ? void 0 : emptyState.image,
9659
+ mediaComponent: !(emptyState != null && emptyState.image) && React__default.createElement(MagnifyingGlassIllustration, null),
9660
+ actions: emptyState == null ? void 0 : emptyState.actions
9661
+ }, emptyState == null ? void 0 : emptyState.caption)));
9642
9662
  };
9643
9663
 
9644
9664
  var style = {"action-list-item":"_JnBey","action-list-item--disabled":"_DT13p","action-list-item--interactive":"_G-7Pi","action-list-item__actions":"_xuiNi"};