@salesgenterp/ui-components 0.3.55 → 0.3.58

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.
@@ -184,7 +184,7 @@ var CartDrawer = function CartDrawer(_ref) {
184
184
  };
185
185
 
186
186
  var _templateObject$2, _templateObject2$2, _templateObject3$2, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8;
187
- var CartPageSection = styled.section(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n background: ", ";\n max-width: 100%;\n width: fit-content;\n background: ", ";\n overflow: hidden;\n font-family: 'karla-fonts';\n"])), function (props) {
187
+ var CartPageSection = styled.section(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n background: ", ";\n max-width: 100%;\n width: fit-content;\n background: ", ";\n overflow: hidden;\n font-family: 'karla-fonts';\n border-radius: 28px;\n"])), function (props) {
188
188
  return props.bg;
189
189
  }, function (props) {
190
190
  return props.bg || '#FAE8E5';
@@ -239,7 +239,7 @@ function createCommonjsModule(fn, module) {
239
239
  */
240
240
  var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
241
241
  Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
242
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment$1=e;var Lazy=t;var Memo=r;var Portal=d;
242
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
243
243
  var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
244
244
  var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
245
245
  var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
@@ -251,7 +251,7 @@ var reactIs_production_min = {
251
251
  ContextProvider: ContextProvider,
252
252
  Element: Element,
253
253
  ForwardRef: ForwardRef,
254
- Fragment: Fragment$1,
254
+ Fragment: Fragment,
255
255
  Lazy: Lazy,
256
256
  Memo: Memo,
257
257
  Portal: Portal,
@@ -1520,7 +1520,7 @@ function EnhancedTableHead(props) {
1520
1520
  active: orderBy === headCell.id,
1521
1521
  direction: orderBy === headCell.id ? order : 'asc',
1522
1522
  onClick: createSortHandler(headCell.id)
1523
- }, /*#__PURE__*/createElement(Fragment, null, headCell.label)) : headCell.label);
1523
+ }, headCell.label) : headCell.label);
1524
1524
  })));
1525
1525
  }
1526
1526
 
@@ -1667,8 +1667,12 @@ function EnhancedTable(_ref) {
1667
1667
  });
1668
1668
  }))))), /*#__PURE__*/createElement(CartButtonsRow, null, /*#__PURE__*/createElement("button", {
1669
1669
  onClick: function onClick() {
1670
- if (loading) return;
1671
- handleRemoveAll(selected);
1670
+ new Promise(function (resolve, reject) {
1671
+ if (loading) return;
1672
+ handleRemoveAll(selected);
1673
+ resolve();
1674
+ });
1675
+ setSelected([]);
1672
1676
  }
1673
1677
  }, "remove selected"), /*#__PURE__*/createElement("button", null, "updated cart")));
1674
1678
  }