@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.
package/dist/index.js CHANGED
@@ -5823,6 +5823,9 @@ var DataTable$1 = {
5823
5823
  emptyStateTitle: "No results found",
5824
5824
  emptyStateCaption: "Try adding a new item to the list or adjust your search terms."
5825
5825
  };
5826
+ var ActionList$1 = {
5827
+ emptyStateTitle: "No action items"
5828
+ };
5826
5829
  var PhoneField$1 = {
5827
5830
  malformedPhoneNumber: "Malformed phone number. Please enter a valid phone number."
5828
5831
  };
@@ -5834,6 +5837,7 @@ var en = {
5834
5837
  Calendar: Calendar$1,
5835
5838
  Card: Card$1,
5836
5839
  DataTable: DataTable$1,
5840
+ ActionList: ActionList$1,
5837
5841
  PhoneField: PhoneField$1
5838
5842
  };
5839
5843
 
@@ -9127,7 +9131,7 @@ var EmptyStateContainerStack = function EmptyStateContainerStack(_ref) {
9127
9131
  }, caption)));
9128
9132
  };
9129
9133
 
9130
- var EmptyStateIllustration = function EmptyStateIllustration() {
9134
+ var MagnifyingGlassIllustration = function MagnifyingGlassIllustration() {
9131
9135
  return React__default["default"].createElement("svg", {
9132
9136
  width: "200",
9133
9137
  height: "110",
@@ -9215,7 +9219,7 @@ var DataTableEmptyState = function DataTableEmptyState(_ref) {
9215
9219
  className: styles$B['data-table-empty-state']
9216
9220
  }, React__default["default"].createElement(EmptyStateContainerStack, {
9217
9221
  mediaUrl: customImage,
9218
- mediaComponent: customImage === '' ? React__default["default"].createElement(EmptyStateIllustration, null) : undefined,
9222
+ mediaComponent: customImage === '' ? React__default["default"].createElement(MagnifyingGlassIllustration, null) : undefined,
9219
9223
  title: customEmptyState ? customEmptyState.title : translate('emptyStateTitle'),
9220
9224
  actions: customEmptyState && customEmptyState.actions,
9221
9225
  size: "small"
@@ -9446,15 +9450,31 @@ var Accordion = function Accordion(props) {
9446
9450
  })));
9447
9451
  };
9448
9452
 
9449
- var styles$w = {"action-list":"_pWke5"};
9453
+ var styles$w = {"action-list":"_pWke5","action-list__title":"_p8I7K","action-list__empty-state":"_l-tFB"};
9450
9454
 
9451
9455
  var ActionList = function ActionList(_ref) {
9452
9456
  var children = _ref.children,
9453
- testId = _ref.testId;
9457
+ testId = _ref.testId,
9458
+ title = _ref.title,
9459
+ emptyState = _ref.emptyState,
9460
+ maxHeight = _ref.maxHeight;
9461
+ var translate = useTranslation('ActionList');
9454
9462
  return React__default["default"].createElement("div", {
9455
9463
  className: styles$w['action-list'],
9456
- "data-testid": testId
9457
- }, children);
9464
+ "data-testid": testId,
9465
+ style: {
9466
+ maxHeight: maxHeight
9467
+ }
9468
+ }, title && React__default["default"].createElement("div", {
9469
+ className: styles$w['action-list__title']
9470
+ }, title), children ? children : React__default["default"].createElement("div", {
9471
+ className: styles$w['action-list__empty-state']
9472
+ }, React__default["default"].createElement(EmptyStateContainerStack, {
9473
+ title: (emptyState == null ? void 0 : emptyState.title) || translate('emptyStateTitle'),
9474
+ mediaUrl: emptyState == null ? void 0 : emptyState.image,
9475
+ mediaComponent: !(emptyState != null && emptyState.image) && React__default["default"].createElement(MagnifyingGlassIllustration, null),
9476
+ actions: emptyState == null ? void 0 : emptyState.actions
9477
+ }, emptyState == null ? void 0 : emptyState.caption)));
9458
9478
  };
9459
9479
 
9460
9480
  var style = {"action-list-item":"_JnBey","action-list-item--disabled":"_DT13p","action-list-item--interactive":"_G-7Pi","action-list-item__actions":"_xuiNi"};
@@ -10717,7 +10737,7 @@ var useRadioGroupFieldContext = function useRadioGroupFieldContext() {
10717
10737
  return context;
10718
10738
  };
10719
10739
 
10720
- var styles$i = {"label":"_xzukU","label--truncate":"_iVWRB","radio-group-field__label":"_2KvuU"};
10740
+ var styles$i = {"label":"_xzukU","label--truncate":"_iVWRB","caption":"_JNfQO","radio-group-field__label":"_2KvuU","radio-group-field__caption":"_ZeIOd"};
10721
10741
 
10722
10742
  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"};
10723
10743
 
@@ -10900,6 +10920,7 @@ var RadioGroupField = function RadioGroupField(_ref) {
10900
10920
  value = _ref.value,
10901
10921
  onChange = _ref.onChange,
10902
10922
  label = _ref.label,
10923
+ caption = _ref.caption,
10903
10924
  error = _ref.error,
10904
10925
  _ref$inline = _ref.inline,
10905
10926
  inline = _ref$inline === void 0 ? false : _ref$inline,
@@ -10939,7 +10960,9 @@ var RadioGroupField = function RadioGroupField(_ref) {
10939
10960
  }, children) : React__default["default"].createElement(BoxOptions, {
10940
10961
  columns: columns,
10941
10962
  testId: testId
10942
- }, children), controllers.error && React__default["default"].createElement(ErrorMessage, null, controllers.error))));
10963
+ }, children), caption && React__default["default"].createElement("div", {
10964
+ className: styles$i['radio-group-caption']
10965
+ }, caption), controllers.error && React__default["default"].createElement(ErrorMessage, null, controllers.error))));
10943
10966
  };
10944
10967
 
10945
10968
  var styles$f = {"text-field":"_6Of1F","text-field--invalid":"_NQPNK","text-field--prefixed":"_BpQWQ","text-field--suffixed":"_cpYWb","password-container":"_pAoib","password-toggle":"_WVvS6"};