@7shifts/sous-chef 3.58.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"};
@@ -10871,7 +10891,7 @@ const useRadioGroupFieldContext = () => {
10871
10891
  return context;
10872
10892
  };
10873
10893
 
10874
- var styles$i = {"label":"_xzukU","label--truncate":"_iVWRB","radio-group-field__label":"_2KvuU"};
10894
+ var styles$i = {"label":"_xzukU","label--truncate":"_iVWRB","caption":"_JNfQO","radio-group-field__label":"_2KvuU","radio-group-field__caption":"_ZeIOd"};
10875
10895
 
10876
10896
  var styles$h = {"label":"_s7mjc","label--truncate":"_dZjDs","caption":"_JIw-5","radio-group-box-option":"_IIX-P","radio-group-box-option__box":"_P588B","radio-group-box-option__box--disabled":"_Ir3Og","radio-group-box-option__label":"_U--9r","radio-group-box-option__label--disabled":"_Lvxmy","radio-group-box-option__caption":"_NC-bO","radio-group-box-option__caption--disabled":"_04Cjp"};
10877
10897
 
@@ -11058,6 +11078,7 @@ const RadioGroupField = ({
11058
11078
  value,
11059
11079
  onChange,
11060
11080
  label,
11081
+ caption,
11061
11082
  error,
11062
11083
  inline: _inline = false,
11063
11084
  disabled: _disabled = false,
@@ -11096,7 +11117,9 @@ const RadioGroupField = ({
11096
11117
  }, children) : React__default.createElement(BoxOptions, {
11097
11118
  columns: columns,
11098
11119
  testId: testId
11099
- }, children), controllers.error && React__default.createElement(ErrorMessage, null, controllers.error))));
11120
+ }, children), caption && React__default.createElement("div", {
11121
+ className: styles$i['radio-group-caption']
11122
+ }, caption), controllers.error && React__default.createElement(ErrorMessage, null, controllers.error))));
11100
11123
  };
11101
11124
 
11102
11125
  var styles$f = {"text-field":"_6Of1F","text-field--invalid":"_NQPNK","text-field--prefixed":"_BpQWQ","text-field--suffixed":"_cpYWb","password-container":"_pAoib","password-toggle":"_WVvS6"};