@stella-source/stellasource-dsl 3.4.0 → 3.5.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/cjs/index.js CHANGED
@@ -23167,6 +23167,9 @@ const OrderStatusLabel = styled.span `
23167
23167
  overflow: hidden;
23168
23168
  `;
23169
23169
 
23170
+ // This is used as a dictionary of all of the mapped strings to icons and labels.
23171
+ // It isn't being enforced because of the string type.
23172
+ // Still, any new status mappings need to be added here as it affects the tests and stories.
23170
23173
  var OrderStatusVariant;
23171
23174
  (function (OrderStatusVariant) {
23172
23175
  OrderStatusVariant["COMPLETED"] = "Completed";
@@ -23202,7 +23205,7 @@ const getOrderStatusLabel = (variant, isPurchaser) => {
23202
23205
  }
23203
23206
  };
23204
23207
 
23205
- const OrderStatus = ({ variant, id, className, isPurchaser, }) => {
23208
+ const OrderStatus = ({ variant = "", id, className, isPurchaser, }) => {
23206
23209
  const STATUS_ICON_MAP = {
23207
23210
  InfoNeeded: "warning",
23208
23211
  ViewPricing: "eye",
@@ -23221,6 +23224,7 @@ const OrderStatus = ({ variant, id, className, isPurchaser, }) => {
23221
23224
  const label = getOrderStatusLabel(variant, isPurchaser);
23222
23225
  return (a$m.createElement(OrderStatusComponent, { id: id, className: className },
23223
23226
  iconName && a$m.createElement(OrderStatusIcon, { iconName: iconName, size: 16 }),
23227
+ !iconName && label !== "--" && (a$m.createElement(OrderStatusIcon, { iconName: "warning", size: 16 })),
23224
23228
  a$m.createElement(OrderStatusLabel, null, label)));
23225
23229
  };
23226
23230